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

IVMCDD.m

Go to the documentation of this file.
  1. IVMCDD ;ALB/CJM - DATA DICTIONARY FUNCTIONS ; 01/30/2004
  1. ;;2.0;INCOME VERIFICATION MATCH;**17,89**;21-OCT-94
  1. ;
  1. FUTMT(IVMPAT,MTIEN) ;
  1. ;Sets the "AC" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
  1. S ^IVM(301.5,"AC",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
  1. Q
  1. ;
  1. NOFUTMT(IVMPAT,MTIEN) ;
  1. ;Kill logic for the "AC" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. K ^IVM(301.5,"AC",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
  1. Q
  1. ;
  1. FUTRX(IVMPAT,MTIEN) ;
  1. ;Sets the "AD" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
  1. S ^IVM(301.5,"AD",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)=""
  1. Q
  1. ;
  1. NOFUTRX(IVMPAT,MTIEN) ;
  1. ;Kill logic for the "AD" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. K ^IVM(301.5,"AD",+$G(^DGMT(408.31,MTIEN,0)),IVMPAT,MTIEN)
  1. Q
  1. AESET(IVMPAT,MTIEN) ;
  1. ;Sets the "AE" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. ;s ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^IVM(301.5,IVMPAT,0)))
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
  1. S ^IVM(301.5,"AE",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
  1. Q
  1. ;
  1. AEKILL(IVMPAT,MTIEN) ;
  1. ;Kill logic for the "AE" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. ;K ^IVM(301.5,"AE",dfn,date of means test,means test ien,ivm patient ien)
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:'(+$G(^IVM(301.5,IVMPAT,0)))
  1. K ^IVM(301.5,"AE",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
  1. Q
  1. ;
  1. AFSET(IVMPAT,MTIEN) ;
  1. ;Sets the "AF" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. ;s ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:'(+$G(^IVM(301.5,IVMPAT,0)))
  1. Q:+$G(^DGMT(408.31,MTIEN,0))'>DT
  1. S ^IVM(301.5,"AF",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)=""
  1. Q
  1. ;
  1. AFKILL(IVMPAT,MTIEN) ;
  1. ;Kill logic for the "AF" x-ref on the IVM Patient file
  1. ;Input -
  1. ; IVMPAT - ien of IVM Patient file record
  1. ; MTIEN - ien of record in Annual Means Test file
  1. ;
  1. ;K ^IVM(301.5,"AF",dfn,date of copay test,copay test ien,ivm patient ien)
  1. Q:'$G(IVMPAT)
  1. Q:'$G(MTIEN)
  1. Q:'(+$G(^DGMT(408.31,MTIEN,0)))
  1. Q:'(+$G(^IVM(301.5,IVMPAT,0)))
  1. K ^IVM(301.5,"AF",+$G(^IVM(301.5,IVMPAT,0)),+$G(^DGMT(408.31,MTIEN,0)),MTIEN,IVMPAT)
  1. Q