Creating a CCD Document Using the MDHT API

I am trying to use the MDHT API to create CCD documents. I do it as follows.

We downloaded the Java runtime libraries and put them in the classpath and wrote the code to create all the partitions using the MDHT API.

The write code for each section takes a lot of time (a bit more complicated). I was wondering if I was missing anything. Is there any mdht open source GUI that generates code for each section or am I moving in the right direction?

I'm currently stuck in the Drugs / Immunization Section. Can someone redirect me to any examples / tutorials related to each section. I already looked at the user / developer guide.
Any help is appreciated.

+4
source share
2 answers

I think the MDHT API will only provide a model for a CCD document. if it contains any default implimentaion for creating a CCD document, I donโ€™t know .. anyway, itโ€™s best to just generate the XML in the DOM, STAXs API.

link to ccd

Another best API I've found is MIRTH follow the link

Mirth User Guide

+4
source

The best place to look for help / sample code is the Developer Forum: Eclipse Community Forums "Tools to Improve Model Performance .

You may need to create an (free) access account.

You can also go to the forums to post your specific MedicationsSection / immunization question for a specific answer.

Another good site is CDA Tools: MDHT Developer's Guide . See Produce CDA Content Using the MDHT API .

There are many examples of creating documents in test code projects. Download All In One (MDHT_CDATools) from GitHub linked on the MDHT project site and see the code in test projects such as: org.openhealthtools.mdht.cda.consol.example

The closest (current) thing to the GUI-based document creation application in MDHT will use all in one to modify existing models and generate fragments / documents in this way (or create a model from scratch that includes only what you need) . If you need an entire document created in XML, you can generate an instance from GeneralHeaderConstraints unlike any of many child templates (which will give you fragments). In any case, this is actually not the intention of the model interface (it is more suitable for correspondence), and you will need much more time than using the API itself, which refers to existing models in order to quickly generate compatible content.

+3
source

Source: https://habr.com/ru/post/1385296/


All Articles