-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
We should create a POST /follow-ups/ endpoint. This endpoint should get as input:
- Episode ID
- Follow Up date
- attendee_ids, a list of the ids of the attendees of the follow up (retrieve them through the endpoint described here GET Medical Personnel endpoint (List) #48 )
- Pain Severity
- Pain Description
- Mesh Awareness
- Seroma
- Infection
- Numbness
All the above fields are mandatory except the Pain Description. There should be at least one Attendee.
Before adding a Follow Up, we should perform some validations:
- The Follow Up date provided is greater than the
surgery_dateof the relatedEpisode. - A
Dischargeshould exist for the relatedEpisode(ie the patient should be discharged in order to create a follow up). - The Follow Up date provided is greater than the
dateof the relatedDischarge. - No validation takes place between the
dateand thedateof otherFollowUpobjects for the sameEpisode(e.g. don't allow to register a Follow Up if there is already a Follow Up with greater date). This is so a user is flexible to register Follow Ups without doing it necessarily date ordered.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request