Changeset 754 for ccr/trunk


Ignore:
Timestamp:
May 7, 2010, 11:22:26 PM (15 years ago)
Author:
George Lilly
Message:

changes for CCD conversion

Location:
ccr/trunk/p
Files:
3 edited

Legend:

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

    r601 r754  
    181181ORG(INXML,AIEN,AOID,OUTXML) ; PROCESS AN ORGANIZATION TYPE ACTOR
    182182     ;
    183      ; N AMAP
    184      S AMAP=$NA(^TMP($J,"AMAP"))
    185      K @AMAP
    186      S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID
    187      S @AMAP@("ORGANIZATIONNAME")=$P($$SITE^VASITE,U,2)
     183     N AMAP,ZIEN,ZSITE
     184     S AMAP=$NA(^TMP($J,"AMAP"))
     185     K @AMAP
     186     S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID
     187     S ZSITE=$$SITE^VASITE ; SITE FORMAT IEN^NAME^DATE
     188     S ZIEN=$P(ZSITE,"^",1)
     189     S @AMAP@("ORGANIZATIONNAME")=$P(ZSITE,U,2)
    188190     S @AMAP@("ACTORSOURCEID")="ACTORSYSTEM_1"
    189      D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
     191     S @AMAP@("ACTORADDRESSTYPE")="Office"
     192     S @AMAP@("ACTORADDRESSLINE1")=$$GET1^DIQ(4,ZIEN_",",1.01)
     193     S @AMAP@("ACTORADDRESSLINE2")=$$GET1^DIQ(4,ZIEN_",",1.02)
     194     S @AMAP@("ACTORADDRESSCITY")=$$GET1^DIQ(4,ZIEN_",",1.03)
     195     S @AMAP@("ACTORADDRESSSTATE")=$$GET1^DIQ(4,ZIEN_",",.02)
     196     S @AMAP@("ACTORPOSTALCODE")=$$GET1^DIQ(4,ZIEN_",",1.04)
     197     S @AMAP@("ACTORTELEPHONE")=""
     198     S @AMAP@("ACTORTELEPHONETYPE")=""
     199     S ZX=$$GET1^DIQ(4.03,"1,"_ZIEN_",",.03)
     200     I ZX'="" D  ; THERE IS A PHONE NUMBER AVAILABLE
     201     . S @AMAP@("ACTORTELEPHONE")=ZX
     202     . S @AMAP@("ACTORTELEPHONETYPE")="Office"
     203     D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
     204     K @AMAP
    190205     Q
    191206     ;
     
    221236     S @AMAP@("ACTORADDRESSSOURCEID")="ACTORSYSTEM_1"
    222237     S @AMAP@("ACTORSOURCEID")="ACTORSYSTEM_1" ; THE SYSTEM IS THE SOURCE
    223      D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
    224      Q
    225      ;
     238     S @AMAP@("ACTORORGLINK")="ACTORORGANIZATION_1"
     239     D MAP^C0CXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
     240     Q
     241     ;
  • ccr/trunk/p/C0CCCR.m

    r713 r754  
    163163 D  ; ALWAYS MAP THESE VARIABLES
    164164 . S @VMAP@("ACTORPATIENT")="ACTORPATIENT_"_DFN
    165  . S @VMAP@("ACTORFROM")="ACTORORGANIZATION_"_DUZ ; FROM DUZ - ???
     165 . S @VMAP@("ACTORFROM")="ACTORPROVIDER_"_DUZ ; FROM DUZ - FROM PROVIDER
     166 . ;S @VMAP@("ACTORFROM")="ACTORORGANIZATION_"_DUZ ; FROM DUZ - ???
    166167 . S @VMAP@("ACTORFROM2")="ACTORSYSTEM_1" ; SECOND FROM IS THE SYSTEM
    167168 . S @VMAP@("ACTORTO")="ACTORPATIENT_"_DFN ; FOR TEST PURPOSES
  • ccr/trunk/p/C0CCCR0.m

    r695 r754  
    812812 ;;</Actor>
    813813 ;;</Source>
     814 ;;<InternalCCRLink>
     815 ;;<LinkID>@@ACTORORGLINK@@</LinkID>
     816 ;;<LinkRelationship>representedOrganization</LinkRelationship>
     817 ;;</InternalCCRLink>
    814818 ;;</Actor>
    815819 ;;</ACTOR-PROVIDER>
     
    820824 ;;<Name>@@ORGANIZATIONNAME@@</Name>
    821825 ;;</Organization>
     826 ;;<Address>
     827 ;;<Type>
     828 ;;<Text>@@ACTORADDRESSTYPE@@</Text>
     829 ;;</Type>
     830 ;;<Line1>@@ACTORADDRESSLINE1@@</Line1>
     831 ;;<City>@@ACTORADDRESSCITY@@</City>
     832 ;;<State>@@ACTORADDRESSSTATE@@</State>
     833 ;;<PostalCode>@@ACTORPOSTALCODE@@</PostalCode>
     834 ;;</Address>
     835 ;;<Telephone>
     836 ;;<Value>@@ACTORTELEPHONE@@</Value>
     837 ;;<Type>
     838 ;;<Text>@@ACTORTELEPHONETYPE@@</Text>
     839 ;;</Type>
     840 ;;</Telephone>
    822841 ;;<Source>
    823842 ;;<Actor>
Note: See TracChangeset for help on using the changeset viewer.