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

APCLEIN.m

Go to the documentation of this file.
  1. APCLEIN ; IHS/CMI/LAB - INIT STUFF ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. ACC ;
  1. I '$D(DUZ(2)) W $C(7),$C(7),!!,"SITE NOT SET IN DUZ(2) - NOTIFY SITE MANAGER!!",! S APCLQUIT="" Q
  1. I 'DUZ(2) W $C(7),$C(7),!!,"SITE NOT SET IN DUZ(2) - NOTIFY SITE MANAGER!!",! S APCLQUIT="" Q
  1. W:$D(IOF) @IOF
  1. I '$D(APCLSORT) W $C(7),$C(7),!!,"Report Type Missing!!",! S APCLQUIT="" Q
  1. W !!,"This Option will search the Patient file for all patients registered",!,"at the Service Unit or the facility that you select.",!
  1. W "A Report will result which will give the following counts:",!
  1. W ?5,"- All Living Patients registered at the facility or SU selected",!
  1. W ?5,"- All Active Patients (patients who have had a visit",!?8,"within the 3 fiscal years prior to the 'as of' date specified).",!
  1. W "The report will be sorted by ",$S(APCLSORT="C":"COMMUNITY OF RESIDENCE",APCLSORT="T":"TRIBE OF MEMBERSHIP",1:"SERVICE UNIT OF RESIDENCE"),".",!!
  1. Q
  1. ;
  1. PCT ;
  1. I '$D(DUZ(2)) W $C(7),$C(7),!!,"SITE NOT SET IN DUZ(2) - NOTIFY SITE MANAGER!!",! S APCLQUIT="" Q
  1. I 'DUZ(2) W $C(7),$C(7),!!,"SITE NOT SET IN DUZ(2) - NOTIFY SITE MANAGER!!",! S APCLQUIT="" Q
  1. I '$D(APCLSORT) W $C(7),$C(7),!!,"Report Type Missing!!",! S APCLQUIT="" Q
  1. W:$D(IOF) @IOF
  1. W !!,"This Option will search the Patient file for all patients registered",!,"at the Service Unit or the facility that you select.",!
  1. W "A Report will result which will give the following counts:",!
  1. W ?5,"- All Living Patients registered at the facility or SU selected",!
  1. W ?5,"- All Patients seen in the Visit Date Range specified",!
  1. W ?5,"- Total number of Visits by these patients",!
  1. W ?5,"- Total number of APC Visits by these patients",!
  1. W ?5,"- Total number of Primary Care Provider Visits by these patients",!
  1. W "The report will be sorted by ",$S(APCLSORT="C":"COMMUNITY OF RESIDENCE",APCLSORT="T":"TRIBE OF MEMBERSHIP",1:"SERVICE UNIT OF RESIDENCE"),".",!!
  1. Q