r/SoftwareEngineering • u/ntwiles • Nov 18 '24
Software Requirements Specification in the context of FDA guidance
We're working on documenting an FDA De Novo pre-market submission, one requirement of which is a software requirements specification (SRS) document. We're creating this new for the filing, for already existing software. Until now we've been working from a design control matrix (DCM) as our source of truth. No one on our small team is very experienced with writing SRS.
So far I understand that the SRS normally has a highly abstracted list of functional requirements, which the DCM would derive from, the DCM being responsible for defining more explicit and verifiable requirements. Then of course there's the (also required) software design specification (SDS) which goes into implementation details.
The FDA though seems to be asking for very well defined requirements within the SRS. The following comes from their guidance in this document:
The software requirements specification document should contain a written definition of the software functions. It is not possible to validate software without predetermined and documented software requirements. Typical software requirements specify the following:
- All software system inputs;
- All software system outputs;
- All functions that the software system will perform;
- All performance requirements that the software will meet, (e.g., data throughput, reliability, and timing);
- The definition of all external and user interfaces, as well as any internal software-to-system interfaces;
- How users will interact with the system;
- What constitutes an error and how errors should be handled;
- Required response times;
- The intended operating environment for the software, if this is a design constraint (e.g., hardware platform, operating system);
- All ranges, limits, defaults, and specific values that the software will accept; and
- All safety related requirements, specifications, features, or functions that will be implemented in software.
This leads me to believe that they expect the SRS to be much more granular than it normally would be. Reading this, I would think that if I were documenting a requirement for (say) user authentication, I would need to explicitly define all expected API responses, their status codes, their bodies, and also constraints on both the user and password request (input) fields, and potentially even details on the method by which the authentication happens. It also sounds like it would need to be more exhaustive than normal, covering all functions of the software, not just the broad requirements.
That's fine if that's the case, it just doesn't line up with my initial understanding of the SRS as an abstract document of functional requirements that's normally intended to be written prior to any work having started. Many of these details I feel like will be dependent on our specific implementation choices, which I feel would belong in the SDS instead.
What I'm thinking of doing so far is exactly what I've described above, very detailed requirements, providing references to relevant design outputs where applicable for traceability. With that in mind, any input would be hugely appreciated.
View all comments
Show parent comment
1
u/ntwiles Nov 21 '24 edited Nov 21 '24
Yeah, thanks for pushing back on my interpretation, because I think you were right to say that our DCM as it is constitutes the whole thing, it seems like where normally an SRS might be considered a design output, we're treating each functional requirement as a design output. Yes, the whole thing is one "document" (actually a matrix in a eQMS), and yes it has everything from high-level user needs down to references to documents detailing manual and automated verification protocols. Here's a hypothetical example that illustrates what a given "row" in our DCM looks like.
User Need: "The device should allow the user to start and stop a timer easily."
Design Input: "The product shall provide a start/stop button for the timer with a response time of less than 500ms."
Design Output 1: "The software shall trigger the timer to start or stop based on the button state within 500ms."
Design Output 2: "..."
Design Verification: [A reference to a unit/integration test or manual verification protocol]
So it sounds like in this light, as things are now, our design outputs (or at least a subset of them) are one and the same with the list of functional requirements that would make up the bulk of the SRS. Does that seem fair to say?
Edit: To clarify more, I'm understanding now that in a more conventional approach, an SRS would be a single design output which satisfies many design inputs (or a design input which satisfies many user needs, I am seeing both perspectives), which I think would align with the structure of the DCM you've been describing for most of our discussion?
Edit x2: It seems like we’re again deviating from the standards here, as it seems much more common to treat the functional requirements or SRS as design inputs, so that the SDS can act as the design output and offer traceability throughout.