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