Article ID: 16240 Date: 4/29/2003 Published: 5/5/2003 |
Application: MRI Source: Meditech Platform: MAGIC |
Accessing visit information for an account within an MRI.ICR report
This information is stored within the MRI.PAT DPM mri.pat.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: xx.visit.type VAL=IF{%MRI.PAT.find.visit(acct,"",record)^MRI.PAT.visit.subscript,@MRI.PAT. VAL=visit.type} The B argument for the program MRI.PAT.find.visit is discharge date. A patient account's discharge date is also unknown while working in the MRI.ICR DPM, therefore a nil ("") value has been passed as the B argument. Once a value for the MRI.PAT.visit.subscript has been established any field from the segment MRI.PAT.visits can be accessed. If you are accessing multiple fields from the segment MRI.PAT.visits, it is only necessary to call this program once. Establishing a value for MRI.PAT.visit.subscript within a Line Attribute or Footnote is also advisable. |