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

DG687PST.m

Go to the documentation of this file.
  1. DG687PST ;BAY/JAT;cleanup of "AADA" crossref on file 45
  1. ;;5.3;Registration;**68,1015**;Aug 13,1993;Build 21
  1. ;
  1. ; This is a post-init routine for DG*5.3*687
  1. ; The purpose is to cleanup the "AADA" crossreference on field #70
  1. ; of the Patient Treatment file (#45). Any entries for which
  1. ; there is no PTF zero node is to be deleted.
  1. ;
  1. EN ;
  1. D BMES^XPDUTL("Deleting bogus ""AADA"" cross references")
  1. N DGDTE,DGPTIEN,CNT
  1. S DGDTE=0
  1. S CNT=0
  1. F S DGDTE=$O(^DGPT("AADA",DGDTE)) Q:'DGDTE D
  1. .S DGPTIEN=0
  1. .F S DGPTIEN=$O(^DGPT("AADA",DGDTE,DGPTIEN)) Q:'DGPTIEN D
  1. ..I '$D(^DGPT(DGPTIEN,0)) D
  1. ...S CNT=CNT+1
  1. ...K ^DGPT("AADA",DGDTE,DGPTIEN)
  1. Q