Package dev.dsf.fhir.adapter
Class AbstractHtmlAdapter
java.lang.Object
dev.dsf.fhir.adapter.AbstractHtmlAdapter
- Direct Known Subclasses:
InputHtmlGenerator,ResourceHtmlGenerator,SearchBundleHtmlGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DateTimeFormatterprotected static final DateTimeFormatterprotected static final DateTimeFormatter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringformat(Date date, DateTimeFormatter formatter) protected StringformatLastUpdated(org.hl7.fhir.r4.model.Resource resource, DateTimeFormatter formatter)
-
Field Details
-
DATE_FORMAT
-
DATE_TIME_FORMAT
-
DATE_TIME_DISPLAY_FORMAT
-
-
Constructor Details
-
AbstractHtmlAdapter
public AbstractHtmlAdapter()
-
-
Method Details
-
format
- Parameters:
date- may benullformatter- notnull- Returns:
- empty String if given date is
null
-
formatLastUpdated
protected String formatLastUpdated(org.hl7.fhir.r4.model.Resource resource, DateTimeFormatter formatter) - Parameters:
resource- may benullformatter- notnull- Returns:
- empty String if given resource is
nullor has no meta or meta.lastUpdated
-