Class ResourceLibrary

java.lang.Object
dev.dsf.fhir.adapter.AbstractMetdataResource<org.hl7.fhir.r4.model.Library>
dev.dsf.fhir.adapter.ResourceLibrary
All Implemented Interfaces:
ThymeleafContext

public class ResourceLibrary extends AbstractMetdataResource<org.hl7.fhir.r4.model.Library>
  • Constructor Details

    • ResourceLibrary

      public ResourceLibrary()
  • Method Details

    • toElement

      protected dev.dsf.fhir.adapter.ResourceLibrary.Element toElement(org.hl7.fhir.r4.model.Library resource)
    • isResourceSupported

      public boolean isResourceSupported(String requestPathLastElement)
    • doSetVariables

      protected final void doSetVariables(BiConsumer<String,Object> variables, org.hl7.fhir.r4.model.Library resource)
    • getResourceType

      public Class<org.hl7.fhir.r4.model.Library> getResourceType()
      Specified by:
      getResourceType in interface ThymeleafContext
    • getHtmlFragment

      public String getHtmlFragment()
      Specified by:
      getHtmlFragment in interface ThymeleafContext
    • setVariables

      public final void setVariables(BiConsumer<String,Object> variables, org.hl7.fhir.r4.model.Resource resource)
      Specified by:
      setVariables in interface ThymeleafContext
    • formatDate

      protected final String formatDate(Date date)
    • formatDateTime

      protected final String formatDateTime(Date date)
    • format

      protected final String format(Date date, DateTimeFormatter formatter)
    • formatLastUpdated

      protected final String formatLastUpdated(org.hl7.fhir.r4.model.Resource resource)
    • formatLastUpdated

      protected final String formatLastUpdated(org.hl7.fhir.r4.model.Resource resource, DateTimeFormatter formatter)
    • nullIfEmpty

      protected final <E> List<E> nullIfEmpty(List<E> list)
    • getValue

      protected final <E extends org.hl7.fhir.r4.model.Base, T> T getValue(E resource, Predicate<E> hasValue, Function<E,? extends org.hl7.fhir.r4.model.PrimitiveType<T>> getValue)
    • getString

      protected final <E extends org.hl7.fhir.r4.model.Base> String getString(E resource, Predicate<E> hasString, Function<E,org.hl7.fhir.r4.model.StringType> getString)
    • getDate

      protected final <E extends org.hl7.fhir.r4.model.Base> String getDate(E resource, Predicate<E> hasDate, Function<E,org.hl7.fhir.r4.model.DateType> getDate)
    • getDateTime

      protected final <E extends org.hl7.fhir.r4.model.Base> String getDateTime(E resource, Predicate<E> hasDateTime, Function<E,org.hl7.fhir.r4.model.DateTimeType> getDateTime)
    • getBoolean

      protected final <E extends org.hl7.fhir.r4.model.Base> Boolean getBoolean(E resource, Predicate<E> hasBoolean, Function<E,org.hl7.fhir.r4.model.BooleanType> getBoolean)
    • getUri

      protected final <E extends org.hl7.fhir.r4.model.Base> String getUri(E resource, Predicate<E> hasUri, Function<E,org.hl7.fhir.r4.model.UriType> getUri)
    • getUrl

      protected final <E extends org.hl7.fhir.r4.model.Base> String getUrl(E resource, Predicate<E> hasUrl, Function<E,org.hl7.fhir.r4.model.UrlType> getUrl)
    • getInteger

      protected final <E extends org.hl7.fhir.r4.model.Base> Integer getInteger(E resource, Predicate<E> hasInteger, Function<E,org.hl7.fhir.r4.model.IntegerType> getInteger)
    • getDecimal

      protected final <E extends org.hl7.fhir.r4.model.Base> BigDecimal getDecimal(E resource, Predicate<E> hasDecimal, Function<E,org.hl7.fhir.r4.model.DecimalType> getDecimal)
    • getEnumeration

      protected final <E extends org.hl7.fhir.r4.model.Base> String getEnumeration(E resource, Predicate<E> hasEnumeration, Function<E,org.hl7.fhir.r4.model.Enumeration<?>> getEnumeration)
    • getIdentifiers

      protected final <E extends org.hl7.fhir.r4.model.Base> List<ElementSystemValue> getIdentifiers(E resource, Predicate<E> hasIdentifier, Function<E,List<org.hl7.fhir.r4.model.Identifier>> getIdentifier)