📋 UC05: Social Worker Request
Use Case Uc05 Care Request Submitted By A Social Worker
USE CASE NAME: Care Request Creation by a Social Worker
PRIMARY ACTOR: Social worker registered on CareDeal (as Patient)
Business Objective
Allow a social worker to create a care request for a patient
they are supporting.
Preconditions
- The social worker has a CareDeal account of type "patient"
- The social worker is logged into the application
- The social worker knows the patient's information
A social worker uses the SAME form as a patient, but:
1. Enters the BENEFICIARY'S information (not their own)
2. Selects "Professional" as contact person type
3. Their phone number is used as primary contact
- The social worker presses the "+" button on the home screen
- The care request form opens
- They select the types of care needed for the beneficiary
- They press "Next"
- They indicate the daily frequency of care
- They press "Next"
- They enter the BENEFICIARY'S HOME address
- They verify the location on the map
- They press "Next"
- They enter:
- Beneficiary's first name
- Beneficiary's last name
- Date of birth
- Email (optional)
- Languages spoken
- They press "Next"
- They select "PROFESSIONAL"
- This indicates that the contact is not the patient
- The social worker's phone number will be used
- They press "Next"
- The social worker's number (from their account) is automatically used
- They can optionally add the beneficiary's phone number
- They press "Next"
- They verify all information
- They confirm the request
- The request is created with:
- userUuid: social worker's UUID
- phoneNumber: social worker's number
- patientPhoneNumber: beneficiary's number (optional)
- contactPersonType: "professional"
- Patient info: beneficiary's info
- Address: beneficiary's home
PRIMARY CONTACT (phoneNumber):
- This is the social worker's phone number
- Nurses will call this number first
- If the social worker doesn't answer, they may try patientPhoneNumber
SECONDARY CONTACT (patientPhoneNumber):
- This is the beneficiary's phone number (optional)
- Allows nurses to contact the patient directly
- Useful if the social worker is unreachable
Recommendation
Always add the beneficiary's phone number if available.
This facilitates direct communication between nurse and patient.
For The Social Worker
- The request appears in their "In progress" requests
- They receive calls from nurses on their number
- They can mark the request as "arranged"
- They can cancel the request if needed
For Nurses
- The request appears in "Available requests"
- They see "Professional" as contact type
- They know they're talking to an intermediary
- They can call the social worker's number
WORKFLOW:
1. Nurse sees the request
2. Nurse calls the social worker
3. Social worker provides beneficiary details
4. Nurse contacts the beneficiary (or social worker coordinates)
5. Once arranged, social worker marks the request as "arranged"
1. Isolated Elderly Person
- The social worker creates a request for a person without a smartphone
- The nurse contacts the social worker
- The social worker coordinates with the patient
2. Person With Reduced Autonomy
- The beneficiary cannot manage a care request themselves
- The social worker handles all the administrative process
3. Multiple Beneficiaries
- The social worker can create several requests
- One request per beneficiary
- All linked to their same account
Same files as UC04 with:
- contactPersonType = ContactPersonType.professional
- phoneNumber = social worker's number
- patientPhoneNumber = beneficiary's number (optional)
Contact person type:
- lib/core/domain/entities/contact_person_type.dart
enum ContactPersonType { patient, friend, family, professional }