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

ECX3P176.m

Go to the documentation of this file.
ECX3P176 ;ALB/TXH - NATIONAL CLINIC (#728.441) File Update; Feb 05, 2020@13:46
 ;;3.0;DSS EXTRACTS;**176**;Dec 22, 1997;Build 2
 ;
 ; Post-init routine updating SHORT DESCRIPTION (#1) in the 
 ; NATIONAL CLINIC (#728.441) file for Mid FY20 CHAR4 code
 ; changes, effective 4/1/2020.
 ;
 Q
 ;
EN ;routine entry point
 D UPDATE ;change short description of existing clinic codes
 D BMES^XPDUTL("Update complete.")
 ;
 Q
 ;
UPDATE ;changing short description of existing entries
 ;ECXREC is in format: code^short description
 ;
 N ECXCODE,ECXDESC,ECXIEN,DIE,DA,DR,ECXI,ECXREC,ECXERR
 ;
 D BMES^XPDUTL(">>>Updating entries in the NATIONAL CLINIC (728.441) file...")
 ;
 F ECXI=1:1 S ECXREC=$P($T(UPDCLIN+ECXI),";;",2) Q:ECXREC="QUIT"  D
  .S ECXCODE=$P(ECXREC,"^"),ECXDESC=$P(ECXREC,"^",2)
  .S ECXIEN=$$FIND1^DIC(728.441,"","X",ECXCODE,"","","ECXERR")
  .I 'ECXIEN D  Q
  ..D BMES^XPDUTL(">>>....Unable to find code: "_ECXCODE_".")
  ..D BMES^XPDUTL("*** Please contact support for assistance. ***")
  .K FDA
  .S FDA(728.441,ECXIEN_",",1)=ECXDESC
  .D FILE^DIE(,"FDA","ECXERR")
  .I '$D(ECXERR) D BMES^XPDUTL(">>>...."_ECXCODE_" - "_$P(ECXREC,U,2)_" updated")
  .I $D(ECXERR) D BMES^XPDUTL(">>>....Unable to update code "_ECXCODE_".") D
  ..D BMES^XPDUTL("*** Please contact support for assistance. ***")
 ;
 Q
 ;
UPDCLIN ;Contains the NATIONAL CLINIC entry description to be updated
 ;;DMAC^CRH TMH Telemental Health
 ;;DMDC^CRH Psychologist
 ;;DMEC^CRH Social Worker
 ;;DMFC^CRH RN/LPN
 ;;DMGC^CRH NP
 ;;DMJC^CRH Pharmacist
 ;;DMKC^CRH MD/DO
 ;;DMLC^CRH PA
 ;;DMPC^ATLAS Community Non-Count
 ;;DMQC^CRH MMU
 ;;DMRC^CRH Spoke (Patient) Site
 ;;DMSC^CRH Group/SMA
 ;;WCUC^Telewound Care
 ;;QUIT