简体   繁体   English

HL7使用SQL编程实现关怀文档(CCD)的连续性

[英]HL7 Continuity of Care Document (CCD) Development using SQL Programming

I have been given a project to create HL7 Continuity of Care Documents (CCD) using data stored in a SQL Server 2008 database. 我已经获得了一个项目,使用存储在SQL Server 2008数据库中的数据创建HL7 Continuity of Care Documents(CCD)。 I have intermediate to advanced knowledge in SQL programming but I have never used FOR XML statements. 我有SQL编程的中级到高级知识,但我从未使用过FOR XML语句。

Has anybody ever built a stored procedure that would successfully create CCD's strictly using only SQL programming with FOR XML? 有没有人构建过一个存储过程,只使用FOR XML的SQL编程就可以成功创建CCD?

Any tips would be greatly appreciated. 任何提示将非常感谢。 If anybody used anything else besides SQL, feel free to let me know, but my background is mainly in SQL, T-SQL, with some knowledge in Java and VB. 如果有人除了SQL之外还使用了其他任何东西,请随时告诉我,但我的背景主要是SQL,T-SQL,以及Java和VB方面的一些知识。

Thanks 谢谢

The way that we approached this issue in our .Net application is that we first created classes from the CCD or CDA xsd (which can be obtained from several locations, including the HL7 store ) using Microsoft's xsd tool . 我们在.Net应用程序中处理此问题的方式是我们首先使用Microsoft的xsd工具从CCD或CDA xsd(可以从多个位置获取,包括HL7存储库 )创建类。

We then wrote (a lot of) code that creates and populates the CCD classes from data in the database. 然后,我们编写了(很多)代码,用于从数据库中的数据创建和填充CCD类。

In order to present the data to the user, we first serialized the record to string using the XMLSerializer, then converted the generated XML to HTML using the ccd.xsl transform file. 为了向用户呈现数据,我们首先使用XMLSerializer将记录序列化为字符串,然后使用ccd.xsl转换文件将生成的XML转换为HTML。 There are several locations for the ccd.xsl including this one . ccd.xsl有几个位置,包括这个位置。

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

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