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

PXRRPRSC.m

Go to the documentation of this file.
  1. PXRRPRSC ;ISL/PKR - PCE reports provider selection criteria routines. ;12/11/96
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**12,18**;Aug 12, 1996
  1. ;
  1. ;=======================================================================
  1. PRTYPE ;Select the type of report.
  1. N X,Y
  1. K DIRUT,DTOUT,DUOUT
  1. S DIR(0)="S"_U_"S:Summary;D:Detail by clinic and date"
  1. S DIR("A")="Which type of report"
  1. S DIR("B")="S"
  1. S DIR("?",1)="Choose between a detailed report that gives the number of encounters by clinic"
  1. S DIR("?",2)="and date for each provider or the summary report that gives only the total"
  1. S DIR("?")="encounters for each provider."
  1. D ^DIR K DIR
  1. I $D(DIROUT) S DTOUT=1
  1. I $D(DTOUT)!($D(DUOUT)) Q
  1. S PXRRPRTY=Y_U_Y(0)
  1. Q
  1. ;
  1. ;=======================================================================
  1. ;
  1. PRV ;Establish the Provider selection criteria.
  1. N X,Y
  1. K DIRUT,DTOUT,DUOUT
  1. S DIR(0)="S"_U_"A:All Providers (with encounters);"
  1. S DIR(0)=DIR(0)_"P:Primary Providers (with encounters);"
  1. S DIR(0)=DIR(0)_"S:Selected Providers;"
  1. S DIR(0)=DIR(0)_"C:Selected Person Classes"
  1. S DIR("A")="Select ENCOUNTER PROVIDER CRITERIA"
  1. S DIR("B")="S"
  1. D ^DIR K DIR
  1. I $D(DIROUT) S DTOUT=1
  1. I $D(DTOUT)!($D(DUOUT)) Q
  1. S PXRRPRSC=Y_U_Y(0)
  1. ;
  1. ;If Providers are to be selected individually or by class get the list.
  1. I Y="S" D PRV^PXRRPRPL
  1. I $D(DTOUT) Q
  1. I $D(DUOUT) G PRV
  1. I Y="C" D PCLASS^PXRRPECS
  1. I $D(DTOUT) Q
  1. I $D(DUOUT) G PRV
  1. Q
  1. ;