-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Background:
See discussion at https://openehr.atlassian.net/wiki/display/spec/openEHR+REST+APIs
It can be hard for some implementers to support all kinds of calls, we could provide a well specified conformance ladder with basic levels that are easy to add but still are very useful for integrations. Defining R1+W1+Q1 should probably be first priority timewise.
Implementation levels (an initial suggestion)
- R1 Basic read-only. COMPOSITION+FOLDER listing and retrieval.
- R2 Level 2 read-only. R1 as above plus: Support for listing and retrieval of CONTRIBUTIONS, EHR_STATUS and EHR_ACCESS...
- W1 Basic write. Writing/updating COMPOSITIONS one by one. Creating new EHRs...
- W2 Level 2 write. W1 as above plus Writing several changes at once using a CONTRIBUTION...
- W3 Level 3 write. W2 as above plus multi-EHR-spanning-commit mechanism (allowing Atomic correction moves etc between different EHRs)
- QL1 Basic Query...
- QL2 Level 2 Query. Named/identified queries with dynamic parameters (allows stored procedures and other optimizations).
- CDS1...? Clinical Decision Support?
One system could for example support R1+QL1 another might support R2+W2
Suggested next steps
- Discuss suitable levels
- add short text about levels in Apiary intro text (and refer/link to related spec-document for more reasoning about levels)
- add a level marker, e.g. "(Api Level R1)" to the description text of suitable resources/calls
I (@ErikSundvall) can make some initial changes to the file to illustrate and get started, then initiate a pull request.