2009-05-21 13:12:11 -04:00
|
|
|
C0CCCR ; CCDCCR/GPL - CCR MAIN PROCESSING; 6/6/08
|
|
|
|
;;1.0;C0C;;May 19, 2009;
|
2009-03-14 18:23:22 -04:00
|
|
|
;Copyright 2008,2009 George Lilly, University of Minnesota.
|
|
|
|
;Licensed under the terms of the GNU General Public License.
|
|
|
|
;See attached copy of the License.
|
2008-07-14 10:53:09 -04:00
|
|
|
;
|
|
|
|
;This program is free software; you can redistribute it and/or modify
|
|
|
|
;it under the terms of the GNU General Public License as published by
|
|
|
|
;the Free Software Foundation; either version 2 of the License, or
|
|
|
|
;(at your option) any later version.
|
|
|
|
;
|
|
|
|
;This program is distributed in the hope that it will be useful,
|
|
|
|
;but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;GNU General Public License for more details.
|
|
|
|
;
|
|
|
|
;You should have received a copy of the GNU General Public License along
|
|
|
|
;with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
;
|
|
|
|
; EXPORT A CCR
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
EXPORT ; EXPORT ENTRY POINT FOR CCR
|
2009-01-19 13:58:36 -05:00
|
|
|
; Select a patient.
|
|
|
|
S DIC=2,DIC(0)="AEMQ" D ^DIC
|
|
|
|
I Y<1 Q ; EXIT
|
|
|
|
S DFN=$P(Y,U,1) ; SET THE PATIENT
|
2009-01-30 13:07:28 -05:00
|
|
|
D XPAT(DFN) ; EXPORT TO A FILE
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
XPAT(DFN,XPARMS,DIR,FN) ; EXPORT ONE PATIENT TO A FILE
|
2009-03-14 18:23:22 -04:00
|
|
|
; DIR IS THE DIRECTORY, DEFAULTS IF NULL TO ^TMP("C0CCCR","ODIR")
|
2009-01-19 13:58:36 -05:00
|
|
|
; FN IS FILE NAME, DEFAULTS IF NULL
|
|
|
|
N CCRGLO,UDIR,UFN
|
2009-05-30 16:57:19 -04:00
|
|
|
S C0CNRPC=1 ; FLAG FOR NOT AN RPC CALL - FOR DEBUGGING THE RPC
|
2009-01-19 13:58:36 -05:00
|
|
|
I '$D(DIR) S UDIR=""
|
|
|
|
E S UDIR=DIR
|
2009-03-23 21:46:12 -04:00
|
|
|
I '$D(FN) S UFN="" ; IF FILENAME IS NOT PASSED
|
2009-01-19 13:58:36 -05:00
|
|
|
E S UFN=FN
|
2009-01-30 13:07:28 -05:00
|
|
|
I '$D(XPARMS) S XPARMS=""
|
2009-05-30 16:57:19 -04:00
|
|
|
N C0CRTN ; RETURN ARRAY
|
2009-05-30 17:38:17 -04:00
|
|
|
D CCRRPC(.C0CRTN,DFN,XPARMS,"CCR")
|
2009-03-14 18:23:22 -04:00
|
|
|
S OARY=$NA(^TMP("C0CCCR",$J,DFN,"CCR",1))
|
2009-01-19 13:58:36 -05:00
|
|
|
S ONAM=UFN
|
2009-05-21 13:12:11 -04:00
|
|
|
I UFN="" S ONAM="PAT_"_DFN_"_CCR_V1_0_0.xml"
|
2009-03-14 18:23:22 -04:00
|
|
|
S ODIRGLB=$NA(^TMP("C0CCCR","ODIR"))
|
2009-05-05 17:24:14 -04:00
|
|
|
S ^TMP("C0CCCR","FNAME",DFN)=ONAM ; FILE NAME FOR BATCH USE
|
2009-03-14 18:23:22 -04:00
|
|
|
I $D(^TMP("GPLCCR","ODIR")) S @ODIRGLB=^TMP("GPLCCR","ODIR")
|
2009-01-19 13:58:36 -05:00
|
|
|
I '$D(@ODIRGLB) D ; IF NOT ODIR HAS BEEN SET
|
2009-03-14 18:23:22 -04:00
|
|
|
. W "Warning.. please set ^TMP(""C0CCCR"",""ODIR"")=""output path""",! Q
|
2009-01-19 13:58:36 -05:00
|
|
|
. ;S @ODIRGLB="/home/glilly/CCROUT"
|
|
|
|
. ;S @ODIRGLB="/home/cedwards/"
|
|
|
|
. S @ODIRGLB="/opt/wv/p/"
|
|
|
|
S ODIR=UDIR
|
|
|
|
I UDIR="" S ODIR=@ODIRGLB
|
|
|
|
N ZY
|
2009-03-14 18:23:22 -04:00
|
|
|
S ZY=$$OUTPUT^C0CXPATH(OARY,ONAM,ODIR)
|
2009-01-19 13:58:36 -05:00
|
|
|
W !,$P(ZY,U,2),!
|
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
DCCR(DFN) ; DISPLAY A CCR THAT HAS JUST BEEN EXTRACTED
|
2009-01-19 13:58:36 -05:00
|
|
|
;
|
|
|
|
N G1
|
2009-03-14 18:23:22 -04:00
|
|
|
S G1=$NA(^TMP("C0CCCR",$J,DFN,"CCR"))
|
2009-01-19 13:58:36 -05:00
|
|
|
I $D(@G1@(0)) D ; CCR EXISTS
|
2009-03-14 18:23:22 -04:00
|
|
|
. D PARY^C0CXPATH(G1)
|
|
|
|
E W "CCR NOT CREATED, RUN D XPAT^C0CCCR(DFN,"""","""") FIRST",!
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
CCRRPC(CCRGRTN,DFN,CCRPARMS,CCRPART) ;RPC ENTRY POINT FOR CCR OUTPUT
|
2009-08-28 19:21:26 -04:00
|
|
|
; CCRGRTN IS RETURN ARRAY PASSED BY REFERENCE
|
2009-01-19 13:58:36 -05:00
|
|
|
; DFN IS PATIENT IEN
|
|
|
|
; CCRPART IS "CCR" FOR ENTIRE CCR, OR SECTION NAME FOR A PART
|
|
|
|
; OF THE CCR BODY.. PARTS INCLUDE "PROBLEMS" "VITALS" ETC
|
2009-01-30 13:07:28 -05:00
|
|
|
; CCRPARMS ARE PARAMETERS THAT AFFECT THE EXTRACTION
|
|
|
|
; IN THE FORM "PARM1:VALUE1^PARM2:VALUE2"
|
|
|
|
; EXAMPLE: "LABLIMIT:T-60" TO LIMIT LAB EXTRACTION TO THE LAST 60 DAYS
|
|
|
|
; SEE C0CPARMS FOR A COMPLETE LIST OF SUPPORTED PARAMETERS
|
2009-01-19 13:58:36 -05:00
|
|
|
I '$D(DEBUG) S DEBUG=0
|
|
|
|
S CCD=0 ; NEED THIS FLAG TO DISTINGUISH FROM CCD
|
2009-05-30 15:26:57 -04:00
|
|
|
I '$D(CCRPARMS) S CCRPARMS=""
|
2009-05-30 15:44:51 -04:00
|
|
|
I '$D(CCRPART) S CCRPART="CCR"
|
2009-05-30 17:10:30 -04:00
|
|
|
I '$D(C0CNRPC) S ^TMP("C0CRPC",$H,"CALL",DFN)=""
|
2009-01-30 13:33:38 -05:00
|
|
|
D SET^C0CPARMS(CCRPARMS) ;SET PARAMETERS WITH CCRPARMS AS OVERRIDES
|
2009-01-19 13:58:36 -05:00
|
|
|
I '$D(TESTLAB) S TESTLAB=0 ; FLAG FOR TESTING RESULTS SECTION
|
|
|
|
I '$D(TESTALERT) S TESTALERT=1 ; FLAG FOR TESTING ALERTS SECTION
|
2009-03-22 15:26:00 -04:00
|
|
|
I '$D(TESTMEDS) S TESTMEDS=0 ; FLAG FOR TESTING C0CMED SECTION
|
2009-03-14 18:23:22 -04:00
|
|
|
S TGLOBAL=$NA(^TMP("C0CCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE
|
|
|
|
S CCRGLO=$NA(^TMP("C0CCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR
|
|
|
|
S ACTGLO=$NA(^TMP("C0CCCR",$J,DFN,"ACTORS")) ; GLOBAL FOR ALL ACTORS
|
2009-01-19 13:58:36 -05:00
|
|
|
; TO GET PART OF THE CCR RETURNED, PASS CCRPART="PROBLEMS" ETC
|
2009-05-30 17:38:17 -04:00
|
|
|
;M CCRGRTN=^TMP("C0CCCR",$J,DFN,CCRPART) ; RTN GLOBAL OF PART OR ALL
|
2009-03-14 18:23:22 -04:00
|
|
|
D LOAD^C0CCCR0(TGLOBAL) ; LOAD THE CCR TEMPLATE
|
|
|
|
D CP^C0CXPATH(TGLOBAL,CCRGLO) ; COPY THE TEMPLATE TO CCR GLOBAL
|
2009-01-19 13:58:36 -05:00
|
|
|
;
|
|
|
|
; DELETE THE BODY, ACTORS AND SIGNATURES SECTIONS FROM GLOBAL
|
|
|
|
; THESE WILL BE POPULATED AFTER CALLS TO THE XPATH ROUTINES
|
2009-03-14 18:23:22 -04:00
|
|
|
D REPLACE^C0CXPATH(CCRGLO,"","//ContinuityOfCareRecord/Body")
|
|
|
|
D REPLACE^C0CXPATH(CCRGLO,"","//ContinuityOfCareRecord/Actors")
|
|
|
|
D REPLACE^C0CXPATH(CCRGLO,"","//ContinuityOfCareRecord/Signatures")
|
2009-01-19 13:58:36 -05:00
|
|
|
I DEBUG F I=1:1:@CCRGLO@(0) W @CCRGLO@(I),!
|
|
|
|
;
|
2009-01-30 13:07:28 -05:00
|
|
|
D HDRMAP(CCRGLO,DFN) ; MAP HEADER VARIABLES
|
2009-01-19 13:58:36 -05:00
|
|
|
;
|
2009-03-14 18:23:22 -04:00
|
|
|
K ^TMP("C0CCCR",$J,"CCRSTEP") ; KILL GLOBAL PRIOR TO ADDING TO IT
|
|
|
|
S CCRXTAB=$NA(^TMP("C0CCCR",$J,"CCRSTEP")) ; GLOBAL TO STORE CCR STEPS
|
2009-01-19 13:58:36 -05:00
|
|
|
D INITSTPS(CCRXTAB) ; INITIALIZED CCR PROCESSING STEPS
|
|
|
|
N PROCI,XI,TAG,RTN,CALL,XPATH,IXML,OXML,INXML,CCRBLD
|
|
|
|
F PROCI=1:1:@CCRXTAB@(0) D ; PROCESS THE CCR BODY SECTIONS
|
|
|
|
. S XI=@CCRXTAB@(PROCI) ; CALL COPONENTS TO PARSE
|
|
|
|
. S RTN=$P(XI,";",2) ; NAME OF ROUTINE TO CALL
|
|
|
|
. S TAG=$P(XI,";",1) ; LABEL INSIDE ROUTINE TO CALL
|
|
|
|
. S XPATH=$P(XI,";",3) ; XPATH TO XML TO PASS TO ROUTINE
|
2009-03-14 18:23:22 -04:00
|
|
|
. D QUERY^C0CXPATH(TGLOBAL,XPATH,"INXML") ; EXTRACT XML TO PASS
|
2009-01-19 13:58:36 -05:00
|
|
|
. S IXML="INXML"
|
|
|
|
. S OXML=$P(XI,";",4) ; ARRAY FOR SECTION VALUES
|
|
|
|
. ; K @OXML ; KILL EXPECTED OUTPUT ARRAY
|
|
|
|
. ; W OXML,!
|
|
|
|
. S CALL="D "_TAG_"^"_RTN_"(IXML,DFN,OXML)" ; SETUP THE CALL
|
|
|
|
. W "RUNNING ",CALL,!
|
|
|
|
. X CALL
|
|
|
|
. ; NOW INSERT THE RESULTS IN THE CCR BUFFER
|
2009-09-15 13:48:00 -04:00
|
|
|
. I $G(@OXML@(0))>0 D ; THERE IS A RESULT
|
2009-03-14 18:23:22 -04:00
|
|
|
. . D INSERT^C0CXPATH(CCRGLO,OXML,"//ContinuityOfCareRecord/Body")
|
|
|
|
. . I DEBUG F C0CI=1:1:@OXML@(0) W @OXML@(C0CI),!
|
2009-01-19 13:58:36 -05:00
|
|
|
N ACTT,ATMP,ACTT2,ATMP2 ; TEMPORARY ARRAY SYMBOLS FOR ACTOR PROCESSING
|
2009-03-14 18:23:22 -04:00
|
|
|
D ACTLST^C0CCCR(CCRGLO,ACTGLO) ; GEN THE ACTOR LIST
|
|
|
|
D QUERY^C0CXPATH(TGLOBAL,"//ContinuityOfCareRecord/Actors","ACTT")
|
|
|
|
D EXTRACT^C0CACTOR("ACTT",ACTGLO,"ACTT2")
|
|
|
|
D INSINNER^C0CXPATH(CCRGLO,"ACTT2","//ContinuityOfCareRecord/Actors")
|
2009-01-19 13:58:36 -05:00
|
|
|
N TRIMI,J,DONE S DONE=0
|
|
|
|
F TRIMI=0:0 D Q:DONE ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE
|
2009-03-14 18:23:22 -04:00
|
|
|
. S J=$$TRIM^C0CXPATH(CCRGLO) ; DELETE EMPTY ELEMENTS
|
2009-01-19 13:58:36 -05:00
|
|
|
. I DEBUG W "TRIMMED",J,!
|
|
|
|
. I J=0 S DONE=1 ; DONE WHEN TRIM RETURNS FALSE
|
2009-05-31 16:18:11 -04:00
|
|
|
;S CCRGRTN=$NA(^TMP("C0CCCR",$J,DFN,CCRPART)) ; RTN GLOBAL OF PART OR ALL
|
|
|
|
M CCRGRTN=^TMP("C0CCCR",$J,DFN,CCRPART) ; RTN GLOBAL OF PART OR ALL
|
|
|
|
I '$D(C0CNRPC) S ^TMP("C0CRPC",$H,"RESULT",CCRGRTN(0))=""
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
INITSTPS(TAB) ; INITIALIZE CCR PROCESSING STEPS
|
2009-01-19 13:58:36 -05:00
|
|
|
; TAB IS PASSED BY NAME
|
|
|
|
I DEBUG W "TAB= ",TAB,!
|
|
|
|
; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS
|
2009-03-14 18:23:22 -04:00
|
|
|
D PUSH^C0CXPATH(TAB,"EXTRACT;C0CPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""C0CCCR"",$J,DFN,""PROBLEMS"")")
|
2009-10-14 11:57:25 -04:00
|
|
|
I TESTALERT D PUSH^C0CXPATH(TAB,"EXTRACT;C0CALERT;//ContinuityOfCareRecord/Body/Alerts;^TMP(""C0CCCR"",$J,DFN,""ALERTS"")")
|
2009-03-22 15:26:00 -04:00
|
|
|
D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")
|
2009-10-14 11:57:25 -04:00
|
|
|
D PUSH^C0CXPATH(TAB,"MAP;C0CIMMU;//ContinuityOfCareRecord/Body/Immunizations;^TMP(""C0CCCR"",$J,DFN,""IMMUNE"")")
|
2009-03-14 18:23:22 -04:00
|
|
|
D PUSH^C0CXPATH(TAB,"EXTRACT;C0CVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""C0CCCR"",$J,DFN,""VITALS"")")
|
|
|
|
D PUSH^C0CXPATH(TAB,"MAP;C0CLABS;//ContinuityOfCareRecord/Body/Results;^TMP(""C0CCCR"",$J,DFN,""RESULTS"")")
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
HDRMAP(CXML,DFN) ; MAP HEADER VARIABLES: FROM, TO ECT
|
2009-03-14 18:23:22 -04:00
|
|
|
N VMAP S VMAP=$NA(^TMP("C0CCCR",$J,DFN,"HEADER"))
|
2009-01-19 13:58:36 -05:00
|
|
|
; K @VMAP
|
2009-03-15 20:14:48 -04:00
|
|
|
S @VMAP@("DATETIME")=$$FMDTOUTC^C0CUTIL($$NOW^XLFDT,"DT")
|
2009-01-19 13:58:36 -05:00
|
|
|
; I IHDR="" D ; HEADER ARRAY IS NOT PROVIDED, USE DEFAULTS
|
|
|
|
D ; ALWAYS MAP THESE VARIABLES
|
|
|
|
. S @VMAP@("ACTORPATIENT")="ACTORPATIENT_"_DFN
|
|
|
|
. S @VMAP@("ACTORFROM")="ACTORORGANIZATION_"_DUZ ; FROM DUZ - ???
|
|
|
|
. S @VMAP@("ACTORFROM2")="ACTORSYSTEM_1" ; SECOND FROM IS THE SYSTEM
|
|
|
|
. S @VMAP@("ACTORTO")="ACTORPATIENT_"_DFN ; FOR TEST PURPOSES
|
|
|
|
. S @VMAP@("PURPOSEDESCRIPTION")="CEND PHR" ; FOR TEST PURPOSES
|
|
|
|
. S @VMAP@("ACTORTOTEXT")="Patient" ; FOR TEST PURPOSES
|
|
|
|
. ; THIS IS THE USE CASE FOR THE PHR WHERE "TO" IS THE PATIENT
|
|
|
|
;I IHDR'="" D ; HEADER VALUES ARE PROVIDED
|
2009-03-14 18:23:22 -04:00
|
|
|
;. D CP^C0CXPATH(IHDR,VMAP) ; COPY HEADER VARIABLES TO MAP ARRAY
|
2009-01-19 13:58:36 -05:00
|
|
|
N CTMP
|
2009-03-14 18:23:22 -04:00
|
|
|
D MAP^C0CXPATH(CXML,VMAP,"CTMP")
|
|
|
|
D CP^C0CXPATH("CTMP",CXML)
|
2009-01-19 13:58:36 -05:00
|
|
|
N HRIMVARS ;
|
2009-03-14 18:23:22 -04:00
|
|
|
S HRIMVARS=$NA(^TMP("C0CRIM","VARS",DFN,"HEADER")) ; TO PERSIST VARS
|
2009-01-19 13:58:36 -05:00
|
|
|
M @HRIMVARS@(1)=@VMAP ; PERSIST THE HEADER VARIABLES IN RIM TABLE
|
|
|
|
S @HRIMVARS@(0)=1 ; ONLY ONE SET OF HEADERS PER PATIENT
|
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
ACTLST(AXML,ACTRTN) ; RETURN THE ACTOR LIST FOR THE XML IN AXML
|
2009-01-19 13:58:36 -05:00
|
|
|
; AXML AND ACTRTN ARE PASSED BY NAME
|
|
|
|
; EACH ACTOR RECORD HAS 3 PARTS - IE IF OBJECTID=ACTORPATIENT_2
|
|
|
|
; P1= OBJECTID - ACTORPATIENT_2
|
|
|
|
; P2= OBJECT TYPE - PATIENT OR PROVIDER OR SOFTWARE
|
|
|
|
;OR INSTITUTION
|
|
|
|
; OR PERSON(IN PATIENT FILE IE NOK)
|
|
|
|
; P3= IEN RECORD NUMBER FOR ACTOR - 2
|
|
|
|
N I,J,K,L
|
|
|
|
K @ACTRTN ; CLEAR RETURN ARRAY
|
|
|
|
F I=1:1:@AXML@(0) D ; SCAN ALL LINES
|
|
|
|
. I @AXML@(I)?.E1"<ActorID>".E D ; THERE IS AN ACTOR THIS LINE
|
|
|
|
. . S J=$P($P(@AXML@(I),"<ActorID>",2),"</ActorID>",1)
|
|
|
|
. . I DEBUG W "<ActorID>=>",J,!
|
|
|
|
. . I J'="" S K(J)="" ; HASHING ACTOR
|
|
|
|
. . ; TO GET RID OF DUPLICATES
|
|
|
|
S I="" ; GOING TO $O THROUGH THE HASH
|
|
|
|
F J=0:0 D Q:$O(K(I))=""
|
|
|
|
. S I=$O(K(I)) ; WALK THROUGH THE HASH OF ACTORS
|
|
|
|
. S $P(L,U,1)=I ; FIRST PIECE IS THE OBJECT ID
|
|
|
|
. S $P(L,U,2)=$P($P(I,"ACTOR",2),"_",1) ; ACTOR TYPE
|
|
|
|
. S $P(L,U,3)=$P(I,"_",2) ; IEN RECORD NUMBER FOR ACTOR
|
2009-03-14 18:23:22 -04:00
|
|
|
. D PUSH^C0CXPATH(ACTRTN,L) ; ADD THE ACTOR TO THE RETURN ARRAY
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
TEST ; RUN ALL THE TEST CASES
|
2009-03-14 18:23:22 -04:00
|
|
|
D TESTALL^C0CUNIT("C0CCCR")
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
ZTEST(WHICH) ; RUN ONE SET OF TESTS
|
2009-01-19 13:58:36 -05:00
|
|
|
N ZTMP
|
2009-03-14 18:23:22 -04:00
|
|
|
D ZLOAD^C0CUNIT("ZTMP","C0CCCR")
|
|
|
|
D ZTEST^C0CUNIT(.ZTMP,WHICH)
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2009-05-21 13:12:11 -04:00
|
|
|
TLIST ; LIST THE TESTS
|
2009-01-19 13:58:36 -05:00
|
|
|
N ZTMP
|
2009-03-14 18:23:22 -04:00
|
|
|
D ZLOAD^C0CUNIT("ZTMP","C0CCCR")
|
|
|
|
D TLIST^C0CUNIT(.ZTMP)
|
2009-01-19 13:58:36 -05:00
|
|
|
Q
|
|
|
|
;
|
2008-07-05 11:49:50 -04:00
|
|
|
;;><TEST>
|
|
|
|
;;><PROBLEMS>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>K C0C S C0C=""
|
|
|
|
;;>>>D CCRRPC^C0CCCR(.C0C,"2","PROBLEMS","")
|
|
|
|
;;>>?@C0C@(@C0C@(0))["</Problems>"
|
2008-07-05 11:49:50 -04:00
|
|
|
;;><VITALS>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>K C0C S C0C=""
|
|
|
|
;;>>>D CCRRPC^C0CCCR(.C0C,"2","VITALS","")
|
|
|
|
;;>>?@C0C@(@C0C@(0))["</VitalSigns>"
|
2008-07-05 11:49:50 -04:00
|
|
|
;;><CCR>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>K C0C S C0C=""
|
|
|
|
;;>>>D CCRRPC^C0CCCR(.C0C,"2","CCR","")
|
|
|
|
;;>>?@C0C@(@C0C@(0))["</ContinuityOfCareRecord>"
|
2008-07-05 11:49:50 -04:00
|
|
|
;;><ACTLST>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>K C0C S C0C=""
|
|
|
|
;;>>>D CCRRPC^C0CCCR(.C0C,"2","CCR","")
|
|
|
|
;;>>>D ACTLST^C0CCCR(C0C,"ACTTEST")
|
2008-07-05 19:57:32 -04:00
|
|
|
;;><ACTORS>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>D ZTEST^C0CCCR("ACTLST")
|
|
|
|
;;>>>D QUERY^C0CXPATH(TGLOBAL,"//ContinuityOfCareRecord/Actors","G2")
|
|
|
|
;;>>>D EXTRACT^C0CACTOR("G2","ACTTEST","G3")
|
2008-07-05 20:12:17 -04:00
|
|
|
;;>>?G3(G3(0))["</Actors>"
|
2008-07-07 13:12:04 -04:00
|
|
|
;;><TRIM>
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>D ZTEST^C0CCCR("CCR")
|
|
|
|
;;>>>W $$TRIM^C0CXPATH(CCRGLO)
|
2008-09-12 16:09:31 -04:00
|
|
|
;;><ALERTS>
|
|
|
|
;;>>>S TESTALERT=1
|
2009-03-14 18:23:22 -04:00
|
|
|
;;>>>K C0C S C0C=""
|
|
|
|
;;>>>D CCRRPC^C0CCCR(.C0C,"2","ALERTS","")
|
|
|
|
;;>>?@C0C@(@C0C@(0))["</Alerts>"
|
2009-05-21 13:12:11 -04:00
|
|
|
|
2009-10-14 11:57:25 -04:00
|
|
|
|