Changeset 636 for FOIAVistA/tag/r/MASTER_PATIENT_INDEX_VISTA-MPIF/MPIFAPI.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/MASTER_PATIENT_INDEX_VISTA-MPIF/MPIFAPI.m
r628 r636 1 1 MPIFAPI ;CMC/BP-APIS FOR MPI ;DEC 21, 1998 2 ;;1.0; MASTER PATIENT INDEX VISTA ;**1,3,14,16,17,21,27,28,33,35,37,43,45,44,46,48**;30 Apr 99;Build 6 2 ;;1.0; MASTER PATIENT INDEX VISTA ;**1,3,14,16,17,21,27,28,33,35,37,43,45,44,46,48,40**;30 Apr 99;Build 13 3 ; Modified from FOIA VISTA, 4 ; Copyright (C) 2007 WorldVistA 5 ; 6 ; This program is free software; you can redistribute it and/or modify 7 ; it under the terms of the GNU General Public License as published by 8 ; the Free Software Foundation; either version 2 of the License, or 9 ; (at your option) any later version. 10 ; 11 ; This program is distributed in the hope that it will be useful, 12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ; GNU General Public License for more details. 15 ; 16 ; You should have received a copy of the GNU General Public License 17 ; along with this program; if not, write to the Free Software 18 ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 ; 20 ; 2/5/2005 DAOU/WCJ: VOE patch created 21 ; 4/22/2005 ALB/PTD: MPIF*1*37 22 ; 9/14/2005 VA/CJS: VOE patch reworked as MPIF*1*40 T1 23 ; 4/3/2006 WV/TOAD: VOE patch reapplied after YS*5.01*37 24 ; 3 25 ; Integration Agreements Utilized: 4 26 ; ^DPT( - #2070 and #4079 … … 93 115 ...I MPIFARR(2,DFN,.09,"E")["P",("S"[MPIFARR(2,DFN,.0906,"I")) S MPIFP=".0906;" 94 116 ..S DIE="^DPT(",DA=DFN,DIE("NO^")="BACK" 95 ..S DR=MPIFP_".2403;.092;.093;1",DR(2,2.01)=".01" D ^DIE K DA,DIE,DR Q 117 ..; start of VOE change part 1 of 2 118 ..; if agency is EHR or IHS, ask Health Record Number before other fields 119 ..; 120 ..; before change 121 ..;S DR=MPIFP_".2403;.092;.093;1",DR(2,2.01)=".01" D ^DIE K DA,DIE,DR Q 122 ..; 123 ..; after change 124 ..S DR=MPIFP_".2403;.092;.093;1" 125 ..I "EI"[$G(DUZ("AG")) S DR="D HRN^MPIFAG1;"_DR 126 ..S DR(2,2.01)=".01" 127 ..D ^DIE 128 ..K DA,DIE,DR 129 ..; 130 ..; end of VOE change 1 of 2 131 ..; 96 132 .I $G(DGNEW)="" D ;Existing patient, get current values 97 133 ..N MPIDOB,IMPRS,MPIMMN,MPICTY,MPIST … … 124 160 ...I MPIFARR(2,DFN,.09,"E")["P",(MPIFARR(2,DFN,.0906,"I")="") S DR=DR_".0906;" ;**48 correct when SSN is prompted 125 161 ...I MPIFARR(2,DFN,.09,"E")["P",(MPIFARR(2,DFN,.0906,"I")="S") S DR=DR_".09;" ;**48 correct when SSN is prompted 162 ..; 163 ..; start of VOE change part 2 of 2 164 ..; if agency is EHR or IHS, ask Health Record Number after SSN 165 ..; 166 ..I "EI"[$G(DUZ("AG")) S DR=DR_"D HRN^MPIFAG1;" 167 ..; 168 ..; end of VOE change 2 of 2 169 ..; 126 170 ..I $G(MPIFARR(2,DFN,994,"I"))="" S DR=DR_"994;" ;MULTIPLE BIRTH INDICATOR 127 171 ..S MPIMMN=$G(MPIFARR(2,DFN,.2403,"E")) ;MOTHER'S MAIDEN NAME
Note:
See TracChangeset
for help on using the changeset viewer.