Package org.hl7.fhir.r5.context
Class ContextUtilities
java.lang.Object
org.hl7.fhir.r5.context.ContextUtilities
- All Implemented Interfaces:
ProfileKnowledgeProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfetchByJsonName
(String key) fetchCodeSystemVersions
(String system) void
Given a structure definition, generate a snapshot (or regenerate it)getLinkFor
(String corePath, String typeSimple) getLinkForProfile
(StructureDefinition profile, String url) getLinkForUrl
(String corePath, String url) boolean
hasLinkFor
(String typeSimple) boolean
isAbstractType
(String typeName) boolean
isDatatype
(String type) boolean
isDomainResource
(String typeName) boolean
isPrimitiveType
(String type) boolean
isResource
(String t) boolean
boolean
resolveBinding
(StructureDefinition profile, String url, String path) resolveBinding
(StructureDefinition profile, ElementDefinition.ElementDefinitionBindingComponent binding, String path) void
setSuppressDebugMessages
(boolean suppressDebugMessages) protected String
-
Constructor Details
-
ContextUtilities
-
-
Method Details
-
isSuppressDebugMessages
-
setSuppressDebugMessages
-
oid2Uri
-
getTypeNames
- Returns:
- a list of the resource and type names defined for this version
-
getTypeNameSet
- Returns:
- a set of the resource and type names defined for this version
-
getLinkForUrl
- Specified by:
getLinkForUrl
in interfaceProfileKnowledgeProvider
-
tail
-
getCanonicalResourceNames
- Returns:
- a list of the resource names that are canonical resources defined for this version
-
allStructures
- Returns:
- a list of all structure definitions, with snapshots generated (if possible)
-
getStructures
- Returns:
- a list of all structure definitions, without trying to generate snapshots
-
generateSnapshot
public void generateSnapshot(StructureDefinition p) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException Given a structure definition, generate a snapshot (or regenerate it)- Parameters:
p
-- Throws:
org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.FHIRException
-
isPrimitiveType
- Specified by:
isPrimitiveType
in interfaceProfileKnowledgeProvider
-
isDatatype
- Specified by:
isDatatype
in interfaceProfileKnowledgeProvider
-
isResource
- Specified by:
isResource
in interfaceProfileKnowledgeProvider
-
hasLinkFor
- Specified by:
hasLinkFor
in interfaceProfileKnowledgeProvider
-
getLinkFor
- Specified by:
getLinkFor
in interfaceProfileKnowledgeProvider
-
resolveBinding
public BindingResolution resolveBinding(StructureDefinition profile, ElementDefinition.ElementDefinitionBindingComponent binding, String path) - Specified by:
resolveBinding
in interfaceProfileKnowledgeProvider
-
resolveBinding
- Specified by:
resolveBinding
in interfaceProfileKnowledgeProvider
-
getLinkForProfile
- Specified by:
getLinkForProfile
in interfaceProfileKnowledgeProvider
-
prependLinks
- Specified by:
prependLinks
in interfaceProfileKnowledgeProvider
-
fetchByJsonName
-
getConcreteResourceSet
-
getConcreteResources
-
listMaps
-
fetchCodeSystemVersions
-
findType
-
fetchProfileByIdentifier
-
isAbstractType
-
isDomainResource
-
getWorker
-
getCanonicalForDefaultContext
- Specified by:
getCanonicalForDefaultContext
in interfaceProfileKnowledgeProvider
-