opensafely-core / ehrql

ehrQL: the electronic health record query language for OpenSAFELY
https://docs.opensafely.org/ehrql/
Other
7 stars 3 forks source link

Providing insight into the structure of data definitions #677

Open benbc opened 2 years ago

benbc commented 2 years ago

This is a proposal for shore leave work.

Context

The query model in Data Builder gives us a formal, machine-inspectable form of data definitions that researchers write. At the moment all we use that for is translating it into SQL, but we could do all sorts of other things with it as well.

Proposal

Why?

I don't have any real goals for what we might do about these insights -- it's all rather exploratory.

What?

How?

evansd commented 2 years ago

If, as part of this work, you ended up looking at:

I would not be altogether displeased :)

benbc commented 2 years ago

@evansd Yes, I looked at that as something to work on in itself. It's sort of related, isn't it? I think one possible (but not super-likely) outcome of doing this analysis may be to identify transformations that we want to do.

evansd commented 2 years ago

Yeah, it's probably too big a thing to tackle in passing. I just wanted to plant the seed in case you had a burst of inspiration while working on this and realised it was all incredibly simple!