Article ID: 4623
Date:
7/5/2000
Published: 8/23/2005
Application: MRI
Source:
Meditech
Platform: MAGIC CS

How can I access visit information for a specific account within an MRI ICR report?

This information is stored within the MRI.PAT DPM visits segment. This segment has the additional subscript of visit.subscript. A standard program exists that will identify the MRI.PAT.visit.subscript field for a specific account number. For example, the account number field in MRI.ICR is acct, to access the value of the MRI.PAT.visit.type field for this account number the following computed field could be used:

VAL=IF{%MRI.PAT.find.visit(acct,"",record)^MRI.PAT.visit.subscript,
VAL=MRI.PAT.visit.subscript"1|"}



12739