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

SDYQOECL.m

Go to the documentation of this file.
  1. SDYQOECL ;ALB/MLI - Routine to put entries in file 409.41 ; 10/6/95 [10/6/95 2:28pm]
  1. ;;5.3;Scheduling;**35**,Aug 13, 1993
  1. ;
  1. ; This routine will set the following entries into the OUTPATIENT
  1. ; CLASSIFICATION TYPE file (#409.41) so that classification
  1. ; questions are no longer asked for stop codes:
  1. ;
  1. ; 149 - RADIATION THERAPY TREATMENT
  1. ; 150 - COMPUTERIZED TOMOGRAPHY (CT)
  1. ; 151 - MAGNETIC RESONANCE IMAGING/MRI
  1. ; 152 - ANGIOGRAM CATHETERIZATION
  1. ; 153 - INTERVENTIONAL RADIOGRAPHY
  1. ;
  1. EN ; entry point to add stop codes to file 409.41
  1. N DA,DIC,DLAYGO,SDYQERR,SDYQSTOP,X,Y
  1. S SDYQERR=0
  1. W !,">>>Adding entries to the OUTPATIENT CLASSIFICATION STOP CODE EXCEPTION",!?4,"file (#409.45)..."
  1. F SDYQSTOP=149:1:153 D
  1. . W !?4,"Stop code ",SDYQSTOP
  1. . S DA=$O(^SD(409.45,"B",SDYQSTOP,0))
  1. . I 'DA D Q:SDYQERR
  1. . . K DD,DO
  1. . . S X=SDYQSTOP,DIC="^SD(409.45,",DIC(0)="L",DLAYGO=409.45
  1. . . D FILE^DICN S DA=+Y
  1. . . I Y<0 S SDYQERR=1 W "...could not be added...try again later."
  1. . . I Y>0 W "...added to file"
  1. . I $O(^SD(409.45,DA,"E","B",2951001,0)) W "...already in file." Q
  1. . S DIC="^SD(409.45,"_DA_",""E"",",DIC("P")=$P(^DD(409.45,75,0),"^",2)
  1. . S DA(1)=DA,X="2951001",DIC(0)="L",DIC("DR")=".02///1" K DLAYGO
  1. . K DD,DO
  1. . D FILE^DICN
  1. . W "...as of 10/1/95."
  1. Q