public abstract class BaseNarrativeGenerator extends Object implements INarrativeGenerator
| Constructor and Description |
|---|
BaseNarrativeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
applyTemplate(FhirContext theFhirContext,
INarrativeTemplate theTemplate,
IBase theTargetContext) |
static String |
cleanWhitespace(String theResult)
Trims the superfluous whitespace out of an HTML block
|
INarrativeTemplateManifest |
getManifest() |
protected abstract EnumSet<TemplateTypeEnum> |
getStyle() |
boolean |
populateResourceNarrative(FhirContext theFhirContext,
IBaseResource theResource)
Generate any narratives for the given resource that have applicable
templates, and populates the appropriate field(s).
|
void |
setManifest(INarrativeTemplateManifest theManifest) |
public BaseNarrativeGenerator()
public INarrativeTemplateManifest getManifest()
public void setManifest(INarrativeTemplateManifest theManifest)
public boolean populateResourceNarrative(FhirContext theFhirContext, IBaseResource theResource)
INarrativeGeneratorResource.text.narrative field, but for some resource types
it can mean other fields (e.g. Composition.populateResourceNarrative in interface INarrativeGeneratortrue if a narrative was actually generatedprotected abstract String applyTemplate(FhirContext theFhirContext, INarrativeTemplate theTemplate, IBase theTargetContext)
protected abstract EnumSet<TemplateTypeEnum> getStyle()
public static String cleanWhitespace(String theResult)
Copyright © 2014–2019 University Health Network. All rights reserved.