Class AbstractNamingSystemServiceImpl
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.support.AbstractNamingSystemServiceImpl
- All Implemented Interfaces:
NamingSystemService
- Direct Known Subclasses:
DefaultNamingSystemServiceImpl
Abstract Implementation that holds naming systems in memory as a map of
NamingSystem
sets. Before an
instance can be used, one of the adder methods of implementations must be called to initialize the
bundle.- Since:
- 3.6
- Author:
- Christian Ohr
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNamingSystems
(org.hl7.fhir.r4.model.Bundle bundle) Stream<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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.ihe.fhir.support.NamingSystemService
findActiveNamingSystemByTypeAndValue, findFirstNamingSystem
-
Field Details
-
namingSystems
-
-
Constructor Details
-
AbstractNamingSystemServiceImpl
public AbstractNamingSystemServiceImpl()
-
-
Method Details
-
addNamingSystems
public void addNamingSystems(org.hl7.fhir.r4.model.Bundle bundle) -
findNamingSystems
public Stream<org.hl7.fhir.r4.model.NamingSystem> findNamingSystems(String id, Predicate<? super org.hl7.fhir.r4.model.NamingSystem> predicate) Description copied from interface:NamingSystemService
Finds allNamingSystem
instances that match the providedPredicate
and returns a stream of these matches.- Specified by:
findNamingSystems
in interfaceNamingSystemService
- Parameters:
id
- ID of a NamingSystem bundlepredicate
- predicate selecting a naming system- Returns:
- a stream of
NamingSystem
instances that match the providedPredicate
-