MRT-260 · Lesson 8 of 12 · 24 min

HL7, orders and the electronic health record

▶ Video coming soon A video version of this lesson is on the way.

The order on Priya Langford’s worklist read: "XR chest. Indication: SOB." Nothing else. The patient, Mrs. Ottilie Brannagh, was 81, had come from the emergency department, and was on oxygen. Priya checked the EHR and found the triage note: shortness of breath for two days, fever, a central venous catheter inserted at another hospital last week, and a question from the emergency physician about whether the catheter tip was in the right place. "If I had only read the order," Priya told Joanne Whitcombe later, "I would have done a routine PA and lateral and maybe collimated off the catheter. The question was in the record, but it never made it into the order." Joanne nodded. "Everything you need travels through messages between systems. When the messages carry the wrong thing, or nothing, the examination suffers."

Lesson 7 followed an examination from order to report through the RIS and PACS. This lesson looks at the messages that carry orders, patient information and reports between those systems and the electronic health record (EHR), at the HL7 standards that define those messages, and at how the quality of an order affects the quality of the examination. MLA-170 Laboratory Information and Quality Systems introduced HL7 and FHIR from the laboratory side; the concepts are the same, and this lesson applies them to imaging.

The electronic health record and its neighbours

The electronic health record is the hospital’s central clinical system: registration, orders, notes, medications, results, reports and images are all accessible from it. Around it sit specialized systems such as the RIS, PACS, laboratory information system, pharmacy system and many others. Some hospitals run a single large EHR with built-in radiology functions; others connect separate best-of-breed systems. In both cases, information has to move reliably between components, and most of it moves as standardized messages.

Moving information between systems is called interfacing. Most hospitals route messages through an interface engine, a system that receives messages from one application, checks and translates them, and delivers them to one or more others. The interface engine keeps logs of every message, which makes it possible to trace what was sent, when and to whom, an essential tool when an order goes missing.

HL7 International and HL7 version 2

HL7 (Health Level Seven) International is the standards organization that publishes the most widely used standards for exchanging clinical and administrative health data. Its version 2 messaging standard, first published in the late 1980s, remains the workhorse of hospital interfaces in both Canada and the United States. A version 2 message is a block of text divided into segments, each beginning with a three-letter code and containing fields separated by delimiters. Each message has a type and a trigger event, written together as, for example, ADT^A01 for an admission.

Common HL7 version 2 segments in radiology interfaces. Local implementations vary; interface specifications define exactly which fields are used.
SegmentNameTypical content in an imaging message
MSHMessage headerSending and receiving applications, date and time, message type, control ID
PIDPatient identificationMedical record number, health number, name, date of birth, sex, address
PV1Patient visitPatient class (inpatient, outpatient, emergency), location, attending physician
ORCCommon orderOrder control code (new, cancel, change), order numbers, ordering provider
OBRObservation requestExamination code and name, accession number, clinical information, priority, times
OBXObservation resultReport text or coded results, with status and units where relevant
NTENotes and commentsFree-text comments attached to an order or result

The main message types in imaging are:

  • ADT (admission, discharge and transfer) messages, which keep every system’s copy of patient demographics and location current. Examples include registration, admission, transfer, update of patient information and merge of two patient records. When a merge message reaches PACS, it should move the images of the duplicate record into the surviving record.
  • Order messages, which carry new orders, changes and cancellations from the EHR to the RIS. Older interfaces use a general order message; newer ones may use a message designed for imaging orders.
  • Scheduling messages, which carry appointment information.
  • Result messages (ORU), which carry the radiologist’s report from the RIS or reporting system back to the EHR, including the report status: preliminary, final, or corrected.
  • Acknowledgements (ACK), returned by the receiving system to confirm that a message was accepted, or to report an error.
A message flow diagram. The EHR sends ADT messages and order messages to an interface engine in the centre. The interface engine forwards them to the RIS and ADT messages to PACS. The RIS sends a DICOM modality worklist to the modality, which sends DICOM images to PACS. The reporting system sends an ORU result message through the interface engine back to the EHR. Acknowledgement arrows return along each HL7 link. A FHIR box beside the EHR shows ServiceRequest, ImagingStudy and DiagnosticReport resources used by web viewers and apps.
Figure 1. HL7 version 2 messages and DICOM services in imaging workflow, with FHIR resources used by newer applications.

Where HL7 meets DICOM

The modality does not usually receive HL7 messages directly. The RIS, or a worklist broker, translates the HL7 order into a DICOM modality worklist entry (Lesson 6). The fields must map correctly: the patient ID in the PID segment becomes the DICOM patient ID, the accession number in the order becomes the DICOM accession number, the requested procedure code becomes the scheduled procedure, and the reason for the examination can be carried into a DICOM attribute for display on the console. If the mapping drops the reason for examination, the technologist never sees it at the console, which is exactly what happened to Priya’s order: the indication was abbreviated at entry, and the richer information in the triage note never reached the worklist.

FHIR

