MDWOR ; HOIFO/NCA - Main Routine to Decode HL7 ; 1/29/19 4:55pm
Source file <MDWOR.m>
Package | Total | Call Graph |
---|---|---|
Clinical Procedures | 4 | ($$CANCEL,$$SUB)^MDHL7B CP^MDKUTL ($$NEWTIUN,FILEMSG)^MDRPCOT $$SUBMIT^MDRPCOT1 |
VA FileMan | 4 | (C,NOW)^%DTC (FILE,UPDATE)^DIE DT^DILF $$GET1^DIQ |
Consult Request Tracking | 1 | $$CPROC^GMRCCP |
Kernel | 1 | ($$FMADD,$$HL7TFM,$$NOW)^XLFDT |
Order Entry Results Reporting | 1 | $$PKGID^ORX8 |
Registration | 1 | SDA^VADPT |
Toolkit | 1 | ($$GET,GETLST)^XPAR |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Clinical Procedures | 3 | MD RECEIVE OR MDWCAN MDWORC |
Kernel | 1 | ^ORD(101 |
Name | Comments | DBIA/ICR reference |
---|---|---|
EN(MDMSG) | ; Entry Point for CPRS and pass MSG in MDMSG
|
|
MSH | ; Decode MSH
|
|
PID | ; Check PID
|
|
PV1 | ; Check PV1
|
|
ORC | ; Check ORC
|
|
OBX | ; Check OBX
|
|
NEW | ; New Order Segment
|
|
OBR | ; Check OBR
|
|
CANCEL | ; Cancel/Discontinue
|
|
CHKIN(MDFN,MDREQ,MDPROV,MDATA,MDVSTD) | ; [Procedure] Check In Study
|
|
FMDTE(DATE) | ; Convert HL-7 formatted date to a Fileman formatted date
|
|
HIGHV(MDHV) | ; Return flag indicator whether procedure is use for auto check-in
|
|
GETAPPT(MDDPAT,MDDA) | ; Get appointment
|
Name | Field # of Occurrence |
---|---|
C^%DTC | GETAPPT+2 |
NOW^%DTC | OBX+12 |
FILE^DIE | CANCEL+15, CANCEL+20, CHKIN+23, CHKIN+36 |
UPDATE^DIE | CHKIN+14 |
DT^DILF | OBX+8 |
$$GET1^DIQ | OBR+8, CANCEL+16 |
$$CPROC^GMRCCP | OBR+5 |
$$CANCEL^MDHL7B | CANCEL+13 |
$$SUB^MDHL7B | CHKIN+20 |
CP^MDKUTL | CHKIN+33 |
$$NEWTIUN^MDRPCOT | CHKIN+25 |
FILEMSG^MDRPCOT | CHKIN+26, CHKIN+28 |
$$SUBMIT^MDRPCOT1 | CHKIN+27 |
$$PKGID^ORX8 | NEW+8 |
SDA^VADPT | GETAPPT+2 |
$$FMADD^XLFDT | NEW+5 |
$$HL7TFM^XLFDT | FMDTE+3 |
$$NOW^XLFDT | CHKIN+11, CHKIN+18 |
$$GET^XPAR | OBX+3 |
GETLST^XPAR | EN+11, HIGHV+2 |
FileNo | Call Tags |
---|---|
^MDD(702 - [#702] | GET1^DIQ |
^MDS(702.09 - [#702.09] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT("B" | PID+2 |
^MDD(702 - [#702] | CANCEL+11, CANCEL+12, CANCEL+13, CHKIN+18, CHKIN+19* |
^MDK(704.202 - [#704.202] | CANCEL+18, CANCEL+21!, CANCEL+22* |
^MDS(702.01 - [#702.01] | OBR+7, CHKIN+17, CHKIN+32 |
^MDS(702.09 - [#702.09] | CHKIN+8 |
^SC - [#44] | PV1+3 |
^UTILITY("VASD" | GETAPPT+1!, GETAPPT+3, GETAPPT+6! |
Name | Field # of Occurrence |
---|---|
^( | OBR+7, GETAPPT+4 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | OBX+1~, OBX+12 |
ANSWER | OBX+1~, OBX+8, OBX+9*, OBX+10 |
DATE | FMDTE~, FMDTE+2, FMDTE+3 |
DFN | EN+1~, PID+1*, PID+2, PID+3, GETAPPT+1~* |
DT | CHKIN+6, GETAPPT+2 |
MDALP | GETAPPT+1~, GETAPPT+3*, GETAPPT+4 |
MDANS | HIGHV+1~*, HIGHV+4*, HIGHV+5 |
MDARES | GETAPPT+1~, GETAPPT+3*, GETAPPT+5*, GETAPPT+7 |
MDATA | EN+23*, CHKIN~, CHKIN+3, CHKIN+7, CHKIN+8, CHKIN+9, CHKIN+16, CHKIN+31 |
MDCANC | EN+1~, EN+3*, EN+12, EN+23, CANCEL+1* |
MDCANR | EN+1~, CANCEL+13* |
MDCART | CHKIN+1~*, CHKIN+8*, CHKIN+24 |
MDCKDT | GETAPPT+1~, GETAPPT+4*, GETAPPT+5 |
MDCON | EN+1~, EN+23, NEW+8*, CANCEL+1*, CANCEL+3, CANCEL+11 |
MDCPROC | EN+1~, OBR+3*, OBR+5 |
MDCV | OBX+1~, OBX+5*, OBX+6, OBX+7 |
MDDA | GETAPPT~, GETAPPT+2 |
MDDPAT | GETAPPT~, GETAPPT+1 |
MDERR | CHKIN+1~, CHKIN+14 |
MDFDA | NEW+7~, CANCEL+14~, CANCEL+15!, CHKIN+1~, CHKIN+23 |
MDFDA( | CANCEL+19* |
MDFDA(702 | CANCEL+14*, CHKIN+3*, CHKIN+7*, CHKIN+10*, CHKIN+11*, CHKIN+12*, CHKIN+13*, CHKIN+21*, CHKIN+22*, CHKIN+34* , CHKIN+35* |
MDFLG | EN+1~, EN+3*, EN+12, EN+15, EN+16*, EN+23, MSH+1*, MSH+2*, MSH+3*, PID+2* , PV1+1*, PV1+3*, ORC+3*, OBX+6*, OBX+10*, NEW+1*, NEW+2*, NEW+4*, NEW+8*, OBR+2* , OBR+3*, OBR+5*, OBR+6*, CANCEL+2*, CANCEL+3*, CANCEL+4*, CANCEL+5* |
MDFN | EN+1~, EN+13, EN+23, PID+3*, CHKIN~, CHKIN+10 |
MDHEMO | CANCEL+16~*, CANCEL+17 |
MDHL7 | CHKIN+1~, CHKIN+20*, CHKIN+21, CHKIN+22 |
MDHOLD | CHKIN+1~, CHKIN+16*, CHKIN+18*, CHKIN+34 |
MDHV | HIGHV~, HIGHV+4 |
MDIEN | CHKIN+1~ |
MDIEN(1 | CHKIN+16, CHKIN+18, CHKIN+19, CHKIN+20, CHKIN+25, CHKIN+26, CHKIN+27, CHKIN+28 |
MDIENS | CHKIN+1~, CHKIN+16*, CHKIN+21, CHKIN+22, CHKIN+30, CHKIN+33, CHKIN+34, CHKIN+35 |
MDIFN | EN+1~, EN+13*, NEW+1*, NEW+8, CANCEL+1*, CANCEL+2 |
MDIN | EN+1~, OBR+7* |
MDINP | EN+1~, EN+3*, PV1+2*, PV1+4, OBR+10, OBR+13, OBR+15, OBR+18 |
MDINST | EN+1~, EN+3*, EN+23, OBR+7*, OBR+8*, CANCEL+10*, CANCEL+11*, CANCEL+12, CANCEL+13, CANCEL+14 , CANCEL+16, CANCEL+18, CANCEL+19, CANCEL+21, CANCEL+22 |
MDINT | EN+1~, OBR+7*, OBR+8 |
MDK | HIGHV+1~, HIGHV+3* |
MDK1 | EN+2~, EN+12*, EN+15* |
MDKY | HIGHV+1~, HIGHV+3*, HIGHV+4 |
MDL | EN+1~, EN+3* |
MDLL | EN+2~, EN+11 |
MDLL( | EN+12, EN+15 |
MDLOC | EN+1~, PV1+3*, PV1+4*, OBX+11 |
MDLST | HIGHV+1~, HIGHV+2 |
MDLST( | HIGHV+3 |
MDMAXD | CHKIN+1~, CHKIN+6*, CHKIN+7, CHKIN+15, CHKIN+29 |
MDMSG | EN~ |
MDMSG( | EN+3 |
MDNAM | EN+1~, PID+1*, PID+2 |
MDNOW | CHKIN+1~, CHKIN+18* |
MDOBC | EN+1~, EN+3*, EN+9, OBX+3*, OBX+13*, OBR+10*, OBR+11*, OBR+13*, OBR+16*, OBR+18* , OBR+19* |
MDOBX | EN+1~, OBX+1~, OBX+2*, OBX+4 |
MDOPRO | EN+1~ |
MDPAT | EN+1~, PV1+1*, PV1+2 |
MDPROC | EN+1~, EN+12, EN+15, EN+23, OBR+1*, OBR+2, OBR+3, OBR+5*, OBR+6, OBR+7 |
MDPROV | EN+2~, EN+23, NEW+2*, CANCEL+4*, CHKIN~, CHKIN+12 |
MDQTIM | EN+2~, NEW+3*, NEW+5 |
MDR | CANCEL+1! |
MDREQ | EN+2~, EN+23, NEW+4*, NEW+5*, OBR+11, OBR+16, OBR+18, OBR+19, CANCEL+5*, CHKIN~ |
MDREZ | CHKIN+1~, CHKIN+25*, CHKIN+26, CHKIN+27*, CHKIN+28 |
MDROOT | EN+2~, EN+12*, EN+13, EN+14, EN+15*, EN+16 |
MDRR | EN+2~, EN+12, EN+13*, EN+14 |
MDSCHD | CHKIN+1~, CHKIN+6*, CHKIN+7, CHKIN+13, CHKIN+15, CHKIN+19, CHKIN+29 |
MDSINP | EN+2~, OBR+6*, OBR+9, OBR+12, OBR+14 |
MDVSTD | EN+2~*, EN+12, EN+14*, EN+15, EN+16, EN+23, OBX+4*, OBX+5, OBX+7*, OBX+8 , OBX+10*, OBX+11*, OBX+12*, OBR+10*, OBR+11*, OBR+13*, OBR+15*, OBR+16*, OBR+18*, OBR+19* , CHKIN~, CHKIN+6 |
MDX | EN+2~, EN+3*, EN+4, EN+5, EN+6, EN+7, EN+8, EN+9, MSH+1, MSH+2 , MSH+3, PID+1, PV1+1, PV1+3, ORC+1, ORC+2, OBX+2, NEW+1, NEW+2, NEW+3 , NEW+4, OBR+1, CANCEL+1, CANCEL+4, CANCEL+5 |
MDX1 | CHKIN+1~, CHKIN+2*, CHKIN+3 |
MDXY | CHKIN+1~, CHKIN+16*, CHKIN+17, CHKIN+31*, CHKIN+32 |
U | CANCEL+13, CHKIN+3, CHKIN+7, CHKIN+8, CHKIN+9, CHKIN+16, CHKIN+17, CHKIN+21, CHKIN+31, CHKIN+32 |
VASD | GETAPPT+6! |
VASD("C" | GETAPPT+2* |
VASD("F" | GETAPPT+2* |
VASD("T" | GETAPPT+2* |
VASD("W" | GETAPPT+2* |
X | FMDTE+1~, FMDTE+2*, FMDTE+3*, FMDTE+4, GETAPPT+2, GETAPPT+6! |
X1 | GETAPPT+2*, GETAPPT+6! |
X2 | GETAPPT+2*, GETAPPT+6! |