I was able to successfully install senaite LIMS and HEALTH. Now I need to import patients from my other app to senaite using csv/xls file or direct db dump. Is this doable. where I can find senaite lims database. Is there a way to create patient via api. what is the api endpoint?
Senaite relays on ZODB, an oriented object database. To get readable data from the DB you have to access the Python object stored as a “pickle” and then instantiate it.
As I see it, you have two options to get/export/import data from/to Senaite:
- You can create your own addon:
Read Plone documentation to understand the addon creation: https://docs.plone.org/4/en/develop/addons/helloworld/extend/index.html
Build an Add-on from scratch. You can copy https://github.com/senaite/senaite.core.supermodel as your template and rename/add the things you need).
Make use of Senaite internal API (https://github.com/senaite/senaite.core/tree/master/bika/lims/api). You will find some examples about how to use the API functions here: https://github.com/senaite/senaite.core/tree/master/bika/lims/tests/doctests
- Take advantage of Senaite RESTful JSON API (https://github.com/senaite/senaite.jsonapi) that works as an abstraction layer to read, modify and create data in the system by http requests. You will find this answer interesting: How to export data from Senaite.Lims and how to install senaite.exporter?