Package ca.uhn.fhir.narrative
Class CustomThymeleafNarrativeGenerator
java.lang.Object
ca.uhn.fhir.narrative2.BaseNarrativeGenerator
ca.uhn.fhir.narrative.BaseThymeleafNarrativeGenerator
ca.uhn.fhir.narrative.CustomThymeleafNarrativeGenerator
- All Implemented Interfaces:
INarrativeGenerator
-
Field Summary
Fields inherited from class ca.uhn.fhir.narrative.BaseThymeleafNarrativeGenerator
FHIRPATH
-
Constructor Summary
ConstructorDescriptionConstructor.CustomThymeleafNarrativeGenerator
(String... theNarrativePropertyFiles) Create a new narrative generatorCustomThymeleafNarrativeGenerator
(List<String> theNarrativePropertyFiles) Create a new narrative generator -
Method Summary
Modifier and TypeMethodDescriptionvoid
setManifest
(NarrativeTemplateManifest theManifest) void
setPropertyFile
(String... thePropertyFile) Set the property file to useMethods inherited from class ca.uhn.fhir.narrative.BaseThymeleafNarrativeGenerator
applyTemplate, getStyle, setFhirPathEvaluationContext, setMessageResolver
Methods inherited from class ca.uhn.fhir.narrative2.BaseNarrativeGenerator
cleanWhitespace, generateResourceNarrative, getTemplateForElement, populateResourceNarrative
-
Constructor Details
-
CustomThymeleafNarrativeGenerator
public CustomThymeleafNarrativeGenerator()Constructor. If this constructor is used you must explicitly callsetManifest(NarrativeTemplateManifest)
to provide a template manifest before using the generator. -
CustomThymeleafNarrativeGenerator
Create a new narrative generator- Parameters:
theNarrativePropertyFiles
- The name of the property file, in one of the following formats:- file:/path/to/file/file.properties
- classpath:/com/package/file.properties
-
CustomThymeleafNarrativeGenerator
Create a new narrative generator- Parameters:
theNarrativePropertyFiles
- The name of the property file, in one of the following formats:- file:/path/to/file/file.properties
- classpath:/com/package/file.properties
-
-
Method Details
-
getManifest
- Specified by:
getManifest
in classBaseNarrativeGenerator
-
setManifest
-
setPropertyFile
Set the property file to use- Parameters:
thePropertyFile
- The name of the property file, in one of the following formats:- file:/path/to/file/file.properties
- classpath:/com/package/file.properties
-