Class FHIRRegistryUtil


  • public final class FHIRRegistryUtil
    extends java.lang.Object
    • 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 an IllegalArgumentException 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)