I’ve been talking with @ian.mcnicoll recently who suggested I post in Discourse as well.
As part of some work I’m leading on in my current role, I’m on the look out for real world use examples of where openEHR underpinned mobile applications have been implemented, where they work in an offline capability.
Examples I was thinking of could be community nursing where there is a download of patients, they then record activities on the application (without connectivity ) and resync information when they get connectivity again, perhaps several days later.
We might think about what a minimal CDR on a mobile device might look like
EHR : Create, Update, Delete
Composition: Create/ Update /Delete
- which formats?
- Canonical is more queryable, FLAT/STRUCTURED easier?? (both!)
- Versioning/ minimal contribution?
Templates: Upload, Read
Query: A minimal AQL processor??
I know people have talked about this in the past but not sure if there have been any attempts to implement it.
If there was no attempt to shred the Composition object, it might be fairly straightforward to store and retrieve these objects, the main challenge being the extent of granular querying that needed to be supported.
Agree a minimal CDR on the device is where we’re thinking but I’m also wondering what the licence implications are for that as it brings a different approach perhaps.
If we’re the first, that’ll be an interesting we’re up for. Will share how we get on
A micro CDR would be a very interesting challenge. And I also like the idea of a reliant net of decentralized EHRs.
But don’t you have a very constrained case only, e.g. your nursing example? Wouldn’t it suffice to just abstract the necessary data points away from the complexity of openEHR, temporary save them in the app’s own DB, and finally send them to the openEHR server/EHR with a SDK based client?
Adding a form solution based on dynamic openEHR templates could gentrify this approach.
It depends, but personally I would explore this path, before looking into the more complex ideas above.