Generating GraphQL from OPTs

Cool! And quite readable!

So does the superclass Element(or some other ancestor) contain a validator algorithm that makes use of the Constraints?

P.s.
To make examples more realistic and complete (and possible to submit to an openEHR CDR) you could wrap the Blood pressure OBSERVATION in a COMPOSITION an add time an other mandatory fields (and skip pulse pressure + mean arterial pressure).
Showing example code instantiating a BP measurement would also help people understand usage

P.p.s.
I have had a look at Dart, Flutter etc
and believe there is definitely room for openEHR-related innovation/implementation in that space, e.g. for:

  • simple UX/forms in cross platform developed native apps for old low end phones/tablets (Devices that often have poor/old web view capabilities - as we have noticed in app access logs from patients/inhabitants of Region Stockholm)
  • openEHR data handling in embedded computing
  • performance hungry UX (visualisations etc) on “normal” hardware