Macadamian Blog

Sample CCR and CCD XML files

Didier Thizy

You bought the official CCD standards document, you have a grasp on what the different is between a ClinicalDocument, a StructuredBody and a CCD Component, and now it’s time to put it into practice in an XML file.

CCR CCD File Example

You bought the official CCD standards document, you have a grasp on what the different is between a ClinicalDocument, a StructuredBody and a CCD Component, and now it’s time to put it into practice in an XML file. Where to begin? Example XML files would be really useful.

Surprisingly, it’s a challenge to find good examples and samples of XML files that follow the CCR and CCD standards. Below we’ve put together a list of the best examples found on the internet.

CCR XML Files

It’s not quite an XML file, but this 13 minute CCR XML video tutorial is a good place to start to make sure you’ve got the basics under your belt.

Google Health gives some good XML samples of their particular subset of the CCR standard. Another example in the Google Health .NET reference. In fact, you can generate your own CCR xml files as mentioned in this blog –  but again they will only represent the subset of information that Google Health supports.

This CCR introduction gives another small practical XML snippet.

CCD XML Files

First, it’s important to keep in mind CCD is simply a constraint on the larger HL7 CDA standard, so most CDA XML examples will work as CCD samples as well. For example the official HL7 page offers a number of CDA specifications and variants that each come with XML snippets and full illustrative XML files.

Wikipedia points to this government site for CDA and CCD samples embedded within the various downloadable documentation.

If you’re looking for a quick introduction, the CCD quickstart guide gives several good samples, in both CCD and CCR, allowing you to also compare the mapping from one to the other and understand the evolution of the CCR and CDA standards to the collaborative CCD standard. The zip file contains two XML files, each one following one of the two standards. Not only are they very complete representations, but since they are based on the same source information, it is very useful to compare the mapping from one to the other and to understand the evolution of the CCR and CDA standards to the collaborative CCD standard.

A lot of these examples tend to always revolve around the same “toy data”. For some real world data examples, we had luck browsing open forums. For example on the Mirth (open source HL7 parser) forum, I found this post with multiple real-world CCD XML files (need to register to view).


10 Critical Lessons Learned Developing Healthcare Software

In this whitepaper, we outline the top ten lessons learned relative to specialized user requirements, architecture for regulatory compliance, database design and more.

Download Now


Author Overview

Didier Thizy

Didier is Macadamian's VP of Sales, running all account management as well as our growing healthcare practice. Responsible for a cross-functional unit of design and development consultants, his areas of focus include consumer and enterprise IoT software, health software, and usability of complex systems. Didier is an active member of HIMSS, MGMA and Health 2.0. When Didier is not on the road, you can find him rocking out to 80s music, and on certain rare mornings, sleeping in because his kids decided to cut him some slack. Didier has been a software professional for 16 years, holding a variety of positions in Software R&D, Product Management and Business Development.