Mykhailo Ralduhin

Written by: Senior QA Engineer

Mykhailo Ralduhin

Posted: 25.11.2026

27 min read

One patient, one admission, nine hand-offs between systems built by different vendors in different decades. Each hand-off is a message – an HL7 segment, a DICOM object, an X12 transaction, a FHIR resource – and each message is where clinical software fails.

This article follows a single encounter through those nine hand-offs and, for each, lists what goes wrong in the message, what goes wrong in the system behind it, and the tests that catch both. It closes with the validation and regulatory layer that sits under all of them.

We have run 50+ healthcare engagements since 2010 – glucose monitoring, patient engagement, dental case management, behavioral health, telehealth; our healthcare software testing services page describes the service. This is how we think about the systems.

How to read this article. Nine sections, one per hand-off, in the order a patient meets them. Each has the same five blocks: the hand-off and its standard · what goes wrong in the message · what goes wrong in the system · tests · a note from one of our projects where we have one. Message names are written as the standards write them (ADT^A01, ORU^R01, C-STORE) and defined on first use.

Ready to take your software quality to the next level?

Why medical software testing is a different discipline

Medical software testing is different because the acceptance criterion is patient safety, the integration stack spans four decades of standards, and the software itself is regulated as a product.

1.

A defect can be a dose. In most software a wrong number is a refund. In clinical software it is a wrong medication order, a missed critical lab value or an image filed under the wrong patient. ECRI's 2025 list of the top health technology hazards puts AI-enabled technologies first and mishandled temporary holds on medication orders seventh – both are software behaviors.

2.

Interoperability is decades deep. HL7 version 2 messages designed in the late 1980s run next to FHIR R4 APIs; DICOM from 1993 carries every image; X12 transactions from the 1990s carry every claim. One hospital runs all of them at once, through an integration engine, with a different vendor on each end.

3.

The software is a regulated product. FDA clearance for software as a medical device (SaMD), 21 CFR Part 11 for electronic records and signatures, EU MDR, IEC 62304 for the software lifecycle, ONC certification for EHRs, CLIA for laboratories. Sedgwick counted 1,059 US medical device recall events in 2024, a four-year high, and software and connectivity are a growing share of them.

4.

Validation, not just testing. Regulated systems require documented evidence – installation, operational and performance qualification – that the software does what the user requirements say.

5.

PHI is everywhere. HIPAA and GDPR govern every environment, including test; production data never enters a test system, de-identified or otherwise, without a formal process.

6.

The user is interrupted. Clinicians use the software between patients, on shared workstations, under time pressure. A usability failure is a safety failure, which is why coverage has to extend beyond the happy path – the argument is made in full in our article on why high test coverage matters for healthcare apps.

Hand-off 1 — ADT: the patient arrives

The hand-off. Registration in the hospital information system (HIS) emits HL7 v2 ADT messages – Admit/Discharge/Transfer – to every downstream system: ADT^A01 admit, A04 register, A08 update, A03 discharge, A40 merge. Everything that follows keys on the patient identifier these messages carry.

What goes wrong in the message

1.

The PID segment carries an identifier that one receiver truncates or re-formats, and the same patient becomes two.

2.

An A08 update arrives before the A01 it updates; the receiver drops or mis-applies it.

3.

An A40 merge is processed by half the receivers; the other half keep two charts, and results land in the wrong one.

4.

Names with diacritics or non-Latin characters are mangled by an encoding mismatch.

5.

Custom Z-segments that one vendor requires are stripped by another's parser.

What goes wrong in the system

1.

Duplicate patient records – the root cause of most downstream clinical errors.

2.

Bed-management state out of sync with transfers; a patient is in two beds or none.

3.

Encounter numbers collide across facilities after a merger of two hospitals' systems.

Tests

  • Message contract tests per interface, built from a de-identified library of production-shaped messages, run on a schedule against the integration engine.

  • Ordering and replay tests: A08 before A01, duplicate A01, A40 after results have been filed.

  • Merge propagation tests that assert the state in every receiver, not only the sender.

  • Master patient index (MPI/EMPI) matching fixtures: twins, name changes, transliterations, shared addresses.

  • Encounter-number uniqueness tests across facilities and systems.

Registration, bed management, transfers and the ADT feed that drives them are the core of our hospital management software testing work.

Hand-off 2 — The order: CPOE and the EHR

