Skip to main content

Inbound Reports

AdvaPACS can receive reports from external reporting systems using HL7 ORU^R01 messages. These messages contain the patient, order, and report information required to associate the incoming report with an existing study. Report content is provided in the OBX segment and can be sent as text, formatted text, or encapsulated data such as HTML or PDF.

Supported Trigger Events

The following trigger events are supported by AdvaPACS.

Trigger EventAction
ORU^R01Observation result message used to create or update a report in AdvaPACS.

Expected Actions

When an ORU^R01 message is received, AdvaPACS processes the patient, order, and report information contained in the message.

ResourceAction
PatientThe patient is created or updated based on matching with the Patient ID(s).
OrderThe order-related segments are processed according to the supported order creation and update behaviour.
ReportThe report is created for the associated study. If a report already exists, it is overwritten by the incoming report.

Message Structure

Inbound Report messages use the standard ORU^R01 message structure. The following segments are supported:

SegmentRequiredDescription
MSHYesIdentifies the message type, sender, receiver, and other message-level information.
PIDYesContains the patient identifiers and demographics.
PV1OptionalContains patient visit information, including the patient class and referring doctor where applicable.
ORCYesContains common order information and identifiers associated with the report.
OBRYesIdentifies the order, procedure, and study associated with the report.
OBXYesContains the report content and related observation information. Multiple OBX segments may be included where required.
ZDSOptionalContains the DICOM Study Instance UID used to identify the study associated with the report.

The following reference provides the supported fields for each HL7 segment used in this workflow. Unless otherwise stated, fields not listed are ignored during processing.

MSH

The MSH (Message Header) segment identifies the message type, sender, receiver, version and other information required to process an HL7 message. All patient registration messages sent to AdvaPACS must include a valid MSH segment.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
MSH-1Field Separator1STR-
MSH-2Encoding Characters4STR-
MSH-3Sending Application227HDR+-
MSH-4Sending Facility227HDR+-
MSH-5Receiving Application227HDR-
MSH-6Receiving Facility227HDR+-
MSH-7Date/Time of Message26TSR-
MSH-9Message Type15MSGR0076
MSH-10Message Control ID199STR-
MSH-11Processing ID3PTR0103
MSH-12Version ID60VIDR0104
MSH-15Accept Acknowledgment Type2IDO0155
MSH-16Application Acknowledgment Type2IDO0155

PID

The PID (Patient Identifier) segment contains the patient identifiers and demographic information used to identify the patient associated with the report.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
PID-1Set ID - PID4SIO-
PID-3Patient Identifier List20CXR-
PID-5Patient Name48XPNR-
PID-7Date/Time of Birth26TSR2-
PID-8Sex1ISR0001
PID-13Phone Number - Home40XTNO-
PID-29Patient Death Date and Time26TSO-
PID-30Patient Death Indicator1IDO0136

Assigning Authorities

If the Assigning Authorities feature of AdvaPACS is enabled, Patient IDs must include Assigning Authority. The first subcomponent (namespace ID) of Assigning Authority shall be populated. If the second and third subcomponents (universal ID and universal ID type) are also populated, they shall reference the same entity as is referenced in the first subcomponent.

PV1

The PV1 (Patient Visit) segment contains visit information associated with the patient and report, including the patient class, referring doctor, and visit number.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
PV1-1Set ID - PV14SIO-
PV1-2Patient Class1ISR0004
PV1-8Referring Doctor60XCNC0010
PV1-19Visit Number20CXC-

ORC

The ORC (Common Order) segment contains common order information used to identify and process the order associated with the report. This includes the order control, order numbers, order status, scheduled date and time, and organisation information.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
ORC-1Order Control2IDR0119
ORC-2Placer Order Number22EIR2-
ORC-3Filler Order Number22EIR-
ORC-4Placer Group Number22EIO-
ORC-5Order Status2IDR0038
ORC-7Quantity/Timing200TQR-
ORC-10Entered By250XCNO0010
ORC-13Enterer's Location80PLR2-
ORC-17Entering Organization60CER2-

All (ORC, OBR) segment pairs sent in the Procedure Scheduled message shall be present in the Procedure Update message, not only the pairs introducing a change.

Quantity/Timing shall be the date and time of the Scheduled Procedure Step (in the fourth component).

