
Package org.hl7.fhir.convertors.wrapper
Class ResourceWrapperR4B
java.lang.Object
org.hl7.fhir.r5.renderers.utils.ResourceWrapper
org.hl7.fhir.convertors.wrapper.ResourceWrapperR4B
An R4 wrapper for the R5 rendering framework - use this to feed R4 resources directly
into the R5 framework.
The R5 framework is fine to render R4 resources, and has R4 (etc) specific code where
appropriate (or will be modified to do so).
Note that in order to use this, you need an R5 IWorkerContext. You can create a
R5 SimpleWorkerContext and load it with all the definitions from R4 (that's how the
validator works internally, so this is well tested code). But you only need to set
up the R5 context once; then you can create instances of these to wrap the objects you
want rendered on the fly. (is thread safe)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.utils.ResourceWrapper
org.hl7.fhir.r5.renderers.utils.ResourceWrapper.ElementKind, org.hl7.fhir.r5.renderers.utils.ResourceWrapper.NamedResourceWrapperList -
Field Summary
FieldsFields inherited from class org.hl7.fhir.r5.renderers.utils.ResourceWrapper
children, contextUtils, index, kind, name, parent -
Method Summary
Modifier and TypeMethodDescriptionbooleanfhirType()org.hl7.fhir.r5.model.BasegetBase()getId()org.hl7.fhir.utilities.xhtml.XhtmlNodeorg.hl7.fhir.r5.model.ResourcegetUserData(String name) org.hl7.fhir.utilities.xhtml.XhtmlNodegetXhtml()booleanbooleanhasId()booleanbooleanbooleanhasUserData(String name) booleanisDirect()booleanbooleanprotected voidvoidmarkLanguage(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Locale locale) org.hl7.fhir.r5.renderers.utils.ResourceWrappervoidsetNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String status, boolean multiLangMode, Locale locale, boolean isPretty) toString()Methods inherited from class org.hl7.fhir.r5.renderers.utils.ResourceWrapper
basePath, child, childMN, children, children, childrenInGroups, childrenMN, extension, extensions, extensions, extensionString, extensionValue, extensionValues, firstChild, firstPrimitiveValue, forResource, forResource, forResource, forResource, forType, forType, forType, getContained, getContextUtilities, getResourceWrapper, getScopedId, has, hasChildren, hasExtension, hasMN, hasPrimitiveValue, index, isEmpty, isPrimitive, kind, matches, name, parent, path, primitiveValue, primitiveValueMN, resource
-
Field Details
-
element
-
-
Method Details
-
fhirVersion
- Specified by:
fhirVersionin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
fhirType
- Specified by:
fhirTypein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
isPrimitive
- Specified by:
isPrimitivein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
hasPrimitiveValue
- Specified by:
hasPrimitiveValuein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
primitiveValue
- Specified by:
primitiveValuein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
loadTheChildren
- Specified by:
loadTheChildrenin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
isResource
- Specified by:
isResourcein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
canHaveNarrative
- Specified by:
canHaveNarrativein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getNarrative
- Specified by:
getNarrativein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
hasNarrative
- Specified by:
hasNarrativein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
setNarrative
public void setNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String status, boolean multiLangMode, Locale locale, boolean isPretty) - Specified by:
setNarrativein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
markLanguage
- Overrides:
markLanguagein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getId
- Specified by:
getIdin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
hasId
- Specified by:
hasIdin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
setId
- Specified by:
setIdin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
toString
-
getResourceNative
- Specified by:
getResourceNativein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
hasFormatComment
- Specified by:
hasFormatCommentin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getFormatCommentsPre
- Specified by:
getFormatCommentsPrein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getXhtml
- Specified by:
getXhtmlin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getBase
- Specified by:
getBasein classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
isDirect
- Specified by:
isDirectin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getWebPath
- Specified by:
getWebPathin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getCodeSystemUri
- Specified by:
getCodeSystemUriin classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
hasUserData
- Specified by:
hasUserDatain classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-
getUserData
- Specified by:
getUserDatain classorg.hl7.fhir.r5.renderers.utils.ResourceWrapper
-