Load R5 extensions when validating

This commit is contained in:
Grahame Grieve 2022-06-24 11:43:34 +02:00
parent 8e2958c7d6
commit 30aefb8fde
4 changed files with 9 additions and 2 deletions

View File

@ -78,6 +78,10 @@ public class SimpleHTTPClient {
throw new IOException("Invalid HTTP response "+code+" from "+source+" ("+message+") (content in "+filename+")");
}
}
}
public String getMessage() {
return message;
}
}

View File

@ -83,7 +83,8 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
Ontology,
ProfileComparer,
TerminologyEngine,
QuestionnaireResponseValidator
QuestionnaireResponseValidator,
IPAValidator
}
public enum IssueSeverity {

View File

@ -361,7 +361,7 @@ element__null_ = element = null: {0}
getSliceList_should_only_be_called_when_the_element_has_slicing = getSliceList should only be called when the element has slicing
Unable_to_resolve_name_reference__at_path_ = Unable to resolve name reference {0} at path {1}
Details_for__matching_against_Profile_ = Details for {0} matching against Profile {1}
Does_not_match_slice_ = Does not match slice ''{0}''
Does_not_match_slice_ = Does not match slice ''{0}'' (discriminator: {1})
Profile__does_not_match_for__because_of_the_following_profile_issues__ = Profile {0} does not match for {1} because of the following profile issues: {2}
This_element_does_not_match_any_known_slice_ = This element does not match any known slice{0}
defined_in_the_profile = defined in the profile

View File

@ -56,6 +56,7 @@ public class ComparisonService {
// File htmlFile = cr.render(left, right);
// Desktop.getDesktop().browse(htmlFile.toURI());
// System.out.println("Done");
// cr.getTemplates().put("CapabilityStatement", new String(context.getBinaries().get("template-comparison-CapabilityStatement.html")));
}
public static void compareStructureDefinitions(String dest, ValidationEngine validator, String left, String right, StructureDefinition resLeft, StructureDefinition resRight) throws IOException, FHIRException, EOperationOutcome {
@ -70,6 +71,7 @@ public class ComparisonService {
cr.getTemplates().put("ValueSet", new String(validator.getContext().getBinaries().get("template-comparison-ValueSet.html")));
cr.getTemplates().put("Profile", new String(validator.getContext().getBinaries().get("template-comparison-Profile.html")));
cr.getTemplates().put("Index", new String(validator.getContext().getBinaries().get("template-comparison-index.html")));
cr.getTemplates().put("CapabilityStatement", new String(validator.getContext().getBinaries().get("template-comparison-CapabilityStatement.html")));
File htmlFile = cr.render(left, right);
Desktop.getDesktop().browse(htmlFile.toURI());
System.out.println("Done");