ORMBLD ; SLC/MKB/JDL - Build outgoing ORM msgs ;4/12/04 12:33
Source file <ORMBLD.m>
Package | Total | Call Graph |
---|---|---|
Order Entry Results Reporting | 10 | ($$NMSP,$$PTR,GETDLG1,GETORDER)^ORCD ($$VALUE,STATUS)^ORCSAVE2 ALG^ORMBLDAL (ADDN,DIET,IP,TF,TRAY)^ORMBLDFH CSLT^ORMBLDGM (CH,XO)^ORMBLDLR (ADT,EN)^ORMBLDOR IV^ORMBLDPS EN^ORMBLDRA CA^ORMBLDVB |
Kernel | 3 | ($$FMTHL7,$$NOW)^XLFDT $$PATCH^XPDUTL MSG^XQOR |
Dietetics | 1 | EN^FHWOR8 |
VA Fileman | 1 | $$GET1^DIQ |
Name | Comments | DBIA/ICR reference |
---|---|---|
HL7DATE(DATE) | ; -- FM -> HL7 format
|
|
PS | ; -- new Pharmacy order
|
|
NEW(IFN,CODE) | ; -- Send NW order message to pkg
|
|
GMRA | ; -- new Allergy order
|
|
TEST(ORIFN) | ; -- Build/display HL7 msgs w/o sending
|
|
USID(OI) | ; -- Returns Univ Serv ID for Orderable Item
|
|
REASON(X,N) | ; -- Returns 6 ^-piece format of reason X
; N ^ NATURE ^ 99ORN ^ # ^ Reason ^ 99ORR |
|
GMRC | ; -- new Consult order
|
|
NATURE(X) | ; -- Returns 3 ^-piece identifier for nature X
|
|
LR | ; -- new Lab order
|
|
PID(DFN) | ; -- PID segment
|
|
NAME(NMSP) | ; -- Returns name of pkg NMSP
|
|
MSH(TYPE,TO) | ; -- MSH segment
|
|
RA | ; -- new Radiology order
|
|
IP() | ; -- Returns ORIFN^Type if pt has active isolation order (or 0 if not)
|
|
MSG(IFN,CODE,REASON) | ; -- Send all other order msgs
|
|
PV1(OBJ,TYPE,LOC,VISIT,APPTDT) | ; -- PV1 segment
|
|
BTS(PAT) | ; -- Send batch trailer segment/message to Lab
|
|
OR | ; -- new Generic order
|
|
FH | ; -- new Diet order
|
|
BHS(PAT) | ; -- Send batch header segment/message to Lab
|
Name | Field # of Occurrence |
---|---|
$$GET1^DIQ | IP+4, PS+4 |
EN^FHWOR8 | FH+1 |
$$NMSP^ORCD | NEW+6, MSG+5 |
$$PTR^ORCD | NEW+12 |
GETDLG1^ORCD | NEW+9 |
GETORDER^ORCD | NEW+9 |
$$VALUE^ORCSAVE2 | IP+4, PS+5 |
STATUS^ORCSAVE2 | PS+6 |
ALG^ORMBLDAL | GMRA+2 |
ADDN^ORMBLDFH | FH+6 |
DIET^ORMBLDFH | FH+7 |
IP^ORMBLDFH | FH+3 |
TF^ORMBLDFH | FH+5 |
TRAY^ORMBLDFH | FH+4 |
CSLT^ORMBLDGM | GMRC+1 |
CH^ORMBLDLR | LR+2 |
XO^ORMBLDLR | LR+1 |
ADT^ORMBLDOR | OR+1 |
EN^ORMBLDOR | OR+2 |
IV^ORMBLDPS | PS+8 |
EN^ORMBLDRA | RA+1 |
CA^ORMBLDVB | MSG+6 |
$$FMTHL7^XLFDT | PV1+2, HL7DATE+1 |
$$NOW^XLFDT | NEW+13, MSG+14, BHS+1, MSH+2, IP+2 |
$$PATCH^XPDUTL | PV1+4, GMRA+1 |
MSG^XQOR | NEW+16, MSG+20, BHS+3, BTS+2 |
FileNo | Call Tags |
---|---|
^FH(119.4 - [#119.4] | GET1^DIQ |
^DIC(9.4 - [#9.4] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT - [#2] | PID+3, PV1+3 |
^OR(100 - [#100] | NEW+5, NEW+12, MSG+4, MSG+9, MSG+16, IP+3, PS+7 |
^ORD(100.02 - [#100.02] | NATURE+1 |
^ORD(100.03 - [#100.03] | REASON+2 |
^ORD(100.98 - [#100.98] | MSG+17, IP+2, OR+1, FH+3, FH+4, FH+5, FH+6, LR+3, PS+8 |
^ORD(101.41 - [#101.41] | PS+8 |
^ORD(101.43 - [#101.43] | USID+1 |
^TMP("ORWORD" | NEW+2!, NEW+14!, MSG+1!, MSG+19! |
Name | Line Occurrences |
---|---|
$$HL7DATE | NEW+13, MSG+14, BHS+1, MSH+2 |
$$MSH | NEW+10, MSG+12 |
$$NAME | MSH+2 |
$$NATURE | NEW+13, REASON+3 |
$$PID | NEW+10, MSG+12, BHS+2, BTS+1 |
$$PV1 | NEW+11, MSG+13 |
$$REASON | MSG+14 |
$$USID | MSG+16 |
@( | NEW+14, LR+6, PS+9 |
MSG | PS+7 |
NEW | TEST+1 |
Name | Field # of Occurrence |
---|---|
^( | MSG+16, IP+3 |
^(3 | NEW+5, MSG+4 |
^(4 | MSG+4 |
^(8 | NEW+5 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
APPTDT | PV1~, PV1+2*, PV1+5 |
CODE | NEW~, NEW+4*, NEW+13, MSG~, MSG+8*, MSG+11, MSG+14, MSG+15, MSG+18, LR+1 |
DA | MSG+3~, MSG+9* |
DATE | HL7DATE~, HL7DATE+1 |
DFN | PID~, PID+2, PID+4 |
DG | MSG+3~ |
>> DGPMA | MSG+14 |
DGQUIET | NEW+2~, NEW+3*, MSG+1~, MSG+2* |
DUZ | MSG+14 |
DUZ(2 | BHS+1, MSH+2 |
I | MSG+3~, MSG+12*, MSG+13*, MSG+14*, MSG+15, MSG+16*, MSG+18* |
IFN | NEW~, NEW+5, NEW+9, MSG~, MSG+4, MSG+6, MSG+9, MSG+14, MSG+16, PS+5 , PS+6 |
IVDLG | PS+3~*, PS+8 |
LOC | PV1~, PV1+5, PV1+6 |
LOCAL | USID+1~, USID+3*, USID+4 |
MSH | MSH+1~, MSH+2*, MSH+3 |
N | REASON~, REASON+3* |
NATL | USID+1~, USID+2*, USID+4 |
NATR | MSG+3~, MSG+10*, MSG+14 |
NMSP | NAME~, NAME+1, NAME+2, NAME+3, NAME+4, NAME+5, NAME+6, NAME+7 |
OBJ | PV1~, PV1+3 |
OI | MSG+3~, MSG+16*, USID~, USID+1 |
OITEM | USID+1~*, USID+2, USID+3 |
OR0 | NEW+4~, NEW+5*, NEW+6, NEW+8, NEW+11, NEW+13, MSG+3~, MSG+4*, MSG+5, MSG+12 , MSG+13, MSG+17, PS+3, PS+4 |
OR3 | NEW+4~, NEW+5*, NEW+12, PS+5, PS+7 |
OR8 | NEW+4~, NEW+5*, NEW+13, MSG+3~, MSG+9*, MSG+10 |
ORDG | NEW+4~, NEW+6*, OR+1, FH+3, FH+4, FH+5, FH+6, LR+3, PS+8 |
ORDIALOG | NEW+4~, NEW+8*, NEW+9 |
ORDIALOG( | NEW+12 |
ORIFN | IP+1~, IP+3*, IP+4, TEST~, TEST+1 |
ORMSG | NEW+2~, NEW+15, NEW+16, MSG+1~, MSG+20, BHS+1~, BHS+3, BTS+1~, BTS+2, PS+6! |
ORMSG( | MSG+13*, MSG+14*, MSG+15*, MSG+16*, MSG+18* |
ORMSG(0 | NEW+3, MSG+2 |
ORMSG(1 | NEW+10*, MSG+12*, BHS+1*, BTS+1* |
ORMSG(2 | NEW+10*, MSG+12*, BHS+2*, BTS+1* |
ORMSG(3 | NEW+11* |
ORMSG(4 | NEW+13* |
ORN | NATURE+1~*, NATURE+2 |
>> ORNP | MSG+10 |
ORPARAM | FH+1~ |
ORPARAM(3 | FH+2* |
ORPARENT | NEW+4~, NEW+12*, NEW+13 |
ORPKG | NEW+2~, NEW+6*, NEW+7, NEW+10, NEW+14, NEW+16, MSG+1~, MSG+5*, MSG+6, MSG+7 , MSG+8*, MSG+12, MSG+13, MSG+14, MSG+15, MSG+16, MSG+20, REASON+4, LR+2*, LR+6* |
ORR | REASON+2~*, REASON+3, REASON+4 |
ORVP | NEW+4~, NEW+6*, NEW+10, NEW+11, IP+3, FH+1 |
ORZTEST | NEW+15*, TEST+1!* |
PACH | PV1+1~, PV1+4*, PV1+5, PV1+6 |
PAT | BHS~, BHS+2, BTS~, BTS+1 |
PID | PID+1~, PID+2*, PID+3*, PID+4*, PID+5 |
PKG | PS+4~*, PS+9 |
PKGID | MSG+3~, MSG+4*, MSG+14 |
PROV | MSG+3~, MSG+10*, MSG+14 |
PTR | PID+1~, PID+2*, PID+3, PID+4 |
PV1 | PV1+1~, PV1+5*, PV1+6*, PV1+7 |
RB | PV1+1~*, PV1+3*, PV1+5, PV1+6 |
REASON | MSG~, MSG+6, MSG+14 |
ROOT | PID+1~, PID+2*, PID+3, PID+4 |
START | IP+1~, IP+2*, IP+3* |
STS | MSG+3~, MSG+4*, MSG+15 |
SUB | LR+3~*, LR+4*, LR+5*, LR+6 |
TO | MSH~, MSH+2 |
TYPE | MSG+3~, MSG+11*, MSG+12, MSH~, MSH+2, PV1~, PV1+3, PV1+5, PV1+6, IP+1~ , IP+2*, IP+3, IP+4* |
U | NEW+6, NEW+7, NEW+8, NEW+11, NEW+12, NEW+13, MSG+4, MSG+5, MSG+7, MSG+10 , MSG+12, MSG+13, MSG+14, MSG+17, PID+3, PID+4, PV1+3, PV1+5, PV1+6, USID+2 , USID+3, USID+4, NATURE+2, REASON+3, REASON+4, IP+3, IP+4, LR+3, PS+3, PS+4 , PS+5, PS+7 |
VISIT | PV1~, PV1+5, PV1+6 |
X | NATURE~, NATURE+1, REASON~, REASON+2, REASON+4 |
Y | NATURE+1~, NATURE+2*, NATURE+3, REASON+2~, REASON+3*, REASON+4*, REASON+5, IP+1~, IP+2*, IP+3* , IP+4*, IP+5 |
Name | Field # of Occurrence |
---|---|
$T(ALG^ORMBLDAL | GMRA+2 |
$T(CA^ORMBLDVB | MSG+6 |