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

EDP22PST.m

Go to the documentation of this file.
  1. EDP22PST ;SLC/BWF - Post-init for facility install ;9/3/13 11:08am
  1. ;;2.0;EMERGENCY DEPARTMENT;**2**;Feb 24, 2012;Build 23
  1. ;
  1. D ROLES
  1. Q
  1. ;
  1. ROLES ; add Resident and Nurse roles to 'Edit Closed' worksheet
  1. N WSIEN,NURIEN,RESIEN
  1. S WSIEN=$O(^EDPB(232.6,"B","Edit Closed",0)) Q:'WSIEN
  1. S NURIEN=$O(^EDPB(232.5,"C","N",0)) I NURIEN D ADD(WSIEN,NURIEN)
  1. S RESIEN=$O(^EDPB(232.5,"C","R",0)) I RESIEN D ADD(WSIEN,RESIEN)
  1. Q
  1. ADD(WSIEN,IEN) ;
  1. ; do not add this role if it is already here
  1. Q:$D(^EDPB(232.6,WSIEN,3,"B",IEN))
  1. S FDA(232.63,"+1,"_WSIEN_",",.01)=IEN
  1. D UPDATE^DIE(,"FDA") K FDA
  1. Q