- Timestamp:
- Jul 6, 2008, 4:18:34 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRDPT.m
r40 r48 199 199 Q $$NAMEFMT^XLFNAME(.NAME,"G","MXc") 200 200 ; "G" is Given Name First; "MXc" is Mixed Case, With Suffx Preceded by Comma 201 OB() ; Date of Birth; PUBLIC; Extrinsic201 DOB() ; Date of Birth; PUBLIC; Extrinsic 202 202 ; PREREQ: PT Defined 203 203 Q:$G(PT(0))="" "" -
ccr/trunk/p/GPLACTORS.m
r45 r48 5 5 ; 6 6 EXTRACT(IPXML,ALST,AXML) ; EXTRACT ACTOR FROM ALST INTO PROVIDED XML TEMPLATE 7 ; 7 ; IPXML is the Input Actor Template into which we are going to substitute values 8 ; This is straight XML. Values to be substituted are in @@VAL@@ format. 9 10 ; ALST is the actor list global generated by ACTLST^GPLCCR and is in the following format 11 ; ^TMP(7542,1,"ACTORS",0)=Count 12 ; ^TMP(7542,1,"ACTORS",n)="ActorID^ActorType^ActorIEN" 13 ; ActorType is an enum containing either "PROVIDER" "PATIENT" "SYSTEM" 14 15 ; AXML is the output arrary, to contain XML. 16 8 17 N I,J,AMAP,AOID,ATYP,AIEN 9 18 D CP^GPLXPATH(IPXML,AXML) ; MAKE A COPY OF ACTORS XML … … 11 20 W "PROCESSING ACTORS ",! 12 21 F I=1:1:@ALST@(0) D ; PROCESS ALL ACTORS IN THE LIST 13 . I @ALST@(I)["@@" Q ; NOT A VALID ACTOR22 . I @ALST@(I)["@@" Q ; NOT A VALID ACTOR 14 23 . S AOID=$P(@ALST@(I),"^",1) ; ACTOR OBJECT ID 15 24 . S ATYP=$P(@ALST@(I),"^",2) ; ACTOR TYPE 16 25 . S AIEN=$P(@ALST@(I),"^",3) ; ACTOR RECORD NUMBER 17 . I ATYP="" Q ; NOT A VALID ACTOR26 . I ATYP="" Q ; NOT A VALID ACTOR 18 27 . ; 19 28 . W AOID_" "_ATYP_" "_AIEN,! … … 48 57 ; N AMAP 49 58 S AMAP=$NA(^TMP($J,"AMAP")) 59 D INIT^CCRDPT(AIEN) 50 60 S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID 51 S @AMAP@("ACTORGIVENNAME")="" 52 S @AMAP@("ACTORMIDDLENAME")="" 53 S @AMAP@("ACTORFAMILYNAME")="" 54 S @AMAP@("ACTORDATEOFBIRTH")="" 55 S @AMAP@("ACTORGENDER")="" 56 S @AMAP@("ACTORSSN")="" 57 S @AMAP@("ACTORSSNSOURCEID")="" 58 S @AMAP@("ACTORADDRESSTYPE")="" 59 S @AMAP@("ACTORADDRESSLINE1")="" 60 S @AMAP@("ACTORADDRESSLINE2")="" 61 S @AMAP@("ACTORADDRESSCITY")="" 62 S @AMAP@("ACTORADDRESSSTATE")="" 63 S @AMAP@("ACTORADDRESSZIPCODE")="" 64 S @AMAP@("ACTORTELEPHONE")="" 65 S @AMAP@("ACTORTELEPHONETYPE")="" 66 S @AMAP@("ACTOREMAIL")="" 67 S @AMAP@("ACTORADDRESSSOURCEID")="" 61 S @AMAP@("ACTORGIVENNAME")=$$GIVEN^CCRDPT 62 S @AMAP@("ACTORMIDDLENAME")=$$MIDDLE^CCRDPT 63 S @AMAP@("ACTORFAMILYNAME")=$$FAMILY^CCRDPT 64 S @AMAP@("ACTORDATEOFBIRTH")=$$DOB^CCRDPT 65 S @AMAP@("ACTORGENDER")=$$GENDER^CCRDPT 66 S @AMAP@("ACTORSSN")=$$SSN^CCRDPT 67 S @AMAP@("ACTORSSNSOURCEID")=AOID 68 S @AMAP@("ACTORADDRESSTYPE")=$$ADDRTYPE^CCRDPT 69 S @AMAP@("ACTORADDRESSLINE1")=$$ADDR1^CCRDPT 70 S @AMAP@("ACTORADDRESSLINE2")=$$ADDR2^CCRDPT 71 S @AMAP@("ACTORADDRESSCITY")=$$CITY^CCRDPT 72 S @AMAP@("ACTORADDRESSSTATE")=$$STATE^CCRDPT 73 S @AMAP@("ACTORADDRESSZIPCODE")=$$ZIP^CCRDPT 74 S @AMAP@("ACTORRESTEL")=$$RESTEL^CCRDPT 75 S @AMAP@("ACTORWORKTEL")=$$WORKTEL^CCRDPT 76 S @AMAP@("ACTORCELLTEL")=$$CELLTEL^CCRDPT 77 S @AMAP@("ACTOREMAIL")=$$EMAIL^CCRDPT 78 S @AMAP@("ACTORADDRESSSOURCEID")=AOID 79 D DESTROY^CCRDPT 68 80 D MAP^GPLXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE 69 81 Q -
ccr/trunk/p/GPLCCR0.m
r42 r48 437 437 ;;</DateOfBirth> 438 438 ;;<Gender> 439 ;;<Code> 439 440 ;;<Text>@@ACTORGENDER@@</Text> 441 ;;<Value>@@ACTORGENDER@@</Value> 442 ;;<CodingSystem>2.16.840.1.113883.5.1</CodingSystem> 443 ;;</Code> 440 444 ;;</Gender> 441 445 ;;</Person> … … 462 466 ;;</Address> 463 467 ;;<Telephone> 464 ;;<Value>@@ACTORTELEPHONE@@</Value> 465 ;;<Type> 466 ;;<Text>@@ACTORTELEPHONETYPE@@</Text> 468 ;;<Value>@@ACTORRESTEL@@</Value> 469 ;;<Type> 470 ;;<Text>Residential Telephone</Text> 471 ;;</Type> 472 ;;</Telephone> 473 ;;<Telephone> 474 ;;<Value>@@ACTORWORKTEL@@</Value> 475 ;;<Type> 476 ;;<Text>Work Telephone</Text> 477 ;;</Type> 478 ;;</Telephone> 479 ;;<Telephone> 480 ;;<Value>@@ACTORCELLTEL@@</Value> 481 ;;<Type> 482 ;;<Text>Cell phone</Text> 467 483 ;;</Type> 468 484 ;;</Telephone>
Note:
See TracChangeset
for help on using the changeset viewer.