Hello all,
I am writing a zend module to respond to the patient.ccda.create event so the resulting CCDA can be modified to include information from our clinics custom forms. I am seeking advice on if I am going about this the correct way or if there is a better path.
After the CCDA is requested via the FHIR interface from an external process. The CareCoordination module then communicates with the ccdaservice receiving the CCDA, making note of it, and writing it to the file system.
My event handler then gets called and I have the opportunity to pull the CCDA file using the Documents interface. I intend to add additional information to the Social History section (specificaly gender identity and sex assigned at birth). I expect to do this by parsing the CCDA xml and adding to it like is done in the Care Coordination Module CcdaGenerator.php. Then using the Documents interface writing the CCDA back to the filesystem.
Any feedback is appreciated.