| GENERAL DESCRIPTION |
Request permission to call ^ORF4 routine to get order
data.
Input variables:
ORUPKG=ptr to package file, ORUSTS=status0^status1^status2...
ORUVP=variable pointer of patient "dfn;DPT("
ORUPRES=pre-defined context 1>All 2>Current 3>DC'ed 4>Expd
5>Exp 6>New 7>Pend 8>Act (OPTIONAL) 9>Expanded
ORDR=1 will put data into ^TMP("OR",$J,"OUT",9999999-ORSTRT,ORIFN)
(OPTIONAL)
ORUSTART=date/time to start looking in FM format (OPTIONAL)
ORUEND=date/time to stop looking in FM format (OPTIONAL)
Output Variables from Order (#100) file:
^TMP("ORR",$J,ORLIST,i)=ORIFN_^_STATUS
or optionally
^TMP("OR",$J,"OUT",Inverse Start Date,IFN,"ORNP") = (field 1)
Internal Current Agent/Provider ^ External Current Agent/Provider
^TMP("OR",$J,"OUT",Inverse Start Date,IFN,"ORSTOP")= (field 22)
Stop Date
^TMP("OR",$J,"OUT",Inverse Start Date,IFN,"ORSTS")= (field 5)
Internal Status ^ External Status
^TMP("OR",$J,"OUT",Inverse Start Date,IFN,"ORSTRT")= (field 21.1)
Current Start Date
^TMP("OR",$J,"OUT",Inverse Start Date,IFN,"ORTX",Line cnt)= (field .11)
Order Text
|