VPRDGMRC ;SLC/MKB -- Consult extract ;8/2/11 15:29
Source file <VPRDGMRC.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EN(DFN,BEG,END,MAX,IFN) | ; -- find patient's consults
|
|
EN1(ID,CONS) | ; -- return a consult in CONS("attribute")=value
; Expects DFN, VPRX=^TMP("GMRCR",$J,"CS",VPRN,0) [from EN] |
|
XML(CONS) | ; -- Return patient consult as XML
; as <element code='123' displayName='ABC' /> |
|
LOOP() | ; -- build sub-items string from NAMES and X
|
|
ADD(X) | ; Add a line @VPR@(n)=X
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^TMP("GMRCR" | EN+1!, EN+6, EN+9! |
^TMP("VPRTEXT" | EN+9!, EN1+3!, EN1+14 |
^VA(200 - [#200] | EN1+12 |
Name | Line Occurrences |
---|---|
$$LOOP | XML+9, XML+22 |
ADD | XML+3, XML+4, XML+7, XML+10, XML+11, XML+12, XML+13, XML+14, XML+15, XML+18 , XML+19, XML+20, XML+23 |
EN1 | EN+8 |
XML | EN+8 |
Name | Field # of Occurrence |
---|---|
^( | EN+6 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ATT | XML+2~, XML+4*, XML+5, XML+6, XML+7, XML+8, XML+9, XML+10, XML+14, XML+15 , XML+16, XML+17, XML+21, XML+22 |
BEG | EN~, EN+3*, EN+5 |
CONS | EN1~, EN1+3!, XML~ |
CONS( | XML+4, XML+6, XML+8, XML+9, XML+10, XML+16 |
CONS("document" | EN1+23*, EN1+24* |
CONS("facility" | EN1+25* |
CONS("id" | EN1+4* |
CONS("name" | EN1+6* |
CONS("orderID" | EN1+8* |
CONS("procedure" | EN1+6* |
CONS("provDx" | EN1+20* |
CONS("provider" | EN1+12* |
CONS("reason" | EN1+16* |
CONS("requested" | EN1+4* |
CONS("result" | EN1+7* |
CONS("service" | EN1+5* |
CONS("status" | EN1+5* |
CONS("type" | EN1+8* |
CONS("urgency" | EN1+11* |
DFN | EN~, EN+2*, EN+5 |
END | EN~, EN+3*, EN+5 |
I | XML+2~, XML+8*, XML+9, XML+10 |
ID | EN1~, EN1+4, EN1+10 |
IFN | EN~, EN+7 |
J | XML+2~, XML+13*, XML+19* |
MAX | EN~, EN+3*, EN+6 |
NAMES | XML+2~, XML+5*, LOOP+2 |
P | LOOP+1~, LOOP+2* |
STR | LOOP+1~*, LOOP+2*, LOOP+3 |
TAG | LOOP+1~, LOOP+2* |
U | EN1+4, EN1+5, EN1+6, EN1+7, EN1+8, EN1+11, EN1+12, EN1+18, EN1+19, EN1+25 , LOOP+2 |
>> VPR | ADD+2 |
VPRD | EN1+2~, EN1+10 |
VPRD( | EN1+17, EN1+18 |
VPRD(0 | EN1+10 |
VPRD(20 | EN1+13, EN1+15 |
VPRD(30 | EN1+17, EN1+19 |
VPRD(50 | EN1+21 |
>> VPRI | ADD+1*, ADD+2 |
VPRITM | EN+1~, EN+8! |
VPRJ | EN1+2~, EN1+15*, EN1+21*, EN1+23, EN1+24 |
VPRN | EN+1~, EN+6* |
>> VPRTEXT | EN1+24 |
VPRTIU | EN1+2~ |
>> VPRTOTL | XML+3* |
VPRX | EN+1~, EN+6*, EN+7, EN+8, EN1+4, EN1+5, EN1+6, EN1+7, EN1+8 |
X | EN1+2~, EN1+11*, EN1+12*, EN1+14*, EN1+15, EN1+16, EN1+18*, EN1+19*, EN1+20, EN1+21* , EN1+22, EN1+24, EN1+25*, XML+2~, XML+9*, XML+10*, XML+13, XML+16*, XML+19, XML+21 , XML+22, LOOP+2, ADD~, ADD+2 |
X0 | EN1+2~, EN1+10*, EN1+11, EN1+12, EN1+25 |
Y | EN1+22~*, EN1+23, XML+2~, XML+4, XML+6*, XML+9*, XML+10*, XML+11*, XML+12*, XML+13* , XML+16*, XML+17*, XML+18*, XML+19*, XML+21*, XML+22* |