Changeset 561
- Timestamp:
- Sep 15, 2009, 1:11:39 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CACTOR.m
r508 r561 85 85 PATIENT(INXML,AIEN,AOID,OUTXML) ; PROCESS A PATIENT ACTOR 86 86 I DEBUG W "PROCESSING ACTOR PATIENT ",AIEN,! 87 N AMAP,ZX 87 ;GPL SEPARATED EXTRACT FROM MAP FOR PROCESSING PATIENTS - TO MAKE 88 ; CODE REUSABLE FROM ERX 89 N AMAP 88 90 S AMAP=$NA(^TMP($J,"AMAP")) 89 91 K @AMAP 92 D PEXTRACT(AMAP,AIEN,AOID) ;EXTRACT THE PATIENT ACTOR 93 D MAP(INXML,AMAP,OUTXML) ;MAP TO XML 94 K @AMAP ; CLEAN UP BEHIND US 95 Q 96 ; 97 PEXTRACT(AMAP,AIEN,AOID) ; EXTRACT TO RETURN ARRAY RARY PASSED BY NAME 98 N ZX 90 99 S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID 91 100 S @AMAP@("ACTORGIVENNAME")=$$GIVEN^C0CDPT(AIEN) … … 139 148 S @AMAP@("ACTORSUFFIXNAME")="" ; DOES VISTA STORE THE SUFFIX 140 149 S @AMAP@("ACTORSOURCEID")="ACTORSYSTEM_1" ; THE SYSTEM IS THE SOURCE 150 Q 151 ; 152 MAP(INXML,AMAP,OUTXML) ;MAP ANY ACTOR TO XML 141 153 D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE 142 154 Q -
ccr/trunk/p/C0CXPATH.m
r557 r561 226 226 I $D(VDX) S DVDX=1 ; IF NAME PASSED, DO VDX 227 227 S C0CSTK(0)=0 ; INITIALIZE STACK 228 K LKASD ; KILL LOOKASIDE ARRAY 228 229 D MKLASD(.LKASD,IZXML) ;MAKE LOOK ASIDE BUFFER FOR MULTIPLES 229 230 F I=1:1:LCNT D ; PROCESS THE ENTIRE ARRAY … … 309 310 F S ZI=$O(OUTBUF(ZI)) Q:ZI="" D ; FOR EACH KIND OF MULTIPLE 310 311 . S ZN=$O(OUTBUF(ZI,"")) ; LINE NUMBER OF SECOND MULTIPLE 311 . F S ZN=$O(@IZXML@(ZN),-1) Q:ZN="" I $ P(@IZXML@(ZN),"<"_ZI,2)=">" Q ;312 . F S ZN=$O(@IZXML@(ZN),-1) Q:ZN="" I $E($P(@IZXML@(ZN),"<"_ZI,2),1,1)=">" Q ; 312 313 . S OUTBUF(ZI,ZN)="" 313 314 S ZA=1,ZI="",ZN=""
Note:
See TracChangeset
for help on using the changeset viewer.