mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-08 14:05:02 +00:00
Fix FhirInstanceValidatorDstu3Test.testValidateBuiltInProfiles()
This commit is contained in:
parent
974a75336b
commit
2a5792e44d
@ -683,10 +683,29 @@ public class FhirInstanceValidatorDstu3Test {
|
||||
} else if (t.getMessage().contains("sdf-15") && t.getMessage().contains("The name 'kind' is not valid for any of the possible types")) {
|
||||
// Find constraint sdf-15 fails with stricter core validation.
|
||||
return false;
|
||||
} else if (t.getMessage().contains("side is inherently a collection") && t.getMessage().endsWith("may fail or return false if there is more than one item in the content being evaluated")) {
|
||||
}
|
||||
else if (t.getMessage().contains("bdl-7") && t.getMessage().contains("Error evaluating FHIRPath expression: The parameter type http://hl7.org/fhir/StructureDefinition/uri is not legal for where parameter 1. expecting SINGLETON[http://hl7.org/fhirpath/System.Boolean]")) {
|
||||
// Find constraint sdf-15 fails with stricter core validation.
|
||||
return false;
|
||||
}
|
||||
else if (t.getMessage().contains("side is inherently a collection") && t.getMessage().endsWith("may fail or return false if there is more than one item in the content being evaluated")) {
|
||||
// Some DSTU3 FHIRPath expressions now produce warnings if a singleton is compared to a collection that potentially has > 1 elements
|
||||
return false;
|
||||
} else {
|
||||
} else if (t.getMessage().contains("When HL7 is publishing a resource, the owning committee must be stated using the http://hl7.org/fhir/StructureDefinition/structuredefinition-wg extension")) {
|
||||
// DSTU3 resources predate this strict requirement
|
||||
return false;
|
||||
} else if (t.getMessage().equals("The nominated WG 'rcrim' is unknown")) {
|
||||
//The rcrim workgroup is now brr http://www.hl7.org/Special/committees/rcrim/index.cfm
|
||||
return false;
|
||||
} else if (t.getSeverity() == ResultSeverityEnum.WARNING
|
||||
&& ( t.getMessageId().equals("VALIDATION_HL7_PUBLISHER_MISMATCH")
|
||||
|| t.getMessageId().equals("VALIDATION_HL7_PUBLISHER_MISMATCH2")
|
||||
|| t.getMessageId().equals("VALIDATION_HL7_WG_URL")
|
||||
)) {
|
||||
// Workgroups have been updated and have slightly different naming conventions and URLs.
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user