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 TypeMethodDescriptionstatic Predicate<NamingSystem> allOf(Predicate<NamingSystem>... predicates) static Predicate<NamingSystem> anyOf(Predicate<NamingSystem>... predicates) static Predicate<NamingSystem> static Predicate<NamingSystem> static Predicate<NamingSystem> static Predicate<NamingSystem> static Predicate<NamingSystem> byTypeAndValue(NamingSystem.NamingSystemIdentifierType type, String value) static Predicate<NamingSystem> combine(BinaryOperator<Predicate<NamingSystem>> op, Predicate<NamingSystem>... predicates) default Optional<? extends NamingSystem> findActiveNamingSystemByTypeAndValue(String id, NamingSystem.NamingSystemIdentifierType type, String value) Returns the first activeNamingSysteminstances that match the provided type and valuedefault Optional<? extends NamingSystem> findFirstNamingSystem(String id, Predicate<? super NamingSystem> predicate) Returns the firstNamingSysteminstances that match the providedPredicateStream<? extends NamingSystem> findNamingSystems(String id, Predicate<? super NamingSystem> predicate) Finds allNamingSysteminstances that match the providedPredicateand returns a stream of these matches.static Function<NamingSystem, String>
-
Method Details
-
findNamingSystems
Stream<? extends NamingSystem> findNamingSystems(String id, Predicate<? super NamingSystem> predicate) Finds allNamingSysteminstances that match the providedPredicateand returns a stream of these matches.- Parameters:
id- ID of a NamingSystem bundlepredicate- predicate selecting a naming system- Returns:
- a stream of
NamingSysteminstances that match the providedPredicate
-
findFirstNamingSystem
default Optional<? extends NamingSystem> findFirstNamingSystem(String id, Predicate<? super NamingSystem> predicate) Returns the firstNamingSysteminstances that match the providedPredicate- Parameters:
id- ID of a NamingSystem bundlepredicate- predicate selecting a naming system- Returns:
NamingSysteminstance that match the providedPredicate
-
findActiveNamingSystemByTypeAndValue
default Optional<? extends NamingSystem> findActiveNamingSystemByTypeAndValue(String id, NamingSystem.NamingSystemIdentifierType type, String value) Returns the first activeNamingSysteminstances that match the provided type and value- Parameters:
id- ID of a NamingSystem bundletype- NamingSystem identifier type (oid, uuid, ...)value- value- Returns:
NamingSysteminstance that match the provided type and value
-
allOf
-
anyOf
-
combine
@SafeVarargs static Predicate<NamingSystem> combine(BinaryOperator<Predicate<NamingSystem>> op, Predicate<NamingSystem>... predicates) -
byTypeAndValue
static Predicate<NamingSystem> byTypeAndValue(NamingSystem.NamingSystemIdentifierType type, String value) -
byId
-
byName
-
byKind
-
byStatus
-
getValueOfType
-