Changeset 763 for ccr/trunk


Ignore:
Timestamp:
May 18, 2010, 2:49:39 PM (15 years ago)
Author:
George Lilly
Message:

includes testing version of de-identification code

Location:
ccr/trunk/p
Files:
1 added
2 edited

Legend:

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

    r647 r763  
    3636 . N GTMP,G2
    3737 . M G2=GARY2(ZI)
    38  . D DEMUXARY^C0CMXP("GTMP","G2",2)
     38 . D DEMUX2^C0CMXP("GTMP","G2",2)
    3939 . M GARY3(ZI)=GTMP
    4040 Q
     
    6666 K C0CCBK("TAG")
    6767 D SEPARATE^C0CMCCD("GARY2","GARY") ; SEPARATE FOR EASIER BROWSING
     68 D TEST3A
     69 Q
     70 ;
     71TEST3A ; INTERNAL ROUTINE
    6872 S ZI=""
    6973 F  S ZI=$O(GARY2(ZI)) Q:ZI=""  D  ;
    7074 . N GTMP,G2
    7175 . M G2=GARY2(ZI)
    72  . D DEMUXARY^C0CMXP("GTMP","G2",2)
     76 . D DEMUX2^C0CMXP("GTMP","G2",2)
    7377 . M GARY4(ZI)=GTMP
    7478 Q
  • ccr/trunk/p/C0CMXP.m

    r728 r763  
    229229 Q
    230230 ;
     231DEMUX2(OARY,IARY,DEPTH) ;CONVERT AN XPATH ARRAY PASSED AS IARY TO
     232 ; FORMAT @OARY@(x,variablename) where x is the first multiple
     233 ; IF DEPTH=2, THE LAST 2 PARTS OF THE XPATH WILL BE USED
     234 N ZI,ZJ,ZK,ZL,ZM S ZI=""
     235 F  S ZI=$O(@IARY@(ZI)) Q:ZI=""  D  ;
     236 . D DEMUX^C0CMXP("ZJ",ZI)
     237 . S ZK=$P(ZJ,"^",3)
     238 . S ZM=$RE($P($RE(ZK),"/",1))
     239 . I $G(DEPTH)=2 D  ;LAST TWO PARTS OF XPATH USED FOR THE VARIABLE NAME
     240 . . S ZM=$RE($P($RE(ZK),"/",2))_"."_ZM
     241 . S ZL=$P(ZJ,"^",1)
     242 . I ZL="" S ZL=1
     243 . I $D(@OARY@(ZL,ZM)) D  ;IT'S A DUP
     244 . . S @OARY@(ZL,ZM_"[2]")=@IARY@(ZI)
     245 . E  S @OARY@(ZL,ZM)=@IARY@(ZI)
     246 Q
     247 ;
    231248DEMUXXP1(OARY,IARY) ;IARY IS INCOMING XPATH ARRAY
    232249 ; BOTH IARY AND OARY ARE PASSED BY NAME
Note: See TracChangeset for help on using the changeset viewer.