Package ca.uhn.fhir.narrative
Interface INarrativeGenerator
- All Known Implementing Classes:
BaseNarrativeGenerator
,BaseThymeleafNarrativeGenerator
,CustomThymeleafNarrativeGenerator
,DefaultThymeleafNarrativeGenerator
,NullNarrativeGenerator
public interface INarrativeGenerator
-
Method Summary
Modifier and TypeMethodDescriptiongenerateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) Generates the narrative for the given resource and returns it as a stringboolean
populateResourceNarrative
(FhirContext theFhirContext, IBaseResource theResource) Generate any narratives for the given resource that have applicable templates, and populates the appropriate field(s).
-
Method Details
-
populateResourceNarrative
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.
- Returns:
- Returns
true
if a narrative was actually generated
-
generateResourceNarrative
Generates the narrative for the given resource and returns it as a string
-