temp. fixed: "Attempt to read a single element when there is more than one present" #949
Will be overwritten by next RI import!
This commit is contained in:
parent
13243956f7
commit
78f9d6333a
|
@ -3,10 +3,7 @@ package ca.uhn.fhir.parser;
|
|||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.util.TestUtil;
|
||||
import com.google.common.collect.Sets;
|
||||
import org.hl7.fhir.r4.model.Bundle;
|
||||
import org.hl7.fhir.r4.model.Observation;
|
||||
import org.hl7.fhir.r4.model.Patient;
|
||||
import org.hl7.fhir.r4.model.Reference;
|
||||
import org.hl7.fhir.r4.model.*;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -191,7 +191,6 @@ public class FhirInstanceValidatorR4Test {
|
|||
|
||||
retVal.add(next);
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
@ -1036,6 +1035,24 @@ public class FhirInstanceValidatorR4Test {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMultiplePerformer() {
|
||||
Observation o = new Observation();
|
||||
Practitioner p1 = new Practitioner();
|
||||
Practitioner p2 = new Practitioner();
|
||||
|
||||
o.addPerformer(new Reference(p1));
|
||||
o.addPerformer(new Reference(p2));
|
||||
|
||||
ValidationResult output = myVal.validateWithResult(o);
|
||||
List<SingleValidationMessage> valMessages = logResultsAndReturnAll(output);
|
||||
List<String> messages = new ArrayList<>();
|
||||
for (String msg : messages) {
|
||||
messages.add(msg);
|
||||
}
|
||||
assertThat(messages, not(hasItem("All observations should have a performer")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidateResourceWithValuesetExpansionGood() {
|
||||
Patient patient = new Patient();
|
||||
|
|
Loading…
Reference in New Issue