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 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
-
-
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)
-
-