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

APCLAP9.m

Go to the documentation of this file.
  1. APCLAP9 ; IHS/CMI/LAB - visits by provider ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. START ;
  1. S APCLJOB=$J,APCLBTH=$H
  1. D INFORM
  1. GETDATES ;
  1. BD ;
  1. S DIR(0)="D^::EP",DIR("A")="Enter Beginning Visit Date",DIR("?")="Enter the beginning visit date for the search." D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. G:$D(DIRUT) XIT
  1. S APCLBD=Y
  1. ED ;
  1. S DIR(0)="DA^::EP",DIR("A")="Enter Ending Visit Date: " D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. G:$D(DIRUT) XIT
  1. I Y<APCLBD W !,"Ending date must be greater than or equal to beginning date!" G ED
  1. S APCLED=Y
  1. S X1=APCLBD,X2=-1 D C^%DTC S APCLSD=X
  1. LOC ;enter location
  1. S APCLLOC=""
  1. S DIR(0)="9000010,.06",DIR("A")="Include visits for which Facility" K DA D ^DIR K DIR
  1. I $D(DIRUT) W !!,"No facilty entered." G BD
  1. S APCLLOC=+Y
  1. ZIS ;
  1. DEMO ;
  1. D DEMOCHK^APCLUTL(.APCLDEMO)
  1. I APCLDEMO=-1 G LOC
  1. S XBRP="^APCLAP9P",XBRC="^APCLAP91",XBRX="XIT^APCLAP9",XBNS="APCL"
  1. D ^XBDBQUE
  1. D XIT
  1. Q
  1. XIT ;
  1. K APCLAPC,APCLBD,APCLBT,APCLBTH,APCLCLIN,APCLCLN,APCLED,APCLGRAN,APCLJOB,APCLLOC,APCLPG,APCLSC,APCLSD,APCLTYPE,APCLTOT,APCLVIEN,APCLX,APCLVREC
  1. K DFN,C
  1. K DA,D0,S,TS,X,Y,DIC,DR,H,M,POP,ZTSK
  1. Q
  1. ;
  1. INFORM ;
  1. W:$D(IOF) @IOF
  1. W !!,?10,"************** PCC DATA ANALYSIS REPORT **************",!!
  1. W !,"This report will tally all visits processed in PCC and break them",!,"down by Type, Service Category and complete/incomplete."
  1. W !!,"It will also, to the best of our ability, determine which of the visits",!,"would be excluded from the APC system.",!!
  1. Q
  1. ;