intesys / openhospital-api

OpenHospital API
GNU General Public License v3.0
2 stars 4 forks source link

PatientDTO: Extend GET /patients/search and GET /patients/{code} to include patient status #22

Closed alefalezza closed 2 years ago

alefalezza commented 2 years ago

Add field "status" to model PatientDTO. This field should be returned by GET /patients/{code} and GET /patients/search. Field "status" is an enum with these values: "I" | "O" and is calculated by looking in the "admission" table. Please refer to: https://github.com/informatici/openhospital-ui/blob/develop/api/oh.yaml#L7593