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

ADEPENDN.m

Go to the documentation of this file.
  1. ADEPENDN ; IHS/HQT/MJL - ENDO REPORT NOTES ; [ 03/24/1999 9:04 AM ]
  1. ;;6.0;ADE;;APRIL 1999
  1. ;
  1. ;STEP 1: Get template with dfns of all tooth access visits
  1. ;Get Date range into ADEDATE
  1. ;Zero out ADEPROV,ADESTP,ADEAGE,ADELOC,ADEHYG screens
  1. ;Set ADEADA(1) to look for all accessed teeth
  1. ;Setup template ADEQA ENDO to store visit hits
  1. ;Call ADEPQA to run search with no printout
  1. ;STEP 2:
  1. ;Set ADESTP=ADEQA ENDO
  1. ;Set ADEPROV for a dentist (zero out other screens)
  1. ;For each dentist loop thru following
  1. ;Set ADEADA(1) for accessed, accessed + extracted,
  1. ; +completed, +alloy restored, +crown restored
  1. ;Kill ADEUTL("ADEPQA")
  1. ;Call ADEPQA with each value of ADEADA(1)
  1. ;After search, count entries in ADEUTL("ADEPQA")
  1. ;Set results array ADEREP as follows:
  1. ;ADEREP(DENTIST NAME")="Total Accessed^+extracted^+completed^+alloy restored^+crown restored"
  1. ;STEP 3: Call DIP to print out the results array
  1. ;STEP 4: Delete templates
  1. ;
  1. PRINT ;
  1. ;NOTE: Have to call %ZIS because Fileman tries
  1. ;to write to device before opening it (+32^DIP).
  1. ;(Only seems to be a problem when queueing to HFS.)
  1. ;Then have to restore IOP and %ZIS("IOPAR") because
  1. ;Fileman later (DIP3) calls %ZIS to open the device,
  1. ;and he needs to have IOP and %ZIS("IOPAR") then.