| $$LIMITS(IEN507) | 
Return system (site) level default 'DAY (nD) or DOSE
(nL) LIMIT' value of the orderable item in the PHARMACY ORDERABLE ITEM FILE
(#50.7).
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
IEN507 | 
Input | 
this is the internal entry number from the PHARMACY
ORDERABLE ITEM FILE (#50.7) [REQUIRED]
 
 | 
$$LIMITS(IEN507) | 
Output | 
If data is found, then the API returns a string with
values separated by "^":
Piece #1: LIMIT - value of the (#1) DAY (nD) or DOSE (nL) LIMIT field of the
(#.055) DAY/ DOSE LIMIT multiple entry or the (#.05) DAY (nD) or DOSE (nL)
LIMIT field of the file (#50.7).
Piece #2: CAN PROVIDER OVERRIDE STOP DATE? - value of the (#2) CAN PROVIDER
OVERRIDE LIMIT? field of the (#.055) DAY/DOSE LIMIT multiple entry.
Piece #3: OVERRIDE MESSAGE - value of the (#3) OVERRIDE MESSAGE field of the
(#.055) DAY/DOSE LIMIT multiple entry. If nothing found, then returns "".
 
 | 
 
 | 
$$STRSTP(PSGSHED,OI,PSGORST,PSGDRG) | 
STRSTP calculates standard start date/time, duration,
expected first dose and stop date/time. It also provides information in
regards to overriding the stop dates by providers if this was set for the
orderable item on the system (site) level.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
PSGSHED | 
Input | 
PSGSHED - this is the internal entry number from the
ADMINISTRATION SCHEDULE FILE (#51.1) [OPTIONAL]
 
 | 
OI | 
Input | 
OI - this is the internal entry number from the
PHARMACY ORDERABLE ITEM FILE (#50.7) [OPTIONAL]
 
 | 
PSGORST | 
Input | 
PSGORST - this is the order start date. 'NOW' will be
used as a default value if no start date was provided [OPTIONAL]
 
 | 
PSGDRG | 
Input | 
PSGDRG - this is the internal entry number from the
DRUG FILE (#50) [OPTIONAL]
 
 | 
$$STRSTP | 
Output | 
If data is found, then the API returns a string with
values separated by "^":
Piece #1 DEFAULT START DATE/TIME
Piece #2 ORDER DURATION (NUMBER OF DAYS ORDER LASTS OR NUMBER OF HOURS ORDER
LASTS)
Piece #3 EXPECTED FIRST DOSE
Piece #4 STOP DATE
Piece #5 CAN PROVIDER OVERRIDE STOP DATE?
Piece #6 OVERRIDE MESSAGE If nothing is found, then returns "".
 
 | 
 
 |