ORRDI1 ;SLC/JMH - RDI ROUTINES FOR API SUPPORTING CDS DATA ;Nov 16, 2022@13:03:49
Source file <ORRDI1.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| GET(DFN,DOMAIN) | ;API for packages to call in order to get data from HDR for
 | 
|
| RETRIEVE(DFN,DOMAIN) | ;GET DATA
 | 
|
| PS(DFN) | ;expects ^TMP($J,"ORRDI")
 | 
|
| AL(DFN) | ;expects ^TMP($J,"ORRDI")
 | 
|
| HAVEHDR() | ;call to check if this system has an HDR to perform order checks
 ; against  | 
|
| DTCONV(DATE) | ;convert date in hl7 format to mm/dd/yy
 | 
|
| PARSE(STREAM) | ;
 | 
|
| SPUSH(S,X) | ;places X on the stack S and returns the current level of the stack
 | 
|
| SPOP(S,X) | ;removes the top item from the stack S and put it into the variable X and returns the level that X was at
 | 
|
| SPEEK(S,X) | ;same as SPOP except the top item is not removed
 | 
|
| SPUT(S,X) | ;implementation specific, uses the stack to form a global node
 | 
|
| MSGERR() | ;check errors from XML return
 | 
|
| ERRHNDL(DFN) | ;handle any errors that may get thrown in call to GET^ORRDI1
 |