The hand-off. A clinician enters an order in the electronic health record's computerized provider order entry (CPOE). The EHR emits HL7 ORM^O01 or OMG^O19 – or, increasingly, a FHIR ServiceRequest or MedicationRequest – to the lab, radiology or pharmacy system.

What goes wrong in the message

1.

The local order code maps to the wrong LOINC, SNOMED CT or CPT code for one test in a thousand.

2.

The STAT priority flag is lost in translation and an urgent order queues as routine.

3.

An order cancellation or modification does not propagate; the lab still draws, the radiology department still scans.

4.

Allergy, weight or renal function is not included where the receiving system's dose check needs it.

What goes wrong in the system

1.

Clinical decision support (CDS) fires so many alerts that clinicians override them all – or a configuration change suppresses the one that mattered.

2.

An order set carries an outdated default dose after a formulary change.

3.

Effective-dated formulary and protocol changes are applied immediately or never.

4.

The audit trail does not capture who modified an order and when.

5.

Downtime procedures – read-only mode, paper forms, reconciliation on recovery – have never been exercised.

Tests

  • Code-mapping matrices regenerated from the terminology server on every update and asserted end to end.

  • Cancel and modify propagation tests across every receiving system.

  • CDS golden tests: fixed patient contexts → expected alerts, including the cases where no alert must fire.

  • Order-set version tests on every formulary or protocol change.

  • Audit-trail completeness assertions on every order mutation.

  • A planned-downtime drill run as a test scenario, including reconciliation when the system returns.

EMR software testing at this level is largely integration and rules testing; the fundamentals are in our guide on how to test healthcare applications, and the specifics of validating the flows between systems are in how to test data integration pipelines in healthcare software. EHR test automation that covers CDS and order logic rather than screens is the focus of our EHR/EMR systems testing page.

From our projects – Catalyst (Therapy Brands). Catalyst is a web and mobile platform for Board Certified Behavior Analysts that collects, organizes and processes behavioral data and produces reports, charts and documents – the EHR of behavioral therapy. Over five years two manual QA engineers built about 1,000 test cases in Azure DevOps and 150 pages of Confluence documentation; of the bugs they found, 25% were critical and 45% major. The lesson from clinical documentation products: the data model – sessions, targets, programs – is the oracle, and configurable widgets and reports multiply states, so test design is a data-combination problem rather than a screen inventory. Read the Catalyst case study.

Hand-off 3 — The specimen and the result: LIS and LIMS

The hand-off. The order reaches the laboratory information system (LIS); a specimen is collected and barcoded; an analyzer runs the test and reports over an ASTM, HL7 or POCT1-A interface; the LIS emits HL7 ORU^R01 with the result, units, reference range and abnormal flags back to the EHR.

What goes wrong in the message

1.

The OBX segment arrives without units or reference range – a number with no context.

2.

A corrected result (OBX-11 result status = C) overwrites the original instead of versioning it; the history that explains a clinical decision is gone.

3.

Text results such as "<0.5" or "see note" are parsed as numeric or dropped.

4.

The critical-value flag does not trigger the critical-result notification workflow.

What goes wrong in the system

1.

A specimen is mislabeled or mismatched at accessioning.

2.

An analyzer firmware update changes the message format; results stop parsing on one instrument.

3.

Reflex and add-on test rules misfire – a confirmatory test is never ordered.

4.

Microbiology's hierarchical results (organism → susceptibility panel) are flattened into unreadable text.

5.

CLIA or ISO 15189 traceability gaps: who ran, who verified, which instrument, which lot.

6.

In research and pharmaceutical laboratory information management systems (LIMS), sample chain of custody and 21 CFR Part 11 electronic signatures fail audit.

Tests

  • A result-message golden set covering numeric, text, corrected, preliminary→final, critical and microbiology results, with expected EHR rendering for each.

  • Analyzer simulators per instrument and firmware version, run on every interface change.

  • Barcode and accessioning tests on real scanners and label printers.

  • Reflex-rule matrices with expected follow-on orders.

  • Corrected-result history assertions: the original is preserved, the correction is marked, the clinician is notified.

  • Chain-of-custody and e-signature tests for LIMS, with audit-trail evidence.

The analyzer interface, result rendering and traceability work is described on our laboratory information system testing page; we have also worked with diagnostics companies such as Sysmex, where the instrument side of the interface is the product.

