The problem being that it handles obs, attachments, coded diagnoses, but then it fails to render pretty much anything else: non-coded diagnoses, conditions, orders… etc.
(Btw yes coded diagnoses are fine, but not non-coded diagnoses!)
What about embedding the VIEW mode when a form was used to generate the encounter’s data? Rather than relying on the custom implementation behind ‘show details’.
@ssmusoke the VIEW mode just renders the form, so it will bring all the JavaScript with it as well.
Now, if one clicks twice on ‘show details’, once for an encounter and a second time for another encounter, there may be JavaScript or CSS collisions if stuff isn’t namespaced correctly. I mean, maybe, this would have to be tried out.