✨ Split out INCLUDE specific fields#45
Conversation
|
|
I think it makes sense to have down syndrome status here. Age at engagement - this one I feel we sometimes do receive for KF studies but we call it "age at enrollment" . Not sure if that one should be "include only". Then lastly - what does the inheritance look like in terms of translating this to dbt models? Not sure if I'm understanding that piece clearly. |
|
I'm also considering mixins for the program-specific fields. We'd have a class with just the additional fields, then a class that is_a core table and has the mixin of the program-specific class. That would give the separate tables and one merged. It does require the model to be more complicated, though, and we might not want to use that additive flow. |
This moves some INCLUDE specific fields into a different class.
202ace5 to
1dbbaa0
Compare
We have it a little broader than just the "age at enrollment" as we don't always have that information. Sometimes they are the same age. We could keep it in the core model if it's something that KF may use, too.
It means the shared tables exists and then there are additional tables with all of the shared table fields and the extension fields. I just realized (and fixed) the PR previews not fully working, so I hope that helps make it clearer. The demographics table has its fields, all of which are included in the INCLUDE Participant table as well. If you look at the bottom of the INCLUDE participant page, you can see the short definition and the full definition (which includes every slot from Demographics): |
|
The more I've been thinking about it, the more I think we should separate out the repos. It'd be a big change in repo structure potentially, but I think it might support wider use (eg, AnVIL wouldn't add a third set of bonus tables or someone else entirely could pick up the core model for NCPI FHIR) and more ability to configure targets (eg, I could build the models with no extras, KF, INCLUDE, or both). |
|
I am closing this out and moving the changes to the new repo. |

This moves some INCLUDE specific fields into a different class.
It demonstrates: