Add test for #851

This commit is contained in:
jamesagnew 2018-02-15 07:12:56 -05:00
parent 4f45ad87f3
commit 8458544fc9
1 changed files with 19 additions and 0 deletions

View File

@ -408,6 +408,25 @@ public class FhirInstanceValidatorDstu3Test {
}
/**
* See #851
*/
@Test
public void testValidateCoding() {
ImagingStudy is = new ImagingStudy();
is.setUid(IdType.newRandomUuid().getValue());
is.getPatient().setReference("Patient/1");
is.getModalityListFirstRep().setSystem("http://foo");
is.getModalityListFirstRep().setCode("BAR");
is.getModalityListFirstRep().setDisplay("Hello");
ValidationResult results = myVal.validateWithResult(is);
List<SingleValidationMessage> outcome = logResultsAndReturnNonInformationalOnes(results);
assertThat(outcome, empty());
}
/**
* FHIRPathEngine was throwing Error...
*/