Class SearchSetMetadataResource<M extends org.hl7.fhir.r4.model.MetadataResource>

java.lang.Object
dev.dsf.fhir.adapter.SearchSetMetadataResource<M>
All Implemented Interfaces:
ThymeleafContext

public class SearchSetMetadataResource<M extends org.hl7.fhir.r4.model.MetadataResource> extends Object
  • Field Details

    • INSTANTIATES_CANONICAL_PATTERN_STRING

      protected static final String INSTANTIATES_CANONICAL_PATTERN_STRING
      See Also:
    • INSTANTIATES_CANONICAL_PATTERN

      protected static final Pattern INSTANTIATES_CANONICAL_PATTERN
    • CODE_SYSTEM_BPMN_MESSAGE

      protected static final String CODE_SYSTEM_BPMN_MESSAGE
      See Also:
    • CODE_SYSTEM_BPMN_MESSAGE_MESSAGE_NAME

      protected static final String CODE_SYSTEM_BPMN_MESSAGE_MESSAGE_NAME
      See Also:
    • CODE_SYSTEM_BPMN_MESSAGE_BUSINESS_KEY

      protected static final String CODE_SYSTEM_BPMN_MESSAGE_BUSINESS_KEY
      See Also:
    • CODE_SYSTEM_ORGANIZATION_ROLE

      protected static final String CODE_SYSTEM_ORGANIZATION_ROLE
      See Also:
    • EXTENSION_PROCESS_AUTHORIZATION

      protected static final String EXTENSION_PROCESS_AUTHORIZATION
      See Also:
    • EXTENSION_PROCESS_AUTHORIZATION_MESSAGE_NAME

      protected static final String EXTENSION_PROCESS_AUTHORIZATION_MESSAGE_NAME
      See Also:
    • NAMING_SYSTEM_ENDPOINT_IDENTIFIER

      protected static final String NAMING_SYSTEM_ENDPOINT_IDENTIFIER
      See Also:
    • NAMING_SYSTEM_ORGANIZATION_IDENTIFIER

      protected static final String NAMING_SYSTEM_ORGANIZATION_IDENTIFIER
      See Also:
    • NAMING_SYSTEM_TASK_IDENTIFIER

      protected static final String NAMING_SYSTEM_TASK_IDENTIFIER
      See Also:
  • Constructor Details

    • SearchSetMetadataResource

      public SearchSetMetadataResource(int defaultPageCount, Class<M> matchResourceType)
  • Method Details

    • toRow

    • isResourceSupported

      public boolean isResourceSupported(String requestPathLastElement)
    • doSetVariables

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

      protected final <D extends org.hl7.fhir.r4.model.DomainResource> String getIdentifierValues(D resource, Function<D,Boolean> hasIdentifier, Function<D,List<org.hl7.fhir.r4.model.Identifier>> getIdentifier, String identifierSystem)
    • getResourceType

      protected final String getResourceType(org.hl7.fhir.instance.model.api.IIdType id)
    • isStringParam

      protected final Predicate<org.hl7.fhir.r4.model.Task.ParameterComponent> isStringParam(String system, String code)
    • getResourceType

      public Class<org.hl7.fhir.r4.model.Bundle> 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)