ejp-rd-vp / CDE-semantic-model

Semantic data model of the set of common data elements for rare disease registration
Creative Commons Zero v1.0 Universal
12 stars 9 forks source link

Unclear how to add multiple genetic diagnoses #113

Closed martijnkersloot closed 1 year ago

martijnkersloot commented 2 years ago

It's currently unclear in the model how one should register multiple genetic diagnoses (https://github.com/ejp-rd-vp/CDE-semantic-model/blob/master/docs/genetic_diagnosis.md).

When looking at the ShEx, it looks like that this is not modeled out (yet)?

markwilkinson commented 2 years ago

At the moment the solution is to generate multiple lines for the same patient ID. (different unique ids, though!)

martijnkersloot commented 2 years ago

Thanks for the fast reply! What do you mean with multiple lines? From which part of the model on? Role/Process/Output type/Attribute type?

markwilkinson commented 2 years ago

If you're using our templates and CSV transformation, it is one line of CSV per feature.

martijnkersloot commented 2 years ago

We're not using the templates / CSV transformation, but try to implement the model ourselves in our EDC system. I hope the model is independent from tooling? :)

markwilkinson commented 2 years ago

I see... then you can start from the process node and create multiple outputs that refer to the sequence variant ID that is an attribute of the patient (output nodes need to have distinct identifiers, but I believe everything else is constrained by its database URI identifier so you don't need to worry about uniqueness for those nodes). Hope I got that right! Our transformation just "does the right thing", so I haven't thought about it in a while ;-)

markwilkinson commented 2 years ago

Sorry! No... multiple unique process nodes also... sorry, they carry (in principle) a timestamp and may have been determined at different times, so there has to be one process per output. Sorry!!