Class BundleProfileSelector

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.BundleProfileSelector
All Implemented Interfaces:
Predicate<RequestDetails>

public class BundleProfileSelector extends Object implements Predicate<RequestDetails>
BundleProfileSelector can be used as selector for FHIR Consumers in batch/transaction requests. These requests can be typically handled by a subclass of AbstractBatchTransactionResourceProvider
Since:
4.1
Author:
Christian Ohr
  • Constructor Details

    • BundleProfileSelector

      public BundleProfileSelector(String... profileUris)
      Parameters:
      profileUris - Profile URIs expected in the Bundle's meta element
  • Method Details

    • test

      public boolean test(RequestDetails requestDetails)
      Specified by:
      test in interface Predicate<RequestDetails>
      Parameters:
      requestDetails - request
      Returns:
      true if one of the profileUris are present in the Bundle's meta.profile