Article ID: 12739 Date: 12/12/2001 Published: 1/12/2004 |
Application: MRI Source: Meditech Platform: MAGIC |
MRI.ICR: Get data about visit
To get visit specific information in a MRI.ICR report, the following code can be used: VAL=IF{""^MRI.PAT.visit.subscript^ST,DO{@Next(MRI.PAT.visit.subscript)&'ST IF{ VAL=@MRI.PAT.visit.acct.number=acct @MRI.PAT.visit.type^ST}},ST} This will loop on the visit subscript in MRI.PAT and compare the visit account number with the account number in MRI.ICR. If they are equal, then you can store the visit value. In the example above, we are getting the visit type. You can change the field of MRI.PAT.visit.type to any of the fields in the MRI.PAT visits segment. |