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

RA56PST.m

Go to the documentation of this file.
  1. RA56PST ;HISC/SM Post-init ; 11/23/07
  1. ;;5.0;Radiology/Nuclear Medicine;**56**;Mar 16, 1998;Build 3
  1. ;This is the post-install routine for patch RA*5.0*56
  1. ;Private IA #5155 Remove Rad/Nuc Med dd Screen from Subfield #70.03
  1. ;Private IA #5156 Remove Rad/Nuc Med dd Screen from File #79.1
  1. Q
  1. EN1 ;reset file 78.7's field MUMPS CODE TO SET VARIABLE
  1. ; for the PRINT FIELD: REPORT STATUS
  1. I '$D(XPDNM)#2 D EN^DDIOL("This entry point must be called from the KIDS installation -- Nothing Done.",,"!!,$C(7)") Q
  1. N RAIEN
  1. S RAIEN=$O(^RA(78.7,"B","REPORT STATUS",0))
  1. I 'RAIEN D ERR1 G CONT1
  1. I '$D(^RA(78.7,RAIEN,"E")) D ERR2 G CONT1
  1. ; must use hard set instead of silent FM due uneditable data
  1. S ^RA(78.7,RAIEN,"E")="S RARST=$$GET1^DIQ(74,+$P(RAY3,""^"",17)_"","",5)"
  1. D BMES^XPDUTL("File 78.7's REPORT STATUS record has been successfully updated.")
  1. ;
  1. CONT1 ;kill stray 9.2 nodes for two CREDIT METHOD fields
  1. ; in subfile 70.03 and file 79.1
  1. I $D(^DD(70.03,26,9.2)) D
  1. .K ^DD(70.03,26,9.2)
  1. .D BMES^XPDUTL("Cleaned up stray 9.2 node for the CREDIT METHOD field in subfile 70.03.")
  1. .Q
  1. I $D(^DD(79.1,21,9.2)) D
  1. .K ^DD(79.1,21,9.2)
  1. .D BMES^XPDUTL("Cleaned up stray 9.2 node for the CREDIT METHOD field in file 79.1.")
  1. .Q
  1. Q
  1. ERR1 ;
  1. D BMES^XPDUTL("File 78.7 doesn't have the REPORT STATUS record, so REPORT STATUS record is not updated.")
  1. Q
  1. ERR2 ;
  1. D BMES^XPDUTL("File 78.7 has no data for field 100, so REPORT STATUS record is not updated.")
  1. Q