Tutorials › Optimal Design and Model-Informed Dosing › Responding to Clinical Software Incidents

Model-Informed Precision Dosing in Practice · Tutorial 399 of 497

Responding to Clinical Software Incidents

Learn how to protect patients and preserve evidence while investigating a suspected dosing-software incident, and how to decide when a controlled restart is justified.

Advanced 10 min read

What You'll Learn

  • Distinguish a suspected incident from a confirmed software defect and identify the immediate safety questions.
  • Triage incidents by potential clinical harm, exposure, and uncertainty.
  • Notify responsible clinicians and contain affected recommendations without obscuring the clinical record.
  • Preserve evidence so the event can be reconstructed and investigated.
  • Separate root-cause correction from verification and restart approval.
  • Recognize response failures such as premature restart or undocumented workarounds.

Why Incident Response Needs a Defined Workflow

A dosing service may produce a recommendation that appears clinically implausible, fail to display a result, or show different values in different parts of the interface. The cause may be incorrect input data, a software or configuration defect, an operational failure, or a reasonable model output that needs clinical interpretation. At the moment of discovery, the cause is usually uncertain. The first response must therefore protect patients without prematurely declaring what happened.

An incident is not limited to a confirmed defect or an adverse outcome. A suspected incorrect recommendation, a near miss, or an interruption that could affect a treatment decision warrants assessment. The workflow below connects clinical notification, service containment, investigation, correction, and restart approval. Audit trails for reconstructing recommendations and change control for models and clinical software provide useful foundations, but incident response additionally requires time-sensitive coordination and an explicit decision about whether the service may safely remain available.

Definition: A clinical software incident is an event involving a deployed clinical software service that has caused, or could plausibly cause, an incorrect or unavailable clinical output, an unsafe clinical action, or loss of confidence in the integrity of a decision. A suspected incident is an event meeting a reasonable threshold for investigation before its cause or impact is established. A near miss is an event in which a potentially harmful output or process was intercepted before it affected care.

The workflow assumes that the organization has named operational and clinical contacts, an approved way to reach them, and a defined method for suspending or restricting the service. If those arrangements are absent, response leaders should escalate through the institution's established clinical safety and incident channels rather than improvising an untracked process. The software output is decision support: it does not replace the responsible clinician's assessment or authorize an unreviewed treatment change.

Sequence the Response Around Safety and Evidence

A useful response separates immediate actions from investigation. First establish whether a patient may be affected and whether further exposure is continuing. Notify the people who can protect care, contain the affected function, preserve enough evidence to reconstruct events, and then investigate and correct the cause. Restart is a separate decision: a plausible fix is not, by itself, evidence that the service is safe to resume.

1
Recognize and record.
Log the report promptly, including who reported it, when it was detected, the affected service and function, and the observed behavior. Use neutral language such as “suspected dose mismatch”; do not label a cause as confirmed before evidence supports it.
2
Triage potential harm and exposure.
Assess the possible clinical consequence, whether recommendations are still being generated or acted upon, the likely scope of affected patients or sites, and what is not yet known. Escalate promptly when severe harm is plausible, exposure is ongoing, or the scope cannot be bounded.
3
Notify clinical and operational leads.
Contact the responsible clinical team and the designated service, safety, or incident lead using established channels. Communicate what is known, what remains uncertain, the action requested, and when an update will follow. Do not wait for root-cause confirmation before communicating a credible immediate risk.
4
Contain ongoing risk.
Choose a proportionate action: restrict a feature, stop generating recommendations, switch to an approved fallback, or suspend the service. Make the status visible to users and state the effective time. A clinician must assess any patient-specific treatment decision through the clinical process; the technical response does not itself prescribe a dose.
5
Preserve evidence and investigate.
Secure relevant logs, input and output records, software and configuration identifiers, timestamps, and a description of the user-visible behavior. Limit access appropriately and preserve the original evidence before testing or modifying the affected environment.
6
Correct, verify, and decide on restart.
Document the cause if established, the corrective action, and verification results. An authorized clinical and operational decision-maker, following local governance, should approve restart only after risks are controlled, required checks pass, and users know the service status and any residual limitations.

Triage: Choose Urgency Before You Know the Cause

Triage is a structured assessment, not a diagnosis of the software failure. Consider four questions: What is the most serious plausible clinical consequence? Could anyone currently act on the affected output? How many patients, users, or sites may be exposed? How certain is the available information? Severity and ongoing exposure drive urgency; uncertainty is a reason to gather information and escalate, not a reason to assume the event is harmless.

