- Timestamp:
- Aug 12, 2008, 2:45:52 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLPROBS.m
r87 r88 41 41 . S VMAP=$NA(@TVMAP@(J)) 42 42 . K @VMAP 43 . I DEBUGW "VMAP= ",VMAP,!43 . W "VMAP= ",VMAP,! 44 44 . S PTMP=RPCRSLT(J) ; PULL OUT PROBLEM FROM RPC RETURN ARRAY 45 45 . S @VMAP@("PROBLEMOBJECTID")="PROBLEM"_J ; UNIQUE OBJID FOR PROBLEM … … 78 78 ; GENERATE THE NARITIVE HTML FOR THE CCD 79 79 I CCD D ; IF THIS IS FOR A CCD 80 . N HTMP,HOUT,HTMLO,I,ZX 81 . F I=1:1:RPCRSLT(0) D ; FOR EACH PROBLEM 82 . . S VMAP=$NA(@TVMAP@(I)) 80 . N HTMP,HOUT,HTMLO,GPLPROBI,ZX 81 . F GPLPROBI=1:1:RPCRSLT(0) D ; FOR EACH PROBLEM 82 . . S VMAP=$NA(@TVMAP@(GPLPROBI)) 83 . . W "VMAP =",VMAP,! 83 84 . . D QUERY^GPLXPATH(TGLOBAL,"//ContinuityOfCareRecord/Body/PROBLEMS-HTML","HTMP") ; GET THE HTML FROM THE TEMPLATE 84 85 . . D UNMARK^GPLXPATH("HTMP") ; REMOVE <PROBLEMS-HTML> MARKUP … … 86 87 . . D MAP^GPLXPATH("HTMP",VMAP,"HOUT") ; MAP THE VARIABLES 87 88 . . ; D PARY^GPLXPATH("HOUT") ; PRINT IT AGAIN 88 . . I I=1 D ; FIRST ONE IS JUST A COPY89 . . I GPLPROBI=1 D ; FIRST ONE IS JUST A COPY 89 90 . . . D CP^GPLXPATH("HOUT","HTMLO") 90 . . I I>1 D ; AFTER THE FIRST, INSERT INNER HTML 91 . . . D INSINNER^GPLXPATH("HOUT","HTMLO","//") 91 . . I GPLPROBI>1 D ; AFTER THE FIRST, INSERT INNER HTML 92 . . . W "DOING INNER",! 93 . . . N HTMLBLD,HTMLTMP 94 . . . D QUEUE^GPLXPATH("HTMLBLD","HTMLO",1,HTMLO(0)-1) 95 . . . D QUEUE^GPLXPATH("HTMLBLD","HOUT",2,HOUT(0)-1) 96 . . . D QUEUE^GPLXPATH("HTMLBLD","HTMLO",HTMLO(0),HTMLO(0)) 97 . . . D BUILD^GPLXPATH("HTMLBLD","HTMLTMP") 98 . . . D CP^GPLXPATH("HTMLTMP","HTMLO") 99 . . . ; D INSINNER^GPLXPATH("HOUT","HTMLO","//") 100 . D PARY^GPLXPATH("HTMLO") 92 101 . D INSB4^GPLXPATH(OUTXML,"HTMLO") ; INSERT AT TOP OF SECTION 93 102 N PROBSTMP,I -
ccr/trunk/p/GPLVITALS.m
r87 r88 28 28 N VITRSLT,J,K,VITPTMP,X,VITVMAP,TBUF 29 29 D VITALS^ORQQVI(.VITRSLT,DFN,"","") 30 I '$D(VITRSLT(1))D ; NULL RESULT FROM RPC31 . W "N ULL RESULTFROM VITALS RPC",!30 I $P(VITRSLT(1),U,2)="No vitals found." D ; NULL RESULT FROM RPC 31 . W "NO VITALS FOUND FROM VITALS RPC",! 32 32 . S @VITOUTXML@(0)=0 33 33 . Q
Note:
See TracChangeset
for help on using the changeset viewer.