Even, CDA-CH V2 does not contain normative specification for the CDA body, there are some useful methods placed in the base class CdaChV2StructuredBody in order to make them available for all Swiss exchange formats:
addNarrativeTextSection(...) / getSections()
Adds a narrative text section contyining a title and a text, only.
disableNarrativeTextGeneration() / enableNarrativeTextGeneration()
Methods to activate/suspend the automatic text generation as described below.
Embedds the given PDF as base64 multimedia object in the cda body. This allows to provide a view which has been signed by the legal authenticator.
According to the CDA-CH V2 recommencation, PDF/A is intended. See also CDA-CH-V2.
Narrative text in the CDA body
For some CDA body elements, the narrative text can be generated automatically. The entry point is the following package:
ObservationChTextBuilder: Creates narrative text for Laboratory observations and Vital signs
AllergyConcernChTextBuilder: Creates narrative text for Allergies and intolerances (currently draft, only)
EdDiagnosisChTextBuilder: Creates narrative text for emergency department summary diagnosis (currently draft, only)
ProblemConcernEntryChTextBuilder: Creates narrative text for problem lists (currently draft, only)**
Currently the following languages are supported:
If you want to create your own narrative text, then use disableNarrativeTextGeneration() and setNarrativeTextSection*(...) to continue suspended automatic narrative text generation, you can use enableNarrativeTextGeneration().