
Package org.hl7.fhir.r5.renderers.utils
Class RenderingContext
java.lang.Object
org.hl7.fhir.r5.renderers.utils.RenderingContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static enum
static enum
What kind of user the renderer is targeting - end users, or technical users This affects the way codes and references are rendered -
Constructor Summary
ConstructorsConstructorDescriptionRenderingContext
(IWorkerContext worker, org.hl7.fhir.utilities.MarkDownProcessor markdown, org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions, String specLink, String localPrefix, String lang, RenderingContext.ResourceRendererMode mode) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
fixReference
(String ref) In the absence of a specified format, the renderers will default to the FormatStyle.MEDIUM for the current locale.In the absence of a specified format, the renderers will default to the FormatStyle.MEDIUM for the current locale.int
getLang()
org.hl7.fhir.utilities.MarkDownProcessor
getMode()
org.hl7.fhir.utilities.validation.ValidationOptions
if the timezone is null, the rendering will default to the source timezone in the resource Note that if you're working server side, the FHIR project recommends the use of the Date header so that clients know what timezone the server defaults to, There is no standard way for the server to know what the client timezone is.boolean
boolean
boolean
boolean
isHeader()
boolean
boolean
boolean
isPretty()
boolean
setAddGeneratedNarrativeHeader
(boolean addGeneratedNarrativeHeader) setCanonicalUrlsAsLinks
(boolean canonicalUrlsAsLinks) setCodeSystemPropList
(List<String> codeSystemPropList) void
setDateFormat
(DateTimeFormatter dateFormat) void
setDateFormatString
(String dateFormat) void
setDateTimeFormat
(DateTimeFormatter dateTimeFormat) void
setDateTimeFormatString
(String dateTimeFormat) void
setDateYearFormat
(DateTimeFormatter dateYearFormat) void
setDateYearFormatString
(String dateYearFormat) void
setDateYearMonthFormat
(DateTimeFormatter dateYearMonthFormat) void
setDateYearMonthFormatString
(String dateYearMonthFormat) setDefinitionsTarget
(String definitionsTarget) setDestDir
(String destDir) setHeader
(boolean header) setHeaderLevelContext
(int headerLevelContext) setInlineGraphics
(boolean inlineGraphics) void
setLocalPrefix
(String localPrefix) void
setNoSlowLookup
(boolean noSlowLookup) setPretty
(boolean pretty) setProfileUtilities
(ProfileUtilities profileUtilities) setQuestionnaireMode
(RenderingContext.QuestionnaireRendererMode questionnaireMode) setResolver
(Resolver.IReferenceResolver resolver) setSelfLink
(String selfLink) setServices
(FHIRPathEngine.IEvaluationContext services) void
setTargetVersion
(FhirPublication targetVersion) setTemplateProvider
(RenderingContext.ILiquidTemplateProvider templateProvider) setTerminologyServiceOptions
(org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions) void
setTimeZoneId
(ZoneId timeZoneId) setTooCostlyNoteEmpty
(String tooCostlyNoteEmpty) setTooCostlyNoteEmptyDependent
(String tooCostlyNoteEmptyDependent) setTooCostlyNoteNotEmpty
(String tooCostlyNoteNotEmpty) setTooCostlyNoteNotEmptyDependent
(String tooCostlyNoteNotEmptyDependent)
-
Constructor Details
-
RenderingContext
public RenderingContext(IWorkerContext worker, org.hl7.fhir.utilities.MarkDownProcessor markdown, org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions, String specLink, String localPrefix, String lang, RenderingContext.ResourceRendererMode mode) - Parameters:
context
- - access to all related resources that might be neededmarkdown
- - appropriate markdown processing engineterminologyServiceOptions
- - options to use when looking up codesspecLink
- - path to FHIR specificationlang
- - langauage to render in
-
-
Method Details
-
getContext
-
getProfileUtilities
-
getWorker
-
isCanonicalUrlsAsLinks
-
setCanonicalUrlsAsLinks
-
getMarkdown
-
getLang
-
getSpecificationLink
-
getLocalPrefix
-
getTerminologyServiceOptions
-
getTooCostlyNoteEmpty
-
setTooCostlyNoteEmpty
-
getTooCostlyNoteNotEmpty
-
setTooCostlyNoteNotEmpty
-
getTooCostlyNoteEmptyDependent
-
setTooCostlyNoteEmptyDependent
-
getTooCostlyNoteNotEmptyDependent
-
setTooCostlyNoteNotEmptyDependent
-
getHeaderLevelContext
-
setHeaderLevelContext
-
getResolver
-
setResolver
-
setTerminologyServiceOptions
public RenderingContext setTerminologyServiceOptions(org.hl7.fhir.utilities.validation.ValidationOptions terminologyServiceOptions) -
isNoSlowLookup
-
setNoSlowLookup
-
getDefinitionsTarget
-
setDefinitionsTarget
-
getDestDir
-
setDestDir
-
setProfileUtilities
-
getTemplateProvider
-
setTemplateProvider
public RenderingContext setTemplateProvider(RenderingContext.ILiquidTemplateProvider templateProvider) -
getServices
-
setServices
-
isPretty
-
setPretty
-
getParser
-
setParser
-
getCodeSystemPropList
-
setCodeSystemPropList
-
copy
-
isInlineGraphics
-
setInlineGraphics
-
isHeader
-
setHeader
-
getQuestionnaireMode
-
setQuestionnaireMode
public RenderingContext setQuestionnaireMode(RenderingContext.QuestionnaireRendererMode questionnaireMode) -
getSelfLink
-
setSelfLink
-
fixReference
-
setLang
-
setLocalPrefix
-
isAddGeneratedNarrativeHeader
-
setAddGeneratedNarrativeHeader
-
getTargetVersion
-
setTargetVersion
-
isTechnicalMode
-
hasLocale
-
getLocale
-
setLocale
-
getTimeZoneId
if the timezone is null, the rendering will default to the source timezone in the resource Note that if you're working server side, the FHIR project recommends the use of the Date header so that clients know what timezone the server defaults to, There is no standard way for the server to know what the client timezone is. In the case where the client timezone is unknown, the timezone should be null- Returns:
- the specified timezone to render in
-
setTimeZoneId
-
getDateTimeFormat
In the absence of a specified format, the renderers will default to the FormatStyle.MEDIUM for the current locale.- Returns:
- the format to use
-
setDateTimeFormat
-
setDateTimeFormatString
-
getDateFormat
In the absence of a specified format, the renderers will default to the FormatStyle.MEDIUM for the current locale.- Returns:
- the format to use
-
setDateFormat
-
setDateFormatString
-
getDateYearFormat
-
setDateYearFormat
-
setDateYearFormatString
-
getDateYearMonthFormat
-
setDateYearMonthFormat
-
setDateYearMonthFormatString
-
getMode
-
setMode
-