Skip to content

Episode Registration #49

@dkoutsonikolis

Description

@dkoutsonikolis

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

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions