Changeset 98 for ccr/trunk/p
- Timestamp:
- Aug 22, 2008, 11:52:42 AM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLACTORS.m
r78 r98 1 GPLACTORS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR ACTORS ; 7/3/081 GPLACTORS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR ACTORS ; 7/3/08 2 2 ;;0.3;CCDCCR;nopatch;noreleasedate 3 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU … … 32 32 ; ^TMP(7542,1,"ACTORS",n)="ActorID^ActorType^ActorIEN" 33 33 ; ActorType is an enum containing either "PROVIDER" "PATIENT" "SYSTEM" 34 35 34 ; AXML is the output arrary, to contain XML. 36 35 ; 37 36 N I,J,AMAP,AOID,ATYP,AIEN 38 37 D CP^GPLXPATH(IPXML,AXML) ; MAKE A COPY OF ACTORS XML … … 69 68 . D INSINNER^GPLXPATH(AXML,"ATMP2") ; INSERT INTO ROOT 70 69 ; 70 N ACTTMP 71 71 D MISSING^GPLXPATH(AXML,"ACTTMP") ; SEARCH XML FOR MISSING VARS 72 72 I ACTTMP(0)>0 D ; IF THERE ARE MISSING VARS - … … 79 79 ; 80 80 W "PROCESSING ACTOR PATIENT ",AIEN,! 81 ; N AMAP81 N AMAP,ZX 82 82 S AMAP=$NA(^TMP($J,"AMAP")) 83 83 K @AMAP -
ccr/trunk/p/GPLCCR.m
r93 r98 94 94 D INSINNER^GPLXPATH(CCRGLO,"ACTT2","//ContinuityOfCareRecord/Actors") 95 95 N TRIMI,J,DONE S DONE=0 96 F TRIMI=0:0 D Q:DONE ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE96 F TRIMI=0:0 D Q:DONE ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE 97 97 . S J=$$TRIM^GPLXPATH(CCRGLO) ; DELETE EMPTY ELEMENTS 98 98 . W "TRIMMED",J,! -
ccr/trunk/p/GPLRIMA.m
r97 r98 49 49 S RIMDFN=BEGDFN ; BEGIN WITH THE BEGDFN PATIENT 50 50 I RIMDFN="" S RIMDFN=RESUME 51 I +RIMDFN=0 D Q ; AT THE END OF THE PATIENTS51 I +RIMDFN=0 D Q ; AT THE END OF THE PATIENTS 52 52 . W "END OF PATIENT LIST, CALL RESET^GPLRIMA",! 53 F RIMI=1:1:DFNCNT D Q:+RIMDFN=0 ; FOR DFNCNT NUMBER OF PATIENTS OR END53 F RIMI=1:1:DFNCNT D Q:+RIMDFN=0 ; FOR DFNCNT NUMBER OF PATIENTS OR END 54 54 . D CCRRPC^GPLCCR(.CCRGLO,RIMDFN,"CCR","","","") ;PROCESS THE CCR 55 55 . W RIMDFN,! … … 149 149 I '$D(RIMBASE) D ASETUP ; FOR COMMANDLINE PROCESSING 150 150 N USETBL 151 I '$D(@RIMBASE@("TABLES",PTBL)) D Q ; NO TABLE151 I '$D(@RIMBASE@("TABLES",PTBL)) D Q ; NO TABLE 152 152 . W "ERROR NO SUCH TABLE",! 153 153 S USETBL=@RIMBASE@("TABLES",PTBL) -
ccr/trunk/p/GPLXPATH.m
r92 r98 321 321 S XFIRST=$P(XNODE,"^",1) 322 322 S XLAST=$P(XNODE,"^",2) 323 I RENEW="" D ; WE ARE DELETING A SECTION, MUST SAVE THE TAG323 I RENEW="" D ; WE ARE DELETING A SECTION, MUST SAVE THE TAG 324 324 . D QUEUE("REBLD",REXML,1,XFIRST) ; THE BEFORE 325 325 . D QUEUE("REBLD",REXML,XLAST,@REXML@(0)) ; THE REST … … 373 373 . I @OXML@(I)?.E1"@@".E D ; IS THERE A VARIABLE HERE? 374 374 . . S TSTR=$P(@IXML@(I),"@@",1) ; INIT TO PART BEFORE VARS 375 . . F J=2:2:10 D Q:$P(@IXML@(I),"@@",J+2)="" ; QUIT IF NO MORE VARS375 . . F J=2:2:10 D Q:$P(@IXML@(I),"@@",J+2)="" ; QUIT IF NO MORE VARS 376 376 . . . I DEBUG W "IN MAPPING LOOP: ",TSTR,! 377 377 . . . S TNAM=$P(@OXML@(I),"@@",J) ; EXTRACT THE VARIABLE NAME
Note:
See TracChangeset
for help on using the changeset viewer.