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

ADEPDDM.m

Go to the documentation of this file.
  1. ADEPDDM ; IHS/HQT/MJL - DENTIST QUARTERLY REPORT ;07:02 PM [ 03/24/1999 9:04 AM ]
  1. ;;6.0;ADE;;APRIL 1999
  1. ;
  1. N ADEREP,ADEDDS,ADEDATE,ADESER,ADEDNAM,ADEWK1,ADEWK2,ADEWK3,ADEHYG,ADEHNAM,DIR,ADEIOP,ADEU
  1. K DTOUT,DUOUT,DIRUT,DIROUT
  1. ;Put dentists and hygienists/therapists DFNs in ADEDDS and ADEHYG
  1. S ADEDDS=$$DDS^ADEPSUB1()
  1. S ADEHYG=$$HYG^ADEPSUB1()
  1. I 'ADEDDS D G END
  1. . W !!,"There is no one classed as a DENTIST in the PROVIDER file!"
  1. ;GET DATE RANGE
  1. D QDATE^ADEPSUB G:$$HAT^ADEPQA() END
  1. ;
  1. ;GET AND LOCK UNIQUE SUBSCRIPT FOR THE REPORT GLOBAL
  1. S ADEU=$$ADEU^ADEPSUB()
  1. K ^TMP("ADEP",ADEU) ;^TMP is a transient report global
  1. S ^TMP("ADEP",ADEU)="RUNNING"
  1. ;
  1. D ASKDEV^ADEPSUB("ZTM^ADEPDDM","DENTAL QUARTERLY REPORT PROCESSING")
  1. I POP K ^TMP("ADEP",ADEU) G END
  1. ;FHL 9/9/98 I $D(ZTSK) G END
  1. I $D(ZTQUEUED) G END
  1. ;
  1. ZTM ;EP - TASKMAN PROCESSING PHASE
  1. I $D(ZTQUEUED) L +^TMP("ADEP",ADEU):1 I '$T S ZTREQ="@" G END
  1. ;Get code series
  1. D DSERIES^ADEPSUB1
  1. ;$O THRU date xref (?) and HIT if visit assoc w/ hyg
  1. D ROLL
  1. D CALC3^ADEPSUB1
  1. G:$O(^TMP("ADEP",ADEU,0))="" END
  1. ;Call DIP to print array
  1. I $D(ZTQUEUED) D G END
  1. . I $D(IOT),IOT'="HFS" D Q
  1. . . S ZTREQ=$H_U_ADEIOP_U_"DENTIST QUARTERLY REPORT PRINTING"_U_"PRINT^ADEPDDM"
  1. . D PRINT Q
  1. I '$D(ZTQUEUED) D PRINT
  1. ;
  1. END K DUOUT,DTOUT,DIROUT,DIRUT
  1. D END^ADEPSUB4
  1. Q
  1. ;
  1. ;------->SUBROUTINES
  1. ;
  1. ROLL ;
  1. N ADEBEG,ADEND,ADEDFN
  1. S ADEBEG=$P(ADEDATE,U,2)-1,ADEND=$P(ADEDATE,U,3)
  1. F S ADEBEG=$O(^ADEPCD("AC",ADEBEG)) Q:ADEBEG>ADEND Q:'+ADEBEG S ADEDFN=0 D
  1. . F S ADEDFN=$O(^ADEPCD("AC",ADEBEG,ADEDFN)) Q:'ADEDFN D DSCREEN^ADEPSUB3(ADEDFN,3)
  1. Q
  1. ;
  1. PRINT ;EP - TASKMAN PRINT PHASE
  1. D PRINT^ADEPSUB("[ADEP-ADEPQTR]"," DENTIST QUARTERLY REPORT FOR PERIOD")
  1. Q