17 lines
589 B
Markdown
17 lines
589 B
Markdown
|
|
## ADDED Requirements
|
||
|
|
|
||
|
|
### Requirement: Patient can be deleted
|
||
|
|
The system SHALL allow authorized users to delete patients from the system.
|
||
|
|
|
||
|
|
#### Scenario: Successful patient deletion
|
||
|
|
- **WHEN** user clicks delete button on a patient
|
||
|
|
- **AND** user confirms deletion in the confirmation dialog
|
||
|
|
- **THEN** system calls deletePatient API with InternalPID
|
||
|
|
- **AND** patient is removed from the list
|
||
|
|
- **AND** success message is displayed
|
||
|
|
|
||
|
|
#### Scenario: Deletion failure
|
||
|
|
- **WHEN** deletePatient API returns an error
|
||
|
|
- **THEN** error message is displayed
|
||
|
|
- **AND** patient remains in the list
|