
Package org.hl7.fhir.convertors.wrapper
Class ResourceWrapperR4
java.lang.Object
org.hl7.fhir.r5.renderers.utils.ResourceWrapper
org.hl7.fhir.convertors.wrapper.ResourceWrapperR4
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)
 
 See test case for how to use this: @org.hl7.fhir.convertors.rendering.R4RenderingTestCases (testR4 method)
- 
Nested Class SummaryNested classes/interfaces inherited from class org.hl7.fhir.r5.renderers.utils.ResourceWrapperorg.hl7.fhir.r5.renderers.utils.ResourceWrapper.ElementKind, org.hl7.fhir.r5.renderers.utils.ResourceWrapper.NamedResourceWrapperList
- 
Field SummaryFieldsFields inherited from class org.hl7.fhir.r5.renderers.utils.ResourceWrapperchildren, contextUtils, index, kind, name, parent
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfhirType()static org.hl7.fhir.r5.renderers.utils.ResourceWrapperforResource(org.hl7.fhir.r5.context.ContextUtilities contextUtils, org.hl7.fhir.r4.model.Resource resource) static org.hl7.fhir.r5.renderers.utils.ResourceWrapperforResource(org.hl7.fhir.r5.renderers.utils.RenderingContext rc, org.hl7.fhir.r4.model.Resource resource) 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.ResourceWrapperbasePath, 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 class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
fhirType- Specified by:
- fhirTypein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
isPrimitive- Specified by:
- isPrimitivein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
hasPrimitiveValue- Specified by:
- hasPrimitiveValuein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
primitiveValue- Specified by:
- primitiveValuein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
loadTheChildren- Specified by:
- loadTheChildrenin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
isResource- Specified by:
- isResourcein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
canHaveNarrative- Specified by:
- canHaveNarrativein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getNarrative- Specified by:
- getNarrativein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
hasNarrative- Specified by:
- hasNarrativein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
setNarrativepublic void setNarrative(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String status, boolean multiLangMode, Locale locale, boolean isPretty) - Specified by:
- setNarrativein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
markLanguage- Overrides:
- markLanguagein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getId- Specified by:
- getIdin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
hasId- Specified by:
- hasIdin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
setId- Specified by:
- setIdin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
toString
- 
getResourceNative- Specified by:
- getResourceNativein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
hasFormatComment- Specified by:
- hasFormatCommentin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getFormatCommentsPre- Specified by:
- getFormatCommentsPrein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getXhtml- Specified by:
- getXhtmlin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getBase- Specified by:
- getBasein class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
isDirect- Specified by:
- isDirectin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getWebPath- Specified by:
- getWebPathin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getCodeSystemUri- Specified by:
- getCodeSystemUriin class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
hasUserData- Specified by:
- hasUserDatain class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
getUserData- Specified by:
- getUserDatain class- org.hl7.fhir.r5.renderers.utils.ResourceWrapper
 
- 
forResourcepublic static org.hl7.fhir.r5.renderers.utils.ResourceWrapper forResource(org.hl7.fhir.r5.renderers.utils.RenderingContext rc, org.hl7.fhir.r4.model.Resource resource) 
- 
forResourcepublic static org.hl7.fhir.r5.renderers.utils.ResourceWrapper forResource(org.hl7.fhir.r5.context.ContextUtilities contextUtils, org.hl7.fhir.r4.model.Resource resource) 
 
-