Skip to main content

Procedure Update

AdvaPACS supports the IHE Procedure Scheduled [RAD-13] transaction for updating existing imaging orders and scheduled procedures via HL7 ORM messages.

Supported Trigger Events

The following trigger events are supported by AdvaPACS:

Trigger EventAction
ORM^O01Imaging order / scheduled procedure.
Note

This shall be used after the first time a particular Study Instance UID is sent. If it has not been sent previously, then Procedure Scheduled [RAD-4] should be used.

Expected Actions

The Patient will either be created or updated based on matching with the Patient ID(s).

The Order will be located by Study Instance UID and updated.

Message Structure

Procedure Scheduled messages use the standard ORM^O01 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, including the order control, order status, and order identifiers.
OBRYesContains the requested procedure and scheduled procedure step details, including the accession number, modality, and scheduled date and time.
ZDSOptionalContains the DICOM Study Instance UID associated with the scheduled procedure.

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 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 describes the patient's encounter at the requesting facility. While many fields are optional for outpatient imaging, the segment can be used to communicate visit information, patient class, referring provider, and visit identifiers when available.

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. 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-

The following Order Control and Order Status combinations are supported when updating or cancelling an existing order. The Order Control value is provided in ORC-1, while the corresponding Order Status is provided in ORC-5.

ORDER CONTROLDESCRIPTIONORDER STATUS
CACancels the existing order.CA
DCDiscontinues the existing order.CA
XOUpdates an order that is still scheduled or in progress.SC
XOUpdates an order that has been completed.CM

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 order.

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-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-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.

ZDS

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

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 uses an ORM^O01 message to update an existing scheduled procedure. The order is identified using the existing order and procedure identifiers provided in the ORC and OBR segments.

MSH|^~\&|RIS|HOSPITAL|ADVAPACS||20260706113000+1200||ORM^O01|MSG000002|P|2.5.1
PID|1||123456^^^HOSPITAL^MR||SMITH^JOHN^MICHAEL||19800115|M|||123 Example Street^^Auckland^^1010^NZ
PV1|1|O|||||1234^SMITH^JANE
ORC|XO|ORD123456^^HOSPITAL|ORD123456^^HOSPITAL||CM
OBR|1|ORD123456^^HOSPITAL|ORD123456^^HOSPITAL|CTCHESTCON^CT Chest with Contrast^L||||||||||||1234^SMITH^JANE||ACC123456^^HOSPITAL|RP123456|SPS123456||||CT|||^^^20260706140000

In this example, the following fields contain the key information used to update the procedure:

FieldDescription
ORC-1Indicates the Order Control action to perform. XO updates an existing order.
ORC-5Contains the Order Status. CM indicates the procedure is now complete.
ORC-2Contains the Placer Order Number used to identify the existing order.
ORC-3Contains the Filler Order Number used to identify the existing order.
OBR-4Contains the updated procedure code and description.
OBR-18Contains the Accession Number.
OBR-19Contains the Requested Procedure ID.
OBR-20Contains the Scheduled Procedure Step ID.
OBR-27Contains the updated scheduled date and time.

The patient is matched using the Patient ID(s) in PID-3, while the existing order and procedure are updated using the identifiers provided in the message.

OLD

AdvaPACS implements the Patient Registration [RAD-1] transaction. The source documentation from IHE can be found here.

Supported Versions

AdvaPACS supports HL7 version 2.3.1 and 2.5.1.

Supported Trigger Events

  • ADT^A01
  • ADT^A04
  • ADT^A05
  • ADT^A08
  • ADT^A11
  • ADT^A38

Expected Actions

A01, A04, A05 - will create a new Patient record if a Patient matching the provided Patient ID(s) can not be located. Ignored if there is an existing record.

A11, A38 - will attempt to delete a Patient record if found. The Patient will only be deleted if there are no resources associated with it.

A08 - will update an existing Patient. If no Patient is found by the provided Patient ID(s) then the message will be ignored.

Message Semantics

Required segments for ADT^* messages.

ADTDescription
MSHMessage Header
EVNEvent Type
PIDPatient Identification
PV1Patient Visit