- Timestamp:
- Aug 6, 2008, 1:29:59 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLCCD1.m
r75 r85 208 208 ;;</documentationOf> 209 209 ;;<Body> 210 ;;<PROBLEMS-HTML> 211 ;;<text><table border="1" width="100%"><thead><tr><th>Condition</th><th>Effective Dates</th><th>Condition Status</th></tr></thead><tbody> 212 ;;<tr><td>@@PROBLEMDESCRIPTION@@</td> 213 ;;<td>@@PROBLEMDATEOFONSET@@</td> 214 ;;<td>Active</td></tr> 215 ;;</tbody></table></text> 216 ;;</PROBLEMS-HTML> 210 217 ;;<Problems> 211 218 ;;<component> -
ccr/trunk/p/GPLPROBS.m
r77 r85 75 75 ; GENERATE THE NARITIVE HTML FOR THE CCD 76 76 I CCD D ; IF THIS IS FOR A CCD 77 . N HTMP,I,ZX 78 . S ZX="<text><table border=""1"" width=""100%""><thead><tr><th>Condition</th><th>Effective Dates</th><th>Condition Status</th></tr></thead><tbody>" 79 . D PUSH^GPLXPATH("HTMP",ZX) ; HEADER OF THE TABLE 77 . N HTMP,HOUT,HTMLO,I,ZX 80 78 . F I=1:1:RPCRSLT(0) D ; FOR EACH PROBLEM 81 79 . . S VMAP=$NA(@TVMAP@(I)) 82 . . S ZX="<tr><td>" ; BEGIN ROW AND COL 83 . . S ZX=ZX_@VMAP@("PROBLEMDESCRIPTION") 84 . . S ZX=ZX_"</td><td>" ; NEXT COL 85 . . D PUSH^GPLXPATH("HTMP",ZX) ; ADD TO BUFFER 86 . . S ZX=@VMAP@("PROBLEMDATEOFONSET") 87 . . I ZX="" S ZX="Unknown" ; SET TO UNKNOWN 88 . . D PUSH^GPLXPATH("HTMP",ZX) 89 . . S ZX="</td><td>" ; NEXT COL 90 . . S ZX=ZX_"Active" ; WE ONLY DO ACTIVE 91 . . S ZX=ZX_"</td></tr>" ; END OF COL AND ROW 92 . . D PUSH^GPLXPATH("HTMP",ZX) 93 . D PUSH^GPLXPATH("HTMP","</tbody></table></text>") ; END TABLE 94 . D INSB4^GPLXPATH(OUTXML,"HTMP") ; INSERT AT TOP OF SECTION 80 . . D QUERY^GPLXPATH(TGLOBAL,"//ContinuityOfCareRecord/Body/PROBLEMS-HTML","HTMP") ; GET THE HTML FROM THE TEMPLATE 81 . . D UNMARK^GPLXPATH("HTMP") ; REMOVE <PROBLEMS-HTML> MARKUP 82 . . ; D PARY^GPLXPATH("HTMP") ; PRINT IT 83 . . D MAP^GPLXPATH("HTMP",VMAP,"HOUT") ; MAP THE VARIABLES 84 . . ; D PARY^GPLXPATH("HOUT") ; PRINT IT AGAIN 85 . . I I=1 D ; FIRST ONE IS JUST A COPY 86 . . . D CP^GPLXPATH("HOUT","HTMLO") 87 . . I I>1 D ; AFTER THE FIRST, INSERT INNER HTML 88 . . . D INSINNER^GPLXPATH("HOUT","HTMLO","//") 89 . D INSB4^GPLXPATH(OUTXML,"HTMLO") ; INSERT AT TOP OF SECTION 95 90 N PROBSTMP,I 96 91 D MISSING^GPLXPATH(ARYTMP,"PROBSTMP") ; SEARCH XML FOR MISSING VARS -
ccr/trunk/p/GPLUNIT.m
r60 r85 69 69 ; 70 70 ZTEST(ZARY,WHICH) ; try out the tests using a passed array ZTEST 71 N I,ZX,ZR,ZP71 N ZI,ZX,ZR,ZP 72 72 S DEBUG=0 73 73 ; I WHICH="ALL" D Q ; RUN ALL THE TESTS … … 85 85 S FIRST=$P(ZARY(WHICH),"^",1) 86 86 S LAST=$P(ZARY(WHICH),"^",2) 87 F I=FIRST:1:LAST D88 . I ZARY( I)?1">"1.E D ; NOT A TEST, JUST RUN THE STATEMENT89 . . S ZP=$E(ZARY( I),2,$L(ZARY(I)))87 F ZI=FIRST:1:LAST D 88 . I ZARY(ZI)?1">"1.E D ; NOT A TEST, JUST RUN THE STATEMENT 89 . . S ZP=$E(ZARY(ZI),2,$L(ZARY(ZI))) 90 90 . . ; W ZP,! 91 91 . . S ZX=ZP … … 93 93 . . X ZX 94 94 . . W "..SUCCESS: ",WHICH,! 95 . I ZARY( I)?1"?"1.E D ; THIS IS A TEST96 . . S ZP=$E(ZARY( I),2,$L(ZARY(I)))95 . I ZARY(ZI)?1"?"1.E D ; THIS IS A TEST 96 . . S ZP=$E(ZARY(ZI),2,$L(ZARY(ZI))) 97 97 . . S ZX="S ZR="_ZP 98 98 . . W "TRYING: "_ZP
Note:
See TracChangeset
for help on using the changeset viewer.