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

OOPSXV27.m

Go to the documentation of this file.
  1. OOPSXV27 ;WIOFO/LLH-POST INIT ROUTINE, FILL FIELD 331 ;11/26/04
  1. ;;2.0;ASISTS;**7**;Jun 03, 2002
  1. ; Patch 7 - auto populate index "AF" from 1/1/2004 to date
  1. ;
  1. ENT ;
  1. N IEN,FILE,FLD4,FLD88
  1. S FILE=2260,IEN=0
  1. D BMES^XPDUTL("Updating new index for OSHA 300 Log for cases created in 2004") H 1
  1. D MES^XPDUTL(" ")
  1. S FLD4=3040100
  1. F S FLD4=$O(^OOPS(FILE,"AD",FLD4)) Q:FLD4'>0 D
  1. .S IEN=0 F S IEN=$O(^OOPS(FILE,"AD",FLD4,IEN)) Q:IEN'>0 D
  1. ..S FLD88=$$GET1^DIQ(FILE,IEN,88,"I")
  1. ..I $G(FLD88)'="" S ^OOPS(FILE,"AF",FLD4,FLD88,IEN)=""
  1. D BMES^XPDUTL("Update Complete") H 1
  1. D MES^XPDUTL(" ")
  1. ;
  1. ; now update Type of Incident (FILE 2161.2)
  1. D BMES^XPDUTL("Updating ASISTS CRITICAL TRACKING ISSUES File (#2261.2)") H 1
  1. D MES^XPDUTL(" ")
  1. I $P(^OOPS(2261.2,15,0),U)'="Non Patient Care" D Q
  1. .D BMES^XPDUTL("File not found as expected, update table manually")
  1. .D MES^XPDUTL(" ")
  1. I $P(^OOPS(2261.2,15,0),U)="Non Patient Care" D
  1. .S $P(^OOPS(2261.2,15,0),U)="Lifting (Non Patient Care)"
  1. .K ^OOPS(2261.2,"B","Non Patient Care",15)
  1. .S ^OOPS(2261.2,"B","Lifting (Non Patient Care)",15)=""
  1. .K ^OOPS(2261.2,"D","NON PATIENT CARE",15)
  1. .S ^OOPS(2261.2,"D","LIFTING (NON PATIENT CARE)",15)=""
  1. D BMES^XPDUTL("Table Update Complete"),MES^XPDUTL(" ")
  1. Q