31 lines
970 B
Markdown
31 lines
970 B
Markdown
# US-03 — Update a patient profile
|
|
|
|
The [common requirements](00-common-requirements.md) apply to this story.
|
|
|
|
**User story**
|
|
|
|
> As a patient, I want to update my profile information so that the system contains my current information.
|
|
|
|
## Acceptance criteria
|
|
|
|
```gherkin
|
|
Feature: Update patient profile
|
|
|
|
Scenario: Update an existing patient
|
|
Given a patient exists with
|
|
| name | Steffen Example |
|
|
| contactInfo | old@example.test |
|
|
When the patient profile is updated with
|
|
| name | Steffen Example |
|
|
| contactInfo | new@example.test |
|
|
Then the update succeeds
|
|
And the patient identifier is unchanged
|
|
And the patient profile contains contact information "new@example.test"
|
|
|
|
Scenario: Update a patient that does not exist
|
|
Given no patient exists with the requested patient identifier
|
|
When an update is requested for that patient
|
|
Then the update is rejected
|
|
And no new patient is created
|
|
```
|