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

RAPM4.m

Go to the documentation of this file.
  1. RAPM4 ;HOIFO/TH-Radiology Performance Monitors/Indicator; ;8/05/05 14:06
  1. ;;5.0;Radiology/Nuclear Medicine;**63**;Mar 16, 1998
  1. CKMONTH ; If requested an entire month's data, ask if output goes to OQP
  1. N RAM,RAMINT
  1. S RAM=$E(RABDATE,4,5)
  1. Q:RAM'=$E(RAEDATE,4,5) ;diff months
  1. ; find min total days for the requested month
  1. S RAMINT=31 S:RAM="02" RAMINT=28 I "04^06^09^11"[RAM S RAMINT=30
  1. S X1=RAEDATE,X2=RABDATE D ^%DTC
  1. I (X+1)'<RAMINT D HQASK
  1. Q
  1. HQASK ;
  1. N DIR
  1. S DIR("A",1)=" "
  1. S:'$D(RALASTM) DIR("A",2)=" You have requested an entire month's data."
  1. S DIR("A",3)=" Do you want to include the OQP Performance Management staff"
  1. S DIR("A")=" as a recipient of this output"
  1. S DIR(0)="Y",DIR("B")="NO"
  1. S DIR("?",1)=" Normally, the OQP Performance Management (Headquarters) only receive"
  1. S DIR("?",2)=" the automatic mid-month report. However, if they missed the report"
  1. S DIR("?",3)=" for the month specified above, and you want them to receive it,"
  1. S DIR("?")=" answer ""Y""."
  1. D ^DIR I Y S RAUTOM=1
  1. Q