Package com.ibm.fhir.search.parameters
Class ExtensionSearchParametersResourceProvider
- java.lang.Object
-
- com.ibm.fhir.registry.spi.AbstractRegistryResourceProvider
-
- com.ibm.fhir.search.parameters.ExtensionSearchParametersResourceProvider
-
- All Implemented Interfaces:
FHIRRegistryResourceProvider
public class ExtensionSearchParametersResourceProvider extends AbstractRegistryResourceProvider
A FHIRRegistryResourceProvider that provides SearchParameter resources from tenant configuration files (extension-search-parameters.json by default).
-
-
Constructor Summary
Constructors Constructor Description ExtensionSearchParametersResourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FHIRRegistryResource>
getProfileResources(String type)
Get the profile resources from this provider that constrain the given resource typeCollection<FHIRRegistryResource>
getRegistryResources()
Get all the registry resources from this providerCollection<FHIRRegistryResource>
getRegistryResources(Class<? extends Resource> resourceType)
Get the registry resources from this provider for the given resource typeprotected List<FHIRRegistryResource>
getRegistryResources(Class<? extends Resource> resourceType, String url)
Return a sorted list of FHIRRegistryResource with the passed canonical urlCollection<FHIRRegistryResource>
getSearchParameterResources(String type)
Get the search parameter resources from this provider with the given search parameter type (e.g.-
Methods inherited from class com.ibm.fhir.registry.spi.AbstractRegistryResourceProvider
getRegistryResource, loadFromRegistry
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider
getProfileResources, init
-
-
-
-
Method Detail
-
getRegistryResources
protected List<FHIRRegistryResource> getRegistryResources(Class<? extends Resource> resourceType, String url)
Description copied from class:AbstractRegistryResourceProvider
Return a sorted list of FHIRRegistryResource with the passed canonical url- Specified by:
getRegistryResources
in classAbstractRegistryResourceProvider
url
- the canonical url for this resource (without version suffix)- Returns:
- a list of FHIRRegistryResources with this url, sorted from low to high by version
-
getRegistryResources
public Collection<FHIRRegistryResource> getRegistryResources()
Description copied from interface:FHIRRegistryResourceProvider
Get all the registry resources from this provider- Specified by:
getRegistryResources
in interfaceFHIRRegistryResourceProvider
- Specified by:
getRegistryResources
in classAbstractRegistryResourceProvider
- Returns:
- all of the registry resources from this provider; never null
-
getRegistryResources
public Collection<FHIRRegistryResource> getRegistryResources(Class<? extends Resource> resourceType)
Description copied from interface:FHIRRegistryResourceProvider
Get the registry resources from this provider for the given resource type- Specified by:
getRegistryResources
in interfaceFHIRRegistryResourceProvider
- Specified by:
getRegistryResources
in classAbstractRegistryResourceProvider
- Parameters:
resourceType
- the resource type of the registry resource- Returns:
- the registry resources from this provider for the given resource type; never null
-
getProfileResources
public Collection<FHIRRegistryResource> getProfileResources(String type)
Description copied from interface:FHIRRegistryResourceProvider
Get the profile resources from this provider that constrain the given resource type- Specified by:
getProfileResources
in interfaceFHIRRegistryResourceProvider
- Specified by:
getProfileResources
in classAbstractRegistryResourceProvider
- Parameters:
type
- the constrained resource type- Returns:
- the profile resources from this provider that constrain the given resource type; never null
-
getSearchParameterResources
public Collection<FHIRRegistryResource> getSearchParameterResources(String type)
Description copied from interface:FHIRRegistryResourceProvider
Get the search parameter resources from this provider with the given search parameter type (e.g. string, token, etc.)- Specified by:
getSearchParameterResources
in interfaceFHIRRegistryResourceProvider
- Specified by:
getSearchParameterResources
in classAbstractRegistryResourceProvider
- Parameters:
type
- the search parameter type- Returns:
- the search parameter resources from this provider with the given search parameter type; never null
-
-