Changeset 371 for ccr


Ignore:
Timestamp:
Feb 20, 2009, 10:55:40 AM (16 years ago)
Author:
George Lilly
Message:

use MRN instead of SSN for OpenVista

Location:
ccr/trunk/p
Files:
2 edited

Legend:

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

    r285 r371  
    9696 S @AMAP@("ACTORSSNTEXT")=""
    9797 S @AMAP@("ACTORSSNSOURCEID")=""
    98  S ZX=$$SSN^CCRDPT(AIEN)
    99  I ZX'="" D  ; IF THERE IS A SSN IN THE RECORD
    100  . S @AMAP@("ACTORSSN")=ZX
    101  . S @AMAP@("ACTORSSNTEXT")="SSN"
     98 I $G(^MSCDPTID)]"" S MRN=$$^MSCDPTID(DFN) ;TEST FOR MRN ON OPENVISTA ;GPL
     99 I $D(MRN) D  ; IF MRN IS PRESENT
     100 . S @AMAP@("ACTORSSN")=MRN
     101 . S @AMAP@("ACTORSSNTEXT")="MRN"
    102102 . S @AMAP@("ACTORSSNSOURCEID")=AOID
     103 E  D  ; NO MRN, USE SSN
     104 . S ZX=$$SSN^CCRDPT(AIEN)
     105 . I ZX'="" D  ; IF THERE IS A SSN IN THE RECORD
     106 . . S @AMAP@("ACTORSSN")=ZX
     107 . . S @AMAP@("ACTORSSNTEXT")="SSN"
     108 . . S @AMAP@("ACTORSSNSOURCEID")=AOID
    103109 S @AMAP@("ACTORADDRESSTYPE")=$$ADDRTYPE^CCRDPT(AIEN)
    104110 S @AMAP@("ACTORADDRESSLINE1")=$$ADDR1^CCRDPT(AIEN)
  • ccr/trunk/p/GPLCCR.m

    r360 r371  
    4040 S OARY=$NA(^TMP("GPLCCR",$J,DFN,"CCR",1))
    4141 S ONAM=UFN
    42  I UFN="" S ONAM="PAT_"_DFN_"_CCR_V1_0_15.xml"
     42 I UFN="" S ONAM="PAT_"_DFN_"_CCR_V1_0_16.xml"
    4343 S ODIRGLB=$NA(^TMP("GPLCCR","ODIR"))
    4444 I '$D(@ODIRGLB) D  ; IF NOT ODIR HAS BEEN SET
Note: See TracChangeset for help on using the changeset viewer.