Skip to content

Episode Follow Up #51

@dkoutsonikolis

Description

@dkoutsonikolis

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_date of the related Episode.
  • A Discharge should exist for the related Episode(ie the patient should be discharged in order to create a follow up).
  • The Follow Up date provided is greater than the date of the related Discharge.
  • No validation takes place between the date and the date of other FollowUp objects for the same Episode(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

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions