We are using the HTMLFormEntry module in our project. In one of the forms we are using the allergy-fragment, where we can see and update the allergies for the patient.
We can click on update allergies and it opens the allergy fragment, where we make changes to allergies. As we can see, there might be previously filled data in the form when we go to update the allergies, which is lost when we come back to the form.
@mddubey I suspect that when first loading the form it should list existing allergies right?
If yes I would simply introduce a new <allergy/> tag (in the same spirit of the <condition/> tag). The tag would be used with a <repeat/> to capture a capped number of allergies within the form.
In short there would be two components in the end:
Again, similarly as to what was made with the <condition/> tag, it’s merely a convenience to record new conditions through a form. Managing them further would require to use the appropriate screen in the Ref App. I suggest to do the same here.
Expand the Allergy core entity to link it to a nullable Encounter and
Have Allergy implement the new FormRecordable interface.
Easy stuff, especially now that there’s a recent template with Condition, but someone would have to do it and right now this is not (yet) on our roadmap.
It’s only after all the above that an actual <allergy/> HFE tag could be designed.