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 activeNamingSystem
instances that match the provided type and valuedefault Optional
<? extends NamingSystem> findFirstNamingSystem
(String id, Predicate<? super NamingSystem> predicate) Returns the firstNamingSystem
instances that match the providedPredicate
Stream
<? extends NamingSystem> findNamingSystems
(String id, Predicate<? super NamingSystem> predicate) Finds allNamingSystem
instances that match the providedPredicate
and returns a stream of these matches.static Function
<NamingSystem, String>
-
Method Details
-
findNamingSystems
Stream<? extends NamingSystem> findNamingSystems(String id, Predicate<? super NamingSystem> predicate) Finds allNamingSystem
instances that match the providedPredicate
and returns a stream of these matches.- Parameters:
id
- ID of a NamingSystem bundlepredicate
- predicate selecting a naming system- Returns:
- a stream of
NamingSystem
instances that match the providedPredicate
-
findFirstNamingSystem
default Optional<? extends NamingSystem> findFirstNamingSystem(String id, Predicate<? super NamingSystem> predicate) Returns the firstNamingSystem
instances that match the providedPredicate
- Parameters:
id
- ID of a NamingSystem bundlepredicate
- predicate selecting a naming system- Returns:
NamingSystem
instance that match the providedPredicate
-
findActiveNamingSystemByTypeAndValue
default Optional<? extends NamingSystem> findActiveNamingSystemByTypeAndValue(String id, NamingSystem.NamingSystemIdentifierType type, String value) Returns the first activeNamingSystem
instances that match the provided type and value- Parameters:
id
- ID of a NamingSystem bundletype
- NamingSystem identifier type (oid, uuid, ...)value
- value- Returns:
NamingSystem
instance 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
-