Interface NamingSystemService

All Known Implementing Classes:
AbstractNamingSystemServiceImpl, DefaultNamingSystemServiceImpl

public interface NamingSystemService
Service for finding FHIR NamingSystem instances. Implementations should consider caching all known naming systems and select specific ones.
Since:
3.6
Author:
Christian Ohr
  • Method Summary

    Modifier and Type
    Method
    Description
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    allOf(Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    anyOf(Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    byKind(org.hl7.fhir.r4.model.NamingSystem.NamingSystemType kind)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    byName(String name)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    byStatus(org.hl7.fhir.r4.model.Enumerations.PublicationStatus status)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    byTypeAndValue(org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type, String value)
     
    static Predicate<org.hl7.fhir.r4.model.NamingSystem>
    combine(BinaryOperator<Predicate<org.hl7.fhir.r4.model.NamingSystem>> op, Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
     
    default Optional<? extends org.hl7.fhir.r4.model.NamingSystem>
    findActiveNamingSystemByTypeAndValue(String id, org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type, String value)
    Returns the first active NamingSystem instances that match the provided type and value
    default Optional<? extends org.hl7.fhir.r4.model.NamingSystem>
    findFirstNamingSystem(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate)
    Returns the first NamingSystem instances that match the provided Predicate
    Stream<? extends org.hl7.fhir.r4.model.NamingSystem>
    findNamingSystems(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate)
    Finds all NamingSystem instances that match the provided Predicate and returns a stream of these matches.
    static Function<org.hl7.fhir.r4.model.NamingSystem,String>
    getValueOfType(org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type)
     
  • Method Details

    • findNamingSystems

      Stream<? extends org.hl7.fhir.r4.model.NamingSystem> findNamingSystems(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate)
      Finds all NamingSystem instances that match the provided Predicate and returns a stream of these matches.
      Parameters:
      id - ID of a NamingSystem bundle
      predicate - predicate selecting a naming system
      Returns:
      a stream of NamingSystem instances that match the provided Predicate
    • findFirstNamingSystem

      default Optional<? extends org.hl7.fhir.r4.model.NamingSystem> findFirstNamingSystem(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate)
      Returns the first NamingSystem instances that match the provided Predicate
      Parameters:
      id - ID of a NamingSystem bundle
      predicate - predicate selecting a naming system
      Returns:
      NamingSystem instance that match the provided Predicate
    • findActiveNamingSystemByTypeAndValue

      default Optional<? extends org.hl7.fhir.r4.model.NamingSystem> findActiveNamingSystemByTypeAndValue(String id, org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type, String value)
      Returns the first active NamingSystem instances that match the provided type and value
      Parameters:
      id - ID of a NamingSystem bundle
      type - NamingSystem identifier type (oid, uuid, ...)
      value - value
      Returns:
      NamingSystem instance that match the provided type and value
    • allOf

      @SafeVarargs static Predicate<org.hl7.fhir.r4.model.NamingSystem> allOf(Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
    • anyOf

      @SafeVarargs static Predicate<org.hl7.fhir.r4.model.NamingSystem> anyOf(Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
    • combine

      @SafeVarargs static Predicate<org.hl7.fhir.r4.model.NamingSystem> combine(BinaryOperator<Predicate<org.hl7.fhir.r4.model.NamingSystem>> op, Predicate<org.hl7.fhir.r4.model.NamingSystem>... predicates)
    • byTypeAndValue

      static Predicate<org.hl7.fhir.r4.model.NamingSystem> byTypeAndValue(org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type, String value)
    • byId

      static Predicate<org.hl7.fhir.r4.model.NamingSystem> byId(String id)
    • byName

      static Predicate<org.hl7.fhir.r4.model.NamingSystem> byName(String name)
    • byKind

      static Predicate<org.hl7.fhir.r4.model.NamingSystem> byKind(org.hl7.fhir.r4.model.NamingSystem.NamingSystemType kind)
    • byStatus

      static Predicate<org.hl7.fhir.r4.model.NamingSystem> byStatus(org.hl7.fhir.r4.model.Enumerations.PublicationStatus status)
    • getValueOfType

      static Function<org.hl7.fhir.r4.model.NamingSystem,String> getValueOfType(org.hl7.fhir.r4.model.NamingSystem.NamingSystemIdentifierType type)