Pre-review cleaning
This commit is contained in:
parent
daa3bc773e
commit
a5c850b119
|
@ -1026,20 +1026,16 @@ public class FhirSystemDaoR4Test extends BaseJpaR4SystemTest {
|
||||||
|
|
||||||
// Run once (should create the patient)
|
// Run once (should create the patient)
|
||||||
Bundle request = loadResourceFromClasspath(Bundle.class, "/r4/transaction-no-contained.json");
|
Bundle request = loadResourceFromClasspath(Bundle.class, "/r4/transaction-no-contained.json");
|
||||||
Bundle outcome = mySystemDao.transaction(mySrd, request);
|
mySystemDao.transaction(mySrd, request);
|
||||||
IdType communicationId = new IdType(outcome.getEntry().get(1).getResponse().getLocation());
|
|
||||||
Communication communication = myCommunicationDao.read(communicationId, mySrd);
|
|
||||||
assertThat(communication.getSubject().getReference(), matchesPattern("Patient/[0-9]+"));
|
|
||||||
|
|
||||||
// Run a second time (no conditional update)
|
// Run a second time (no conditional update)
|
||||||
request = loadResourceFromClasspath(Bundle.class, "/r4/transaction-no-contained.json");
|
Bundle outcome = mySystemDao.transaction(mySrd, request);
|
||||||
outcome = mySystemDao.transaction(mySrd, request);
|
|
||||||
|
|
||||||
ourLog.info("Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(outcome));
|
ourLog.info("Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(outcome));
|
||||||
|
|
||||||
// IdType communicationId = new IdType(outcome.getEntry().get(1).getResponse().getLocation());
|
IdType communicationId = new IdType(outcome.getEntry().get(0).getResponse().getLocation());
|
||||||
// Communication communication = myCommunicationDao.read(communicationId, mySrd);
|
Communication communication = myCommunicationDao.read(communicationId, mySrd);
|
||||||
// assertThat(communication.getSubject().getReference(), matchesPattern("Patient/[0-9]+"));
|
assertThat(communication.getSubject().getReference(), matchesPattern("Patient/[0-9]+"));
|
||||||
|
|
||||||
ourLog.info("Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(communication));
|
ourLog.info("Outcome: {}", myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(communication));
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<logger name="ca.uhn.fhir.jpa.dao" additivity="false" level="debug">
|
<logger name="ca.uhn.fhir.jpa.dao" additivity="false" level="info">
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
|
|
|
@ -250,8 +250,8 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"request": {
|
"request": {
|
||||||
"method": "PUT",
|
"method": "POST",
|
||||||
"url": "Communication?identifier=https://example.com|zoop"
|
"url": "Communication"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue