-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
We should be able to register an episode for an existing patient.
To do that we should create a POST /episodes/{patient_id}/ endpoint, which would expect as input the following:
- type of episode
- hospital_id, this is the hospital where the episode was registered. To get the possible hospitals, the FE should use the
GET/hospitals/endpoint. - CEPOD
- Side
- Occurence
- Type
- Complexity
- Comments
- Mesh Type
- Anaesthetic Type
- Diathermy Used
- surgeon_ids, a list of the ids of the surgeons of the episode (retrieve them through the endpoint described here GET Medical Personnel endpoint (List) #48 )
Note: We will validate if there is a PatientHospitalMapping entry for the specified Hospital for this patient before registering an episode. If we want to register an episode where there is no PatientHospitalMapping entry yet, we should first create one using the POST patient-hospital-mappings endpoint.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request