Fix DSTU3 testValidateBuiltInProfiles()
This commit is contained in:
parent
15a35b48d8
commit
a31e3d5ed1
|
@ -686,7 +686,20 @@ public class FhirInstanceValidatorDstu3Test {
|
||||||
} 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("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
|
// Some DSTU3 FHIRPath expressions now produce warnings if a singleton is compared to a collection that potentially has > 1 elements
|
||||||
return false;
|
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_WG_URL")
|
||||||
|
)) {
|
||||||
|
// Workgroups have been updated and have slightly different naming conventions and URLs.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue