Initial commit: architecture design instructions and documentation
This commit is contained in:
commit
4bbf5afe3e
64 files changed
+8819
No files matched your search
@@ -0,0 +1,78 @@
|
||||
# US-12 — View a consolidated health overview
|
||||
|
||||
The [common requirements](00-common-requirements.md) apply to this story.
|
||||
|
||||
**User story**
|
||||
|
||||
> As a patient, I want a consolidated overview of my profile, latest observation, and calculated insight so that I can review the most important information in one place.
|
||||
|
||||
## Functional requirements
|
||||
|
||||
The latest observation in the overview shall include its recorded context and retain the existing latest-observation selection rules. Its context shall not be presented as applying to every observation contributing to the insight.
|
||||
|
||||
Users shall be able to apply the US-10 setting and activity selections to the overview’s calculated insight. Those selections affect the insight only; the latest observation remains the latest overall observation for the patient. The overview shall identify this distinction, the insight selection, and its contributing count.
|
||||
|
||||
Without selections, the existing overview behaviour remains. Mixed or unknown context explanations accompanying the insight shall remain visible. When a selection has no contributing observations, the profile and available latest observation shall still be returned, with an explanation that no insight is available for that selection. This story does not add a trend component to the overview.
|
||||
|
||||
## Acceptance criteria
|
||||
|
||||
```gherkin
|
||||
Feature: View consolidated health overview
|
||||
|
||||
Scenario: View an overview for a patient with observations
|
||||
Given a patient exists
|
||||
And the patient has recorded blood-pressure observations
|
||||
And health insight can be calculated for the requested period
|
||||
When the health overview is requested for that period
|
||||
Then the patient's profile is included
|
||||
And the latest blood-pressure observation is included
|
||||
And the calculated health insight is included
|
||||
|
||||
Scenario: View an overview for a patient without observations
|
||||
Given a patient exists
|
||||
And the patient has no recorded observations
|
||||
When the health overview is requested
|
||||
Then the patient's profile is included
|
||||
And no latest blood-pressure observation is returned
|
||||
And the overview indicates that no calculated health insight is available
|
||||
|
||||
Scenario: Request an overview for a patient that does not exist
|
||||
Given no patient exists with the requested patient identifier
|
||||
When the health overview is requested
|
||||
Then the request reports that the patient does not exist
|
||||
|
||||
Scenario: Reject an invalid overview period
|
||||
Given a patient exists
|
||||
When the health overview is requested with an end time earlier than the start time
|
||||
Then the request is rejected
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Feature: US-12 — Preserve measurement context in the health overview
|
||||
|
||||
Scenario: Latest context and insight selection differ
|
||||
Given a patient has a latest after-activity observation and earlier home-resting observations in the period
|
||||
When an overview is requested with Home and At rest selected for insight
|
||||
Then the latest after-activity observation and its context are returned
|
||||
And the insight uses only matching home-resting observations
|
||||
And the result distinguishes their different bases
|
||||
|
||||
Scenario: No matching insight observations
|
||||
Given a patient has a profile and a latest observation
|
||||
And no observations match the selected insight context
|
||||
When the overview is requested for that selection
|
||||
Then the profile and latest observation remain available
|
||||
And the absence of insight for the selection is explained
|
||||
|
||||
Scenario: Unknown context remains unknown
|
||||
Given the latest observation has no context
|
||||
When the overview is requested
|
||||
Then its context is represented as unknown
|
||||
And no context is copied from other observations
|
||||
|
||||
Scenario: Default overview preserves context limitations
|
||||
Given insight spans differing measurement conditions
|
||||
When an overview is requested without context selections
|
||||
Then the original pooled insight is returned
|
||||
And its mixed-context explanation is included
|
||||
```
|
||||
Reference in new issue
Block a user