This ordering is justified by the asymmetry of early response. A temporary restriction can usually be reviewed and reversed, while a recommendation that remains available may continue to influence care before the investigation is complete. That does not mean every unusual output requires shutting down an entire service. The containment should be proportionate to the credible hazard and should avoid disabling unaffected functions where that can be done safely.

Worked Example: A Recommendation Differs From the Expected Range

A hypothetical clinician reports that a dosing service displayed 120 mg when the local protocol range they expected was 80–100 mg. The report includes one patient encounter and a screenshot, but the underlying inputs and software version have not yet been checked. The recommendation may or may not be incorrect.

Triage. The possible consequence could be clinically important, the output has been displayed to a clinician, and the cause and scope are unknown. The event is therefore a credible suspected incident requiring prompt clinical notification and operational review. The range alone does not prove an error: it may reflect an input, a configuration, a model output, or an expectation that does not apply to this case.

Immediate response. The incident lead contacts the responsible clinical team, states that the recommendation is under review, and asks that the treating clinician assess the case through the usual clinical process. The service team checks whether similar recommendations are still being generated. If the affected recommendation pathway cannot quickly be shown to be safe, the team restricts or suspends that pathway according to its approved procedure and communicates the status.

Evidence and next action. The team records the encounter identifier in the approved secure system, event time, displayed recommendation, screenshot, relevant input record, and software and configuration identifiers. It then checks whether the displayed value matches the recorded inputs and the version in service. No conclusion about a software defect is made until those checks support it.

Clinical Notification and Containment

Notification should be timely, specific, and usable. Include the affected function, the known time window if available, what the user should stop relying on, the approved alternative process if one exists, and the contact for urgent questions. Distinguish facts from hypotheses. For example, “Recommendations from the renal-adjustment screen are temporarily unavailable while an input mapping is checked” is more useful than “the model is broken” when the cause is not yet established.

Containment can range from displaying a warning and restricting one function to taking the service offline. Select the narrowest action that reliably interrupts the suspected unsafe pathway. If the scope is not known, a broad temporary restriction may be justified while the team determines whether a narrower boundary is safe. Record who authorized the action, what was changed, when it took effect, and how users were informed. A workaround must be explicit, approved through local clinical and operational processes, and monitored; an informal workaround can create a second, less visible incident.

If the event may have affected prior recommendations, clinical leadership should determine how potentially affected cases are identified and reviewed. Technical staff can help define the time window, version, and output pattern, but should not independently decide whether an individual patient’s treatment needs to change. Any clinical follow-up should use the organization’s established patient-care and incident processes.

Preserving Evidence Without Compromising It

A useful incident record makes it possible to reconstruct what the service received, what it returned, and what users saw. Preserve the original available records before changing configuration, restarting components, or applying a fix. Capture, as relevant, event timestamps and time zone, service and model version, configuration, input data as received, output values and units, user-interface display, relevant system logs, and actions taken during response. Note missing records explicitly rather than filling gaps with assumptions.

Evidence must also be handled appropriately. Use approved secure storage and access controls, avoid copying identifiable clinical data into informal channels, and follow institutional privacy and retention procedures. Preserve a clear chain of custody or access history where the local process requires it. A screenshot can help show what a user saw, but it does not replace the underlying input, output, version, or log information needed to reproduce the event.

Worked Example: A Unit Display Mismatch

In a hypothetical service, a clinician reports that a concentration appears to be shown in mg/L on a summary screen, while a detail panel labels the same number as micrograms/L. The two labels differ by a factor of 1,000, but the team has not established whether the stored value, the display conversion, or only the label is wrong.

Containment decision. Because an ambiguous unit display could lead to a consequential interpretation, the team temporarily disables the affected display or recommendation pathway and notifies users not to rely on it. It does not infer that the numerical recommendation is correct merely because one screen shows a familiar value.

Evidence preservation. Before deploying any correction, the team records the same encounter’s received data, stored value and unit, displayed value and labels on both screens, event time, software and configuration versions, and relevant logs. It preserves the original display evidence and notes whether other screens or users may be affected.

Investigation boundary. The team tests the conversion and presentation using controlled test cases and compares the expected values with what each screen renders. If the evidence shows a label-only defect, that finding must still be verified across relevant displays. If the stored value or calculation is also wrong, the scope and clinical follow-up require reassessment before restart.

Correction, Verification, and Restart Approval

Corrective action should address the supported cause, not merely make the reported example look right. A controlled correction may involve data mapping, interface rendering, configuration, deployment rollback, or another component. Record the change and its rationale through the applicable change-control process. Where the cause remains uncertain, say so; avoid presenting a temporary containment measure as a verified correction.

