On this page:

23.0CDA Module Introduction


Smile CDR includes a CDA document generation tool capable of transforming a Bundle of Fhir resources into a CDA XML document.

In order to create a CDA document, you must first have a Fhir Bundle of type Document. In order to create a Fhir Bundle of type Document, you must first have a Fhir Composition.

Smile CDR's CDA module can generate a CDA document from your Fhir database in a single operation.

Your CDA document needs are likely unique, and so there is no hard-coded template in Smile that dictates what your CDA document includes. Instead, there is a rich API in the JavaScript Execution Environment that can be used to create CDA templates that suit your needs.

Once you have a CDA template, you can create a CDA document from a Fhir database with a single request using the CDA REST API. The creation of the Composition, Bundle of type document, and CDA XML document is all taken care of for you in that single operation.

The typical workflow for getting your Smile instance ready to create CDA documents is as follows:

  1. Instantiate a module of type Cda Exchange.
  2. Create a Cda JavaScript template using the functionality available through the JavaScript Execution Environment.
  3. POST your template to the Cda Exchange module.
  4. Apply your template. Depending on your template, you may be required to provide a number of arguments

The rest of this documentation will walk you through the workflow and prepare you to use the full capability of this module.

23.0.1Implementation roadmap


SmileCDR currently supports the generation of Continuity of Care (CCD) documents, including these sections. Implementation of additional document and section types is ongoing.

SmileCDR currently only supports the patient parameter of the DocumentReference/$docref operation. Implementation of the remaining parameters is ongoing.

If you have CDA document generation needs that are not currently supported, please contact us.