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<org.hl7.fhir.r4.model.NamingSystem>
static Predicate<org.hl7.fhir.r4.model.NamingSystem>
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>
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 activeNamingSystem
instances that match the provided type and valuedefault Optional<? extends org.hl7.fhir.r4.model.NamingSystem>
findFirstNamingSystem
(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate) Returns the firstNamingSystem
instances that match the providedPredicate
Stream<? extends org.hl7.fhir.r4.model.NamingSystem>
findNamingSystems
(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate) Finds allNamingSystem
instances that match the providedPredicate
and returns a stream of these matches.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 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 org.hl7.fhir.r4.model.NamingSystem> findFirstNamingSystem(String id, Predicate<? super org.hl7.fhir.r4.model.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 org.hl7.fhir.r4.model.NamingSystem> findActiveNamingSystemByTypeAndValue(String id, org.hl7.fhir.r4.model.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
@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
-
byId
-
byName
-
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
-