IVMCDD ;ALB/CJM - DATA DICTIONARY FUNCTIONS ; 01/30/2004
;;2.0;INCOME VERIFICATION MATCH;**17,89**;21-OCT-94
;
FUTMT(IVMPAT,MTIEN) ;
;Sets the "AC" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
S ^IVM(301.5,"AC",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
Q
;
NOFUTMT(IVMPAT,MTIEN) ;
;Kill logic for the "AC" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
K ^IVM(301.5,"AC",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
Q
;
FUTRX(IVMPAT,MTIEN) ;
;Sets the "AD" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
S ^IVM(301.5,"AD",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
Q
;
NOFUTRX(IVMPAT,MTIEN) ;
;Kill logic for the "AD" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
K ^IVM(301.5,"AD",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
Q
AESET(IVMPAT,MTIEN) ;
;Sets the "AE" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
;s ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^IVM(301.5,IVMPAT,0)))
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
S ^IVM(301.5,"AE",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
Q
;
AEKILL(IVMPAT,MTIEN) ;
;Kill logic for the "AE" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
;K ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:'(+$G(^IVM(301.5,IVMPAT,0)))
K ^IVM(301.5,"AE",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
Q
;
AFSET(IVMPAT,MTIEN) ;
;Sets the "AF" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
;s ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:'(+$G(^IVM(301.5,IVMPAT,0)))
Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
S ^IVM(301.5,"AF",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
Q
;
AFKILL(IVMPAT,MTIEN) ;
;Kill logic for the "AF" x-ref on the IVM Patient file
;Input -
; IVMPAT - ien of IVM Patient file record
; MTIEN - ien of record in Annual Means Test file
;
;K ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
Q:'$G(IVMPAT)
Q:'$G(MTIEN)
Q:'(+$G(^DGMT(408.31,MTIEN,0)))
Q:'(+$G(^IVM(301.5,IVMPAT,0)))
K ^IVM(301.5,"AF",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIVMCDD 3390 printed Dec 13, 2024@02:01:12 Page 2
IVMCDD ;ALB/CJM - DATA DICTIONARY FUNCTIONS ; 01/30/2004
+1 ;;2.0;INCOME VERIFICATION MATCH;**17,89**;21-OCT-94
+2 ;
FUTMT(IVMPAT,MTIEN) ;
+1 ;Sets the "AC" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 if '$GET(IVMPAT)
QUIT
+7 if '$GET(MTIEN)
QUIT
+8 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+9 if +$GET(^DGMT(408.31,MTIEN,0))'>DT
QUIT
+10 SET ^IVM(301.5,"AC",+$GET(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
+11 QUIT
+12 ;
NOFUTMT(IVMPAT,MTIEN) ;
+1 ;Kill logic for the "AC" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 if '$GET(IVMPAT)
QUIT
+7 if '$GET(MTIEN)
QUIT
+8 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+9 KILL ^IVM(301.5,"AC",+$GET(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
+10 QUIT
+11 ;
FUTRX(IVMPAT,MTIEN) ;
+1 ;Sets the "AD" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 if '$GET(IVMPAT)
QUIT
+7 if '$GET(MTIEN)
QUIT
+8 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+9 if +$GET(^DGMT(408.31,MTIEN,0))'>DT
QUIT
+10 SET ^IVM(301.5,"AD",+$GET(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
+11 QUIT
+12 ;
NOFUTRX(IVMPAT,MTIEN) ;
+1 ;Kill logic for the "AD" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 if '$GET(IVMPAT)
QUIT
+7 if '$GET(MTIEN)
QUIT
+8 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+9 KILL ^IVM(301.5,"AD",+$GET(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
+10 QUIT
AESET(IVMPAT,MTIEN) ;
+1 ;Sets the "AE" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 ;s ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
+7 if '$GET(IVMPAT)
QUIT
+8 if '$GET(MTIEN)
QUIT
+9 if '(+$GET(^IVM(301.5,IVMPAT,0)))
QUIT
+10 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+11 if +$GET(^DGMT(408.31,MTIEN,0))'>DT
QUIT
+12 SET ^IVM(301.5,"AE",+$GET(^IVM(301.5,IVMPAT,0)),+$GET(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
+13 QUIT
+14 ;
AEKILL(IVMPAT,MTIEN) ;
+1 ;Kill logic for the "AE" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 ;K ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
+7 if '$GET(IVMPAT)
QUIT
+8 if '$GET(MTIEN)
QUIT
+9 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+10 if '(+$GET(^IVM(301.5,IVMPAT,0)))
QUIT
+11 KILL ^IVM(301.5,"AE",+$GET(^IVM(301.5,IVMPAT,0)),+$GET(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
+12 QUIT
+13 ;
AFSET(IVMPAT,MTIEN) ;
+1 ;Sets the "AF" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 ;s ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
+7 if '$GET(IVMPAT)
QUIT
+8 if '$GET(MTIEN)
QUIT
+9 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+10 if '(+$GET(^IVM(301.5,IVMPAT,0)))
QUIT
+11 if +$GET(^DGMT(408.31,MTIEN,0))'>DT
QUIT
+12 SET ^IVM(301.5,"AF",+$GET(^IVM(301.5,IVMPAT,0)),+$GET(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
+13 QUIT
+14 ;
AFKILL(IVMPAT,MTIEN) ;
+1 ;Kill logic for the "AF" x-ref on the IVM Patient file
+2 ;Input -
+3 ; IVMPAT - ien of IVM Patient file record
+4 ; MTIEN - ien of record in Annual Means Test file
+5 ;
+6 ;K ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
+7 if '$GET(IVMPAT)
QUIT
+8 if '$GET(MTIEN)
QUIT
+9 if '(+$GET(^DGMT(408.31,MTIEN,0)))
QUIT
+10 if '(+$GET(^IVM(301.5,IVMPAT,0)))
QUIT
+11 KILL ^IVM(301.5,"AF",+$GET(^IVM(301.5,IVMPAT,0)),+$GET(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
+12 QUIT