Package com.ibm.fhir.registry.util
Class FHIRRegistryUtil
- java.lang.Object
-
- com.ibm.fhir.registry.util.FHIRRegistryUtil
-
public final class FHIRRegistryUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<FHIRRegistryResource>
getRegistryResources(String packageId)
static String
getUrl(Resource resource)
static String
getVersion(Resource resource)
static boolean
isDefinitionalResource(Resource resource)
static boolean
isDefinitionalResourceType(Class<? extends Resource> resourceType)
Indicates whether the resource type is a definitional resource type per: http://hl7.org/fhir/definition.htmlstatic Resource
loadResource(String path)
static List<Index.Entry>
readIndex(String indexPath)
static void
requireDefinitionalResourceType(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
-
isDefinitionalResource
public static boolean isDefinitionalResource(Resource resource)
-
requireDefinitionalResourceType
public static void requireDefinitionalResourceType(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(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
-
getRegistryResources
public static Collection<FHIRRegistryResource> getRegistryResources(String packageId)
-
readIndex
public static List<Index.Entry> readIndex(String indexPath)
-
-