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

OOPSXV2.m

Go to the documentation of this file.
  1. OOPSXV2 ;WIOFO/LLH-PRE INIT ROUTINE TO FIX FILE 2263.2 ;02/07/02
  1. ;;2.0;ASISTS;;Jun 03, 2002
  1. ; 2/7/2002 - Added fix for Table files to remove colon from name
  1. ; Cant use ^DIE-input transform prevents edits
  1. N MSG
  1. S MSG="Modifying ASISTS DOL CAUSE OF INJURY CODE Table File (#2263.2)"
  1. D BMES^XPDUTL(MSG) H 1
  1. D MES^XPDUTL(" ")
  1. N NA,NA2,IEN,CHG,DA,DIC,DIE,DR
  1. S IEN=0,DIC=2263.2
  1. F S IEN=$O(^OOPS(DIC,IEN)) Q:IEN'>0 D
  1. . S (NA,NA2)=$$GET1^DIQ(DIC,IEN,.01),CHG=""
  1. . I NA[":" S NA=$TR(NA,":","- "),CHG=1
  1. . I CHG="" Q
  1. . ; use NA2 for original name
  1. . S CODE=$$GET1^DIQ(DIC,IEN,1,"I")
  1. . K ^OOPS(DIC,"B",NA2,IEN)
  1. . K ^OOPS(DIC,"C",$E(CODE,1,3),IEN)
  1. . K ^OOPS(DIC,"D",$$UP^OOPSUTL4($E(NA2,1,30)),IEN)
  1. . ; use NA for new Name
  1. . S $P(^OOPS(DIC,IEN,0),U)=NA
  1. . S ^OOPS(DIC,"B",NA,IEN)=""
  1. . S ^OOPS(DIC,"C",$E(CODE,1,3),IEN)=""
  1. . S ^OOPS(DIC,"D",$$UP^OOPSUTL4($E(NA,1,30)),IEN)=""
  1. SRCCD ; Clean up 2 entries in OWCP Source Code table
  1. S MSG="Modifying ASISTS DOL SOURCE OF INJURY CODES Table File (#2263.1)"
  1. D BMES^XPDUTL(MSG) H 1
  1. D MES^XPDUTL(" ")
  1. I $P(^OOPS(2263.1,26,0),U)="Hand tool (powered: saw" D
  1. .S $P(^OOPS(2263.1,26,0),U)="Hand tool (powered saw)"
  1. .K ^OOPS(2263.1,"B","Hand tool (powered: saw",26)
  1. .S ^OOPS(2263.1,"B","Hand tool (powered saw)",26)=""
  1. .K ^OOPS(2263.1,"D","HAND TOOL (POWERED: SAW",26)
  1. .S ^OOPS(2263.1,"D","HAND TOOL (POWERED SAW)",26)=""
  1. I $P(^OOPS(2263.1,67,0),U)="Liquid Chemical:" D
  1. .S $P(^OOPS(2263.1,67,0),U)="Liquid Chemical"
  1. .K ^OOPS(2263.1,"B","Liquid Chemical:",67)
  1. .S ^OOPS(2263.1,"B","Liquid Chemical",67)=""
  1. .K ^OOPS(2263.1,"D","LIQUID CHEMICAL:",67)
  1. .S ^OOPS(2263.1,"D","LIQUID CHEMICAL",67)=""
  1. NOICD ; Clean up 3 entries in OWCP NOI code table
  1. S MSG="Modifying ASISTS DOL NATURE OF INJURY CODES Table File (#2263.3)"
  1. D BMES^XPDUTL(MSG) H 1
  1. D MES^XPDUTL(" ")
  1. I $P(^OOPS(2263.3,13,0),U)="GENERAL SYMPTOMS: SYNCOPE, DIZZINESS, VERTIGO, FATIGUE, NUMBNESS OF BODY PART" D
  1. .S $P(^OOPS(2263.3,13,0),U)="GENERAL SYMPTOMS- SYNCOPE, DIZZINESS, VERTIGO, FATIGUE, NUMBNESS OF BODY PART"
  1. .K ^OOPS(2263.3,"B","GENERAL SYMPTOMS: SYNCOPE, DIZZINESS, VERTIGO, FATIGUE, NUMBNESS OF BO",13)
  1. .S ^OOPS(2263.3,"B","GENERAL SYMPTOMS- SYNCOPE, DIZZINESS, VERTIGO, FATIGUE, NUMBNESS OF BO",13)=""
  1. .K ^OOPS(2263.3,"D","GENERAL SYMPTOMS: SYNCOPE, DIZ",13)
  1. .S ^OOPS(2263.3,"D","GENERAL SYMPTOMS- SYNCOPE, DIZ",13)=""
  1. I $P(^OOPS(2263.3,68,0),U)="SKIN CONDITIONS: ALLERGY, ECZEMA, DERMATITIS" D
  1. .S $P(^OOPS(2263.3,68,0),U)="SKIN CONDITIONS- ALLERGY, ECZEMA, DERMATITIS"
  1. .K ^OOPS(2263.3,"B","SKIN CONDITIONS: ALLERGY, ECZEMA, DERMATITIS",68)
  1. .S ^OOPS(2263.3,"B","SKIN CONDITIONS- ALLERGY, ECZEMA, DERMATITIS",68)=""
  1. .K ^OOPS(2263.3,"D","SKIN CONDITIONS: ALLERGY, ECZE",68)
  1. .S ^OOPS(2263.3,"D","SKIN CONDITIONS- ALLERGY, ECZE",68)=""
  1. I $P(^OOPS(2263.3,83,0),U)="INFECTIOUS DISEASES: BACTERIA, VIRUSES, PARASITES" D
  1. .S $P(^OOPS(2263.3,83,0),U)="INFECTIOUS DISEASES- BACTERIA, VIRUSES, PARASITES"
  1. .K ^OOPS(2263.3,"B","INFECTIOUS DISEASES: BACTERIA, VIRUSES, PARASITES",83)
  1. .S ^OOPS(2263.3,"B","INFECTIOUS DISEASES- BACTERIA, VIRUSES, PARASITES",83)=""
  1. .K ^OOPS(2263.3,"D","INFECTIOUS DISEASES: BACTERIA,",83)
  1. .S ^OOPS(2263.3,"D","INFECTIOUS DISEASES- BACTERIA,",83)=""
  1. D BMES^XPDUTL("Table updates complete.")
  1. Q
  1. BODYPTS ;
  1. N DA,DIK,DIC,DIE,DR,FLG,BODY,BODY1,IEN,STR
  1. I $D(^OOPS(2261.1,5,0)) S DA=5,DIK="^OOPS(2261.1," D ^DIK
  1. I $$GET1^DIQ(2261.1,101,.01)'="INTESTINES" D
  1. .S (DIC,DIE)="^OOPS(2261.1,",DA=101,DR=".01////INTESTINES" D ^DIE
  1. ; now make sure no ASISTS Records with a pointer = 5 in field 30, 30.1
  1. S IEN=0
  1. F S IEN=$O(^OOPS(2260,IEN)) Q:IEN'>0 D
  1. .S STR=$G(^OOPS(2260,IEN,"2162B")),FLG=0
  1. .I $P($G(STR),U,4)=5 S $P(STR,U,4)=101,FLG=1
  1. .I $P($G(STR),U,8)=5 S $P(STR,U,8)=101,FLG=1
  1. .I FLG S ^OOPS(2260,IEN,"2162B")=STR
  1. Q