Segregation Is a Mechanism: Reading the IEC 62304 Architecture Clause Against a Stalled DICOM Pipeline

One requirement in the software architecture activity of IEC 62304 shapes a distributed SaMD more than any other. The manufacturer must identify any segregation between software items that is essential to risk control, and state how that segregation is ensured. Most evidence packages answer with a deployment diagram that shows separate containers. A careful reviewer reads that as a claim, because containers on one node still share a kernel, a network path, a clock and usually a message broker.

Sorting the standards by the question they answer

Group the standards by what they make you prove. The lifecycle and risk management pair, IEC 62304 with ISO 14971, makes you show that every hazardous failure has a control and that the control works. The interoperability family, DICOM for images and HL7 CDA for structured results, defines what a message means and says almost nothing about what happens when it fails to arrive. The hospital network risk standard, IEC 80001, splits responsibility between you and the responsible organisation that runs the network your system sits on. For availability, only the first pair actually binds you, and the architecture clause is where it becomes code.

The failure that keeps every health check green

Take an urgent CT triage path. The router accepts a study over DICOM, an inference worker scores it, and a positive score raises the case's priority on the radiology worklist and sends a preliminary CDA result. Now the worker stalls on a malformed enhanced multiframe object: it does not crash, it just holds the message lease and stops making progress. Liveness probes pass, the process is up, the queue depth grows slowly enough to stay under alert thresholds, and the study sits unprioritised at the bottom of the worklist. The usual risk control is an escalation timer that pages the on-call radiologist when no result appears. In most first designs that timer is a scheduled task inside the same service that consumes the queue, so it stalls along with the worker, and the clause exists to expose exactly this.

The decision rule to put in your evidence is this: if a risk control can be disabled by any fault that also triggers the hazard it controls, including a shared process, a shared broker, a shared clock or a shared credential, then the segregation is not ensured, and you must move the control into a separate failure domain or show why that common cause cannot occur.

What ensured segregation looks like, and the number you will defend

Apply that to the escalation timer. It subscribes only to the DICOM receipt event, which is emitted when the association completes. It never reads inference state, it runs on a different host with its own time source, and it reaches the paging system over a path that does not go through the main broker. Its single tunable is the result deadline, set here to 300 s from study receipt. You must show that detection time plus failover time plus paging latency fits inside it. A passive router taking over typically needs somewhere around 20 to 40 s to detect the failure and take the lease (an estimate that varies with your fencing implementation). Failover brings the second problem the clause forces you to address: a primary that resumes after a partition must not issue a CDA result for a study the secondary has already reported. So every result carries a fencing token from the lease, and the receiving side accepts a document only if its token is current. Corrections go out as a new version within the same document set that explicitly replaces the earlier one, never as an overwrite.

Is putting the risk control in a separate container enough evidence of segregation?

Only if you can show that no fault shared by the containers can disable the control and cause the hazard at the same time. Two containers on one host behind one broker usually fail that test, so the evidence has to name the specific shared resources and explain why each one is not a common cause.

Back to SaMDSystem · Domains

← Back to SaMDSystem
Engineering & Architecture Brief

Segregation Is a Mechanism: Reading the IEC 62304 Architecture Clause Against a Stalled DICOM Pipeline

One requirement in the software architecture activity of IEC 62304 shapes a distributed SaMD more than any other. The manufacturer must identify any segregation between software items that is essential to risk control, and state how that segregation is ensured. Most evidence packages answer with a deployment diagram that shows separate containers. A careful reviewer reads that as a claim, because containers on one node still share a kernel, a network path, a clock and usually a message broker.

Sorting the standards by the question they answer

Group the standards by what they make you prove. The lifecycle and risk management pair, IEC 62304 with ISO 14971, makes you show that every hazardous failure has a control and that the control works. The interoperability family, DICOM for images and HL7 CDA for structured results, defines what a message means and says almost nothing about what happens when it fails to arrive. The hospital network risk standard, IEC 80001, splits responsibility between you and the responsible organisation that runs the network your system sits on. For availability, only the first pair actually binds you, and the architecture clause is where it becomes code.

The failure that keeps every health check green

Take an urgent CT triage path. The router accepts a study over DICOM, an inference worker scores it, and a positive score raises the case's priority on the radiology worklist and sends a preliminary CDA result. Now the worker stalls on a malformed enhanced multiframe object: it does not crash, it just holds the message lease and stops making progress. Liveness probes pass, the process is up, the queue depth grows slowly enough to stay under alert thresholds, and the study sits unprioritised at the bottom of the worklist. The usual risk control is an escalation timer that pages the on-call radiologist when no result appears. In most first designs that timer is a scheduled task inside the same service that consumes the queue, so it stalls along with the worker, and the clause exists to expose exactly this.

The decision rule to put in your evidence is this: if a risk control can be disabled by any fault that also triggers the hazard it controls, including a shared process, a shared broker, a shared clock or a shared credential, then the segregation is not ensured, and you must move the control into a separate failure domain or show why that common cause cannot occur.

What ensured segregation looks like, and the number you will defend

Apply that to the escalation timer. It subscribes only to the DICOM receipt event, which is emitted when the association completes. It never reads inference state, it runs on a different host with its own time source, and it reaches the paging system over a path that does not go through the main broker. Its single tunable is the result deadline, set here to 300 s from study receipt. You must show that detection time plus failover time plus paging latency fits inside it. A passive router taking over typically needs somewhere around 20 to 40 s to detect the failure and take the lease (an estimate that varies with your fencing implementation). Failover brings the second problem the clause forces you to address: a primary that resumes after a partition must not issue a CDA result for a study the secondary has already reported. So every result carries a fencing token from the lease, and the receiving side accepts a document only if its token is current. Corrections go out as a new version within the same document set that explicitly replaces the earlier one, never as an overwrite.

Technical FAQ: Is putting the risk control in a separate container enough evidence of segregation?

Only if you can show that no fault shared by the containers can disable the control and cause the hazard at the same time. Two containers on one host behind one broker usually fail that test, so the evidence has to name the specific shared resources and explain why each one is not a common cause.

Related Architecture Specifications (HEALTHVIGILANCE): samdapp.com · agenticsamd.com · druginference.com

More Technical Articles on samdsystem.com

DICOMweb Architecture: Implementing WADO-RS, QIDO-RS, and STOW-RS for Modern Clinical Imaging →Systems Engineering Blueprint: Fulfilling IEC 62304 Class C Architectural Requirements →Segregation Under IEC 62304: How One Clause Shapes Failure Behaviour in DICOM to CDA Pipelines →Proving That a Diagnostic Worker Cannot Disable Its Own Safeguards →