I’m currently working on extending the capabilities of the patient-chart in OpenMRS, specifically the “03-draw on body diagram” feature. My goal is to create an app that allows users to draw on a body diagram for annotations, and I want to integrate it as an extension that binds to one or more slots in the patient-chart.
React-Level: I intend to use the
usePatient() hook from the
@openmrs/esm-patient-chart package to fetch the contextually-appropriate patient. My plan is to pass the patient’s UUID to the
createAttachment function of the AttachmentResource for processing the attachment upload. Is this the right approach, or is there a better way to achieve this integration?
tried hard coding the patientUuid but i get the error;