Article ID: 15701 Date: 2/14/2003 Published: 4/17/2003 |
Application: MRI Source: Meditech Platform: MAGIC |
How can I select on a patient's name utilizing the Master Patient Index Search?
There are two selects that are required to accomplish this goal: 1) urn EQ Patient Name 2) medical.record EQ (c.urn). The urn select provides a lookup utilizing the Master Patient Index Search and in the process sets up the variable /c.urn with the urn of the selected patient. The field medical.record is then used to select off of the value of the /c.urn variable. Select Field/Prompt or Value Oper 1 urn IG FOR PATIENT 2 medical.record EQ (c.urn) NOTE: When translating this report the following error message will be received: ERROR: Selection #1 not done. Cannot find MRI.PAT urn An index should NOT BE USED as it will slow the report down. For MRI.DRC: Select Field/Prompt or Value Oper 1 MRI.PAT.urn IG FOR PATIENT 2 medical.record EQ (MRI.PAT.c.urn) ============================================================ To set this up for a LIST of patients, setup the selection as follows: 1 urn LI For Patients 2 xx.true EQ 1 3 medical.record LI /URN Add a select relationship between urn and xx.true: C1!C2 Create the computed field as follows: xx.true DAT=INT LEN=1 VAL=1 Add the following footnote: AL START ""^SUB,DO{+c.urn[SUB]^SUB 1^/URN[SUB]} The selection on urn is just for input purposes - in can never be true. So, we use the xx.true field and a select relationship so that the urn select really has no effect on selection. The footnote populates an array called /URN that stores all of the patients entered. This is then used with the selection on the field medical.record. ============================================================ |