- Timestamp:
- Jul 1, 2008, 11:26:13 AM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLCCR.m
r27 r28 7 7 ; Select a patient for real. 8 8 S DIC=2,DIC(0)="AEMQ" D ^DIC 9 I Y<1 Q ; EXIT 9 10 S DFN=$P(Y,U,1) ; SET THE PATIENT 10 11 N CCRGLO … … 26 27 ; 27 28 ; DELETE THE BODY, ACTORS AND SIGNATURES SECTIONS FROM THE CCR GLOBAL 28 ; THESE WILL BE POPULATED WITHCALLS TO THE XPATH PROCESSING ROUTINES29 ; THESE WILL BE POPULATED AFTER CALLS TO THE XPATH PROCESSING ROUTINES 29 30 D REPLACE^GPLXPATH(CCRGLO,"","//ContinuityOfCareRecord/Body") 30 31 D REPLACE^GPLXPATH(CCRGLO,"","//ContinuityOfCareRecord/Actors") … … 50 51 . D INSERT^GPLXPATH(CCRGLO,OXML,"//ContinuityOfCareRecord/Body") 51 52 . I DEBUG F GPLI=1:1:@OXML@(0) W @OXML@(GPLI),! 52 . ; D QOPEN^GPLXPATH("CCRBLD",CCRGLO,"//ContinuityOfCareRecord/Body")53 . ; D QUEUE^GPLXPATH("CCRBLD",OXML,1,@OXML@(0))54 . ; D QCLOSE^GPLXPATH("CCRBLD",CCRGLO,"//ContinuityOfCareRecord/Body")55 . ; I DEBUG W "GOING TO BUILD CCR",!56 . ; N CCRTMP57 . ; D BUILD^GPLXPATH("CCRBLD","CCRTMP")58 . ; I DEBUG F GPLI=1:1:CCRTMP(0) W CCRTMP(GPLI),!59 . ; D CP^GPLXPATH("CCRTMP",CCRGLO)60 53 Q 61 54 ; … … 68 61 ; 69 62 TEST ; RUN ALL THE TEST CASES 70 N ZTMP 71 D ZLOAD^GPLUNIT("ZTMP","GPLCCR") 72 D ZTEST^GPLUNIT(.ZTMP,"ALL") 73 W ! 74 ; W "THE TESTS!",! 75 ; ZWR ZTMP 63 ;D TESTALL^GPLUNIT("GPLCCR") 64 D ZTEST^GPLCCR("PROBLEMS") 65 W "TESTING TESTING 123",! 66 D ZTEST^GPLCCR("CCR") 76 67 Q 77 68 ; … … 89 80 ; 90 81 ;;><TEST> 91 ;;>< INIT>82 ;;><PROBLEMS> 92 83 ;;>>>K GPL S GPL="" 84 ;;>>>D CCRRPC^GPLCCR(.GPL,"2","PROBLEMS") 85 ;;>>?@GPL@(@GPL@(0))="</Problems>" 86 ;;><CCR> 87 ;;>>>K GPL S GPL="" 88 ;;>>>D CCRRPC^GPLCCR(.GPL,"2","CCR") 89 ;;>>?@GPL@(@GPL@(0))="</ContinutiyOfCareRecord>" 93 90 ;;></TEST> -
ccr/trunk/p/GPLUNIT.m
r27 r28 99 99 Q 100 100 ; 101 GTSTS( ZARY,RTN) ; return an array of test names102 N I,J S I="" S I=$O( ZARY("TESTS",I))101 GTSTS(GTZARY,RTN) ; return an array of test names 102 N I,J S I="" S I=$O(GTZARY("TESTS",I)) 103 103 F J=0:0 Q:I="" D 104 104 . D PUSH^GPLXPATH(RTN,I) 105 . S I=$O( ZARY("TESTS",I))105 . S I=$O(GTZARY("TESTS",I)) 106 106 Q 107 107 ; 108 108 TESTALL(RNM) ; RUN ALL THE TESTS 109 N I,J, ZTMP,TSTS,TOTP,TOTF109 N I,J,TZTMP,TSTS,TOTP,TOTF 110 110 S TOTP=0 S TOTF=0 111 D ZLOAD^GPLUNIT(" ZTMP",RNM)112 D GTSTS(. ZTMP,"TSTS")111 D ZLOAD^GPLUNIT("TZTMP",RNM) 112 D GTSTS(.TZTMP,"TSTS") 113 113 F I=1:1:TSTS(0) D ; 114 114 . S TPASSED=0 S TFAILED=0 115 . D ZTEST (.ZTMP,TSTS(I))115 . D ZTEST^GPLUNIT(.TZTMP,TSTS(I)) 116 116 . S TOTP=TOTP+TPASSED 117 117 . S TOTF=TOTF+TFAILED
Note:
See TracChangeset
for help on using the changeset viewer.