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

OOPSXP11.m

Go to the documentation of this file.
  1. OOPSXP11 ;WIOFO/LLH-INIT ROUTINE FOR PATCH 11 ;3/5/2001
  1. ;;1.0;ASISTS;**11**;Jun 01, 1998
  1. ;
  1. PRE ;
  1. N MSG,SAF,PMSG
  1. S MSG(1)=" "
  1. S MSG(2)="The SAFETY DEVICE USED Field (#43) in the ASISTS ACCIDENT REPORTING "
  1. S MSG(3)="File (#2260) has been changed. Unknown has been removed as a "
  1. S MSG(4)="valid code for this field. All records with Unknown will be "
  1. S MSG(5)="changed to 'N'o."
  1. ;
  1. I $$PATCH^XPDUTL("OOPS*1.0*11") D Q
  1. . D BMES^XPDUTL(" Skipping pre install since patch was previously installed.")
  1. D BMES^XPDUTL("Data Conversion in Progress...") H 1
  1. D MES^XPDUTL(.MSG) H 2
  1. ;
  1. LOOP ; Loop thru 2260 and change as described above.
  1. N IEN,DR,DA,DIE,SAF
  1. S IEN=0,DIE="^OOPS(2260,"
  1. F S IEN=$O(^OOPS(2260,IEN)) Q:IEN'>0 D
  1. . S SAF=$P($G(^OOPS(2260,IEN,"2162D")),U,8)
  1. . I $G(SAF)="U" S $P(^OOPS(2260,IEN,"2162D"),U,8)="N" D
  1. .. D MES^XPDUTL("Safety Device changed from Unknown to No for this case "_$$GET1^DIQ(2260,IEN,.01,"E"))
  1. ; also need to change the type for Suture Needlestick in ^OOPS(2261.7
  1. K DA,DIE,DR
  1. S DIE="^OOPS(2261.7,"
  1. S DA=7,DR="2///^S X=""S""" D ^DIE
  1. S DA=12,DR="2///^S X=""S""" D ^DIE
  1. S DA=19,DR="2///^S X=""N""" D ^DIE
  1. Q