Introduction
To install Bahmni Offline, you need to install the "bahmni" command line tool, which provides various options for installing / configuring Bahmni. You can refer Install Bahmni on CentOS. The difference you see for offline server setup is, You need install bahmni-event-log-service which is used for the pulling the event logs for using the data offline as described here. And bahmni-offline module
...
If you are migrating Bahmni-offline server from 0.83 version to 0.84, make sure that each visit should be tied to some login location(Refer: Visit Location). The below query should return 0 elements
SELECT location_id, visit_id FROM visit WHERE visit.location_id IS NULL ;
If the above returns non-zero elements, then check
Below query checks whether location_id info available in encounter table for corresponding visits and populate them in visit table. Check below queriesIf no visit info in encounter it will those visits to unknown location
Code Block | ||
---|---|---|
| ||
UPDATE visit SET location_id = (SELECT location_id FROM encounter WHERE visit.visit_id = encounter.visit_id GROUP BY encounter.visit_id); |
Run: SELECT location_id, visit_id FROM visit WHERE visit.location_id IS NULL ;
...
|
...
|
...
|
...
Code Block |
---|
UPDATE visit SET location_id = (SELECT location_id FROM location WHERE name = "Unknown Location" LIMIT 1) WHERE location_id IS NULL; |