openhealthcare / elcid

elCID deployment for UCLH
http://elcid.openhealthcare.org.uk
Other
7 stars 3 forks source link

immune liaison, unable to add a patient after the patient has been confirmed with discharge #1526

Closed fredkingham closed 6 years ago

fredkingham commented 6 years ago

raised by @michaeledwardmarks

The reason for this is appears to be that a combination of 2 things.

https://github.com/openhealthcare/opal/blob/v0.10.0/opal/models.py#L774

and

https://github.com/openhealthcare/elcid/blob/v0.7.0/elcid/assets/js/elcid/controllers/diagnosis_hospital_number.js#L76

We don't actually change the the category on discharge.

For teams with no sub tag, this 'just works' when we run set tag names, there are no tags and the episode is set to inactive.

For teams with a sub tag we never open a new episode.

This is supposed to be done at https://github.com/openhealthcare/opal/blob/v0.10.0/opal/templates/_includes/discharge_form.html#L4 but this value is not put onto the episode.