- Timestamp:
- Feb 28, 2010, 7:42:07 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CMXP.m
r713 r718 23 23 ; DON'T USE THIS ONE ... USE INITFARY^C0CSOAP("FARY") INSTEAD 24 24 D INITFARY^C0CSOAP(ARY) ; 25 Q 25 26 S @ARY@("XML FILE NUMBER")=178.101 26 27 S @ARY@("XML SOURCE FIELD")=2.1 … … 52 53 Q 53 54 ; 54 ADDXML(INXML,TEMPID,FARY) ;ADD XML TO A TEMPLATE ID TEMPID 55 FIXICD9 ; FIX THE ICD9RESULT XML 56 D GETXML("GPL","ICD9RESULT") ; GET SOME BAD XML OUT OF THE FILE 57 S ZI="" 58 S G="" 59 F S ZI=$O(GPL(ZI)) Q:ZI="" D ; FOR EACH LINE 60 . S G=G_GPL(ZI) ; MAKE ONE BIG STRING OF XML 61 D NORMAL^C0CSOAP("G2","G") ;NO NORMALIZE IT BACK INTO AN ARRAY 62 D ADDXML("G2","ICD9RESULT") ; AND PUT IT BACK 63 Q 64 ADDXML(INXML,TEMPID,INFARY) ;ADD XML TO A TEMPLATE ID TEMPID 55 65 ; INXML IS PASSED BY NAME 56 I '$D(FARY) D ; 57 . S FARY="FARY" ; FILE ARRAY 58 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 59 D SETXPF(FARY) ;SET FILE VARIABLES 66 I '$D(INFARY) D ; 67 . S INFARY="FARY" ; FILE ARRAY 68 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 69 I +TEMPID=0 S TEMPID=$$RESTID^C0CSOAP(TEMPID,INFARY) ;RESOLVE TEMPLATE NAME 70 D SETXPF(INFARY) ;SET FILE VARIABLES 60 71 D WP^DIE(C0CXPF,TEMPID_",",C0CXFLD,,INXML) 61 72 Q 62 73 ; 63 ADDTEMP(INXML,TEMPID,FARY) ;ADD XML TEMPLATE TO TEMPLATE RECORD TEMPID FIELD 3 64 ; 65 I '$D(FARY) D ; 66 . S FARY="FARY" ; FILE ARRAY 67 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 68 D SETXPF(FARY) ;SET FILE VARIABLES 74 ADDTEMP(INXML,TEMPID,INFARY) ;ADD XML TEMPLATE TO TEMPLATE RECORD TEMPID 75 ; 76 I '$D(INFARY) D ; 77 . S INFARY="FARY" ; FILE ARRAY 78 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 79 I +TEMPID=0 S TEMPID=$$RESTID^C0CSOAP(TEMPID,INFARY) ;RESOLVE TEMPLATE NAME 80 D SETXPF(INFARY) ;SET FILE VARIABLES 69 81 D WP^DIE(C0CXPF,TEMPID_",",C0CXTFLD,,INXML) 70 82 Q 71 83 ; 72 GETXML(OUTXML,TEMPID,FARY) ;GET THE XML FROM TEMPLATE TEMPID 73 ; 74 I '$D(FARY) D ; 75 . S FARY="FARY" ; FILE ARRAY 76 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 77 D SETXPF(FARY) ;SET FILE VARIABLES 84 GETXML(OUTXML,TEMPID,INFARY) ;GET THE XML FROM TEMPLATE TEMPID 85 ; 86 I '$D(INFARY) D ; 87 . S INFARY="FARY" ; FILE ARRAY 88 . D INITXPF("FARY") ;IF FILE ARRAY NOT PASSED, INITIALIZE 89 D SETXPF(INFARY) ;SET FILE VARIABLES 90 I +TEMPID=0 S TEMPID=$$RESTID^C0CSOAP(TEMPID,INFARY) ;RESOLVE TEMPLATE NAME 78 91 I $$GET1^DIQ(C0CXPF,TEMPID_",",C0CXFLD,,OUTXML)'=OUTXML D Q ; 79 92 . W "ERROR RETRIEVING TEMPLATE",! -
ccr/trunk/p/C0CRNF.m
r674 r718 37 37 . . ;I C0CFN="STR" W C0CFN," ",C0CFJ,! 38 38 . . I $D(@C0CFRTN@(C0CFN)) D ; IS THIS A DUPLICATE? 39 . . . I DEBUGD ;39 . . . I $G(DEBUG) D ; 40 40 . . . . W "DUPLICATE FOUND! ",C0CFJ," ",C0CFI," ",C0CFN,!,@C0CFRTN@(C0CFN),! 41 41 . . . S @C0CFRTN@(C0CFN_"_"_C0CFJ)=C0CFJ_"^"_C0CFI -
ccr/trunk/p/C0CSOAP.m
r713 r718 52 52 RESTID(INNAM,INFARY) ;EXTRINSIC TO RESOLVE TEMPLATE PASSED BY NAME 53 53 ; FILE IS IDENTIFIED IN FARY, PASSED BY NAME 54 I '$D(INFARY) D ; NO FILE ARRAY PASSED 55 . S INFARY="FARY" 56 . D INITFARY(INFARY) 54 57 N ZN,ZREF,ZR 55 58 S ZN=@INFARY@("XML FILE NUMBER")
Note:
See TracChangeset
for help on using the changeset viewer.