OBR

The OBR (Observation Request) segment contains information about the requested procedure and Scheduled Procedure Step associated with the report. It also contains key reporting information, including the reporting and verifying radiologists.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
OBR-1Set ID - OBR4SIR-
OBR-2Placer Order Number22EIR2-
OBR-3Filler Order Number22EIR-
OBR-4Universal Service ID200CER-
OBR-18Placer Field 160STR-
OBR-19Placer Field 260STR-
OBR-20Filler Field 160STR-
OBR-24Diagnostic Service Section ID10IDR0074
OBR-27Quantity/Timing200TQR-
OBR-32Principal Result Interpreter200NDLO-
OBR-33Assistant Result Interpreter200NDLO-
OBR-34Technician200NDLO-

The following fields have specific uses within AdvaPACS:

FieldAdvaPACS ValueNotes
OBR-4Universal Service IDComponents 1–3 contain the Universal Service ID. Components 4–6 may contain the Scheduled Protocol Code.
OBR-15LateralityContains the procedure laterality when it is not already encoded in OBR-4.
OBR-18Accession NumberMust not exceed 16 characters.
OBR-19Requested Procedure IDAll OBR segments within the same message must contain the same Requested Procedure ID.
OBR-20Scheduled Procedure Step IDMultiple Scheduled Protocol Codes may reference the same Scheduled Procedure Step ID.
OBR-24DICOM ModalityContains the modality associated with the Scheduled Procedure Step.
OBR-27Report Date/TimeContains the date and time associated with the report.
OBR-32Reporting RadiologistIdentifies the radiologist who authored the report.
OBR-33Verifying RadiologistIdentifies the radiologist who verified the report.
OBR-44Requested Procedure CodeComponents 1–3 contain the Requested Procedure Code. Component 5 may optionally contain the Requested Procedure Description.

Note

The Placer Order Number and Filler Order Number provided in OBR-2 and OBR-3 must match the corresponding values in ORC-2 and ORC-3. Laterality may be included in the Universal Service ID in OBR-4. If it is not included, the laterality should be provided separately in OBR-15.

OBX

The OBX (Observation/Result) segment contains the report content and defines how that content is encoded.

The following fields are supported:

FIELDNAMELENGTHDATA TYPEOPT.TABLE
OBX-1Set ID - OBX4SIO-
OBX-2Value Type3IDR0125
OBX-5Observation Value99999VariesR-
OBX-11Observation Result Status1IDR0085
OBX-14Date/Time of the Observation26TSO-

ZDS

The ZDS (Additional Identification Information) segment contains the DICOM Study Instance UID used to identify the study associated with the report.

FIELDNAMELENGTHDATA TYPEOPT.TABLE
ZDS-1Study Instance UID200RPR-

The Study Instance UID is provided in ZDS-1 using the following structure:

ComponentValue
ZDS-1.1DICOM-compliant Study Instance UID
ZDS-1.3Application
ZDS-1.4DICOM

Example Message

The following example sends an HTML report encoded as Base64.

MSH|^~\&|RIS|HOSPITAL|ADVAPACS||20260706103000+1200||ORU^R01^ORU_R01|MSG000001|P|2.5.1
PID|1||123456^^^HOSPITAL^MR||SMITH^JOHN^MICHAEL||19800115|M
ORC|RE||||CM
OBR|1|||CTCHEST^CT Chest^L||||||||||||||ACC123456^HOSPITAL||||||CT|||^^^20260706100000+1200|||||1234^JONES^SARAH|5678^BROWN^DAVID
OBX|1|ED|||^text^html^Base64^PHA+Tm8gYWN1dGUgY2FyZGlvcHVsbW9uYXJ5IGFibm9ybWFsaXR5LjwvcD4=||||||F|||20260706102500+1200

In this example, the following fields provide the key report information:

FieldDescriptionExample
OBR-27Contains the report date and time.^^^20260706100000+1200
OBR-32Identifies the reporting radiologist who authored the report.1234^JONES^SARAH
OBR-33Identifies the verifying radiologist who verified the report.5678^BROWN^DAVID
OBX-5Contains the report content as Base64-encoded HTML.^text^html^Base64^<Base64 encoded report>
OBX-11Contains the report status.F