When editing a patient and clearing their ICD Healthcode, it currently leads to an empty array.
Unfortunately, when having an empty array, it leads to the patient being unable to be searched using the search feature.
So to fix this, when editing a patient and deleting their ICD health codes, it should not store an empty array.
- Example: Instead of storing [ ], it should store [ { "code": "" } ] for ICD health codes
This way they will continue to appear in searches.
The problem will likely be found under editPatient.js
When editing a patient and clearing their ICD Healthcode, it currently leads to an empty array.
Unfortunately, when having an empty array, it leads to the patient being unable to be searched using the search feature.
So to fix this, when editing a patient and deleting their ICD health codes, it should not store an empty array.
This way they will continue to appear in searches.
The problem will likely be found under editPatient.js