CDA API Guide

cda

This module provides the basic template for new CDA documents. It includes a customizable schema that produces a near-complete CDA header.

This function creates an empty CDA document:

  • new : Create an empty CDA document

new() [top]

Usage: cda.new()

Creates a new, empty CDA document.

Returns:

  • An empty cda document with a near-complete header

Parameters:

This function requires no parameters.

Example:
local Doc = cda.new()

Example Result:

<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3"
        xmlns:cda="urn:hl7-org:v3" xmlns:sdtc="urn:hl7-org:sdtc">
	<realmCode code="US"/>
	<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
	<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
	<templateId root="2.16.840.1.113883.10.20.22.1.2"/>
	<id extension="" root=""/>
	<code/>
	<title></title>
	<effectiveTime/>
	<confidentialityCode/>
	<languageCode code=""/>
	<setId extension="" root=""/>
	<versionNumber value=""/>
</ClinicalDocument>

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.