openEHR / specifications-ITS-REST

openEHR REST API Specifications
https://specifications.openehr.org/releases/ITS-REST/latest
Apache License 2.0
18 stars 15 forks source link

Create official spec for a FLAT (JSON) format #56

Closed ErikSundvall closed 5 years ago

ErikSundvall commented 6 years ago

There are several non standardized implementations of "flat" openEHR RM JSON formats, that usually consist of lists of key-value pairs where the key is some kind of path. There are use-cases behind the creation of such formats and it would be good to provide a public specification of such a format.

Two of the flat formats are described at: https://github.com/ethercis/ethercis/blob/master/doc/flat%20json.md

(Please edit this issue ticket to add links to other flat-format descriptions if you know of any) Background motivation of the need of tracking these thoughts as an official issue: https://github.com/ethercis/ethercis/issues/74#issuecomment-371359396

ErikSundvall commented 6 years ago

Discussion starter: Personally I see most value in some natural-language-independent, AQL-path-based version along the lines of ECISFLAT described in https://github.com/ethercis/ethercis/blob/master/doc/flat%20json.md that could be used for cut&paste of paths from tools.

If we want compact language-specific, human-readable serialization, then perhaps it would be of higher priority to complete an official spec on TDS3 that is partially described at https://openehr.atlassian.net/wiki/spaces/spec/pages/30408770/Template+Data+Schema+TDS+Specification+and+associated+Template+Data+Document+TDD (maybe a JSON version of it could be derived/specified too)

ErikSundvall commented 5 years ago

When 1.0 of the rest spec is done, the "flat JSON format" discussion should be picked up again for version 1.1 of the REST spec. Some updates/revisions to the discussion starter above follow.

sebastian-iancu commented 5 years ago

This is taken care in abstract SM, in https://openehr.atlassian.net/browse/SPECITS-33 and https://github.com/openEHR/simplified-format-incubator