animalaidunlimited / apoms

2 stars 0 forks source link

Move Call Outcome to Patient record #198

Open sqljim opened 3 years ago

sqljim commented 3 years ago

At the moment the call outcome lives on the emergency record. An issue occurs where multiple animals are brought as part of the same emergency call and one of them dies in the truck or rescue is not required.

Putting the call outcome on the patient record resolves this issue.

As part of this issue we should also ensure that the rescue details dialog will prevent cases from being saved as admission if any animal has no tag number.

When there are multiple animals and none of them have a call outcome, when the user selects a call outcome for one record, the same call outcome should auto-apply to all of the other patients on the call. The user can then change individual outcomes.

Question: If one animal has a call outcome, do they all need to have a call outcome for the case to be valid and save to be allowed? Answer: Yes, all patients must have an outcome if one has an outcome. Also, tag number will be required if the status for that patient is admission.

Ensure that when adding ST for a patient that the tag number is updated.