Changeset 718 for ccr


Ignore:
Timestamp:
Feb 28, 2010, 7:42:07 PM (15 years ago)
Author:
George Lilly
Message:

some parse debugging updates

Location:
ccr/trunk/p
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CMXP.m

    r713 r718  
    2323 ; DON'T USE THIS ONE ... USE INITFARY^C0CSOAP("FARY") INSTEAD
    2424 D INITFARY^C0CSOAP(ARY) ;
     25 Q
    2526 S @ARY@("XML FILE NUMBER")=178.101
    2627 S @ARY@("XML SOURCE FIELD")=2.1
     
    5253 Q
    5354 ;
    54 ADDXML(INXML,TEMPID,FARY) ;ADD XML TO A TEMPLATE ID TEMPID
     55FIXICD9 ; 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
     64ADDXML(INXML,TEMPID,INFARY) ;ADD XML TO A TEMPLATE ID TEMPID
    5565 ; 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
    6071 D WP^DIE(C0CXPF,TEMPID_",",C0CXFLD,,INXML)
    6172 Q
    6273 ;
    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
     74ADDTEMP(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
    6981 D WP^DIE(C0CXPF,TEMPID_",",C0CXTFLD,,INXML)
    7082 Q
    7183 ;
    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
     84GETXML(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
    7891 I $$GET1^DIQ(C0CXPF,TEMPID_",",C0CXFLD,,OUTXML)'=OUTXML D  Q  ;
    7992 . W "ERROR RETRIEVING TEMPLATE",!
  • ccr/trunk/p/C0CRNF.m

    r674 r718  
    3737 . . ;I C0CFN="STR" W C0CFN," ",C0CFJ,!
    3838 . . I $D(@C0CFRTN@(C0CFN)) D  ; IS THIS A DUPLICATE?
    39  . . . I DEBUG D  ;
     39 . . . I $G(DEBUG) D  ;
    4040 . . . . W "DUPLICATE FOUND! ",C0CFJ," ",C0CFI," ",C0CFN,!,@C0CFRTN@(C0CFN),!
    4141 . . . S @C0CFRTN@(C0CFN_"_"_C0CFJ)=C0CFJ_"^"_C0CFI
  • ccr/trunk/p/C0CSOAP.m

    r713 r718  
    5252RESTID(INNAM,INFARY) ;EXTRINSIC TO RESOLVE TEMPLATE PASSED BY NAME
    5353 ; 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)
    5457 N ZN,ZREF,ZR
    5558 S ZN=@INFARY@("XML FILE NUMBER")
Note: See TracChangeset for help on using the changeset viewer.