Class FHIRRegistryUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.registry.util.FHIRRegistryUtil
-
public final class FHIRRegistryUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<FHIRRegistryResource>
getRegistryResources(java.lang.String packageId)
static java.lang.String
getUrl(Resource resource)
static java.lang.String
getVersion(Resource resource)
static boolean
isDefinitionalResource(Resource resource)
static boolean
isDefinitionalResourceType(java.lang.Class<? extends Resource> resourceType)
Indicates whether the resource type is a definitional resource type per: http://hl7.org/fhir/definition.htmlstatic Resource
loadResource(java.lang.String path)
static java.util.Set<Index.Entry>
readIndex(java.lang.String indexPath)
static void
requireDefinitionalResourceType(java.lang.Class<? extends Resource> resourceType)
Throw anIllegalArgumentException
if the resource type is not a definitional resource type per: http://hl7.org/fhir/definition.html
-
-
-
Method Detail
-
getUrl
public static java.lang.String getUrl(Resource resource)
-
getVersion
public static java.lang.String getVersion(Resource resource)
-
isDefinitionalResource
public static boolean isDefinitionalResource(Resource resource)
-
requireDefinitionalResourceType
public static void requireDefinitionalResourceType(java.lang.Class<? extends Resource> resourceType)
Throw anIllegalArgumentException
if the resource type is not a definitional resource type per: http://hl7.org/fhir/definition.html- Parameters:
resourceType
- the resourceType
-
isDefinitionalResourceType
public static boolean isDefinitionalResourceType(java.lang.Class<? extends Resource> resourceType)
Indicates whether the resource type is a definitional resource type per: http://hl7.org/fhir/definition.html- Parameters:
resourceType
- the resource type- Returns:
- true if the resource type is a definitional resource, false otherwise
-
loadResource
public static Resource loadResource(java.lang.String path)
-
getRegistryResources
public static java.util.Collection<FHIRRegistryResource> getRegistryResources(java.lang.String packageId)
-
readIndex
public static java.util.Set<Index.Entry> readIndex(java.lang.String indexPath)
-
-