Package org.hl7.fhir.dstu2.utils
Class ProfileComparer
java.lang.Object
org.hl7.fhir.dstu2.utils.ProfileComparer
A engine that generates difference analysis between two sets of structure
definitions, typically from 2 different implementation guides.
How this class works is that you create it with access to a bunch of
underying resources that includes all the structure definitions from both
implementation guides
Once the class is created, you repeatedly pass pairs of structure
definitions, one from each IG, building up a web of difference analyses. This
class will automatically process any internal comparisons that it encounters
When all the comparisons have been performed, you can then generate a variety
of output formats
- Author:
- Grahame Grieve
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValueSet
(ValueSet cvs) compareProfiles
(StructureDefinition left, StructureDefinition right) Compare left and right structure definitions to see whether they are consistent or not Note that left and right are arbitrary choices.getId()
getTitle()
void
void
setLeftLink
(String leftLink) void
setLeftName
(String leftName) void
setRightLink
(String rightLink) void
setRightName
(String rightName) void
void
status
(ElementDefinition ed, int value)
-
Constructor Details
-
ProfileComparer
-
-
Method Details
-
getValuesets
-
status
-
getComparisons
-
compareProfiles
public ProfileComparer.ProfileComparison compareProfiles(StructureDefinition left, StructureDefinition right) throws org.hl7.fhir.exceptions.DefinitionException, IOException Compare left and right structure definitions to see whether they are consistent or not Note that left and right are arbitrary choices. In one respect, left is 'preferred' - the left's example value and data sets will be selected over the right ones in the common structure definition- Throws:
org.hl7.fhir.exceptions.DefinitionException
IOException
-
addValueSet
-
getId
-
setId
-
getTitle
-
setTitle
-
getLeftLink
-
setLeftLink
-
getLeftName
-
setLeftName
-
getRightLink
-
setRightLink
-
getRightName
-
setRightName
-