Add another failing Test

This commit is contained in:
Tadgh 2021-08-19 17:25:15 -04:00
parent 19d181989c
commit 3556299332
1 changed files with 14 additions and 0 deletions

View File

@ -832,5 +832,19 @@ public class FhirResourceDaoR4VersionedReferenceTest extends BaseJpaR4Test {
assertThat(versionedPatientReference, is(equalTo("Patient/RED/_history/1"))); assertThat(versionedPatientReference, is(equalTo("Patient/RED/_history/1")));
} }
@Test
public void testNoNpeMinimal() {
myDaoConfig.setAutoCreatePlaceholderReferenceTargets(true);
myModelConfig.setAutoVersionReferenceAtPaths("Observation.subject");
Observation obs = new Observation();
obs.setId("Observation/DEF");
obs.setSubject(new Reference("Patient/RED"));
BundleBuilder builder = new BundleBuilder(myFhirCtx);
builder.addTransactionUpdateEntry(obs);
mySystemDao.transaction(new SystemRequestDetails(), (Bundle) builder.getBundle());
}
} }