Skip to content

Commit

Permalink
test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
melihaydogd committed Jun 27, 2024
1 parent 4a33a01 commit 19e62c0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,9 @@ public void testUniqueValuesAreIndexed_StringAndReference_UsingConditional() {

Patient pt1 = new Patient();
pt1.addName().setFamily("FAMILY1");
pt1.setManagingOrganization(new Reference("Organization/ORG"));
Reference r1 = new Reference("Organization/ORG");
r1.setResource(org);
pt1.setManagingOrganization(r1);
IIdType id1 = myPatientDao.update(pt1, "Patient?name=FAMILY1&organization.name=ORG").getId().toUnqualifiedVersionless();

runInTransaction(() -> {
Expand All @@ -1309,7 +1311,9 @@ public void testUniqueValuesAreIndexed_StringAndReference_UsingConditional() {

pt1 = new Patient();
pt1.addName().setFamily("FAMILY1");
pt1.setManagingOrganization(new Reference("Organization/ORG"));
Reference r2 = new Reference("Organization/ORG");
r2.setResource(org);
pt1.setManagingOrganization(r2);
myPatientDao.update(pt1, "Patient?name=FAMILY1&organization.name=ORG").getId().toUnqualifiedVersionless();

runInTransaction(() -> {
Expand Down

0 comments on commit 19e62c0

Please sign in to comment.