I have used the HAPI-FHIR Generic Client to automate FHIR Patient CRUD operations on via the dev3.openmrs.org instance.
Refer to the PR → https://github.com/openmrs/openmrs-module-fhir2/pull/402
When I point to the OpenMRS dev3 instance ie SERVER_BASE = "https://dev3.openmrs.org/openmrs/ws/fhir2/R4"
with the Community Outreach
location like PATIENT_LOCATION_UUID = "1ce1b7d4-c865-4178-82b0-5932e51503d6"
,
Only the @BeforeClass -> shouldCreatePatient()
runs successfully. The patient is created, and the rest return a small portion of the error which is less informative of the fault and hence not-helping.
Caused by: ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 Bad Request
at org.openmrs.module.fhir.patient.PatientDomainTest.lambda$shouldThrow404WithNonExistingPatient$0(PatientDomainTest.java:129)
at org.openmrs.module.fhir.patient.PatientDomainTest.shouldThrow404WithNonExistingPatient(PatientDomainTest.java:128)
[ERROR] org.openmrs.module.fhir.patient.PatientDomainTest.shouldGetPatientDomainByUUID Time elapsed: 1.133 s <<< ERROR!
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 Bad Request
at org.openmrs.module.fhir.patient.PatientDomainTest.shouldGetPatientDomainByUUID(PatientDomainTest.java:115)
[ERROR] org.openmrs.module.fhir.patient.PatientDomainTest.updatePatientByUUID Time elapsed: 1.135 s <<< ERROR!
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 Bad Request
at org.openmrs.module.fhir.patient.PatientDomainTest.updatePatientByUUID(PatientDomainTest.java:148)
[ERROR] org.openmrs.module.fhir.patient.PatientDomainTest Time elapsed: 2.199 s <<< ERROR!
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 Bad Request
at org.openmrs.module.fhir.patient.PatientDomainTest.shouldDeletePatientByUUID(PatientDomainTest.java:162)
However, when I run this locally using the SDK watching the latest changes of openmrs-module-fhir2 with SERVER_BASE = "http://localhost:8090/openmrs/ws/fhir2/R4"
and Isolation Ward
location as PATIENT_LOCATION_UUID = "2131aff8-2e2a-480a-b7ab-4ac53250262b"
. It works pretty fine.
Question
- Is there any way i can see the full server log for dev3.openmrs.org each time i make a request.
- Why does it fail on dev3.openmrs.org?
cc @ibacher @mozzy @dkayiwa @mseaton @mogoodrich @kdaud @sharif