The user journey for the healthcare context involves the following interactions and jobs to be done:
User Story: As a user/system, I want to register a new patient record, so that I can achieve the desired state.
EARS Requirement:
RegisterPatient command is received, the healthcare context shall process the request and update state.User Story: As a user/system, I want to update a clinical record entry, so that I can achieve the desired state.
EARS Requirement:
UpdateClinicalRecord command is received, the healthcare context shall process the request and update state.User Story: As a user/system, I want to create a patient appointment, so that I can achieve the desired state.
EARS Requirement:
CreateAppointment command is received, the healthcare context shall process the request and update state.User Story: As a user/system, I want to provision emergency access with justification, so that I can achieve the desired state.
EARS Requirement:
ProvisionBreakGlassAccess command is received, the healthcare context shall process the request and update state.
User Story: As a user/system, I want to retrieve patient record by id, so that I can use the information.
EARS Requirement:
GetPatientById query is received, the healthcare context shall return Patient.User Story: As a user/system, I want to search clinical records by criteria, so that I can use the information.
EARS Requirement:
SearchClinicalRecords query is received, the healthcare context shall return ClinicalRecord[].User Story: As a user/system, I want to retrieve provider profile details, so that I can use the information.
EARS Requirement:
GetProviderDetails query is received, the healthcare context shall return Provider.User Story: As a user/system, I want to query audit log entries, so that I can use the information.
EARS Requirement:
QueryAuditLog query is received, the healthcare context shall return AuditRecord[].