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

ECX110PT.m

Go to the documentation of this file.
  1. ECX110PT ;ALB/ESD - PATCH ECX*3.0*110 Post-Init Rtn ; 09/20/07 1:00pm
  1. ;;3.0;DSS EXTRACTS;**110**;Dec 22, 1997;Build 4
  1. ;
  1. ;Post-init routine to add new entries to:
  1. ;
  1. ; NATIONAL CLINIC file (#728.441)
  1. ;
  1. ;
  1. EN D POST1
  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. NATCLIN ;- Contains the NATIONAL CLINIC entry to be added
  1. ;;OEFN^OEF/OIF CSMG BY NURSE
  1. ;;OEFS^OEF/OIF CSMG BY SOCIAL WORKER
  1. ;;LVL1^LEVEL 1
  1. ;;LVL2^LEVEL 2
  1. ;;LVL3^LEVEL 3
  1. ;;LVL4^LEVEL 4
  1. ;;LVL5^LEVEL 5
  1. ;;RV15^RVU 15 MINUTES HIGHER THAN MATRIX
  1. ;;RV20^RVU 20 MINUTES HIGHER THAN MATRIX
  1. ;;RV30^RVU 30 MINUTES HIGHER THAN MATRIX
  1. ;;RV45^RVU 45 MINUTES HIGHER THAN MATRIX
  1. ;;RV60^RVU 60 MINUTES HIGHER THAN MATRIX
  1. ;;VL1A^VL CATEGORY 1 A
  1. ;;VL1B^VL CATEGORY 1 B
  1. ;;VL1C^VL CATEGORY 1 C
  1. ;;VL1D^VL CATEGORY 1 D
  1. ;;VL2A^VL CATEGORY 2 A
  1. ;;VL2B^VL CATEGORY 2 B
  1. ;;VL2C^VL CATEGORY 2 C
  1. ;;VL2D^VL CATEGORY 2 D
  1. ;;VL4A^VL CATEGORY 4 A
  1. ;;VL4B^VL CATEGORY 4 B
  1. ;;VL4C^VL CATEGORY 4 C
  1. ;;VL4D^VL CATEGORY 4 D
  1. ;;VL5A^VL CATEGORY 5 A
  1. ;;VL5B^VL CATEGORY 5 B
  1. ;;VL5C^VL CATEGORY 5 C
  1. ;;VL5D^VL CATEGORY 5 D
  1. ;;FDLA^VL CATEGORY 4 A
  1. ;;FDLB^VL CATEGORY 4 B
  1. ;;FDLC^VL CATEGORY 4 C
  1. ;;FDLD^VL CATEGORY 4 D
  1. ;;PSOA^PSYCHOLOGIST A
  1. ;;PSOB^PSYCHOLOGIST B
  1. ;;PSOC^PSYCHOLOGIST C
  1. ;;PSOD^PSYCHOLOGIST D
  1. ;;PSOE^PSYCHOLOGIST E
  1. ;;QUIT