Changeset 104 for ccr/trunk/p
- Timestamp:
- Aug 26, 2008, 8:27:36 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLCCR.m
r101 r104 25 25 I Y<1 Q ; EXIT 26 26 S DFN=$P(Y,U,1) ; SET THE PATIENT 27 D XPAT(DFN,"","") ; EXPORT TO A FILE 28 Q 29 ; 30 XPAT(DFN,DIR,FN) ; EXPORT ONE PATIENT TO A FILE 31 ; DIR IS THE DIRECTORY, DEFAULTS IF NULL TO ^TMP("GPLCCR","ODIR") 32 ; FN IS FILE NAME, DEFAULTS IF NULL 27 33 N CCRGLO 28 34 D CCRRPC(.CCRGLO,DFN,"CCR","","","") 29 35 S OARY=$NA(^TMP("GPLCCR",$J,DFN,"CCR",1)) 30 S ONAM="PAT_"_DFN_"_CCR_V1.xml" 36 S ONAM=FN 37 I FN="" S ONAM="PAT_"_DFN_"_CCR_V1.xml" 31 38 S ODIRGLB=$NA(^TMP("GPLCCR","ODIR")) 32 39 I '$D(@ODIRGLB) D ; IF NOT ODIR HAS BEEN SET … … 34 41 . ;S @ODIRGLB="/home/cedwards/" 35 42 . S @ODIRGLB="/opt/wv/p/" 36 S ODIR=@ODIRGLB 43 S ODIR=DIR 44 I DIR="" S ODIR=@ODIRGLB 37 45 D OUTPUT^GPLXPATH(OARY,ONAM,ODIR) 38 46 Q … … 81 89 . S IXML="INXML" 82 90 . S OXML=$P(XI,";",4) ; ARRAY FOR SECTION VALUES 91 . ; K @OXML ; KILL EXPECTED OUTPUT ARRAY 83 92 . ; W OXML,! 84 93 . S CALL="D "_TAG_"^"_RTN_"(IXML,DFN,OXML)" ; SETUP THE CALL -
ccr/trunk/p/GPLPROBS.m
r97 r104 29 29 ; INSERT^GPLXPATH IS USED TO APPEND THE PROBLEMS TO THE OUTPUT 30 30 ; 31 N RPCRSLT,J,K,PTMP,X,VMAP,TBUF 31 N RPCRSLT,J,K,PTMP,X,VMAP,TBU 32 S TVMAP=$NA(^TMP("GPLCCR",$J,"PROBVALS")) 33 S TARYTMP=$NA(^TMP("GPLCCR",$J,"PROBARYTMP")) 34 K @TVMAP,@TARYTMP ; KILL OLD ARRAY VALUES 32 35 D LIST^ORQQPL3(.RPCRSLT,DFN,"") ; CALL THE PROBLEM LIST RPC 33 36 I '$D(RPCRSLT(1)) D Q ; RPC RETURNS NULL … … 36 39 . ; Q 37 40 I DEBUG ZWR RPCRSLT 38 S TVMAP=$NA(^TMP("GPLCCR",$J,"PROBVALS"))39 S TARYTMP=$NA(^TMP("GPLCCR",$J,"PROBARYTMP"))40 K @TVMAP,@TARYTMP ; KILL OLD ARRAY VALUES41 41 F J=1:1:RPCRSLT(0) D ; FOR EACH PROBLEM IN THE LIST 42 42 . S VMAP=$NA(@TVMAP@(J)) -
ccr/trunk/p/GPLRIMA.m
r102 r104 188 188 . W "ZDX:",ZDX," ZCNT:",ZCOUNT,! 189 189 Q ZCOUNT 190 ; 191 XCPAT(CPATCAT) ; EXPORT TO FILE ALL PATIENTS IN CATEGORY CPATCAT 192 ; 193 I '$D(RIMBASE) D ASETUP ; FOR COMMAND LINE CALLS 194 N ZI,ZJ,ZC,ZPATBASE 195 S ZPATBASE=$NA(@RIMBASE@("RIMTBL","PATS",CPATCAT)) 196 S ZI="" 197 F ZJ=0:0 D Q:$O(@ZPATBASE@(ZI))="" ; TIL END 198 . S ZI=$O(@ZPATBASE@(ZI)) 199 . D XPAT^GPLCCR(ZI,"","") ; EXPORT THE PATIENT TO A FILE 200 Q 201 ; 202 CPAT(CPATCAT) ; SHOW PATIENT DFNS FOR A CATEGORY CPATCAT 203 ; 204 I '$D(RIMBASE) D ASETUP ; FOR COMMAND LINE CALLS 205 N ZI,ZJ,ZC,ZPATBASE 206 S ZC=0 ; COUNT FOR SPACING THE PRINTOUT 207 S ZPATBASE=$NA(@RIMBASE@("RIMTBL","PATS",CPATCAT)) 208 S ZI="" 209 F ZJ=0:0 D Q:$O(@ZPATBASE@(ZI))="" ; TIL END 210 . S ZI=$O(@ZPATBASE@(ZI)) 211 . S ZC=ZC+1 ; INCREMENT OUTPUT PER LINE COUNT 212 . W ZI," " 213 . I ZC=10 D ; NEW LINE 214 . . S ZC=0 215 . . W ! 216 Q 190 217 ; 191 218 APUSH(AMAP,AVAL) ; ADD AVAL TO ATTRIBUTE MAP AMAP (AMAP PASSED BY NAME)
Note:
See TracChangeset
for help on using the changeset viewer.