Fix test for #851
This commit is contained in:
parent
8458544fc9
commit
c8e61cd9a3
|
@ -414,7 +414,7 @@ public class FhirInstanceValidatorDstu3Test {
|
||||||
@Test
|
@Test
|
||||||
public void testValidateCoding() {
|
public void testValidateCoding() {
|
||||||
ImagingStudy is = new ImagingStudy();
|
ImagingStudy is = new ImagingStudy();
|
||||||
is.setUid(IdType.newRandomUuid().getValue());
|
is.setUid("urn:oid:1.2.3.4");
|
||||||
is.getPatient().setReference("Patient/1");
|
is.getPatient().setReference("Patient/1");
|
||||||
|
|
||||||
is.getModalityListFirstRep().setSystem("http://foo");
|
is.getModalityListFirstRep().setSystem("http://foo");
|
||||||
|
@ -423,7 +423,8 @@ public class FhirInstanceValidatorDstu3Test {
|
||||||
|
|
||||||
ValidationResult results = myVal.validateWithResult(is);
|
ValidationResult results = myVal.validateWithResult(is);
|
||||||
List<SingleValidationMessage> outcome = logResultsAndReturnNonInformationalOnes(results);
|
List<SingleValidationMessage> outcome = logResultsAndReturnNonInformationalOnes(results);
|
||||||
assertThat(outcome, empty());
|
assertEquals(1, outcome.size());
|
||||||
|
assertEquals("The Coding provided is not in the value set http://hl7.org/fhir/ValueSet/dicom-cid29 (http://hl7.org/fhir/ValueSet/dicom-cid29, and a code should come from this value set unless it has no suitable code) (error message = Code http://foo/BAR was not validated because the code system is not present)", outcome.get(0).getMessage());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue