Changeset 50 for ccr/trunk/p/GPLCCR.m
- Timestamp:
- Jul 7, 2008, 1:30:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLCCR.m
r47 r50 11 11 N CCRGLO 12 12 D CCRRPC(.CCRGLO,DFN,"CCR","","","") 13 S OARY=$NA(^TMP( $J,DFN,"CCR",1))13 S OARY=$NA(^TMP("GPLCCR",$J,DFN,"CCR",1)) 14 14 S ONAM="PAT_"_DFN_"_CCR_V1.xml" 15 15 S ODIR="/home/glilly/CCROUT" 16 16 ;S ODIR="/home/cedwards/" 17 17 ;S ODIR="/opt/wv/p/" 18 18 D OUTPUT^GPLXPATH(OARY,ONAM,ODIR) 19 19 Q … … 31 31 ; IF NULL WILL DEFAULT TO "FROM" DUZ AND "TO" DFN 32 32 S DEBUG=0 33 S TGLOBAL=$NA(^TMP( $J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE34 S CCRGLO=$NA(^TMP( $J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR35 S ACTGLO=$NA(^TMP( $J,DFN,"ACTORS")) ; GLOBAL FOR ALL ACTORS33 S TGLOBAL=$NA(^TMP("GPLCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE 34 S CCRGLO=$NA(^TMP("GPLCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR 35 S ACTGLO=$NA(^TMP("GPLCCR",$J,DFN,"ACTORS")) ; GLOBAL FOR ALL ACTORS 36 36 ; TO GET PART OF THE CCR RETURNED, PASS CCRPART="PROBLEMS" ETC 37 S CCRGRTN=$NA(^TMP( $J,DFN,CCRPART)) ; RTN GLO NM OF PART OR ALL37 S CCRGRTN=$NA(^TMP("GPLCCR",$J,DFN,CCRPART)) ; RTN GLO NM OF PART OR ALL 38 38 D LOAD^GPLCCR0(TGLOBAL) ; LOAD THE CCR TEMPLATE 39 39 D CP^GPLXPATH(TGLOBAL,CCRGLO) ; COPY THE TEMPLATE TO CCR GLOBAL … … 48 48 D HDRMAP(CCRGLO,DFN,HDRARY) ; MAP HEADER VARIABLES 49 49 ; 50 K ^TMP( $J,"CCRSTEP") ; KILL GLOBAL PRIOR TO ADDING TO IT51 S CCRXTAB= "^TMP($J,""CCRSTEP"")"; GLOBAL TO STORE CCR STEPS50 K ^TMP("GPLCCR",$J,"CCRSTEP") ; KILL GLOBAL PRIOR TO ADDING TO IT 51 S CCRXTAB=$NA(^TMP("GPLCCR",$J,"CCRSTEP")) ; GLOBAL TO STORE CCR STEPS 52 52 D INITSTPS(CCRXTAB) ; INITIALIZED CCR PROCESSING STEPS 53 53 N I,XI,TAG,RTN,CALL,XPATH,IXML,OXML,INXML,CCRBLD … … 75 75 INITSTPS(TAB) ; INITIALIZE CCR PROCESSING STEPS 76 76 ; TAB IS PASSED BY NAME 77 ;W "TAB= ",TAB,!78 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP( $J,DFN,""PROBLEMS"")")79 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITALS;//ContinuityOfCareRecord/Body/VitalSigns;^TMP( $J,DFN,""VITALS"")")77 W "TAB= ",TAB,! 78 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""GPLCCR"",$J,DFN,""PROBLEMS"")") 79 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITALS;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""GPLCCR"",$J,DFN,""VITALS"")") 80 80 Q 81 81 ; 82 82 HDRMAP(CXML,DFN,IHDR) ; MAP HEADER VARIABLES: FROM, TO ECT 83 N VMAP S VMAP=$NA(^TMP( $J,DFN,"HEADER"))83 N VMAP S VMAP=$NA(^TMP("GPLCCR",$J,DFN,"HEADER")) 84 84 ; K @VMAP 85 85 S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$FMTHL7^XLFDT($$NOW^XLFDT),"DT")
Note:
See TracChangeset
for help on using the changeset viewer.