$$STARTSTP |
Entry point
$$STARTSTP(PSGP,SCH,OI,PSJPWD,PSGORD,PSJADM,STARTDT) returns to CPRS the
setting for the DEFAULT START DATE CALCULATION for the ward the patient is on,
Default Start Date/Time based on the parameter, and the number of days or
hours the order would last.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
PSGP |
Input |
This is the IEN of the patient from the PATIENT file
(#2). It is required.
|
SCH |
Input |
This is the schedule for the order being placed.
|
OI |
Input |
This is the IEN of the Orderable Item from the
PHARMACY ORDERABLE ITEM file (#50.7).
|
PSJPWD |
Input |
This is the IEN of the ward location. It is
optional.
|
PSGORD |
Input |
This is the IEN of the order with the U or V if the
order being placed is a renewal of another order. It is optional.
|
$$STARTSTP |
Output |
$$STARTSTP=WARD PARAMETER^DEFAULT START
DATE/TIME^#_D(NUMBER OF DAYS ORDER LASTS) OR #_H(NUMBER OF HOURS ORDER LASTS)
OR 0.
|
PSJADM |
Input |
This is the admin times. (Optional)
|
STARTDT |
Input |
This is the date upon which calculations are based
instead of doing all calculations against NOW. If nothing is passed in, it
will default to NOW. (Optional)
|
|
$$RESOLVE |
Entry Point $$RESOLVE(PSGP,SCH,OI,PCH,PSJPWD) returns
the parameter passed by CPRS to be resolved and the Date/Time it was resolved
to.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
PSGP |
Input |
This is the IEN of the patient from the PATIENT file
(#2). It is required.
|
SCH |
Input |
This is the schedule for the order being placed. It
is required.
|
OI |
Input |
This is the IEN of the Orderable Item from the
PHARMACY ORDERABLE ITEM file (#50.7).
|
PCH |
Input |
This is the provider's choice of time for the order
to start. Allowable choices are NOW, NEXT, and CLOSEST.
|
PSJPWD |
Input |
This is the IEN of the ward location. It is
optional.
|
$$RESOLVE |
Output |
$$RESOLVE=PCH_^_Resolved Start Date/Time.
|
|
$$SCHREQ |
Entry point $$SCHREQ(MR,OI,DD) returns a 1 if a
schedule should be required for the order being placed via the Inpatient
Medications dialogue through CPRS or a 0 if no schedule is required.
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
MR |
Input |
Medication Route from MEDICATION ROUTES file (#51.2).
Required.
|
OI |
Input |
Orderable Item IEN from PHARAMACY ORDERABLE ITEM file
(#50.7). Optional.
|
DD |
Input |
Dispense Drug IEN from DRUG file (#50). Optional.
|
$$SCHREQ |
Output |
$$SCHREQ will equal 1 if a schedule is required or a
0 if no schedule is required.
|
|