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,100 @@
|
||||
# US-14 — Read assigned patients’ information
|
||||
|
||||
The [common requirements](00-common-requirements.md) apply to this story.
|
||||
|
||||
**As a healthcare professional,**
|
||||
I want to authenticate using my credentials and view health information for patients assigned to me,
|
||||
so that I can review their measurements and health insights.
|
||||
|
||||
## Functional requirements
|
||||
|
||||
The thesis prototype uses pre-created healthcare professional accounts and predefined patient assignments. A healthcare professional may be assigned to multiple patients, and a patient may be assigned to multiple healthcare professionals.
|
||||
|
||||
Access is read-only and covers the assigned patients’ profiles, observations and their context, numerical insights, trend assessments and health overviews.
|
||||
|
||||
## Acceptance criteria
|
||||
|
||||
```gherkin
|
||||
Scenario: Successful authentication
|
||||
Given I have a pre-created healthcare professional account
|
||||
When I authenticate using valid credentials
|
||||
Then the system recognises my identity and healthcare professional role
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: View assigned patients
|
||||
Given I am authenticated as a healthcare professional
|
||||
When I request my assigned patients
|
||||
Then the system returns only patients assigned to me
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: View an assigned patient’s information
|
||||
Given I am authenticated as a healthcare professional
|
||||
And a patient is assigned to me
|
||||
When I request their profile, observations and context, numerical insights, trend assessment or health overview
|
||||
Then access is permitted
|
||||
And the requested information is returned according to the existing retrieval requirements
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: No assigned patients
|
||||
Given I am authenticated as a healthcare professional
|
||||
And no patients are assigned to me
|
||||
When I request my assigned patients
|
||||
Then the system indicates that no patients are assigned
|
||||
And does not return other patients
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Patient information does not yet exist
|
||||
Given I am authenticated as a healthcare professional
|
||||
And a patient is assigned to me
|
||||
And the requested information does not yet exist
|
||||
When I request that information
|
||||
Then the system follows the existing behaviour for missing information
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Access to an unassigned patient
|
||||
Given I am authenticated as a healthcare professional
|
||||
When I request information about a patient who is not assigned to me
|
||||
Then access is rejected
|
||||
And no information about that patient is returned
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Attempt to change patient information
|
||||
Given I am authenticated as a healthcare professional
|
||||
When I attempt to create, modify or delete patient information
|
||||
Then the operation is rejected
|
||||
And the patient information remains unchanged
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Invalid credentials
|
||||
Given I am not authenticated
|
||||
When I attempt to authenticate using an incorrect account identifier or incorrect secret
|
||||
Then authentication is rejected
|
||||
And the response does not reveal which part of the credentials was incorrect
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Missing or invalid authentication
|
||||
Given my request has missing or invalid authentication information
|
||||
When I request assigned patients or patient information
|
||||
Then the request is rejected
|
||||
And no patient information is returned
|
||||
```
|
||||
|
||||
```gherkin
|
||||
Scenario: Patient account attempts professional access
|
||||
Given I am authenticated only as a patient
|
||||
When I attempt to use access reserved for healthcare professionals
|
||||
Then access is rejected
|
||||
And my existing access to my own information is unaffected
|
||||
```
|
||||
|
||||
## Prototype limitations
|
||||
|
||||
Patient assignments are predefined. Assignment management, professional credential verification, consent workflows, emergency access and editing by healthcare professionals are outside scope.
|
||||
Reference in new issue
Block a user