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

SD53P534.m

Go to the documentation of this file.
  1. SD53P534 ; ALB/ESW - POST INSTALL; 2/11/03 12:49pm
  1. ;;5.3;Scheduling;**534**;AUG 13, 1993;Build 8
  1. ;
  1. Q
  1. POST ;
  1. ; Add/edit PCMM HL7 ERROR CODE '850'
  1. N DIC,DIE,DA,DLAYGO,DR,X,Y,SDARRY,SDIENS
  1. S DIC="^SCPT(404.472,",DIC(0)=""
  1. S X="850"
  1. D ^DIC I Y>0 D Q
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("Unsuccessful update! ** Code 850 already exists. **")
  1. . D MES^XPDUTL("*****")
  1. .; S XPDABORT=2 <----disable abort; send only a message
  1. S DIC="^SCPT(404.472,",DIC(0)="" D FILE^DICN
  1. S DA=+Y,DR=".02///PV1;.03///4;.04///Admit type is invalid (table SD009)"
  1. S SDIENS=+Y_","
  1. S DIE=DIC D ^DIE
  1. S SDARRY(1)="Error code indicates that the Admission Type does not match values from"
  1. S SDARRY(2)="the Table SD009 - Purpose of Visit & appointment Type."
  1. D WP^DIE(404.472,SDIENS,10,"","SDARRY")
  1. D BMES^XPDUTL("*****")
  1. D MES^XPDUTL(" The PCMM HL7 ERROR CODE (#404.472) File has been updated")
  1. D MES^XPDUTL(" with the '850' Error Code.")
  1. D MES^XPDUTL("*****")
  1. Q