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

ECX135PT.m

Go to the documentation of this file.
  1. ECX135PT ;ALB/BP - PATCH ECX*3.0*135 Post-Init Rtn ; 11/24/09 2:11pm
  1. ;;3.0;DSS EXTRACTS;**135**;Dec 22, 1997;Build 7
  1. ;
  1. ;Post-init routine to add new entries to:
  1. ;
  1. ; NATIONAL CLINIC file (#728.441)
  1. ;
  1. ;
  1. Q
  1. EN ;Routine Entry Point
  1. D POST1 ;Add new Clinic codes
  1. D POST2 ;Change short description of existing clinic code
  1. Q
  1. ;
  1. ;
  1. POST1 ;- Add new entry to file 728.441
  1. ; ECXREC is in format: code^short description
  1. ;
  1. ;
  1. N ECXFDA,ECXERR,ECXCODE,ECXREC,I
  1. D BMES^XPDUTL(">>> Adding entry to the NATIONAL CLINIC (#728.441) file...")
  1. ;
  1. ;- Get NATIONAL CLINIC record
  1. F I=1:1 S ECXREC=$P($T(NATCLIN+I),";;",2) Q:ECXREC="QUIT" D
  1. .;
  1. .;- National Clinic code
  1. .S ECXCODE=$P(ECXREC,"^")
  1. .;
  1. .;- Quit w/error message if entry already exists in file #728.441
  1. .I $$FIND1^DIC(728.441,"","X",ECXCODE) D Q
  1. ..D BMES^XPDUTL(">>>...."_ECXCODE_" "_$P(ECXREC,U,2)_" not added, entry already exists.")
  1. ..D BMES^XPDUTL(">>> Delete entries and reinstall patch if entries were not created by a")
  1. ..D MES^XPDUTL(">>> previous installation of this patch.")
  1. .;
  1. .;- Setup field values of new entry
  1. .S ECXFDA(728.441,"+1,",.01)=ECXCODE
  1. .S ECXFDA(728.441,"+1,",1)=$P(ECXREC,"^",2)
  1. .;
  1. .;- Add new entry to file #728.441
  1. .D UPDATE^DIE("E","ECXFDA","","ECXERR")
  1. .;
  1. .I '$D(ECXERR) D BMES^XPDUTL(">>>...."_ECXCODE_" "_$P(ECXREC,U,2)_" added to file.")
  1. .I $D(ECXERR) D BMES^XPDUTL(">>>....Unable to add "_ECXCODE_" "_$P(ECXREC,U,2)_" to file.")
  1. ;
  1. Q
  1. ;
  1. POST2 ;
  1. N ECXCODE,ECXDESC,ECXIEN,DIE,DA,DR,I
  1. F I=1:1 S ECXREC=$P($T(NATCLIND+I),";;",2) Q:ECXREC="QUIT" D
  1. .S ECXCODE=$P(ECXREC,"^"),ECXDESC=$P(ECXREC,"^",2)
  1. .S ECXIEN=$$FIND1^DIC(728.441,"","X",ECXCODE,"","","ERR")
  1. .S DIE="^ECX(728.441,",DA=ECXIEN,DR="1///^S X=ECXDESC"
  1. .D ^DIE
  1. ;
  1. NATCLIN ;- Contains the NATIONAL CLINIC entry to be added
  1. ;;ACUP^Acupuncture
  1. ;;BIOF^Biofeedback
  1. ;;CBHT^Cognitive Behavioral Therapy
  1. ;;CHAP^Chaplain
  1. ;;DEMT^Dementia-MH Therapist
  1. ;;DEPS^Dementia-Psychologist
  1. ;;ECOE^Epilepsy Center of Excellence
  1. ;;GIMA^Guided Imagery
  1. ;;HYPN^Hypnotherapy
  1. ;;MANT^Mantram Repetition
  1. ;;MBSR^Mindfulness-Based Stress Reduction
  1. ;;MDTN^Meditation
  1. ;;MHMT^Mental Health-MH Therapist
  1. ;;MHPS^Mental Health-Psychologist
  1. ;;MMMT^Multiple CoMorbidities-MH Therapist
  1. ;;MMPS^Multiple CoMorbidities-Psychologist
  1. ;;MSCE^MS Center of Excellence
  1. ;;MSGT^Massage therapy
  1. ;;NAHL^Native American healing
  1. ;;NDTR^Nutrition Diet Tech Registered
  1. ;;NUDT^Nutrition Diet Tech
  1. ;;NUTR^Nutrition Staff
  1. ;;PADR^PADRECC
  1. ;;PILA^Pilates
  1. ;;PLMT^Palliative Care-MH Therapist
  1. ;;PLPS^Palliative Care-Psychologist
  1. ;;RFLX^Reflexology
  1. ;;RLXT^Relaxation techniques
  1. ;;TAIC^Tai chi
  1. ;;TPHT^Therapeutic or healing touch
  1. ;;YOGA^Yoga
  1. ;;DTMV^Diet Tech-MOVE
  1. ;;NUMV^Nutritionist-MOVE
  1. ;;RDMV^Registered Dietitian-MOVE
  1. ;;RDNU^Nutrition Registered Dietitian
  1. ;;QUIT
  1. NATCLIND ;- Contains the NATIONAL CLINIC entry description to be updated
  1. ;;CNSZ^E-Consult
  1. ;;CPRZ^SCAN-ECHO
  1. ;;QUIT