FHIR (Fast Healthcare Interoperability Resources) is HL7’s newer standard. It represents health information as resources, small, well-defined pieces of data such as Patient, Practitioner, ServiceRequest, Observation and DiagnosticReport, which can be read, created and updated over the web using the same technologies as other internet applications. As MLA-170 noted, the current published release is FHIR Release 5, with the next release in balloting. Imaging-specific resources include ImagingStudy, which summarizes a DICOM study and points to where its images can be retrieved, often through DICOMweb, and, in Release 5, ImagingSelection, which identifies particular images or regions.

FHIR does not replace HL7 version 2 overnight. Most hospitals run both: version 2 for high-volume internal interfaces and FHIR for patient portals, mobile apps, decision support tools and data exchange between organizations. A common pattern is an app, such as an image viewer or decision support tool, launched from within the EHR using the SMART on FHIR approach, so that it opens with the right patient already selected and only the access that user is allowed.

In Canada, Canada Health Infoway and provincial health agencies promote FHIR-based exchange through Canadian implementation guides, alongside established version 2 interfaces and provincial diagnostic imaging repositories.

Order quality and clinical information

An imaging order is a request for a consultation. The radiologist needs to know what clinical question the examination should answer, and the technologist needs enough information to choose the right projections and technique and to anticipate problems. A good order includes the examination, the side and site, a clear clinical indication with relevant history, the specific question, priority, any relevant allergies or contraindications, pregnancy status where relevant, and mobility or isolation needs.

Poor clinical information is a common and well-documented problem. Indications such as "pain", "rule out pathology" or a single abbreviation do not tell the radiologist what to look for and make it harder to protocol, interpret and justify the examination. Departments improve order quality through structured order forms with required fields, feedback to ordering providers, clinical decision support and, for the technologist, the habit of checking the record when the indication is unclear.

Worked problem

Auditing order quality

Larchmere audits 200 consecutive emergency chest radiograph orders. The audit standard is that the indication states a symptom or sign and a specific clinical question. 122 orders meet the standard, 51 state a symptom only, and 27 give only an abbreviation or "query pathology". What percentage meet the standard, and what would be a reasonable next step?

Show solution
  1. Compliant orders = 122 ÷ 200 × 100 = 61 percent.
  2. Symptom only = 51 ÷ 200 × 100 = 25.5 percent.
  3. Abbreviation or nonspecific = 27 ÷ 200 × 100 = 13.5 percent.

Answer: Only 61 percent meet the standard. Reasonable next steps include sharing the results with emergency physicians, adding a required "clinical question" field to the order form, and re-auditing in three months to see whether the change worked. This is the PDCA cycle from Lesson 1 applied to orders.

Clinical decision support and appropriateness

Clinical decision support (CDS) tools in the EHR can advise ordering providers whether an examination is appropriate for a given clinical scenario, based on evidence-based guidelines such as the American College of Radiology Appropriateness Criteria. Used well, CDS reduces unnecessary imaging and radiation exposure. In Canada, appropriateness efforts include Choosing Wisely Canada recommendations, provincial guidance and decision support integrated into some provincial and hospital ordering systems; the Canadian Association of Radiologists has published referral guidelines for imaging. MRT-140 Radiation Protection and Radiobiology discussed justification as the first principle of radiation protection; decision support is one practical way of building justification into the order.

Reports and results

When the radiologist signs a report, a result message carries it to the EHR. Reports can be preliminary (for example, from a resident or a provisional overnight read), final, or corrected by an addendum. The EHR must display the status clearly, and corrected reports must notify the ordering provider so that clinical decisions are revisited. Interfaces must handle these statuses correctly: a failure that lets a preliminary report appear as final, or that drops an addendum, is a patient safety problem.

Increasingly, reports use structured reporting templates, with standard headings and, sometimes, coded findings drawn from terminologies such as RadLex, maintained by the Radiological Society of North America, and procedure codes harmonized with LOINC. Structured reports are easier to read, easier to search and easier to use for quality measurement and research.

Patients now often see their reports, sometimes before their physician does. In Canada, patient access to imaging reports through portals varies by province and organization, under provincial health privacy laws that give patients a right of access to their records. This has made clear, careful report wording more important.

Turnaround and interface monitoring

Interfaces fail in quiet ways. A message may be rejected because a required field is missing; a queue may back up because a receiving system is slow; a mapping error may send every order for one examination to the wrong room. Interface engines and PACS dashboards monitor message volumes and error queues, and alert analysts when something unusual happens. Technologists notice interface problems as missing worklist entries, studies that do not appear in PACS or reports that do not reach the EHR, and should report them promptly with specific examples, including accession numbers and times.

Worked problem

Estimating an interface backlog

During a slowdown, order messages arrive at 40 per minute, but the receiving system processes only 30 per minute. The slowdown lasts 20 minutes. After the fix, the system processes 60 messages per minute while new messages continue at 40 per minute. How big is the backlog, and how long does it take to clear?

