CDA Creator
The CDA Creator component is used as an example component for creating CDA documents (via the CDA Library) to send to a downstream destination. It demonstrates how to build and map most necessary CDA elements using sample hardcoded values and can be used to build either structured or unstructured CDA documents. It is not designed to parse CDA documents.
Running the Component
Adapting the Component
There are two types of changes that need to be made to adapt the component to your workflow:
Replace hardcoded values with values mapped from an upstream data source
Add or remove elements and attributes
These changes need to be made in the following locations:
Scaling Mapping Modules
Given the complex structure of CDA documents, it is important that mapping scripts are kept as modular, clear, and repeatable as possible. Let’s walk through how we might adapt the current mapVitalSigns.lua to create multiple vital sign entries.
For this example, we’ll assume we have a table T of inbound data that contains the specific data we need loaded in the structure we need. In reality, this is not always the case and you may need to load your inbound data into an intermediate table that allows for easier mapping (aka implement the Canonical Data Model design pattern).