
Package ca.uhn.fhir.narrative2
Class NullNarrativeGenerator
java.lang.Object
ca.uhn.fhir.narrative2.NullNarrativeGenerator
- All Implemented Interfaces:
INarrativeGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource) Generates the narrative for the given resource and returns it as a stringbooleanpopulateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource) Generate any narratives for the given resource that have applicable templates, and populates the appropriate field(s).
-
Constructor Details
-
NullNarrativeGenerator
public NullNarrativeGenerator()
-
-
Method Details
-
populateResourceNarrative
Description copied from interface:INarrativeGeneratorGenerate any narratives for the given resource that have applicable templates, and populates the appropriate field(s). This almost always means theResource.text.narrativefield, but for some resource types it can mean other fields (e.g.Composition.- Specified by:
populateResourceNarrativein interfaceINarrativeGenerator- Returns:
- Returns
trueif a narrative was actually generated
-
generateResourceNarrative
Description copied from interface:INarrativeGeneratorGenerates the narrative for the given resource and returns it as a string- Specified by:
generateResourceNarrativein interfaceINarrativeGenerator
-