Interface FHIRRegistryResourceProvider
-
- All Known Implementing Classes:
AbstractRegistryResourceProvider
,C4BB100ResourceProvider
,C4BB110ResourceProvider
,Core430ResourceProvider
,ExtensionSearchParametersResourceProvider
,FHIRRegistryResourceProviderAdapter
,Formulary101ResourceProvider
,Formulary110ResourceProvider
,Formulary200ResourceProvider
,Hl7Terminology310ResourceProvider
,HREX100ResourceProvider
,ImplicitValueSetRegistryResourceProvider
,MCODEResourceProvider
,PackageRegistryResourceProvider
,PDEX100ResourceProvider
,PDEX200ResourceProvider
,PlanNet100ResourceProvider
,PlanNet110ResourceProvider
,ResourceProvider
,ResourceProvider
,ServerRegistryResourceProvider
,SnomedRegistryResourceProvider
,USCore311ResourceProvider
,USCore400ResourceProvider
,USCore501ResourceProvider
public interface FHIRRegistryResourceProvider
An SPI forFHIRRegistryResource
instances. When implementing this SPI, the constructor and instance variables should not make calls to the FHIRRegistry. Use the init method to call back to the Registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Collection<FHIRRegistryResource>
getProfileResources()
Get the profiles for all of the resources.java.util.Collection<FHIRRegistryResource>
getProfileResources(java.lang.String type)
Get the profile resources from this provider that constrain the given resource typeFHIRRegistryResource
getRegistryResource(java.lang.Class<? extends Resource> resourceType, java.lang.String url, java.lang.String version)
Get the registry resource from this provider for the given resource type, url and versionjava.util.Collection<FHIRRegistryResource>
getRegistryResources()
Get all the registry resources from this providerjava.util.Collection<FHIRRegistryResource>
getRegistryResources(java.lang.Class<? extends Resource> resourceType)
Get the registry resources from this provider for the given resource typejava.util.Collection<FHIRRegistryResource>
getSearchParameterResources(java.lang.String type)
Get the search parameter resources from this provider with the given search parameter type (e.g.default void
init()
Facilitates callbacks after the ServiceLoader has discovered the providers and conditionally loaded the Providers.
-
-
-
Method Detail
-
init
default void init()
Facilitates callbacks after the ServiceLoader has discovered the providers and conditionally loaded the Providers.
-
getRegistryResource
FHIRRegistryResource getRegistryResource(java.lang.Class<? extends Resource> resourceType, java.lang.String url, java.lang.String version)
Get the registry resource from this provider for the given resource type, url and versionIf the version is null, then the latest version of the registry resource is returned (if available)
- Parameters:
resourceType
- the resource type of the registry resourceurl
- the url of the registry resourceversion
- the version of the registry resource (optional)- Returns:
- the registry resource from this provider for the given resource type, url and version if exists, null otherwise
-
getRegistryResources
java.util.Collection<FHIRRegistryResource> getRegistryResources(java.lang.Class<? extends Resource> resourceType)
Get the registry resources from this provider for the given resource type- Parameters:
resourceType
- the resource type of the registry resource- Returns:
- the registry resources from this provider for the given resource type; never null
-
getRegistryResources
java.util.Collection<FHIRRegistryResource> getRegistryResources()
Get all the registry resources from this provider- Returns:
- all of the registry resources from this provider; never null
-
getProfileResources
java.util.Collection<FHIRRegistryResource> getProfileResources(java.lang.String type)
Get the profile resources from this provider that constrain the given resource type- Parameters:
type
- the constrained resource type- Returns:
- the profile resources from this provider that constrain the given resource type; never null
-
getSearchParameterResources
java.util.Collection<FHIRRegistryResource> getSearchParameterResources(java.lang.String type)
Get the search parameter resources from this provider with the given search parameter type (e.g. string, token, etc.)- Parameters:
type
- the search parameter type- Returns:
- the search parameter resources from this provider with the given search parameter type; never null
-
getProfileResources
default java.util.Collection<FHIRRegistryResource> getProfileResources()
Get the profiles for all of the resources.- Returns:
- the profile resources from this provider that constrain the resource types
-
-