Class AbstractNamingSystemServiceImpl

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.support.AbstractNamingSystemServiceImpl
All Implemented Interfaces:
NamingSystemService
Direct Known Subclasses:
DefaultNamingSystemServiceImpl

public class AbstractNamingSystemServiceImpl extends Object implements NamingSystemService
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 Details

    • namingSystems

      protected final transient Map<String,Set<org.hl7.fhir.r4.model.NamingSystem>> 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 all NamingSystem instances that match the provided Predicate and returns a stream of these matches.
      Specified by:
      findNamingSystems in interface NamingSystemService
      Parameters:
      id - ID of a NamingSystem bundle
      predicate - predicate selecting a naming system
      Returns:
      a stream of NamingSystem instances that match the provided Predicate