Verification should target the failure mechanism and the boundaries of the change. Confirm the reported case where appropriate, test representative cases that should be unaffected, check the end-to-end path from input through calculation to user-visible output, and verify that units and status messages are clear. Confirm that the intended version and configuration are actually active. A test passing in a development environment does not establish that the deployed service has been corrected.

Restart approval is a documented risk decision, not an automatic consequence of a successful deployment. The decision should identify the authorized approver or approvers under local governance, evidence reviewed, checks completed, remaining uncertainty, any restrictions, and the monitoring or escalation plan during return to service. Users should receive a clear restart notice and any necessary instructions. If required checks fail, the cause remains unbounded, or the approved fallback is safer, keep the affected function contained and continue investigation.

Worked Example: Restart After a Configuration Error

A hypothetical investigation finds that a newly deployed configuration mapped a laboratory result from the wrong field for a subset of encounters. The service was suspended after two recommendations were reported as implausible. The team has identified the configuration change and prepared a corrected mapping.

Correction. The team restores the intended field mapping through the approved deployment process and records the configuration identifiers before and after correction. It does not assume that correcting the mapping resolves every potentially affected recommendation.

Verification. In a controlled environment, the team tests records with the relevant field populated, records with that field missing, and records with the alternate field populated. It checks the value received by the service, the value used in the calculation, and the value and units displayed to users. It also checks that unaffected inputs still follow their expected path. Results and any exclusions are recorded.

Restart decision. The clinical and operational approvers review the test results, confirm that the corrected configuration is active in the deployment intended for use, and verify that users have been told the service is available again. They document any remaining uncertainty and the plan for promptly escalating a recurrence. If the alternate-field case still maps incorrectly, restart is not approved; the service remains restricted while the defect is corrected and retested.

Failure Modes and Alternatives

Several response patterns appear efficient but can undermine safety or the investigation:

  • Waiting for certainty before notifying clinicians. This delays protection while evidence is gathered. Notify on a credible potential risk, clearly marking what is and is not confirmed.
  • Restarting after a quick fix without verification. A local change may miss other inputs, interfaces, or deployed versions. Verify the relevant end-to-end behavior and document approval.
  • Changing the system before saving evidence. A restart or configuration edit may remove or alter information needed to reconstruct the event. Preserve available evidence first when doing so does not delay urgent containment.
  • Assuming one report means one affected patient. The initial report describes detection, not necessarily the full scope. Check the relevant time window, version, and affected pathway.
  • Using a broad shutdown without considering safer, narrower containment. Unnecessary loss of service can disrupt care. Compare the hazard of continued availability with the clinical and operational consequences of restricting the service; choose an action that controls the risk and can be communicated clearly.
  • Treating a model or software explanation as proof of clinical safety. A technically reproducible output does not establish that the output is appropriate for a particular patient. Clinical assessment and technical investigation answer different questions.

Incident response is also distinct from routine operational monitoring and from later analysis of performance over time. Monitoring may detect a signal; the incident workflow determines how to act on a potentially unsafe event now. A retrospective technical investigation may explain the failure, but cannot substitute for timely notification, containment, and clinical follow-up.

Key takeaway: Respond first to the plausible risk and ongoing exposure, not to an unproven explanation. Preserve evidence, correct the supported cause, verify the deployed behavior, and treat restart as an explicit, authorized decision.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A user reports one implausible recommendation, but the service is still producing outputs. What should determine the initial urgency and containment decision?
  2. Why should the team preserve the original input, displayed output, and software version before applying a correction?
  3. A defect is fixed in a test environment, but the deployed configuration has not been checked. Is restart justified? Explain.
  4. What is the difference between a suspected incident and a confirmed software defect?
  5. Name two elements that a restart decision should document.

Solutions. (1) Consider the most serious plausible clinical consequence, ongoing exposure, likely scope, and uncertainty. Notify the responsible clinical and operational leads and contain the affected pathway proportionately; do not wait for root-cause confirmation. (2) Those records help reconstruct what the service received, which version processed it, and what the user saw. A correction or restart could change or remove evidence needed to determine cause and scope. (3) No. Passing a test in a separate environment does not show that the intended correction is active or works in the deployed end-to-end pathway. Verify deployment and relevant behavior, then obtain documented approval. (4) A suspected incident is an event that warrants investigation because harm or an unsafe process is plausible; its cause is not yet established. A confirmed defect is a supported finding that a software component behaved incorrectly. (5) Examples include the authorized approver, evidence and checks reviewed, remaining uncertainty, restrictions, and the post-restart escalation or monitoring plan.

Clinical Biostats