From our projects – Arklign. Arklign connects dental practices with dental laboratories through a digital case management platform – prescriptions, case communication, digital impressions – the order-to-lab-to-result loop of dentistry. Since 2016 our two manual and one automation QA engineer have created 5,000+ test cases to 95% coverage, 900+ automated end-to-end and 100+ API tests, logged 12,000+ bugs (3,000+ critical) and supported 100+ releases. The practice-to-lab hand-off – prescription → case → fabrication → delivery – is where an error costs a remake; state-machine tests across both parties' views are what caught them. Read the Arklign case study.

Hand-off 4 — The image and the report: RIS, PACS and imaging software

The hand-off. The order reaches the radiology information system (RIS); the modality queries the DICOM Modality Worklist (MWL) for patient and procedure details; images are acquired and sent by DICOM C-STORE to the picture archiving and communication system (PACS); the radiologist's report returns as HL7 ORU or a DICOM Structured Report; the EHR launches a viewer.

What goes wrong in the message

1.

A worklist mismatch – the technologist selects the wrong entry – and a study is stored under the wrong patient or accession number.

2.

DICOM tag inconsistencies: a reused StudyInstanceUID, a PatientID mapped from the wrong source, a missing laterality tag.

3.

A transfer syntax or compression one viewer cannot decode.

4.

The report is finalized, then an addendum is issued and never reaches the EHR.

What goes wrong in the system

1.

Display fidelity: window/level presets, orientation, laterality markers, measurement calibration from pixel spacing.

2.

Hanging protocols that mis-order series for a given study type.

3.

Viewer performance on large studies – thousands of CT or MRI slices – especially in web and mobile viewers.

4.

De-identification for research export that misses PHI burned into the pixels.

5.

AI and computer-aided detection overlays whose behavior drifts from the FDA-cleared version.

Tests

  • DICOM conformance with toolkits such as DVTk and dcm4che, plus real-modality test images across every transfer syntax the product claims.

  • Worklist-mismatch and UID-collision fixtures with expected rejection or quarantine behavior.

  • Pixel-fidelity and measurement-accuracy tests against phantom images and reference measurements.

  • Viewer performance tests on large-study datasets across the supported device matrix.

  • De-identification verification that includes optical character recognition of pixel data for burned-in text.

  • AI-overlay regression against the validated model version, with any change gated by the change-control plan.

A medical software testing service for imaging has to cover both the protocol and the pixels; our scope for RIS, PACS, viewers and imaging AI is on the medical imaging software testing page.

From our projects – Woundtech. Woundtech delivers specialized wound care through a telehealth platform that connects patients with complex injuries to specialists, with clinical wound photography and analytics at its core. In six months one automation engineer wrote more than 130 test cases and 130 automation scripts, reaching 100% automated smoke coverage and over 80% automated regression coverage. Clinical images in a telehealth product need the same fidelity checks as radiology – orientation, scale reference, color consistency across capture devices – or the healing trend the analytics report is noise. Read the Woundtech case study.

Hand-off 5 — The prescription: pharmacy and e-prescribing

The hand-off. A medication order leaves CPOE as an RXO segment or FHIR MedicationRequest; to a retail or community pharmacy it travels as an NCPDP SCRIPT message; inside the hospital it reaches the pharmacy information system for pharmacist verification, then dispensing (cabinets, robots), then barcode medication administration (BCMA) at the bedside and the electronic medication administration record (eMAR). A note on terms: a "pharma software testing service" usually means this – pharmacy and medication software; laboratory systems for pharmaceutical R&D are covered under hand-off 3.

What goes wrong in the message

1.

The SIG – dose, unit, route, frequency – is encoded ambiguously and interpreted differently at each end.

2.

Drug code mapping between NDC, RxNorm and local codes selects the wrong strength or form.

3.

Refill, renewal and cancel messages do not round-trip; the pharmacy fills a cancelled prescription.

4.

Electronic prescribing of controlled substances (EPCS) identity-proofing or two-factor requirements fail without blocking the transaction.

What goes wrong in the system

1.

Drug-interaction and allergy checks run against a stale knowledge base.

2.

Weight-based and renal dose calculations are wrong for pediatric or impaired patients.

3.

Formulary and therapeutic-substitution rules apply to the wrong product.

4.

BCMA scan mismatches are overridden without logging.

5.

