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

AUPNDWXR.m

Go to the documentation of this file.
  1. AUPNDWXR ;IHS/SD/SDR - Routine to populate DW Audit file - [ 04/15/2004 9:49 AM ]
  1. ;;99.1;IHS DICTIONARIES (PATIENT);**13**;APR 14, 2004;Build 9
  1. ;
  1. ; This routine will be used to populate the DW Audit file
  1. ; (^AUPNDWAF) for exporting edited patients to the Data
  1. ; Warehouse. The patients are actually exported using code for
  1. ; the DW (BDW namespace). Entries are purged once an export has been
  1. ; done and the process starts over.
  1. ;
  1. ; The fields are divided into 5 categories with the following fields
  1. ; in each category:
  1. ;
  1. ; BASE:
  1. ; Date of Birth
  1. ; Date of Death
  1. ; Underlying Cause of Death
  1. ; Sex
  1. ; SSN
  1. ; SSN Verification Status
  1. ; Father's Full Name
  1. ; Mother's Maiden Name
  1. ; DEMOGRAPHIC:
  1. ; Patient's Full Name
  1. ; Mailing Address Street
  1. ; Mailing Address City
  1. ; Mailing Address State
  1. ; Mailing Address Zip
  1. ; Community of Residence
  1. ; Date Moved to Community
  1. ; Eligibility for Services Code
  1. ; Veteran Eligible
  1. ; Classification Code
  1. ; Tribe Code
  1. ; Blood Quantum
  1. ; Reg Record Status Code
  1. ; ALIAS:
  1. ; Alias Full Name
  1. ; CHART:
  1. ; Chart Facility Code
  1. ; Chart Number (HRN)
  1. ; Chart Status Code
  1. ; INSURANCE ELIGIBILITY:
  1. ; Coverage Type (Medicare/Railroad/Medicaid/PI)
  1. ; Eligibility Begin Date (Medicare/Railroad/Medicaid/PI)
  1. ; Policy Number (Medicaid/PI)
  1. ; Medicaid State of Eligibility
  1. ; Medicaid Plan Name
  1. ; Insurer Name (Medicare/Railroad/Medicaid/PI)
  1. ; Eligibility End Date (Medicare/Railroad/Medicaid/PI)
  1. ; Prefix/Suffix (Medicare/Railroad/Medicaid)
  1. ; Policy Holder Name (PI)
  1. ; Relationship to Insured (Medicaid/PI)
  1. ; Date of Last Update (Medicaid)
  1. ;
  1. SET(AUPNDFN,CAT) ; EP
  1. S CAT=$S(CAT="BASE":2,CAT="DEMO":4,CAT="ALIAS":6,CAT="CHART":8,CAT="ELIG":11)
  1. S $P(^AUPNDWAF(AUPNDFN,0),"^",1)=AUPNDFN
  1. S ^AUPNDWAF("B",AUPNDFN,AUPNDFN)="" ;IHS/CMI/LAB added b index to fileman file
  1. S $P(^AUPNDWAF(AUPNDFN,0),"^",CAT)=DT
  1. Q
  1. KILL(AUPNDFN,CAT) ; EP
  1. D SET(AUPNDFN,CAT)
  1. Q
  1. ;