- Timestamp:
- Sep 12, 2008, 4:09:31 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLALERT.m
r150 r151 32 32 ; ORQQPP LIST 33 33 ; 34 34 W "GOT TO ALERTS",! 35 M @ALTOUTXML=@ALTXML ; JUST COPY THE TEMPLATE FOR TESTING ..GPL 35 36 Q ; QUIT 36 37 ; BELOW CODE REMAINS FOR MY KNOWLEDGE AS TEMPLATE -
ccr/trunk/p/GPLCCR.m
r147 r151 53 53 S G1=$NA(^TMP("GPLCCR",$J,DFN,"CCR")) 54 54 I $D(@G1@(0)) D ; CCR EXISTS 55 D PARY^GPLXPATH(G1) 55 . D PARY^GPLXPATH(G1) 56 E W "CCR NOT CREATED, RUN D XPAT^GPLCCR(DFN,"""","""") FIRST",! 56 57 Q 57 58 ; … … 70 71 S CCD=0 ; NEED THIS FLAG TO DISTINGUISH FROM CCD 71 72 I '$D(TESTLAB) S TESTLAB=0 ; FLAG FOR TESTING RESULTS SECTION 73 I '$D(TESTALERT) S TESTALERT=0 ; FLAG FOR TESTING ALERTS SECTION 72 74 S TGLOBAL=$NA(^TMP("GPLCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE 73 75 S CCRGLO=$NA(^TMP("GPLCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR … … 127 129 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""GPLCCR"",$J,DFN,""VITALS"")") 128 130 I TESTLAB D PUSH^GPLXPATH(TAB,"EXTRACT;GPLLABS;//ContinuityOfCareRecord/Body/Results;^TMP(""GPLCCR"",$J,DFN,""RESULTS"")") 131 I TESTALERT D PUSH^GPLXPATH(TAB,"EXTRACT;GPLALERT;//ContinuityOfCareRecord/Body/Alerts;^TMP(""GPLCCR"",$J,DFN,""ALERTS"")") 129 132 Q 130 133 ; … … 214 217 ;;>>>D ZTEST^GPLCCR("CCR") 215 218 ;;>>>W $$TRIM^GPLXPATH(CCRGLO) 219 ;;><ALERTS> 220 ;;>>>S TESTALERT=1 221 ;;>>>K GPL S GPL="" 222 ;;>>>D CCRRPC^GPLCCR(.GPL,"2","ALERTS","","","") 223 ;;>>?@GPL@(@GPL@(0))["</Alerts>" 224
Note:
See TracChangeset
for help on using the changeset viewer.