Inventory, lot and expiry tracking cannot execute a recall.

6.

Temporary holds on medication orders – ECRI's hazard number seven – are mishandled: a held order resumes without review, or never resumes.

Tests

  • A SIG parsing golden set with expected structured output for every supported pattern.

  • Drug-code mapping matrices regenerated on every code-set update.

  • Interaction and allergy golden tests with the knowledge-base version pinned and asserted.

  • Dose-calculation matrices – pediatric, renal, weight-based – against pharmacist-approved expected values, never against values the test author computed alone.

  • EPCS workflow tests that assert the transaction blocks on any identity or two-factor failure.

  • BCMA scan tests on real scanners and wristbands, including the override path and its audit record.

  • Hold, resume and expiry scenarios for medication orders with notification assertions.

  • Recall and lot-tracking scenarios end to end.

E-prescribing, verification, dispensing and administration are covered on our pharmacy software testing page.

Hand-off 6 — The claim: charge capture, coding and medical billing

The hand-off. Charges flow from each clinical system to the billing or revenue-cycle system; coders assign ICD-10 diagnoses and CPT/HCPCS procedures, grouped into DRGs for inpatient stays; the X12 837 claim goes to the payer, a 277 status comes back, then an 835 remittance; the patient receives a statement for the remainder. Eligibility (270/271) and prior authorization (278) run before any of it.

What goes wrong in the message

1.

837 segment validation fails for one payer, because every payer's companion guide differs.

2.

A modifier or diagnosis pointer is wrong and the claim is denied.

3.

An 835 remittance posts to the wrong encounter.

4.

A 271 eligibility or 278 authorization response is misread, and a covered service is billed to the patient.

What goes wrong in the system

1.

Charge-capture gaps: a procedure documented in the clinical system is never charged.

2.

Coding and payer-rule engines are not updated for the annual ICD-10 and CPT releases.

3.

Price estimates for patients do not match adjudicated claims, in a market with transparency rules.

4.

Denial-management workflows lose appeals in the queue.

5.

Patient-responsibility calculations ignore deductible status.

Denials are the measurable symptom: in Experian Health's 2024 survey, 38% of revenue-cycle leaders said at least one in ten claims is denied, and 73% said denials are increasing. A share of those denials are software defects in the hand-offs above.

Tests

  • Claim golden files per payer validated against each companion guide.

  • Charge-capture reconciliation: documented procedures versus posted charges, nightly.

  • Coding-engine regression on every annual code-set update, before it goes live.

  • Eligibility and authorization response matrices with expected downstream behavior.

  • Remittance posting tests with partial payments, takebacks and denials.

  • Estimate-accuracy tests against adjudicated claims.

Revenue-cycle integrations, coding engines and payer connectivity are the scope of our medical billing software testing work.

Hand-off 7 — The patient sees it: portals, engagement and FHIR

The hand-off. The EHR exposes FHIR R4 APIs (US Core profiles) under the ONC Cures Act rule, which gives patients a right of access and prohibits information blocking; a portal or third-party app reads them; an engagement platform sends appointment reminders, pre-procedure instructions and post-discharge follow-up by SMS, voice and app.

What goes wrong

1.

Proxy access – a parent, a caregiver – is granted to the wrong records or revoked late.

2.

Results are released to the patient before the clinician's review where the law allows a delay, or wrongly delayed where it does not.

3.

FHIR resource mapping loses clinical nuance: a result's status, a medication's reason code.

4.

Communications go out without a consent record.

5.

A reminder arrives after the appointment; a discharge follow-up fires twice.

6.

Patient-facing text fails accessibility or health-literacy standards.

Tests

  • A proxy × patient × data-type access matrix run on every build.

  • Results-release rule tests per jurisdiction and result type.

  • FHIR conformance with the ONC Inferno test kit, plus round-trip tests from EHR to FHIR to app and back.

  • Consent-state assertions before every outbound message.

  • Timing and de-duplication tests on the engagement queue relative to the clinical event.

  • Accessibility to WCAG 2.2 AA on every patient-facing surface.

The failure modes of multi-channel engagement – web, mobile, SMS and voice – are catalogued in our article on what breaks first in patient engagement platforms.

