public abstract class BaseThymeleafNarrativeGenerator extends Object implements INarrativeGenerator
| Modifier and Type | Class and Description |
|---|---|
class |
BaseThymeleafNarrativeGenerator.NarrativeAttributeProcessor |
| Constructor and Description |
|---|
BaseThymeleafNarrativeGenerator()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateNarrative(FhirContext theContext,
IBaseResource theResource,
INarrative theNarrative) |
protected abstract List<String> |
getPropertyFile() |
boolean |
isCleanWhitespace()
If set to
true (which is the default), most whitespace will be trimmed from the generated narrative
before it is returned. |
boolean |
isIgnoreFailures()
If set to
true, which is the default, if any failure occurs during narrative generation the
generator will suppress any generated exceptions, and simply return a default narrative indicating that no
narrative is available. |
boolean |
isIgnoreMissingTemplates()
If set to true, will return an empty narrative block for any profiles where no template is available
|
void |
setCleanWhitespace(boolean theCleanWhitespace)
If set to
true (which is the default), most whitespace will be trimmed from the generated narrative
before it is returned. |
void |
setIgnoreFailures(boolean theIgnoreFailures)
If set to
true, which is the default, if any failure occurs during narrative generation the
generator will suppress any generated exceptions, and simply return a default narrative indicating that no
narrative is available. |
void |
setIgnoreMissingTemplates(boolean theIgnoreMissingTemplates)
If set to true, will return an empty narrative block for any profiles where no template is available
|
public BaseThymeleafNarrativeGenerator()
public void generateNarrative(FhirContext theContext, IBaseResource theResource, INarrative theNarrative)
generateNarrative in interface INarrativeGeneratorprotected abstract List<String> getPropertyFile()
public boolean isCleanWhitespace()
true (which is the default), most whitespace will be trimmed from the generated narrative
before it is returned.
Note that in order to preserve formatting, not all whitespace is trimmed. Repeated whitespace characters (e.g. "\n \n ") will be trimmed to a single space.
public boolean isIgnoreFailures()
true, which is the default, if any failure occurs during narrative generation the
generator will suppress any generated exceptions, and simply return a default narrative indicating that no
narrative is available.public boolean isIgnoreMissingTemplates()
public void setCleanWhitespace(boolean theCleanWhitespace)
true (which is the default), most whitespace will be trimmed from the generated narrative
before it is returned.
Note that in order to preserve formatting, not all whitespace is trimmed. Repeated whitespace characters (e.g. "\n \n ") will be trimmed to a single space.
public void setIgnoreFailures(boolean theIgnoreFailures)
true, which is the default, if any failure occurs during narrative generation the
generator will suppress any generated exceptions, and simply return a default narrative indicating that no
narrative is available.public void setIgnoreMissingTemplates(boolean theIgnoreMissingTemplates)
Copyright © 2014–2017 University Health Network. All rights reserved.