Description:

Extracts information from an Consolidated CDA formatted FlowFile and provides individual attributes as FlowFile attributes. The attributes are named as . If the Parent is repeating, the naming will be . For example, section.act_07.observation.name=Essential hypertension

Tags:

CCDA, healthcare, extract, attributes

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.

Name Default Value Allowable Values Description
Skip Validation true * true
* false
Whether or not to validate CDA message values

Relationships:

Name Description
success A FlowFile is routed to this relationship if it is properly parsed as CDA and its contents extracted as attributes.
failure A FlowFile is routed to this relationship if it cannot be parsed as CDA or its contents extracted as attributes.

Reads Attributes:

None specified.

Writes Attributes:

None specified.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

Apache NiFi C-CDA Processor

C-CDA Processor Bundle provides parser for Consolidated-CDA documents
This processor parses C-CDA and sets attributes as FlowFile attributes. The attributes are named as . If the Parent is repeating, the naming will be .

Example Attribute Output

problemSection.act.observation.problemStatus.code.code=33999-4
problemSection.act.observation.problemStatus.code.codeSystem=2.16.840.1.113883.6.1
problemSection.act.observation.problemStatus.code.codeSystemName=LOINC
problemSection.act.observation.problemStatus.code.displayName=Status
problemSection.act.observation.problemStatus.statusCode.code=completed
problemSection.act.observation.statusCode.code=completed

Example Parser Mapping

This processor is driven by a mapping file which specifies the element relationships. For example

org.openhealthtools.mdht.uml.cda.consol.impl.ProblemObservationImpl=id#element.ids\
    @values#element.values[0]\
    @statusCode#element.statusCode\
    @effectiveTime#element.effectiveTime\
    @negation#element.negationInd\
    @problemStatus#element.problemStatus
org.openhealthtools.mdht.uml.cda.consol.impl.ProblemStatusImpl=id#element.id\
    @code#element.code\
    @values#element.values[0]\
    @statusCode#element.statusCode

References

These mappings are defined as per the implementation guide-HL7 Implementation Guide for CDA Release 2