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 StringgetUrl(Resource resource)static StringgetVersion(Resource resource)static booleanisDefinitionalResource(Resource resource)static booleanisDefinitionalResourceType(Class<? extends Resource> resourceType)Indicates whether the resource type is a definitional resource type per: http://hl7.org/fhir/definition.htmlstatic ResourceloadResource(String path)static List<Index.Entry>readIndex(String indexPath)static voidrequireDefinitionalResourceType(Class<? extends Resource> resourceType)Throw anIllegalArgumentExceptionif 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 anIllegalArgumentExceptionif 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)
 
 - 
 
 -