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

SD53247P.m

Go to the documentation of this file.
  1. SD53247P ;BP/ESW TRANSMITTED OUTPATIENT ENCOUNTER ERROR CODE' File Update - POST INST ; 1/31/02 9:11am
  1. ;;5.3;Scheduling;**247,1015**;Aug 13, 1993;Build 21
  1. ;
  1. ; This is the post-install for patch 247 to modify CORRECTIVE ACTION
  1. ; DESCRIPTION field (#21) of ERROR CODE: 4200 in TRANSMITTED
  1. ; OUTPATIENT ENCOUNTER ERROR CODE File (#409.76). This error code
  1. ; is denoting why an entry in the TRANSMITTED OUTPATIENT ENCOUNTER
  1. ; file could not be transmitted or successfully processed.
  1. ;
  1. EN ;
  1. N FILE,FLD,BREF
  1. S FILE=409.76,FLD=21,BREF=4200
  1. D BMES^XPDUTL("SD*5.3*247 Post Installation --")
  1. D MES^XPDUTL(" Update to TRANSMITTED OUTPATIENT ENCOUNTER ERROR CODE file (#"_FILE_").")
  1. D MES^XPDUTL(" ")
  1. I '$D(^SD(FILE)) D BMES^XPDUTL("Missing file "_FILE_".")
  1. I $D(^SD(FILE)) D
  1. .D ACT
  1. Q
  1. ;
  1. ACT ;enter a new text
  1. N LINE,IEN,SDX,WP,ERR,SD
  1. I '$D(^SD(FILE,"B",BREF)) D MISS Q
  1. S IEN=$O(^SD(FILE,"B",BREF,""))
  1. I '$D(^SD(FILE,IEN)) D MISS Q
  1. F SDX=1:1 S LINE=$P($T(TXTNEW+SDX),";;",2) Q:LINE="QUIT" D
  1. .S SD(SDX,0)=LINE
  1. S IEN=IEN_","
  1. D WP^DIE(FILE,IEN,FLD,"K","SD","ERR")
  1. ;display error messages if unsuccessful
  1. I $D(ERR) D Q
  1. .S SDX="ERR" F S SDX=$Q(@SDX) Q:SDX="" D
  1. ..D BMES^XPDUTL(SDX)
  1. ..D MES^XPDUTL(@SDX)
  1. .D BMES^XPDUTL(" *** Warning - Field #21")
  1. .D MES^XPDUTL(" of ERROR CODE 4200, file #409.76")
  1. .D MES^XPDUTL(" could not be modified.")
  1. .D BMES^XPDUTL(" Please contact the PIMS NATIONAL VISTA SUPPORT Team.")
  1. .D MES^XPDUTL(" for assistance.")
  1. D BMES^XPDUTL(" CORRECTIVE ACTION DESCRIPTION of ERROR CODE 4200")
  1. D MES^XPDUTL(" successfully modified.")
  1. D MES^XPDUTL(" ")
  1. Q
  1. MISS ; missing messages
  1. D BMES^XPDUTL("Missing ERROR CODE 4200 in file #409.76...")
  1. D MES^XPDUTL("Please contact the PIMS NATIONAL VISTA SUPPORT Team.")
  1. Q
  1. ;
  1. ; New text for CORRECTIVE ACTIOB DESCRIPTION field:
  1. TXTNEW ;
  1. ;;If the encounter date is invalid, or before the date of transmission,
  1. ;;the appointment will need to be canceled and remade through
  1. ;;the Appointment Manager. It may also be possible that the encounter
  1. ;;is not acceptable because the activity occurred after the NPCD was closed.
  1. ;;Contact your ADPAC to check on this possibility.
  1. ;;
  1. ;;QUIT