RORERR20 ;HCIOFO/SG - LIST OF ERROR MESSAGES ;1/22/06 7:00pm
;;1.5;CLINICAL CASE REGISTRIES;**18,22**;Feb 17, 2006;Build 17
;
;***************************************************************************
;***************************************************************************
; --- ROUTINE MODIFICATION LOG ---
;
;PKG/PATCH DATE DEVELOPER MODIFICATION
;----------- ---------- ----------- ----------------------------------------
;ROR*1.5*18 APR 2012 C RAY Added error code -112
;ROR*1.5*22 FEB 2014 T KOPP Added error code -113
;
;***************************************************************************
;***************************************************************************
Q
;
;***** RETURNS THE TEXT OF THE MESSAGE
;
; ERRCODE Error code
; [.TYPE] Type of the error
; [ARG1-ARG5] Optional parameters that substitute the |n| "windows"
; in the text of the message (for example, the |2| will
; be substituted by the value of the ARG2).
;
MSG(ERRCODE,TYPE,ARG1,ARG2,ARG3,ARG4,ARG5) ;
S TYPE=6 Q:ERRCODE'<0 ""
N ARG,I1,I2,MSG
;--- Get a descriptor of the message
S I1=-ERRCODE,MSG=$P($T(MSGLIST+I1),";;",2)
S I1=+$TR($P(MSG,U,2)," "),MSG=$P(MSG,U,3,999)
S:I1>0 TYPE=I1
Q:MSG?." " "Unknown error ("_ERRCODE_")"
;--- Substitute parameters
S I1=2
F S I1=$F(MSG,"|",I1-1) Q:'I1 D
. S I2=$F(MSG,"|",I1) Q:'I2
. X "S ARG=$G(ARG"_+$TR($E(MSG,I1,I2-2)," ")_")"
. S $E(MSG,I1-1,I2-1)=ARG
Q $$TRIM^XLFSTR(MSG)
;
;***** RETURNS TYPE OF THE MESSAGE
;
; ERRCODE Error code
;
TYPE(ERRCODE) ;
Q:ERRCODE'<0 0
N I,TYPE S I=-ERRCODE
S I=$P($T(MSGLIST+I),";;",2),TYPE=+$TR($P(I,U,2)," ")
Q $S(TYPE>0:TYPE,1:6)
;
;***** LIST OF THE MESSAGES (THERE SHOULD BE NOTHING AFTER THE LIST!)
;
; The error codes are provided in the table only for clarity.
; Text of the messages are extracted using the $TEXT function and
; absolute values of the ERRCODE parameter.
;
; Message Type:
; 1 Debug 4 Warning
; 2 Information 5 Database Error
; 3 Data Quality 6 Error
;
MSGLIST ; Code Type Message Text
;; -1 ^ 6 ^ Cannot find a descriptor of the registry
;; -2 ^ 6 ^ Duplicate registry names
;; -3 ^ 6 ^ Cannot find a descriptor of the selection rule
;; -4 ^ 6 ^ Duplicate rule names
;; -5 ^ 6 ^ Circle rule references
;; -6 ^ 6 ^ Invalid update entry point: |2|
;; -7 ^ 6 ^ Field '|2|' not found
;; -8 ^ 6 ^ Duplicate patients in the registry
;; -9 ^ 5 ^ FileMan DBS call error(s)|2|
;; -10 ^ 6 ^ Bad registry name: '|2|'
;; -11 ^ 6 ^ Cannot lock the record(s) of |2|
;; -12 ^ 6 ^ Cannot load and prepare lab search data
;; -13 ^ 6 ^ Cannot lock the registries
;; -14 ^ 6 ^ Cannot prepare selection rules
;; -15 ^ 6 ^ Error(s) during processing of the patient data
;; -16 ^ 6 ^ Cannot update demographic data
;; -17 ^ 6 ^ Invalid entry point: '|2|'
;; -18 ^ 6 ^ Routine '|2|' does not exist
;; -19 ^ 6 ^ Cannot load the selection rules
;; -20 ^ 6 ^ Cannot sort the selection rules
;; -21 ^ 6 ^ Syntax error in the expression
;; -22 ^ 6 ^ Cannot prepare data extraction definitions
;; -23 ^ 6 ^ Cannot set up HL7 environment variables
;; -24 ^ 6 ^ Cannot send the batch HL7 message
;; -25 ^ 6 ^ No HL7 event driver protocol
;; -26 ^ 3 ^ Neither ICN nor SSN is available
;; -27 ^ 5 ^ Cannot obtain results of the Lab tests
;; -28 ^ 4 ^ No active registries to |2|!
;; -29 ^ 1 ^ Non-existent LOINC code |2| in the registry parameters
;; -30 ^ 5 ^ Duplicate records in the file #95.3 for LOINC code |2|
;; -31 ^ 4 ^ Cannot remove the patient #|1| from the pending list
;; -32 ^ 6 ^ Incorrect data extraction period: '|2|-|3|'
;; -33 ^ 6 ^ Cannot de-queue data extraction task
;; -34 ^ 6 ^ Cannot open an output file
;; -35 ^ 6 ^ Device Handler error
;; -36 ^ 6 ^ Cannot retrieve Patient details (DFN:|1|) from File #|2|
;; -37 ^ 6 ^ Cannot retrieve details of medication
;; -38 ^ 6 ^ Cannot retrieve CPT code
;; -39 ^ 6 ^ Duplicate HL7 message ID in the file #798: '|2|'
;; -40 ^ 6 ^ Undefined variable: '|2|'
;; -41 ^ 2 ^ Registry setup has been completed
;; -42 ^ 4 ^ Task has been interrupted by user or by parent task
;; -43 ^ 6 ^ Error during the |2|. See log files.
;; -44 ^ 6 ^ Invalid extraction entry point: '|2|'
;; -45 ^ 6 ^ Invalid or missing IEN of selection rule
;; -46 ^ 5 ^ Cannot load registry parameters
;; -47 ^ 5 ^ Cannot find the '|2|' drug class
;; -48 ^ 2 ^ Registry '|2|' is inactive
;; -49 ^ 4 ^ Cannot find HL7 message #|2| to check its status
;; -50 ^ 6 ^ Cannot create the '|2|' checkpoint!
;; -51 ^ 6 ^ Cannot complete the '|2|' checkpoint!
;; -52 ^ 6 ^ Cannot find HL7 message ID in the file #798: '|2|'
;; -53 ^ 6 ^ Cannot enable the '|2|' protocol
;; -54 ^ 6 ^ The '|2|' Lab Search is not defined
;; -55 ^ 4 ^ No indicators are defined for the '|2|' Lab Search
;; -56 ^ 6 ^ Error code '|2|' is returned by the '|3|'
;; -57 ^ 4 ^ Error code '|2|' is returned by the '|3|'
;; -58 ^ 6 ^ File '|2|' not found
;; -59 ^ 3 ^ ICN checksum is shorter than 6 digits
;; -60 ^ 6 ^ Subtask #|2| crashed (see TaskMan logs)
;; -61 ^ 6 ^ Cannot start the registry update in multitask mode
;; -62 ^ 2 ^ Registry Update subtask #|2| has been scheduled
;; -63 ^ 6 ^ Data search in file #|2| is not supported
;; -64 ^ 6 ^ Data element #|3| (file #|2|) is not supported
;; -65 ^ 6 ^ |4| value of element #|3| (file #|2|) is not supported
;; -66 ^ 1 ^ Patient was skipped due to counter in the file #798.3
;; -67 ^ 6 ^ CCR HL7 messages created |2| day(s) ago have not been sent yet.
;; -68 ^ 6 ^ Invalid header of the HL7 message (or no header at all)
;; -69 ^ 6 ^ Cannot find the data element
;; -70 ^ 6 ^ Duplicate names of the data element
;; -71 ^ 1 ^ User entered the "^"
;; -72 ^ 6 ^ Timeout
;; -73 ^ 4 ^ HL7 message #|2| is being processed/transmitted
;; -74 ^ 6 ^ Number of messages in the batch does not match the BTS
;; -75 ^ 6 ^ Not all four HL7 encoding characters are defined
;; -76 ^ 6 ^ The [|2|] option must not be running during installation
;; -77 ^ 6 ^ Cannot create MailMan message stub
;; -78 ^ 6 ^ Scheduled subtasks have not been started by TaskMan
;; -79 ^ 6 ^ Missing or dangling pointer
;; -80 ^ 6 ^ Cannot find a list item (file #799.1)
;; -81 ^ 6 ^ Duplicate item codes (file #799.1)
;; -82 ^ 6 ^ The task '|2|' cannot be scheduled at '|3|'
;; -83 ^ 6 ^ Cannot find the task #|2| in the ROR TASK file
;; -84 ^ 6 ^ The task #|2| has not responded on the stop request yet
;; -85 ^ 6 ^ Invalid task number: '|2|'
;; -86 ^ 6 ^ Cannot find report parameters (file #799.34)
;; -87 ^ 6 ^ Duplicate report parameters (file #799.34)
;; -88 ^ 6 ^ Parameter |2| has an invalid value: '|3|'
;; -89 ^ 2 ^ No output file has been created
;; -90 ^ 2 ^ The patient has been deleted from the |2| registry
;; -91 ^ 6 ^ Illegal attempt to access the registries from the GUI
;; -92 ^ 6 ^ Cannot re-queue unsent batch HL7 message #|2|
;; -93 ^ 4 ^ Batch HL7 message #|2| has been re-queued
;; -94 ^ 2 ^ Data Extraction task #|2| has been scheduled
;; -95 ^ 3 ^ Invalid value. File: #|2|; IENS: "|3|"; Field(s): |4|
;; -96 ^ 6 ^ Cannot rename the '|2|' security key to '|3|'
;; -97 ^ 6 ^ The patient is not in the |2|
;; -98 ^ 6 ^ Cannot get closed root name of file #|2| (IENS: |3|)
;; -99 ^ 1 ^ FileMan DBS call error(s)|2|
;;-100 ^ 3 ^ |2| was returned by the |3|
;;-101 ^ 2 ^ Your CCR task #|2| has finished (|3|)
;;-102 ^ 5 ^ Invalid or missing record in the |2| file (IEN: |3|)
;;-103 ^ 6 ^ The registry |2| has not been populated yet.
;;-104 ^ 4 ^ XML parsing warning
;;-105 ^ 6 ^ XML parsing error
;;-106 ^ 6 ^ Error(s) during parsing the report parameters
;;-107 ^ 6 ^ Incompatible version of the GUI
;;-108 ^ 2 ^ Backpull parameters have been loaded.
;;-109 ^ 2 ^ Automatic backpull has been completed.
;;-110 ^ 5 ^ Pointer(s) in the restored data cannot be resolved.
;;-111 ^ 2 ^ Patient "merge" from DFN #|2| to DFN #|3|.
;;-112 ^ 5 ^ Intialization of |2| could not be completed.
;;-113 ^ 6 ^ Cannot run nightly task. User |2| does not have ROR VA IRM key.
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HRORERR20 8441 printed Oct 16, 2024@17:42:17 Page 2
RORERR20 ;HCIOFO/SG - LIST OF ERROR MESSAGES ;1/22/06 7:00pm
+1 ;;1.5;CLINICAL CASE REGISTRIES;**18,22**;Feb 17, 2006;Build 17
+2 ;
+3 ;***************************************************************************
+4 ;***************************************************************************
+5 ; --- ROUTINE MODIFICATION LOG ---
+6 ;
+7 ;PKG/PATCH DATE DEVELOPER MODIFICATION
+8 ;----------- ---------- ----------- ----------------------------------------
+9 ;ROR*1.5*18 APR 2012 C RAY Added error code -112
+10 ;ROR*1.5*22 FEB 2014 T KOPP Added error code -113
+11 ;
+12 ;***************************************************************************
+13 ;***************************************************************************
+14 QUIT
+15 ;
+16 ;***** RETURNS THE TEXT OF THE MESSAGE
+17 ;
+18 ; ERRCODE Error code
+19 ; [.TYPE] Type of the error
+20 ; [ARG1-ARG5] Optional parameters that substitute the |n| "windows"
+21 ; in the text of the message (for example, the |2| will
+22 ; be substituted by the value of the ARG2).
+23 ;
MSG(ERRCODE,TYPE,ARG1,ARG2,ARG3,ARG4,ARG5) ;
+1 SET TYPE=6
if ERRCODE'<0
QUIT ""
+2 NEW ARG,I1,I2,MSG
+3 ;--- Get a descriptor of the message
+4 SET I1=-ERRCODE
SET MSG=$PIECE($TEXT(MSGLIST+I1),";;",2)
+5 SET I1=+$TRANSLATE($PIECE(MSG,U,2)," ")
SET MSG=$PIECE(MSG,U,3,999)
+6 if I1>0
SET TYPE=I1
+7 if MSG?." "
QUIT "Unknown error ("_ERRCODE_")"
+8 ;--- Substitute parameters
+9 SET I1=2
+10 FOR
SET I1=$FIND(MSG,"|",I1-1)
if 'I1
QUIT
Begin DoDot:1
+11 SET I2=$FIND(MSG,"|",I1)
if 'I2
QUIT
+12 XECUTE "S ARG=$G(ARG"_+$TRANSLATE($EXTRACT(MSG,I1,I2-2)," ")_")"
+13 SET $EXTRACT(MSG,I1-1,I2-1)=ARG
End DoDot:1
+14 QUIT $$TRIM^XLFSTR(MSG)
+15 ;
+16 ;***** RETURNS TYPE OF THE MESSAGE
+17 ;
+18 ; ERRCODE Error code
+19 ;
TYPE(ERRCODE) ;
+1 if ERRCODE'<0
QUIT 0
+2 NEW I,TYPE
SET I=-ERRCODE
+3 SET I=$PIECE($TEXT(MSGLIST+I),";;",2)
SET TYPE=+$TRANSLATE($PIECE(I,U,2)," ")
+4 QUIT $SELECT(TYPE>0:TYPE,1:6)
+5 ;
+6 ;***** LIST OF THE MESSAGES (THERE SHOULD BE NOTHING AFTER THE LIST!)
+7 ;
+8 ; The error codes are provided in the table only for clarity.
+9 ; Text of the messages are extracted using the $TEXT function and
+10 ; absolute values of the ERRCODE parameter.
+11 ;
+12 ; Message Type:
+13 ; 1 Debug 4 Warning
+14 ; 2 Information 5 Database Error
+15 ; 3 Data Quality 6 Error
+16 ;
MSGLIST ; Code Type Message Text
+1 ;; -1 ^ 6 ^ Cannot find a descriptor of the registry
+2 ;; -2 ^ 6 ^ Duplicate registry names
+3 ;; -3 ^ 6 ^ Cannot find a descriptor of the selection rule
+4 ;; -4 ^ 6 ^ Duplicate rule names
+5 ;; -5 ^ 6 ^ Circle rule references
+6 ;; -6 ^ 6 ^ Invalid update entry point: |2|
+7 ;; -7 ^ 6 ^ Field '|2|' not found
+8 ;; -8 ^ 6 ^ Duplicate patients in the registry
+9 ;; -9 ^ 5 ^ FileMan DBS call error(s)|2|
+10 ;; -10 ^ 6 ^ Bad registry name: '|2|'
+11 ;; -11 ^ 6 ^ Cannot lock the record(s) of |2|
+12 ;; -12 ^ 6 ^ Cannot load and prepare lab search data
+13 ;; -13 ^ 6 ^ Cannot lock the registries
+14 ;; -14 ^ 6 ^ Cannot prepare selection rules
+15 ;; -15 ^ 6 ^ Error(s) during processing of the patient data
+16 ;; -16 ^ 6 ^ Cannot update demographic data
+17 ;; -17 ^ 6 ^ Invalid entry point: '|2|'
+18 ;; -18 ^ 6 ^ Routine '|2|' does not exist
+19 ;; -19 ^ 6 ^ Cannot load the selection rules
+20 ;; -20 ^ 6 ^ Cannot sort the selection rules
+21 ;; -21 ^ 6 ^ Syntax error in the expression
+22 ;; -22 ^ 6 ^ Cannot prepare data extraction definitions
+23 ;; -23 ^ 6 ^ Cannot set up HL7 environment variables
+24 ;; -24 ^ 6 ^ Cannot send the batch HL7 message
+25 ;; -25 ^ 6 ^ No HL7 event driver protocol
+26 ;; -26 ^ 3 ^ Neither ICN nor SSN is available
+27 ;; -27 ^ 5 ^ Cannot obtain results of the Lab tests
+28 ;; -28 ^ 4 ^ No active registries to |2|!
+29 ;; -29 ^ 1 ^ Non-existent LOINC code |2| in the registry parameters
+30 ;; -30 ^ 5 ^ Duplicate records in the file #95.3 for LOINC code |2|
+31 ;; -31 ^ 4 ^ Cannot remove the patient #|1| from the pending list
+32 ;; -32 ^ 6 ^ Incorrect data extraction period: '|2|-|3|'
+33 ;; -33 ^ 6 ^ Cannot de-queue data extraction task
+34 ;; -34 ^ 6 ^ Cannot open an output file
+35 ;; -35 ^ 6 ^ Device Handler error
+36 ;; -36 ^ 6 ^ Cannot retrieve Patient details (DFN:|1|) from File #|2|
+37 ;; -37 ^ 6 ^ Cannot retrieve details of medication
+38 ;; -38 ^ 6 ^ Cannot retrieve CPT code
+39 ;; -39 ^ 6 ^ Duplicate HL7 message ID in the file #798: '|2|'
+40 ;; -40 ^ 6 ^ Undefined variable: '|2|'
+41 ;; -41 ^ 2 ^ Registry setup has been completed
+42 ;; -42 ^ 4 ^ Task has been interrupted by user or by parent task
+43 ;; -43 ^ 6 ^ Error during the |2|. See log files.
+44 ;; -44 ^ 6 ^ Invalid extraction entry point: '|2|'
+45 ;; -45 ^ 6 ^ Invalid or missing IEN of selection rule
+46 ;; -46 ^ 5 ^ Cannot load registry parameters
+47 ;; -47 ^ 5 ^ Cannot find the '|2|' drug class
+48 ;; -48 ^ 2 ^ Registry '|2|' is inactive
+49 ;; -49 ^ 4 ^ Cannot find HL7 message #|2| to check its status
+50 ;; -50 ^ 6 ^ Cannot create the '|2|' checkpoint!
+51 ;; -51 ^ 6 ^ Cannot complete the '|2|' checkpoint!
+52 ;; -52 ^ 6 ^ Cannot find HL7 message ID in the file #798: '|2|'
+53 ;; -53 ^ 6 ^ Cannot enable the '|2|' protocol
+54 ;; -54 ^ 6 ^ The '|2|' Lab Search is not defined
+55 ;; -55 ^ 4 ^ No indicators are defined for the '|2|' Lab Search
+56 ;; -56 ^ 6 ^ Error code '|2|' is returned by the '|3|'
+57 ;; -57 ^ 4 ^ Error code '|2|' is returned by the '|3|'
+58 ;; -58 ^ 6 ^ File '|2|' not found
+59 ;; -59 ^ 3 ^ ICN checksum is shorter than 6 digits
+60 ;; -60 ^ 6 ^ Subtask #|2| crashed (see TaskMan logs)
+61 ;; -61 ^ 6 ^ Cannot start the registry update in multitask mode
+62 ;; -62 ^ 2 ^ Registry Update subtask #|2| has been scheduled
+63 ;; -63 ^ 6 ^ Data search in file #|2| is not supported
+64 ;; -64 ^ 6 ^ Data element #|3| (file #|2|) is not supported
+65 ;; -65 ^ 6 ^ |4| value of element #|3| (file #|2|) is not supported
+66 ;; -66 ^ 1 ^ Patient was skipped due to counter in the file #798.3
+67 ;; -67 ^ 6 ^ CCR HL7 messages created |2| day(s) ago have not been sent yet.
+68 ;; -68 ^ 6 ^ Invalid header of the HL7 message (or no header at all)
+69 ;; -69 ^ 6 ^ Cannot find the data element
+70 ;; -70 ^ 6 ^ Duplicate names of the data element
+71 ;; -71 ^ 1 ^ User entered the "^"
+72 ;; -72 ^ 6 ^ Timeout
+73 ;; -73 ^ 4 ^ HL7 message #|2| is being processed/transmitted
+74 ;; -74 ^ 6 ^ Number of messages in the batch does not match the BTS
+75 ;; -75 ^ 6 ^ Not all four HL7 encoding characters are defined
+76 ;; -76 ^ 6 ^ The [|2|] option must not be running during installation
+77 ;; -77 ^ 6 ^ Cannot create MailMan message stub
+78 ;; -78 ^ 6 ^ Scheduled subtasks have not been started by TaskMan
+79 ;; -79 ^ 6 ^ Missing or dangling pointer
+80 ;; -80 ^ 6 ^ Cannot find a list item (file #799.1)
+81 ;; -81 ^ 6 ^ Duplicate item codes (file #799.1)
+82 ;; -82 ^ 6 ^ The task '|2|' cannot be scheduled at '|3|'
+83 ;; -83 ^ 6 ^ Cannot find the task #|2| in the ROR TASK file
+84 ;; -84 ^ 6 ^ The task #|2| has not responded on the stop request yet
+85 ;; -85 ^ 6 ^ Invalid task number: '|2|'
+86 ;; -86 ^ 6 ^ Cannot find report parameters (file #799.34)
+87 ;; -87 ^ 6 ^ Duplicate report parameters (file #799.34)
+88 ;; -88 ^ 6 ^ Parameter |2| has an invalid value: '|3|'
+89 ;; -89 ^ 2 ^ No output file has been created
+90 ;; -90 ^ 2 ^ The patient has been deleted from the |2| registry
+91 ;; -91 ^ 6 ^ Illegal attempt to access the registries from the GUI
+92 ;; -92 ^ 6 ^ Cannot re-queue unsent batch HL7 message #|2|
+93 ;; -93 ^ 4 ^ Batch HL7 message #|2| has been re-queued
+94 ;; -94 ^ 2 ^ Data Extraction task #|2| has been scheduled
+95 ;; -95 ^ 3 ^ Invalid value. File: #|2|; IENS: "|3|"; Field(s): |4|
+96 ;; -96 ^ 6 ^ Cannot rename the '|2|' security key to '|3|'
+97 ;; -97 ^ 6 ^ The patient is not in the |2|
+98 ;; -98 ^ 6 ^ Cannot get closed root name of file #|2| (IENS: |3|)
+99 ;; -99 ^ 1 ^ FileMan DBS call error(s)|2|
+100 ;;-100 ^ 3 ^ |2| was returned by the |3|
+101 ;;-101 ^ 2 ^ Your CCR task #|2| has finished (|3|)
+102 ;;-102 ^ 5 ^ Invalid or missing record in the |2| file (IEN: |3|)
+103 ;;-103 ^ 6 ^ The registry |2| has not been populated yet.
+104 ;;-104 ^ 4 ^ XML parsing warning
+105 ;;-105 ^ 6 ^ XML parsing error
+106 ;;-106 ^ 6 ^ Error(s) during parsing the report parameters
+107 ;;-107 ^ 6 ^ Incompatible version of the GUI
+108 ;;-108 ^ 2 ^ Backpull parameters have been loaded.
+109 ;;-109 ^ 2 ^ Automatic backpull has been completed.
+110 ;;-110 ^ 5 ^ Pointer(s) in the restored data cannot be resolved.
+111 ;;-111 ^ 2 ^ Patient "merge" from DFN #|2| to DFN #|3|.
+112 ;;-112 ^ 5 ^ Intialization of |2| could not be completed.
+113 ;;-113 ^ 6 ^ Cannot run nightly task. User |2| does not have ROR VA IRM key.