Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

sql

tsql

xml

hl7

ccd

I have been given a project to create HL7 Continuity of Care Documents (CCD) using data stored in a SQL Server 2008 database. I have intermediate to advanced knowledge in SQL programming but I have never used FOR XML statements.

Has anybody ever built a stored procedure that would successfully create CCD's strictly using only SQL programming with FOR XML?

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.

Thanks

like image 663
Ray Pablo Avatar asked Nov 13 '22 15:11

Ray Pablo


1 Answers

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.

We then wrote (a lot of) code that creates and populates the CCD classes from data in the database.

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. There are several locations for the ccd.xsl including this one.

like image 173
competent_tech Avatar answered Nov 17 '22 00:11

competent_tech