
Package ca.uhn.fhir.narrative
Class BaseThymeleafNarrativeGenerator
- java.lang.Object
-
- ca.uhn.fhir.narrative2.BaseNarrativeGenerator
-
- ca.uhn.fhir.narrative2.ThymeleafNarrativeGenerator
-
- ca.uhn.fhir.narrative.BaseThymeleafNarrativeGenerator
-
- All Implemented Interfaces:
INarrativeGenerator
- Direct Known Subclasses:
CustomThymeleafNarrativeGenerator
,DefaultThymeleafNarrativeGenerator
public abstract class BaseThymeleafNarrativeGenerator extends ThymeleafNarrativeGenerator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseThymeleafNarrativeGenerator()
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<String>
getPropertyFile()
boolean
populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource)
Generate any narratives for the given resource that have applicable templates, and populates the appropriate field(s).-
Methods inherited from class ca.uhn.fhir.narrative2.ThymeleafNarrativeGenerator
applyTemplate, getStyle, setMessageResolver
-
Methods inherited from class ca.uhn.fhir.narrative2.BaseNarrativeGenerator
cleanWhitespace, getManifest, setManifest
-
-
-
-
Constructor Detail
-
BaseThymeleafNarrativeGenerator
protected BaseThymeleafNarrativeGenerator()
Constructor
-
-
Method Detail
-
populateResourceNarrative
public boolean populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource)
Description copied from interface:INarrativeGenerator
Generate any narratives for the given resource that have applicable templates, and populates the appropriate field(s). This almost always means theResource.text.narrative
field, but for some resource types it can mean other fields (e.g.Composition.
- Specified by:
populateResourceNarrative
in interfaceINarrativeGenerator
- Overrides:
populateResourceNarrative
in classBaseNarrativeGenerator
- Returns:
- Returns
true
if a narrative was actually generated
-
getPropertyFile
protected abstract List<String> getPropertyFile()
-
-