From our projects – CipherHealth. CipherHealth provides patient engagement software for automated, personalized communication among patients, caregivers and providers across the care journey – digital check-ins, post-discharge outreach, rounding. Since 2018 our four full-stack QA engineers have built 1,400+ automated web and 100+ mobile scenarios across 15 user flows, running in 50+ automated jobs on up to 20 parallel threads; regression is ten times faster and 2,500+ bugs have been reported. Engagement platforms are message-timing systems, so the suite asserts when a message fires relative to the clinical event, not only that it fires. Read the CipherHealth case study.

Hand-off 8 — Device data from home: wearables, monitors and the cloud

The hand-off. A sensor sends readings over Bluetooth Low Energy to a companion app; the app syncs to a cloud platform; clinicians view dashboards; sometimes the data flows on to the EHR as FHIR Observations or HL7 ORU results.

What goes wrong

1.

BLE pairing and reconnection behave differently across phone models and OS versions.

2.

After a reconnection, readings arrive with gaps, duplicates or out of order.

3.

Timestamps carry the wrong time zone, or the sensor clock has drifted.

4.

Alert thresholds – hypoglycemia, arrhythmia, desaturation – fire late, twice or not at all.

5.

The firmware × app version matrix produces combinations nobody tested.

6.

The regulatory boundary is unclear: which component is a regulated medical device and which is wellness software.

Tests

  • Device simulators for continuous integration and a real-device lab across sensors, phones and OS versions for release testing.

  • Replay tests with gaps, duplicates and reordered samples, asserting reconstruction in the cloud.

  • Timestamp and time-zone fixtures including travel across zones and daylight-saving changes.

  • Alert golden tests against clinician-approved thresholds, including the cases where no alert must fire.

  • A firmware × app matrix maintained like an OS matrix.

  • Traceability from requirements to tests under IEC 62304 and the device's FDA or MDR classification.

Wearable software testing sits on top of embedded-systems discipline – bench setups, protocol analyzers, timing – covered in our guide to testing embedded systems, and inside the requirements-driven process described in requirements-based testing for medical device software. The device-to-cloud scope is on our wearable device software testing page.

From our projects – Abbott. Abbott's FreeStyle Libre is the leading sensor-based glucose monitoring system; LibreView is its secure cloud platform for diabetes management reports. Since 2019 our team of eight automation and eleven manual QA engineers has created 1,600+ test cases and 1,500+ automated scripts to 90% coverage across 27 localizations and 20+ test devices on 10 parallel threads; regression runs 18 times faster, and 70% of blocker, critical and major bugs are found by our engineers. In device-to-cloud products the matrix is sensor × reader or phone × OS × locale – and 27 localizations of clinical text is itself a safety surface. Read the Abbott case study.

Hand-off 9 — The same trail, four legs: veterinary and pet-care software

Veterinary practice management software runs the same loop – registration, orders, in-house analyzers, imaging, pharmacy, invoicing – without HIPAA but with its own rules, and the tests transfer with different fixtures.

Veterinary systems. Species and breed replace demographics as the first test dimension: reference ranges, dosing by weight and species, and anesthesia protocols all vary. Controlled-substance logs are audited; microchip registry integrations are the identity layer; multi-pet households and multi-doctor practices create the proxy-access and scheduling problems a human clinic knows. In-house analyzers and digital radiography use the same ASTM, HL7 and DICOM interfaces, so the same analyzer simulators and DICOM conformance tests apply. Our scope for practice management, lab and imaging integrations in veterinary medicine is on the vettech software testing page.

Pet-care consumer apps. Feeding and medication reminders, activity trackers, telehealth for pets and pet-insurance claims are the wellness-and-device half of the trail: BLE pairing, gap-and-duplicate replay, reminder timing, and claim submission tests, with the regulatory layer replaced by app-store and consumer-protection rules. That scope is described under pettech software testing.

Validation, regulation and PHI: the layer under every hand-off

Every hand-off above runs inside a regulatory frame that decides what counts as evidence, and clinical software testing is only complete when the evidence exists.

HIPAA and PHI in test environments

Protected health information never enters a test environment unless a formal process puts it there. Synthetic patients are the default; where recorded production messages are needed for interface testing, they are de-identified under the HIPAA Safe Harbor method (removal of the 18 identifiers) or an Expert Determination, and the de-identification itself is tested. Access to test systems is role-based and audited like production. The scale of the exposure is not theoretical: HHS OCR recorded 663 large breaches affecting 242.9 million individuals in 2024, 79% of them from a single attack on a claims-processing vendor – the systems in hand-off 6. The five strategies we apply are in how to comply with HIPAA.

