Added SearchRequest.requester to Patient/everything (#4462)
Co-authored-by: kylejule <kyle.jule@smilecdr.com>
This commit is contained in:
parent
d584e14048
commit
527a948285
|
@ -1521,6 +1521,20 @@ public class JpaPatientEverythingTest extends BaseResourceProviderR4Test {
|
||||||
assertThat(actual, hasItem(serviceRequestId));
|
assertThat(actual, hasItem(serviceRequestId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void patientEverything_shouldReturnServiceRequest_whenServiceRequestExistsThatRefersToPatientAsRequester() throws Exception {
|
||||||
|
|
||||||
|
Reference referenceToPatient = createPatient();
|
||||||
|
|
||||||
|
ServiceRequest serviceRequest = new ServiceRequest();
|
||||||
|
serviceRequest.setRequester(referenceToPatient);
|
||||||
|
String serviceRequestId = myClient.create().resource(serviceRequest).execute().getId().toUnqualifiedVersionless().getValue();
|
||||||
|
|
||||||
|
Set<String> actual = getActualEverythingResultIds(referenceToPatient.getReference());
|
||||||
|
assertThat(actual, hasItem(referenceToPatient.getReference()));
|
||||||
|
assertThat(actual, hasItem(serviceRequestId));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void patientEverything_shouldReturnSpecimen_whenSpecimenExistsThatRefersToPatient() throws Exception {
|
public void patientEverything_shouldReturnSpecimen_whenSpecimenExistsThatRefersToPatient() throws Exception {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue