I’m working on a ticket for FHIR2 module, I’ve deployed the module in the openmrs-sdk server that I’ve set up. However, on running the server and navigating to http://localhost/openmrs/ws/fhir2/Observation results in a 404 Not found error.
The addon manager does not list the fhir2-1.0.0-SNAPSHOT module. On explicitly adding the omod file from the addon manager, the following error log is obtained.
I have the following modules under the webservices-dev/modules directory,
fhir2-1.0.0-SNAPSHOT.omod
owa-1.11.0.omod
webservices.rest-2.28.0-SNAPSHOT.omod
P.S: I deleted the fhir-1.2 module that was already present and which was working as expected.
@captaindavinci I just created a PR to fix this here This is issue is caused because the module is trying to fetch records from an openmrs table concept_reference_source so as to insert to a module table, however the the table is empty hence the pre conditions failure.
Once the PR is merged you should be able to load the module without any more errors.
That would certainly be one way of doing things, assuming the demo data set has some actual observations. I know it has people in it, so you might start with that resource.
If you are running the reference application, you could also use the referencedemodata.createDemoPatientsOnNextStartup setting to have the number of demo patients that you want on next startup, which will have some observations.
I’m running the platform application, but couldn’t find demo data for the version that I’m currently running (2.3.1-SNAPSHOT). I’ll try with the reference application instead, but is there any updated demo data for platform 2.3.1?
You can generate it and upload it on the demo data wiki page. This is how to generate it. Install a platform version matching the latest available demo data. Load that demo data file into the platform. Then upgrade the platform to the one that you want to create demo data for. Finally dump a new sql file for the current database, which you can zip and upload.
Not sure if I should start a new talk post, but I’m facing this issue again.
This time with following error message shown in the web page when uploading the FHIR2 module. error message, server side logs.
I’m using the openmrs-sdk to setup a reference application, version 2.9.0, and using the current master branch of FHIR2 module to generate the omod file.