简体   繁体   English

使用MDHT API生成CCD文档

[英]Generating CCD document using MDHT API

I am trying to use MDHT API to generate CCD documents. 我正在尝试使用MDHT API生成CCD文档。 I am doing this in the following way. 我是按照以下方式做到这一点的。

Downloaded Java runtime libraries and placed them in classpath and writing code to generate all the sections using MDHT API. 下载Java运行时库并将它们放在类路径中并编写代码以使用MDHT API生成所有部分。

Writing code for each section is taking long (a bit complicated). 为每个部分编写代码需要很长时间(有点复杂)。 I was wondering if I am missing anything. 我想知道我是否遗漏了什么。 Is there any open source mdht GUI that generates code for each section or am I moving in the right direction? 是否有任何开源的mdht GUI为每个部分生成代码,或者我正朝着正确的方向前进?

I am currently stuck at Medications Section/Immunization Section. 我目前被困在药物科/免疫科。 Can anyone please redirect me to any examples/tutorials related to each section. 任何人都可以请将我重定向到与每个部分相关的任何示例/教程。 I have already looked at user guide/developers guide. 我已经查看了用户指南/开发人员指南。
Any help is appreciated. 任何帮助表示赞赏。

I think MDHT API will only provide a Model for the CCD document. 我认为MDHT API只会为CCD文档提供一个模型。 if it contains any default implimentaion to generate CCD document,,i dont know.. any way better you just generate the XML in DOM,STAXs API. 如果它包含任何默认的implimentaion生成CCD文件,我不知道..任何方式更好,你只是在DOM,STAXs API生成XML。

CCD example link CCD示例链接

Another better API that i found is MIRTH follow the link 我找到的另一个更好的API是MIRTH,请点击链接

Mirth User guide 欢乐用户指南

The best place to look for help/sample code is the developers forum: Eclipse Community Forums » Model Driven Health Tools . 寻找帮助/示例代码的最佳位置是开发人员论坛: Eclipse社区论坛»模型驱动的健康工具

You may need to create a (free) account to get access. 您可能需要创建一个(免费)帐户才能访问。

You could also go to the forums to post your specific MedicationsSection/immunization question for a possible specific answer. 您也可以到论坛发布您的特定MedicationsSection /免疫问题,以获得可能的具体答案。

Another good site is CDA tools: MDHT Developers Guide . 另一个好的网站是CDA工具: MDHT开发者指南 Look at Produce CDA Content using MDHT API . 查看使用MDHT API生成CDA内容

There are countless examples of building documents in the test code projects. 在测试代​​码项目中有无数的构建文档的例子。 Download the All In One (MDHT_CDATools) from GitHub linked in the MDHT project site and look at the code in the test projects such as: org.openhealthtools.mdht.cda.consol.example 从MDHT项目站点中链接的GitHub下载All In One(MDHT_CDATools)并查看测试项目中的代码,例如: org.openhealthtools.mdht.cda.consol.example

The closest (current) thing to a GUI based document building application in MDHT would be using the all in one to modify the existing models and generate sample snippets/documents that way (or creating a model from scratch, which includes only what you need). 在MDHT中基于GUI的文档构建应用程序最接近(当前)的事情是使用all in one来修改现有模型并以这种方式生成样本片段/文档(或从头开始创建模型,其中仅包含您需要的内容) 。 If you wanted the entire document produced in XML, you could then generate the instance from GeneralHeaderConstraints as opposed to any of the many child templates (which would give you snippets). 如果您希望以XML格式生成整个文档,则可以从GeneralHeaderConstraints生成实例,而不是任何多个子模板(这将为您提供片段)。 Either way, this is not really the intention of the model interface (it's more for conformance) and would take you far longer to implement than using the API itself - which accesses the models which already exist in order to auto-generate conformant content quickly. 无论哪种方式,这实际上并不是模型接口的意图(它更符合一致性)并且比使用API​​本身需要更长的时间来实现 - 它访问已经存在的模型以便快速自动生成符合要求的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM