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

ACHSYES.m

Go to the documentation of this file.
  1. ACHSYES ; IHS/ITSC/PMF - REGENERATE "ES" CROSSREF OF CHS FACILITY FROM GIVEN IEN ; [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;
  1. ; This utility rebuilds the "ES" x-ref (ESTIMATED DATE OF SERVICE),
  1. ; in the CHS FACILITY file.
  1. ;
  1. ; DUZ & DUZ(2) must be defined.
  1. ;
  1. ; You'll be asked for the beginning internal entry number at the "D"
  1. ; level of the ^ACHSF(DUZ(2),"D", global. The re-build will begin
  1. ; with that entry and proceed to the last entry number.
  1. ;
  1. ; The entire file can be x-ref'd using FM x-ref utility,
  1. ; CHS FACILITY file, DOCUMENT sub-file, ESTIMATED DATE
  1. ; OF SERVICE field, "ES" x-ref.
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR 0." Q
  1. I '$G(DUZ(2)) W !,"DUZ(2) UNDEFINED OR 0." Q
  1. D HOME^%ZIS,DT^DICRW
  1. START ;
  1. S Y=$$DIR^XBDIR("NO^1:"_$P(^ACHSF(DUZ(2),"D",0),U,3),"ENTER BEGINNING IEN")
  1. Q:'Y
  1. D WAIT^DICD
  1. N D,E
  1. S D=+Y
  1. F S D=$O(^ACHSF(DUZ(2),"D",D)) Q:'D S E=$P($G(^ACHSF(DUZ(2),"D",D,3)),U,9) W "." I E]"" S ^ACHSF(DUZ(2),"ES",E,D)=""
  1. Q
  1. ;