FDA, MDR and IEC 62304

When software is a medical device – SaMD, or software embedded in one – it is cleared or approved (510(k), De Novo, PMA in the US; CE marking under MDR in the EU), developed under IEC 62304 with a safety classification (A, B or C) that sets the rigor of verification, and documented so that every requirement traces to tests and results. Electronic records and signatures in regulated systems meet 21 CFR Part 11. AI components need a predetermined change control plan so that model updates do not require a new submission each time – and a regression gate that proves the deployed model is the validated one. What the FDA expects from software testing evidence is covered in how to ensure FDA compliance in healthcare software testing.

ONC certification, CLIA and the rest

EHRs certified under the ONC Health IT Certification Program must pass FHIR API conformance (the Inferno test kit) and comply with the information-blocking rule. Laboratories operate under CLIA in the US and ISO 15189 internationally, which govern result traceability and verification. Imaging products publish DICOM conformance statements that are, in effect, testable claims. E-prescribing follows NCPDP SCRIPT and, for controlled substances, the EPCS rules. Claims follow HIPAA-adopted X12 transactions. Each is a test oracle, not a compliance footnote.

Validation evidence from automated tests

Automated tests become validation evidence when each test traces to a requirement, each run is signed and time-stamped, and the results map onto installation, operational and performance qualification. The traceability matrix lives in the repository, not in a spreadsheet assembled before the audit. User acceptance testing with clinicians – on the real workstations, in the real workflow – completes the evidence; how to run it so that it produces decisions rather than opinions is covered in user acceptance testing in healthcare.

Healthcare software QA automation across the trail

Healthcare software QA automation starts at the interfaces, because that is where the messages are and where the failures begin.

Automate first

1.

Interface contract tests for every HL7 v2, FHIR, DICOM and X12 integration, built from de-identified message libraries and run on a schedule against the integration engine (Mirth, Rhapsody, Cloverleaf or equivalent), not only on deploy.

2.

Golden sets: CDS alerts, lab result rendering, dose calculations, claim files – fixed inputs, clinician- or pharmacist-approved outputs, versioned.

3.

MPI matching fixtures and merge propagation tests.

4.

Access matrices: role × PHI; proxy × patient × data type.

5.

Device simulators for the firmware × app matrix.

6.

Results-release and consent rules as blocking tests.

Keep manual. Clinician workflow usability; onboarding a new modality or analyzer; image-reading fidelity review by radiologists; the first validation of any new clinical rule.

Tooling. HAPI FHIR and Inferno for FHIR; HL7 v2 message tooling and the integration engine's own test harness; DVTk and dcm4che for DICOM; Postman or REST Assured for APIs; Playwright and Appium for web and mobile; Robot Framework with Python where the team already runs it (as on Abbott); k6 or JMeter for load; test management with traceability – qTest, TestRail or Xray – so every run produces audit-grade evidence. For EHR test automation specifically, the suites that matter are CDS and order logic, not screen clicks.

AI is now part of this trail – triage models, imaging overlays, documentation assistants – and it needs evaluation on top of testing: performance across patient populations, not only on aggregate. Our guide to bias testing for AI in healthcare describes how to build the test sets.

Clinical software testing checklist

ADT and identity

  • Every ADT interface has contract tests from a de-identified message library.

  • Ordering and replay (A08 before A01, duplicate A01) are tested; A40 merges are asserted in every receiver.

  • MPI matching fixtures cover twins, renames and transliterations.

Orders and EHR

  • Code mappings are regenerated from the terminology server and asserted end to end.

  • Cancel and modify propagate to every receiver.

  • CDS golden tests include no-alert cases; order sets are version-tested on formulary changes.

  • Downtime and recovery are drilled as test scenarios.

Laboratory

  • The result golden set covers numeric, text, corrected, preliminary → final, critical and microbiology results.

  • Analyzer simulators exist per instrument and firmware version.

  • Corrected results preserve history and notify; reflex rules are matrix-tested.

  • Chain of custody and e-signatures are tested for LIMS.

Imaging

  • DICOM conformance plus real-modality images across transfer syntaxes.

  • Worklist-mismatch and UID-collision fixtures are quarantined correctly.

  • Pixel fidelity and measurement accuracy are tested against phantoms.

  • De-identification is verified including burned-in text; AI overlays are regression-gated to the validated version.