Show solution
  1. Backlog growth during the slowdown = 40 − 30 = 10 messages per minute.
  2. Backlog after 20 minutes = 10 × 20 = 200 messages.
  3. After the fix, the backlog shrinks by 60 − 40 = 20 messages per minute.
  4. Time to clear = 200 ÷ 20 = 10 minutes.

Answer: A 200-message backlog that clears in about 10 minutes. During those 30 minutes, some orders were not on modality worklists, so technologists should know the department’s procedure for such delays rather than typing patient details manually.

Turnaround times are usually summarized with the median and a high percentile, such as the 90th, rather than the mean, because a few very long delays distort the mean. For example, if ten emergency reports have turnaround times of 18, 22, 25, 25, 28, 30, 34, 41, 55 and 190 minutes, the mean is 46.8 minutes, but the median is 29 minutes (the average of 28 and 30). The single 190-minute delay pulls the mean far above what most patients experienced, though it is exactly the case a quality review should examine.

The technologist’s role in information quality

Technologists add information to the record as well as using it: the examination performed, any deviation from the protocol, positioning limitations, contrast and its lot number where applicable, dose information, patient complaints or incidents, and notes for the radiologist. These details travel with the study and appear in reports and audits. Clear, factual, timely entries, without abbreviations that others may misread, are part of professional practice in both countries.

Priya’s examination of Mrs. Brannagh included the catheter, and the radiologist reported its tip in good position. Priya also entered a note in the examination record summarizing the clinical question. At the next quality meeting, Delphine Okafor-Marsh presented the order audit, and the emergency department agreed to test a required "clinical question" field. Priya’s order became the example on the first slide.

Common mistakes

  • MistakeHL7 version 2 is obsolete now that FHIR exists.

    InsteadVersion 2 remains the workhorse of hospital interfaces; FHIR is growing alongside it, especially for apps, portals and exchange.

  • MistakeModalities receive HL7 orders directly.

    InsteadThe RIS or a broker usually translates HL7 orders into DICOM modality worklist entries.

  • MistakeIf the order says only "pain", the technologist should do the routine views without checking anything else.

    InsteadWhen the indication is unclear, check the record or ask, because the clinical question shapes projections, collimation and technique.

  • MistakeA preliminary report and a final report are the same once they reach the EHR.

    InsteadReport status matters; interfaces and displays must distinguish preliminary, final and corrected reports, and corrections must notify the ordering provider.

  • MistakeThe mean is the best summary of report turnaround time.

    InsteadA few long delays distort the mean; medians and high percentiles describe turnaround better.

Summary and key terms

  • The EHR, RIS, PACS and other systems exchange information through interfaces, usually via an interface engine that logs every message.
  • HL7 version 2 messages are built from segments such as MSH, PID, PV1, ORC, OBR and OBX; ADT, order, scheduling, result and acknowledgement messages drive imaging workflow.
  • The RIS or a broker maps HL7 orders to DICOM modality worklist entries; mapping errors can lose identifiers or clinical information.
  • FHIR represents data as web-accessible resources, including ImagingStudy, and runs alongside version 2, especially for apps, portals and exchange.
  • Order quality and clinical decision support shape justification, protocoling and interpretation; audits and structured forms improve them.
  • Report status, structured reporting, patient access, interface monitoring and turnaround measures (medians and percentiles) are all part of information quality.
Electronic health record (EHR)
The central clinical information system holding a patient’s orders, notes, results, reports and links to images.
Interface engine
Software that receives, translates, routes and logs messages between clinical systems.
HL7 version 2
HL7’s widely used messaging standard, composed of segments and fields.
ADT message
An HL7 message about admission, discharge, transfer or update of patient information.
ORU message
An HL7 result message, used to send reports to the EHR.
FHIR
Fast Healthcare Interoperability Resources, HL7’s web-based standard built on resources.
ImagingStudy
A FHIR resource summarizing a DICOM study and where its images can be retrieved.
Clinical decision support (CDS)
Tools that give clinicians evidence-based advice at the point of ordering or care.
Structured reporting
Reporting with standard templates and, often, coded findings.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Which HL7 segment carries the patient’s identifiers and demographics?

    Show answer

    PID, the patient identification segment.

  2. What should happen in PACS when an ADT merge message arrives for two records belonging to the same patient?

    Show answer

    Images filed under the duplicate record should move to the surviving record so all studies are together.

  3. Give four elements of a good imaging order.

    Show answer

    Any four of: examination, side and site, clinical indication and history, specific question, priority, allergies or contraindications, pregnancy status where relevant, mobility or isolation needs.

  4. Turnaround times are 12, 15, 15, 20, 26, 30 and 95 minutes. What are the mean and median?

    Show answer

    Mean = 213 ÷ 7 ≈ 30.4 minutes; median = 20 minutes.

  5. Why might a technologist never see the clinical question even when the ordering physician wrote it?

    Show answer

    It may be in a note rather than the order, or the interface mapping from HL7 order to DICOM worklist may truncate or drop the reason for examination.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz