Package org.hl7.fhir.r5.comparison
Class StructureDefinitionComparer
java.lang.Object
org.hl7.fhir.r5.comparison.ResourceComparer
org.hl7.fhir.r5.comparison.CanonicalResourceComparer
org.hl7.fhir.r5.comparison.StructureDefinitionComparer
- All Implemented Interfaces:
ProfileKnowledgeProvider
public class StructureDefinitionComparer
extends CanonicalResourceComparer
implements ProfileKnowledgeProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.comparison.CanonicalResourceComparer
CanonicalResourceComparer.CanonicalResourceComparison<T extends CanonicalResource>, CanonicalResourceComparer.ChangeAnalysisState
Nested classes/interfaces inherited from class org.hl7.fhir.r5.comparison.ResourceComparer
ResourceComparer.MessageCounts, ResourceComparer.PlaceHolderComparison, ResourceComparer.ResourceComparison
-
Field Summary
Fields inherited from class org.hl7.fhir.r5.comparison.ResourceComparer
COLOR_DIFFERENT, COLOR_DIFFERENT_LESS, COLOR_ISSUE, COLOR_NO_CELL_LEFT, COLOR_NO_CELL_RIGHT, COLOR_NO_CHANGE, COLOR_NO_ROW_LEFT, COLOR_NO_ROW_RIGHT, session
-
Constructor Summary
ConstructorDescriptionStructureDefinitionComparer
(ComparisonSession session, ProfileUtilities utilsLeft, ProfileUtilities utilsRight) -
Method Summary
Modifier and TypeMethodDescriptioncompare
(StructureDefinition left, StructureDefinition right) protected String
fhirType()
getLinkFor
(String corePath, String typeSimple) getLinkForProfile
(StructureDefinition profile, String url) getLinkForUrl
(String corePath, String s) boolean
hasLinkFor
(String typeSimple) boolean
isDatatype
(String typeSimple) boolean
isPrimitiveType
(String typeSimple) boolean
isResource
(String typeSimple) boolean
org.hl7.fhir.utilities.xhtml.XhtmlNode
renderIntersection
(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) org.hl7.fhir.utilities.xhtml.XhtmlNode
renderStructure
(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) org.hl7.fhir.utilities.xhtml.XhtmlNode
renderUnion
(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) resolveBinding
(StructureDefinition def, String url, String path) resolveBinding
(StructureDefinition def, ElementDefinition.ElementDefinitionBindingComponent binding, String path) Methods inherited from class org.hl7.fhir.r5.comparison.CanonicalResourceComparer
compareCanonicalList, compareCodeableConceptList, compareCodeList, compareDataTypesWithTracking, compareDataTypesWithTracking, compareMetadata, comparePrimitives, comparePrimitivesWithTracking, comparePrimitivesWithTracking, gen, gen, renderMetadata
Methods inherited from class org.hl7.fhir.r5.comparison.ResourceComparer
cellForMessages, missingCell, missingCell, renderErrors, vm, vm, vmI
-
Constructor Details
-
StructureDefinitionComparer
public StructureDefinitionComparer(ComparisonSession session, ProfileUtilities utilsLeft, ProfileUtilities utilsRight)
-
-
Method Details
-
fhirType
- Specified by:
fhirType
in classCanonicalResourceComparer
-
compare
public StructureDefinitionComparer.ProfileComparison compare(StructureDefinition left, StructureDefinition right) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRFormatError, IOException - Throws:
org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.FHIRFormatError
IOException
-
renderStructure
public org.hl7.fhir.utilities.xhtml.XhtmlNode renderStructure(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
renderUnion
public org.hl7.fhir.utilities.xhtml.XhtmlNode renderUnion(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
renderIntersection
public org.hl7.fhir.utilities.xhtml.XhtmlNode renderIntersection(StructureDefinitionComparer.ProfileComparison comp, String id, String prefix, String corePath) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
isDatatype
- Specified by:
isDatatype
in interfaceProfileKnowledgeProvider
-
isPrimitiveType
- Specified by:
isPrimitiveType
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 def, ElementDefinition.ElementDefinitionBindingComponent binding, String path) throws org.hl7.fhir.exceptions.FHIRException - Specified by:
resolveBinding
in interfaceProfileKnowledgeProvider
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
resolveBinding
public BindingResolution resolveBinding(StructureDefinition def, String url, String path) throws org.hl7.fhir.exceptions.FHIRException - Specified by:
resolveBinding
in interfaceProfileKnowledgeProvider
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getLinkForProfile
- Specified by:
getLinkForProfile
in interfaceProfileKnowledgeProvider
-
prependLinks
- Specified by:
prependLinks
in interfaceProfileKnowledgeProvider
-
getLinkForUrl
- Specified by:
getLinkForUrl
in interfaceProfileKnowledgeProvider
-
getCanonicalForDefaultContext
- Specified by:
getCanonicalForDefaultContext
in interfaceProfileKnowledgeProvider
-