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 <Parent> <dot> <Key>.
If the Parent is repeating, the naming will be <Parent> <underscore> <Parent Index> <dot> <Key>.

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