AQL through GraphQL

You have a good memory Erik!

Yes we have a system for stored structured queries. We named it VAQM which is an acronym for Virtual Archetype Query Model. To be honest we chose the name to make it easier to remember…

VAQM is a two-step modelling framework for reusable queries.

  • AQL definitions
  • Data element definitions

AQL definitions defines the paths, the AND/OR expressions, the ordering and this is combined into predicates. One predicate is analogue to a view in SQL.

Based on the predicates we define display transformations for the data. These transformation may be used in patientlists or graph/charting. Some examples below and sorry for the Norwegian text.

image

image

A few years ago we prototyped a GraphQL layer above VAQM. Here we combined demographics with VAQM from the openEHR CDR. We found it useful and powerful. But we also had similar and existing services. This is why we never made the prototype into production services. Still I think it is an interesting idea which might be implemented in the future.

4 Likes