NPR select fields that provide a lookup of records to help save you time and trouble when working with NPR Reports.
The technique to select one, or a list of records from a DPM and detail segment via selection on a field that allows the user to use "lookups" varies from module to module. In some modules, you should use NO index and a selection on URN. In others, you must use an index and a selection on a subscript of the index file. Here is a table with the values to use for several DPMs to save you time and trouble.
DPM | Detail Segment | Index | Field and Comments | ||
ABS.PAT |
abs.pat |
abs.pat.number.x |
account.number |
||
ADM.PAT |
adm.patient.file |
do not use one |
urn |
||
BAR.PAT |
bar.acct |
bar.acct.number.x |
number |
||
BAR.PAT |
bar.acct |
bar.acct.guar.index |
select on guar.id with IG then set up select |
||
|
|||||
BAR.RPT |
do not use one |
list.urn |
|||
ID=%Z.id.non.dict.rev.color(^?BRI[TYPE],A,"File#":12L_("Printed |
|||||
LAB.L.SPEC |
Various |
do not use one |
urn |
||
LAB.B.SPEC |
various |
do not use one |
urn |
||
LAB.M.SPEC |
various |
do not use one |
urn |
||
MRI.PAT |
mri.patient.file |
do not use one |
mri.urn EQ or IG |
||
PHA.RX |
pha.rx.file |
pha.rx.number.x |
number |
||
PHA.RX |
pha.rx.file |
pha.rx.patient.index |
PHA.PAT.patient IG |
||
PHA.RX |
pha.rx.file |
pha.rx.number.x |
urn |
||
NOTE: Do not write a PHA.RX report with a select on urn. Your value of c.urn will end up being the “number” field and you will therefore select the RX from a different patient if the urn of an rx matches the “number” of the patient’s RX you selected. This is an unfortunate result of the ID code attached to the urn field, which returns the value of “number” to c.urn when the ID program runs. |
|||||
PP.PER |
pp.employee.file |
pp.employee.name.index |
sort.name |
||
PP.PER |
pp.employee.file |
pp.employee.ss.si.index |
ss.number |
||
RADRW.EXAM |
radiology.exam.information |
do not use one |
rad |
||
SCH.APPT |
sch.appointment |
do not need one |
patient IG and |
||
PC File ID |
%Z.dos.link.long(1) |
© 1996 - 2023 Iatric Systems, Inc. All Rights reserved | Contact Us | Terms of Use | Privacy Policy | Site Map