Pharmacy

  • SIG parsing and drug-code mapping golden sets run on every code-set update.

  • Interaction, allergy and dose-calculation tests pin the knowledge-base version and use pharmacist-approved expected values.

  • EPCS blocks on identity failure; BCMA overrides are logged; holds resume only after review.

Billing

  • Claim golden files per payer; charge-capture reconciliation nightly.

  • Coding-engine regression precedes every annual code update; remittance posting handles partial pays and takebacks.

Patient access and devices

  • Proxy × patient × data-type matrix on every build; results-release rules per jurisdiction.

  • FHIR conformance via Inferno; consent asserted before every message; timing tested relative to the clinical event.

  • Device replay covers gaps, duplicates and reordering; alert golden tests include no-alert cases; the firmware × app matrix is maintained.

Regulation

  • No PHI in test without documented de-identification; test-system access is audited.

  • Traceability from requirement to test to signed result lives in the repository.

  • UAT runs with clinicians on real workstations.

Conclusion

Three hand-offs cause more harm than the other six combined: patient identity at ADT and merge, where a duplicate record sends every later result to the wrong chart; the lab result whose units, range or correction status is lost in ORU; and the prescription whose dose encoding means one thing to the sender and another to the pharmacy. None is visible on the screen of the system that caused it, which is why clinical software has to be tested along the message trail rather than system by system – with contract tests from real message libraries, golden sets approved by clinicians and pharmacists, and evidence that traces to the requirement.

If you would like to see this applied to your platform, talk to us about a free proof of concept on one hand-off: an HL7 interface contract suite built from your de-identified message library, or a CDS or dose-calculation golden set.

Book a strategic QA consultation

FAQ

What is clinical software testing and how is it different from general medical software testing?

Clinical software testing covers the systems that carry a patient's care inside and between healthcare organizations — registration, EHR and orders, laboratory, imaging, pharmacy, billing, patient access and connected devices — with emphasis on the HL7, FHIR, DICOM and X12 hand-offs between them, the clinical rules that run on the data, and the validation evidence regulators require. Medical software testing is the broader term, which also includes wellness, administrative and research software; clinical testing is the part where a defect can reach a patient.

How do you test HL7 and FHIR interfaces?

Build a de-identified library of production-shaped messages; write contract tests per interface that assert segment and field content, encoding and ordering; replay messages out of order and duplicated; test merges and corrections across every receiver; run the suite on a schedule against the integration engine; and, for FHIR, pass the Inferno conformance kit and add round-trip tests from EHR to API to app.

How do you test a laboratory information system?

With a result-message golden set covering every result type and status; analyzer simulators per instrument and firmware version; barcode and accessioning tests on real hardware; reflex-rule matrices; corrected-result history and notification assertions; and chain-of-custody and electronic-signature tests where LIMS requirements apply — all traceable to CLIA or ISO 15189 requirements.

How do you test PACS and medical imaging software?

DICOM conformance testing with DVTk or dcm4che plus real modality images across transfer syntaxes; worklist-mismatch and UID-collision fixtures; pixel-fidelity and measurement-accuracy tests against phantom images; viewer performance on large studies across the device matrix; de-identification verification including burned-in pixel text; and regression of AI overlays against the validated model version.

How do you test e-prescribing and pharmacy software?

SIG parsing and drug-code mapping golden sets; interaction and allergy checks with the knowledge-base version pinned; weight-based and renal dose calculations against pharmacist-approved expected values; EPCS identity and two-factor flows that block on failure; BCMA scan and override tests on real scanners; hold, resume and recall scenarios; and NCPDP SCRIPT round-trip tests for new, refill and cancel messages.

How do you test wearable medical device software?

With device simulators in CI and a real-device lab across sensors, phones and OS versions; replay tests for gaps, duplicates and reordering after reconnection; timestamp and time-zone fixtures; alert golden tests against clinician-approved thresholds including no-alert cases; a maintained firmware × app matrix; and traceability from requirements to tests under IEC 62304 and the device's regulatory classification.

Mykhailo Ralduhin

About the author

Mykhailo Ralduhin

Senior QA engineer

Mykhailo Ralduhin is a Senior QA Engineer at DeviQA, specializing in building stable, well-structured testing processes for complex software products.