Print Page as PDF
RAMAG EXAM REGISTER ICR (5069)

RAMAG EXAM REGISTER    ICR (5069)

Name Value
NUMBER 5069
IA # 5069
DATE CREATED 2008/01/16
CUSTODIAL PACKAGE RADIOLOGY/NUCLEAR MEDICINE
USAGE Private
TYPE Remote Procedure
DBIC APPROVAL STATUS APPROVED
NAME RAMAG EXAM REGISTER
GENERAL DESCRIPTION
The RAMAG EXAM REGISTER remote procedure registers the
Radiology exam and returns identifiers of the new case(s) in the RAD/NUC MED
PATIENT file (#70). It also sends all required notifications.

Input Parameters
================

RAOIFN        IEN of the order in the RAD/NUC MED ORDERS file (#75.1).

EXMDTE        Date and time of the exam in HL7 format (TS):
YYYYMMDDHHMM[+/-ZZZZ]. If seconds are provided,
they are ignored. The date must be exact and the
time is required.

[RAMSC]       Items of this list define miscellaneous/optional
order parameters. Each record has 3 or more pieces
separated by '^':

^01: Parameter name
^02: Index (for multiples and word-processing)
^03: Value1
^04: Value2
...

The following parameters are supported by this remote
procedure:

BEDSECT^^{IEN #42.4}
Internal value for the BEDSECTION field (19) of
the EXAMINATIONS multiple (sub-file #70.03).

EXAMCAT^^{C|E|I|O|R|S}
Value for the CATEGORY OF EXAM field (4) of the
EXAMINATIONS multiple (sub-file #70.03).

FLAGS^^{flags}
Flags that control the execution (can be combined):

A  If this flag is provided, then the registration
entry point adds the new case to the existing
ones with the same date/time instead of
returning the error code -28.

If the existing date/time record stores an exam
set and the "D" flag is not provided, then the
error code -54 is returned.

D  If there is an existing case with the same
date/time, then the time of the new case is
incremented by 1 minute until an unused date/time
is found.

If the "A" flag is also provided, then time
increments also stop when a non-examset
date/time record is found.

If the date is also changed during the time
modification, then the case is not registered and
the error code -29 is returned.

PRINCLIN^^{IEN #44}
Internal value for the PRINCIPAL CLINIC field (8) of
the EXAMINATIONS multiple (sub-file #70.03).

RAPROC^{Seq#}^{IEN #71}^{IEN #71.2}^{IEN #71.2}^...
Radiology procedure and optional modifiers.

SERVICE^^{IEN #49}
Internal value for the SERVICE field (7) of
the EXAMINATIONS multiple (sub-file #70.03).

SINGLERPT^^{0|1}
If this parameter is defined and not 0, then all
cases should be associated with the same order
and they will share the same report. See the
MEMBER OF SET (25) and IMAGING ORDER (11) fields
of the sub-file #70.03 for more details.

TECHCOMM^^{text}
Value for the TECHNOLOGIST COMMENT field (4) of
the ACTIVITY LOG multiple (sub-file #70.07).

WARD^^{IEN #42}
Internal value for the WARD field (6) of
the EXAMINATIONS multiple (sub-file #70.03).

Records can be added to the list in any order.

Example:

with RPCBroker.Param[2] do
begin
PType := list;
Mult[1] := 'BEDSECT^^12';
Mult[2] := 'SERVICE^^43';
Mult[3] := 'WARD^^456';
Mult[4] := 'EXAMCAT^^I';
end;

Results
=======

A negative value of the first '^'-piece of the Results[0] indicates that an
error occurred during the execution of the remote procedure. In this case, the
second piece of the Results[0] will contain number of the error descriptors
returned in the subsequent nodes of the Results array.

Results[0]            Result descriptor
^01: The last error code
^02: Number of error descriptors

Results[i]            Error descriptor
^01: Error code
^02: Message
^03: Error location
^04: Error type

Results[j]            Line of the additional info
^01: "" (empty)
^02: Text

Error descriptors are returned in reverse chronological order (most recent
first).

Otherwise, number of registered examinations is returned in the Results[0] and
identifiers of the examinations are returned in the subsequent elements of the
array.

Results[0]            Number of registered examinations

Results[i]            Exam/case identifiers
^01: IEN of the patient in the file #70
^02: IEN in the REGISTERED EXAMS multiple
^03: IEN in the EXAMINATIONS multiple
^04: Case number
^05: Accession number
SSS-MMDDYY-NNNNN  if RA*5*47 is installed;
MMDDYY-NNNNN  otherwise.
^06: Actual date and time of the case in
HL7 format (TS): YYYYMMDD[HHMM[+/-ZZZZ]]

Notes
=====

See comments in the source code of the RAMAG03 routine and description of the
RAMAG EXAM REGISTER remote procedure for additional and/or most recent
details.
STATUS Active
DURATION Till Otherwise Agreed
SUBSCRIBING PACKAGE IMAGING
DATE ACTIVATED 2008/10/06