ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
177 stars 110 forks source link

[Question] Storage model mapping to OpenEHR Clinical Document #1058

Closed gayanper closed 4 years ago

gayanper commented 4 years ago

Do you have any documentation describing how the storage tables are mapped to openehr documents ? i would like to understand how to query data directly from the database if possible.

ppazos commented 4 years ago

@gayanper this system is designed as a microservice, the database should never be queried directly, because it misses all internal structures, rules, processes and checks. The class to table mapping is the standard Grails mapping. The closest you can get is to query using the Grails GORM. How EHRServer was designed is to use the API and the path-based queries (https://docs.google.com/document/d/1pGJXIWHCgjyiofLmNHRTG7UFuB-tVWzm625X5rkiHiw/edit?usp=sharing) to get data from the server.

If you have further questions, please use our support channel https://gitter.im/CaboLabs/EHRServer