Package org.hl7.fhir.r4b.renderers
Class DataRenderer
- java.lang.Object
-
- org.hl7.fhir.r4b.renderers.Renderer
-
- org.hl7.fhir.r4b.renderers.DataRenderer
-
- Direct Known Subclasses:
ResourceRenderer
public class DataRenderer extends Renderer
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.r4b.renderers.Renderer
context, RENDER_BUNDLE_ETAG, RENDER_BUNDLE_HEADER_ENTRY, RENDER_BUNDLE_HEADER_ENTRY_URL, RENDER_BUNDLE_HEADER_ROOT, RENDER_BUNDLE_IF_MATCH, RENDER_BUNDLE_IF_MOD, RENDER_BUNDLE_IF_NON_MATCH, RENDER_BUNDLE_IF_NONE, RENDER_BUNDLE_LAST_MOD, RENDER_BUNDLE_LOCATION, RENDER_BUNDLE_REQUEST, RENDER_BUNDLE_RESOURCE, RENDER_BUNDLE_RESPONSE, RENDER_BUNDLE_SEARCH, RENDER_BUNDLE_SEARCH_MODE, RENDER_BUNDLE_SEARCH_SCORE
-
-
Constructor Summary
Constructors Constructor Description DataRenderer(IWorkerContext worker)DataRenderer(RenderingContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text)protected voidaddTelecom(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c)protected StringdescribeLang(String lang)static StringdescribeSystem(String system)static StringdescribeVersion(String version)static Stringdisplay(IWorkerContext context, DataType type)Stringdisplay(DataType type)Stringdisplay(BaseWrappers.BaseWrapper type)StringdisplayBase(Base b)StringdisplayCodeableConcept(CodeableConcept cc)StringdisplayCoding(List<Coding> list)StringdisplayCoding(Coding c)static StringdisplayContactPoint(ContactPoint contact)protected voiddisplayContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c)static StringdisplayHumanName(HumanName name)StringdisplayPeriod(Period p)protected StringdisplayQuantity(Quantity q)StringdisplayRange(Range q)StringdisplaySystem(String system)RenderingContextgetContext()protected StringgetLinkForCode(String system, String version, String code)protected StringgetLocalizedBigDecimalValue(BigDecimal input, Currency c)Stringgt(PrimitiveType value)protected StringmakeAnchor(String codeSystem, String code)org.hl7.fhir.utilities.xhtml.XhtmlNodemakeExceptionXhtml(Exception e, String function)voidrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type)voidrender(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper type)protected voidrenderAddress(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Address address)protected voidrenderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation annot)protected voidrenderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation a, boolean showCodeDetails)voidrenderBase(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b)protected voidrenderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc)protected voidrenderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc, boolean showCodeDetails)protected voidrenderCodeableReference(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableReference e, boolean showCodeDetails)protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c)protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c)protected voidrenderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c, boolean showCodeDetails)protected voidrenderCodingWithDetails(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c)protected voidrenderContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ContactPoint contact)voidrenderDataRequirement(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataRequirement dr)voidrenderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String s)voidrenderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e)protected voidrenderExpression(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Expression expr)protected voidrenderHumanName(org.hl7.fhir.utilities.xhtml.XhtmlNode x, HumanName name)protected voidrenderIdentifier(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Identifier ii)protected voidrenderMoney(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Money money)voidrenderPeriod(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Period p)protected voidrenderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q)protected voidrenderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q, boolean showCodeDetails)protected voidrenderRange(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Range q)protected voidrenderSampledData(org.hl7.fhir.utilities.xhtml.XhtmlNode x, SampledData sampledData)protected voidrenderTiming(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s)protected voidrenderUri(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uri)protected voidrenderUri(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uri, String path, String id)protected voidsmartAddText(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text)protected StringsystemFromCanonical(String system)protected Stringtranslate(String source, String content)protected StringversionFromCanonical(String system)-
Methods inherited from class org.hl7.fhir.r4b.renderers.Renderer
formatMessage
-
-
-
-
Constructor Detail
-
DataRenderer
public DataRenderer(RenderingContext context)
-
DataRenderer
public DataRenderer(IWorkerContext worker)
-
-
Method Detail
-
addMarkdown
protected void addMarkdown(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String text) throws org.hl7.fhir.exceptions.FHIRFormatError, IOException, org.hl7.fhir.exceptions.DefinitionException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrorIOExceptionorg.hl7.fhir.exceptions.DefinitionException
-
smartAddText
protected void smartAddText(org.hl7.fhir.utilities.xhtml.XhtmlNode p, String text)
-
describeVersion
public static String describeVersion(String version)
-
describeSystem
public static String describeSystem(String system)
-
displaySystem
public String displaySystem(String system)
-
makeAnchor
protected String makeAnchor(String codeSystem, String code)
-
describeLang
protected String describeLang(String lang)
-
gt
public String gt(PrimitiveType value)
-
display
public static String display(IWorkerContext context, DataType type)
-
displayBase
public String displayBase(Base b)
-
display
public String display(BaseWrappers.BaseWrapper type)
-
render
public void render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, BaseWrappers.BaseWrapper type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderBase
public void renderBase(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base b) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
render
public void render(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataType type) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderDateTime
public void renderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Base e)
-
renderDateTime
public void renderDateTime(org.hl7.fhir.utilities.xhtml.XhtmlNode x, String s)
-
renderUri
protected void renderUri(org.hl7.fhir.utilities.xhtml.XhtmlNode x, UriType uri, String path, String id)
-
renderAnnotation
protected void renderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation annot)
-
renderAnnotation
protected void renderAnnotation(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Annotation a, boolean showCodeDetails) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
displayCoding
public String displayCoding(Coding c)
-
displayCoding
public String displayCoding(List<Coding> list)
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c)
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator gen, List<org.hl7.fhir.utilities.xhtml.HierarchicalTableGenerator.Piece> pieces, Coding c)
-
getLinkForCode
protected String getLinkForCode(String system, String version, String code)
-
renderCodingWithDetails
protected void renderCodingWithDetails(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c)
-
renderCoding
protected void renderCoding(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Coding c, boolean showCodeDetails)
-
displayCodeableConcept
public String displayCodeableConcept(CodeableConcept cc)
-
renderCodeableConcept
protected void renderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc)
-
renderCodeableReference
protected void renderCodeableReference(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableReference e, boolean showCodeDetails)
-
renderCodeableConcept
protected void renderCodeableConcept(org.hl7.fhir.utilities.xhtml.XhtmlNode x, CodeableConcept cc, boolean showCodeDetails)
-
renderIdentifier
protected void renderIdentifier(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Identifier ii)
-
displayHumanName
public static String displayHumanName(HumanName name)
-
renderHumanName
protected void renderHumanName(org.hl7.fhir.utilities.xhtml.XhtmlNode x, HumanName name)
-
renderAddress
protected void renderAddress(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Address address)
-
displayContactPoint
public static String displayContactPoint(ContactPoint contact)
-
getLocalizedBigDecimalValue
protected String getLocalizedBigDecimalValue(BigDecimal input, Currency c)
-
renderMoney
protected void renderMoney(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Money money)
-
renderExpression
protected void renderExpression(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Expression expr)
-
renderContactPoint
protected void renderContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode x, ContactPoint contact)
-
displayContactPoint
protected void displayContactPoint(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c)
-
addTelecom
protected void addTelecom(org.hl7.fhir.utilities.xhtml.XhtmlNode p, ContactPoint c)
-
displayQuantity
protected String displayQuantity(Quantity q)
-
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q)
-
renderQuantity
protected void renderQuantity(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Quantity q, boolean showCodeDetails)
-
displayRange
public String displayRange(Range q)
-
renderRange
protected void renderRange(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Range q)
-
displayPeriod
public String displayPeriod(Period p)
-
renderPeriod
public void renderPeriod(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Period p)
-
renderDataRequirement
public void renderDataRequirement(org.hl7.fhir.utilities.xhtml.XhtmlNode x, DataRequirement dr) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, IOException
- Throws:
org.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionExceptionIOException
-
renderTiming
protected void renderTiming(org.hl7.fhir.utilities.xhtml.XhtmlNode x, Timing s) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
renderSampledData
protected void renderSampledData(org.hl7.fhir.utilities.xhtml.XhtmlNode x, SampledData sampledData)
-
getContext
public RenderingContext getContext()
-
makeExceptionXhtml
public org.hl7.fhir.utilities.xhtml.XhtmlNode makeExceptionXhtml(Exception e, String function)
-
versionFromCanonical
protected String versionFromCanonical(String system)
-
systemFromCanonical
protected String systemFromCanonical(String system)
-
-