- Timestamp:
- Sep 3, 2008, 7:54:55 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLACTOR.m
r122 r135 37 37 D CP^GPLXPATH(IPXML,AXML) ; MAKE A COPY OF ACTORS XML 38 38 D REPLACE^GPLXPATH(AXML,"","//Actors") ; DELETE THE INSIDES 39 W "PROCESSING ACTORS ",!39 I DEBUG W "PROCESSING ACTORS ",! 40 40 F I=1:1:@ALST@(0) D ; PROCESS ALL ACTORS IN THE LIST 41 41 . I @ALST@(I)["@@" Q ; NOT A VALID ACTOR … … 45 45 . I ATYP="" Q ; NOT A VALID ACTOR 46 46 . ; 47 . W AOID_" "_ATYP_" "_AIEN,!47 . I DEBUG W AOID_" "_ATYP_" "_AIEN,! 48 48 . I ATYP="PATIENT" D ; PATIENT ACTOR TYPE 49 49 . . D QUERY^GPLXPATH(IPXML,"//Actors/ACTOR-PATIENT","ATMP") … … 78 78 PATIENT(INXML,AIEN,AOID,OUTXML) ; PROCESS A PATIENT ACTOR 79 79 ; 80 W "PROCESSING ACTOR PATIENT ",AIEN,!80 I DEBUG W "PROCESSING ACTOR PATIENT ",AIEN,! 81 81 N AMAP,ZX 82 82 S AMAP=$NA(^TMP($J,"AMAP")) -
ccr/trunk/p/GPLCCR.m
r134 r135 94 94 . ; W OXML,! 95 95 . S CALL="D "_TAG_"^"_RTN_"(IXML,DFN,OXML)" ; SETUP THE CALL 96 . W "RUNNING ",CALL,!96 . I DEBUG W "RUNNING ",CALL,! 97 97 . X CALL 98 98 . ; NOW INSERT THE RESULTS IN THE CCR BUFFER … … 107 107 F TRIMI=0:0 D Q:DONE ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE 108 108 . S J=$$TRIM^GPLXPATH(CCRGLO) ; DELETE EMPTY ELEMENTS 109 . W "TRIMMED",J,!109 . I DEBUG W "TRIMMED",J,! 110 110 . I J=0 S DONE=1 ; DONE WHEN TRIM RETURNS FALSE 111 111 Q … … 113 113 INITSTPS(TAB) ; INITIALIZE CCR PROCESSING STEPS 114 114 ; TAB IS PASSED BY NAME 115 W "TAB= ",TAB,!115 I DEBUG W "TAB= ",TAB,! 116 116 ; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS 117 117 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""GPLCCR"",$J,DFN,""PROBLEMS"")") … … 153 153 . I @AXML@(I)?.E1"<ActorID>".E D ; THERE IS AN ACTOR THIS LINE 154 154 . . S J=$P($P(@AXML@(I),"<ActorID>",2),"</ActorID>",1) 155 . . W "<ActorID>=>",J,!155 . . I DEBUG W "<ActorID>=>",J,! 156 156 . . I J'="" S K(J)="" ; HASHING ACTOR 157 157 . . ; TO GET RID OF DUPLICATES -
ccr/trunk/p/GPLMEDS.m
r130 r135 84 84 . I ZK>2 D ; THIRD THROUGH 2+N LINES OF MED ARE INSTRUCTIONS 85 85 . . N TMPTXT S TMPTXT="" ; BUILD UP INSTRUCTION LINE 86 . . S ZN=0 ; DON'T KNOW WHY87 86 . . F ZN=2:1:ZK-1 D ; REMAINING LINES IN EACH MED 88 87 . . . I MEDRSLT(ZJ+ZN)]"\ Sig: " D ; REMOVE THIS MARKUP -
ccr/trunk/p/GPLPROBS.m
r122 r135 42 42 . S VMAP=$NA(@TVMAP@(J)) 43 43 . K @VMAP 44 . W "VMAP= ",VMAP,!44 . I DEBUG W "VMAP= ",VMAP,! 45 45 . S PTMP=RPCRSLT(J) ; PULL OUT PROBLEM FROM RPC RETURN ARRAY 46 46 . S @VMAP@("PROBLEMOBJECTID")="PROBLEM"_J ; UNIQUE OBJID FOR PROBLEM … … 82 82 . F GPLPROBI=1:1:RPCRSLT(0) D ; FOR EACH PROBLEM 83 83 . . S VMAP=$NA(@TVMAP@(GPLPROBI)) 84 . . W "VMAP =",VMAP,!84 . . I DEBUG W "VMAP =",VMAP,! 85 85 . . D QUERY^GPLXPATH(TGLOBAL,"//ContinuityOfCareRecord/Body/PROBLEMS-HTML","HTMP") ; GET THE HTML FROM THE TEMPLATE 86 86 . . D UNMARK^GPLXPATH("HTMP") ; REMOVE <PROBLEMS-HTML> MARKUP … … 91 91 . . . D CP^GPLXPATH("HOUT","HTMLO") 92 92 . . I GPLPROBI>1 D ; AFTER THE FIRST, INSERT INNER HTML 93 . . . W "DOING INNER",!93 . . . I DEBUG W "DOING INNER",! 94 94 . . . N HTMLBLD,HTMLTMP 95 95 . . . D QUEUE^GPLXPATH("HTMLBLD","HTMLO",1,HTMLO(0)-1) … … 105 105 I PROBSTMP(0)>0 D ; IF THERE ARE MISSING VARS - 106 106 . ; STRINGS MARKED AS @@X@@ 107 . W "PROBLEMS Missing list: ",!107 . W !,"PROBLEMS Missing list: ",! 108 108 . F I=1:1:PROBSTMP(0) W PROBSTMP(I),! 109 109 Q -
ccr/trunk/p/GPLVITAL.m
r132 r135 171 171 . . . ; W "FIRST ONE",! 172 172 . . . D CP^GPLXPATH(VITARYTMP,VITOUTXML) 173 . . . W "VITOUTXML ",VITOUTXML,!173 . . . I DEBUG W "VITOUTXML ",VITOUTXML,! 174 174 . . I J>1 D ; AFTER THE FIRST, INSERT INNER XML 175 175 . . . D INSINNER^GPLXPATH(VITOUTXML,VITARYTMP)
Note:
See TracChangeset
for help on using the changeset viewer.