OCL |
Called to return a list of meds.
OCL^PSOQ0496(DFN,STARTDATE,ENDDATE,VIEW)
Passed: DFN - Patient's Internal Pointer
Startdate - Date/Time to start search for medications
(optional)
Enddate - Date/Time to terminate search for medications
(optional)
View - Sort format for the returned display. (optional)
Returned: ^TMP("PS",$J,D0,0)=ORDER #_File;PKG^DRUG^INFUSION
RATE^STOP
DATE^REFILLS REMAINING^TOTAL DOSE^UNITS PER DOSE^PLACER
#^STATUS^LAST
FILLDATE^DAYS SUPPLY^QUANTITY^NOT TO BE GIVEN^PENDING
RENEWAL (1 or
0)^ISSUE DATE(Outpatient) or START DATE(Inpatient)^LAST
RELEASE
DATE/TIME^LAST FILL DAY SUPPLY
File:
R;O = prescription (file #52),
P;O = pending outpatient order (file #52.41),
P;I = pending inpatient order (file #53.1),
U;I = unit dose order (file #55, subfile 55.06),
V;I = IV order (file #55, subfile 55.01)
PKG = I (inpatient) or O (outpatient)
^TMP("PS",$J,D0,"MDR",0)= # of LINES
^TMP("PS",$J,D0,"MDR",D1,0)=MED ROUTE ABBR.
^TMP("PS",$J,D0,"SCH",0)= # of LINES
^TMP("PS",$J,D0,"SCH",D1,0)=SCHEDULE NAME
^TMP("PS",$J,D0,"A",0)= # of LINES
^TMP("PS",$J,D0,"A",D1,0)=ADDITIVE NAME^AMOUNT^BOTTLE
^TMP("PS",$J,D0,"B",0)= # of LINES
^TMP("PS",$J,D0,"B",D1,0)=SOLUTION NAME^AMOUNT
^TMP("PS",$J,D0,"P",0)=IEN^.01 of VA 200
^TMP("PS",$J,D0,"SIG",0)= # of LINES
^TMP("PS",$J,D0,"SIG",D1,0)=SIG (outpatient) or INSTRUCTIONS
(inpatient)
^TMP("PS",$J,"ADM",0)= # of LINES
^TMP("PS",$J,"ADM",D1,0)=ADMINISTRATION TIMES Where:
administration time = Free text 2-119 characters
^TMP("PS",$J,"SIO",0)= # of LINES
^TMP("PS",$J,"SIO",D1,0)=SPECIAL INSTRUCTIONS/OTHER PRINT INFO
(Special instructions = Free text 1-180 characters)
^TMP("PS",$J,D0,"P",0)=IEN of provider^.01 of VA 200.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
DFN |
Input |
|
BEGDATE |
Input |
Beginning date for search.
|
ENDDATE |
Input |
Ending date for search.
|
TMP('PS',$J, |
Output |
Global location of returned list of meds.
|
VIEW |
Input |
Numeric value of 0,1,2,3 or null to denote whicH
sorting option to print the display in CPRS. (optional)
0 or null - This provides the medication list as it was prior to CPRS GUI v27
so that other applications calling this API will not see any changes.
1 - Sorts the medication list by Prescription
Status Group and Stop Date/Expiration Date.
Following is the sort order:
Pending group:
Non-Verified
Pending
Active group:
Active
Hold
Suspended (Active/Susp)
Provider Hold
Expired group:
Expired
Discontinued/Deleted group:
Discontinued by Provider
Discontinued (Edit)
2 - Sorts the medication list by Prescription Status Group, Status, and Drug
Name. Following is the sort order:
Active group:
Active
Hold
Pending group:
Non-Verified
Pending
Discontinued group:
Discontinued by Provider
Discontinued (Edit)
3 - Sorts the medication list by Drug Name, Active/Suspended and Stop
Date/Expiration Date.
|
|