Package com.ibm.fhir.profile
Class ProfileSupport
- java.lang.Object
-
- com.ibm.fhir.profile.ProfileSupport
-
public final class ProfileSupport extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static CacheManager.Configuration
BINDING_CACHE_CONFIG
static String
BINDING_CACHE_NAME
static CacheManager.Configuration
CONSTRAINT_CACHE_CONFIG
static String
CONSTRAINT_CACHE_NAME
static CacheManager.Configuration
ELEMENT_DEF_CACHE_CONFIG
static String
ELEMENT_DEF_CACHE_NAME
static String
HL7_STRUCTURE_DEFINITION_URL_PREFIX
static String
HL7_VALUE_SET_URL_PREFIX
-
Method Summary
-
-
-
Field Detail
-
HL7_STRUCTURE_DEFINITION_URL_PREFIX
public static final String HL7_STRUCTURE_DEFINITION_URL_PREFIX
- See Also:
- Constant Field Values
-
HL7_VALUE_SET_URL_PREFIX
public static final String HL7_VALUE_SET_URL_PREFIX
- See Also:
- Constant Field Values
-
CONSTRAINT_CACHE_NAME
public static final String CONSTRAINT_CACHE_NAME
- See Also:
- Constant Field Values
-
ELEMENT_DEF_CACHE_NAME
public static final String ELEMENT_DEF_CACHE_NAME
- See Also:
- Constant Field Values
-
BINDING_CACHE_NAME
public static final String BINDING_CACHE_NAME
- See Also:
- Constant Field Values
-
CONSTRAINT_CACHE_CONFIG
public static final CacheManager.Configuration CONSTRAINT_CACHE_CONFIG
-
ELEMENT_DEF_CACHE_CONFIG
public static final CacheManager.Configuration ELEMENT_DEF_CACHE_CONFIG
-
BINDING_CACHE_CONFIG
public static final CacheManager.Configuration BINDING_CACHE_CONFIG
-
-
Method Detail
-
getUrl
public static String getUrl(StructureDefinition profile)
-
getVersion
public static String getVersion(StructureDefinition profile)
-
isSlice
public static boolean isSlice(ElementDefinition elementDefinition)
-
isSliceDefinition
public static boolean isSliceDefinition(ElementDefinition elementDefinition)
-
getReferencedProfileConstraintKeys
public static Set<String> getReferencedProfileConstraintKeys(ElementDefinition elementDefinition)
-
hasConstraintDifferential
public static boolean hasConstraintDifferential(ElementDefinition elementDefinition)
-
getConstraintDifferential
public static List<ElementDefinition.Constraint> getConstraintDifferential(ElementDefinition elementDefinition)
-
getBinding
public static ElementDefinition.Binding getBinding(String path)
-
getBindingMap
public static Map<String,ElementDefinition.Binding> getBindingMap(String url)
-
getConstraints
public static List<Constraint> getConstraints(List<String> urls, Class<?> type)
-
getConstraints
public static List<Constraint> getConstraints(Resource resource)
-
getResourceAssertedProfiles
public static List<String> getResourceAssertedProfiles(Resource resource)
-
hasResourceAssertedProfile
public static boolean hasResourceAssertedProfile(Resource resource, StructureDefinition profile)
-
getConstraints
public static List<Constraint> getConstraints(String url, Class<?> type)
-
getElementDefinition
public static ElementDefinition getElementDefinition(String path)
-
getElementDefinitionMap
public static Map<String,ElementDefinition> getElementDefinitionMap(Class<?> type)
-
getElementDefinitionMap
public static Map<String,ElementDefinition> getElementDefinitionMap(String url)
-
getConstraintKeys
public static Set<String> getConstraintKeys(StructureDefinition structureDefinition)
-
getConstraintKeys
public static Set<String> getConstraintKeys(StructureDefinition.Differential differential)
-
getConstraintKeys
public static Set<String> getConstraintKeys(ElementDefinition elementDefinition)
-
getProfile
public static StructureDefinition getProfile(String url)
-
getProfile
public static StructureDefinition getProfile(String url, Class<?> type)
-
getStructureDefinition
public static StructureDefinition getStructureDefinition(Class<?> modelClass)
-
getStructureDefinition
public static StructureDefinition getStructureDefinition(String url)
-
isApplicable
public static boolean isApplicable(StructureDefinition profile, Class<?> type)
-
isProfile
public static boolean isProfile(StructureDefinition structureDefinition)
-
-