Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: VAFCTR

VAFCTR.m

Go to the documentation of this file.
VAFCTR ;BIR/CMC,ERC,PTD-Monitoring fields for MPI/PD via DG field monitoring ; 1/31/17 11:04am
 ;;5.3;Registration;**575,648,653,712,876,902,926,937,944,967,1059,1071**;Aug 13, 1993;Build 4
 Q  ; quit if called from the top
 ;
MPIPD ; protocol entry point for monitoring fields via DG field monitoring
 ; Currently monitoring for fields:
 ; 1 ALIAS - .01 of the multiple
 ; 2 RACE INFORMATION - .01 of the multiple
 ; 6 ETHNICITY INFORMATION - .01 of the multiple
 ; 994 MULTIPLE BIRTH INDICATOR
 ; .525 POW STAUTS INDICATED?
 ; .0906 PSEUDO SSN REASON
 ; .121 BAD ADDRESS INDICATOR
 ; .133 EMAIL ADDRESS
 ; .134 PHONE NUMBER [CELLULAR]
 ; .024 SELF IDENTIFIED GENDER **876
 ; 391 TYPE ;**876
 ; 1901 VETERAN Y/N? **876
 ; .323 PERIOD OF SERVICE **876
 ; .352 DEATH ENTERED BY **902 MVI_4735 (jfw)
 ; .353 SOURCE OF NOTIFICATION **902 MVI_4735 (jfw)
 ; .354 DATE OF DEATH LAST UPDATED **902 MVI_4735 (jfw)
 ; .355 LAST EDITED BY **902 MVI_4735 (jfw)
 ; .357 SUPPORTING DOCUMENT TYPE **926 STORY 323008 (jfw)
 ; .2405 PREFERRED NAME **937 STORY 445457 [Sub-Story 455414] (jfw)
 ; .0931 PLACE OF BIRTH COUNTRY  **944 STORY 504382 [Sub-Story 513042] (jfw)
 ; .0932 PLACE OF BIRTH PROVINCE **944 STORY 504382 [Sub-Story 513042] (jfw)
 ;
 ;**967 STORY #783361 Sensitivity (jfw)
 ; DG SECURITY LOG File #38.1 monitored field:
 ; Note: .01 is DINUMED to the PATIENT File #2
 ;   2 SECURITY LEVEL
 ;
 ;**1059 STORY VAMPI-11114, VAMPI-11118, VAMPI-11120, VAMPI-11121 (jfw)
 ;   .025   SEXUAL ORIENTATION - .01 of the multiple
 ;**1071 STORY VAMPI-13755 (jfw) - Additional SO Fields in multiple
 ;          .02 STATUS
 ;          .03 DATE CREATED
 ;          .04 DATE LAST UPDATED          
 ;   .2406  PRONOUN            - .01 of the multiple
 ;   .0251  SEXUAL ORIENTATION DESCRIPTION
 ;   .1151  RESIDENTIAL ADDRESS [LINE 1]
 ;   .1152  RESIDENTIAL ADDRESS [LINE 2]
 ;   .1153  RESIDENTIAL ADDRESS [LINE 3]
 ;   .1154  RESIDENTIAL CITY
 ;   .1155  RESIDENTIAL STATE
 ;   .1156  RESIDENTIAL ZIP+4
 ;   .11571 RESIDENTIAL PROVINCE
 ;   .11572 RESIDENTIAL POSTAL CODE
 ;   .11573 RESIDENTIAL COUNTRY
 ;   .24061 PRONOUN DESCRIPTION
 ;   991.11 INDIVIDUAL TAX ID
 ;
 N MVIRSLT
 I $G(DGFILE)'=2&($G(DGFILE)'=2.01)&($G(DGFILE)'=2.02)&($G(DGFILE)'=2.06)&($G(DGFILE)'=38.1)&($G(DGFILE)'=2.025)&($G(DGFILE)'=2.2406) Q
 S DGFIELD=$G(DGFIELD)
 ;I DGFIELD'=.01&(DGFIELD'=994)&(DGFIELD'=.525)&(DGFIELD'=.0906)&(DGFIELD'=.121)&(DGFIELD'=.133)&(DGFIELD'=.134)&(DGFIELD'=391)&(DGFIELD'=1901)&(DGFIELD'=.323)&(DGFIELD'=.024) Q
 ;**902 MVI_4735 (jfw) Add 4 new fields to list (Break apart long If line above)
 S MVIRSLT=(DGFIELD'=.01)&(DGFIELD'=.02)&(DGFIELD'=.03)&(DGFIELD'=.04)&(DGFIELD'=994)&(DGFIELD'=.525)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.0906)&(DGFIELD'=.121)&(DGFIELD'=.133)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.134)&(DGFIELD'=391)&(DGFIELD'=1901)&(DGFIELD'=.323)&(DGFIELD'=.024)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.352)&(DGFIELD'=.353)&(DGFIELD'=.354)&(DGFIELD'=.355)&(DGFIELD'=.357)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.2405)&(DGFIELD'=.0931)&(DGFIELD'=.0932)&(DGFIELD'=2)&(DGFIELD'=.0251)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.1151)&(DGFIELD'=.1152)&(DGFIELD'=.1153)&(DGFIELD'=.1154)&(DGFIELD'=.1155)
 S MVIRSLT=MVIRSLT&(DGFIELD'=.1156)&(DGFIELD'=.11571)&(DGFIELD'=.11572)&(DGFIELD'=.11573)&(DGFIELD'=.24061)
 S MVIRSLT=MVIRSLT&(DGFIELD'=991.11)
 Q:(MVIRSLT)
 I $T(AVAFC^VAFCDD01)="" Q
 ;The fields below are not multiples
 ;I (DGFIELD=994)!(DGFIELD=.525)!(DGFIELD=.0906)!(DGFIELD=.121)!(DGFIELD=.133)!(DGFIELD=.134)!(DGFIELD=.024)!(DGFIELD=391)!(DGFIELD=1901)!(DGFIELD=.323) S VAFCF=DGFIELD_";" D AVAFC^VAFCDD01(DGDA)
 ;**902 MVI_4735 (jfw) Add 4 new fields to list (Break apart long If line above)
 S MVIRSLT=(DGFIELD=994)!(DGFIELD=.525)!(DGFIELD=.0906)!(DGFIELD=.121)!(DGFIELD=.133)
 S MVIRSLT=MVIRSLT!(DGFIELD=.134)!(DGFIELD=.024)!(DGFIELD=391)!(DGFIELD=1901)!(DGFIELD=.323)
 S MVIRSLT=MVIRSLT!(DGFIELD=.352)!(DGFIELD=.353)!(DGFIELD=.354)!(DGFIELD=.355)!(DGFIELD=.357)
 S MVIRSLT=MVIRSLT!(DGFIELD=.2405)!(DGFIELD=.0931)!(DGFIELD=.0932)!(DGFIELD=.0251)!(DGFIELD=.1151)
 S MVIRSLT=MVIRSLT!(DGFIELD=.1152)!(DGFIELD=.1153)!(DGFIELD=.1154)!(DGFIELD=.1155)!(DGFIELD=.1156)
 S MVIRSLT=MVIRSLT!(DGFIELD=.11571)!(DGFIELD=.11572)!(DGFIELD=.11573)!(DGFIELD=.24061)!(DGFIELD=991.11)
 I MVIRSLT S VAFCF=DGFIELD_";" D AVAFC^VAFCDD01(DGDA)
 ;The fields below ARE multiples
 I DGFILE=2.01 S VAFCF="1;" D AVAFC^VAFCDD01(DGDA(1)) ;ALIAS
 I DGFILE=2.02 S VAFCF="2.02,.01;" D AVAFC^VAFCDD01(DGDA(1)) ;RACE INFORMATION
 I DGFILE=2.06 S VAFCF="2.06,.01;" D AVAFC^VAFCDD01(DGDA(1)) ;ETHNICITY INFORMATION
 I DGFILE=2.025 S VAFCF="2.025,"_DGFIELD_";" D AVAFC^VAFCDD01(DGDA(1)) ;SEXUAL ORIENTATION
 I DGFILE=2.2406 S VAFCF="2.2406,.01;" D AVAFC^VAFCDD01(DGDA(1)) ;PRONOUN
 ;Process field for different File **967 (jfw)
 I DGFILE=38.1 S VAFCF="38.1,2;" D AVAFC^VAFCDD01(DGDA)  ;Sensitivity Info 
 Q