Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please explain "context_id: Time-oriented identifier to relate models with same date of observation" #52

Open
jagerda opened this issue Jan 2, 2023 · 1 comment

Comments

@jagerda
Copy link
Contributor

jagerda commented Jan 2, 2023

Hi all,

I'm sorry but I don't understand the column context_id in CDE.csv

The documentation says that this is a "Time-oriented identifier to relate models with same date of observation". If it's really only about the date then why would you need an extra column for that, there already are columns startdate and enddate for each process...?

Or is this introducing some concept of "encounter" or "visit", e.g. to link retrospective data and prospective data?

Maybe let's discuss an example:
A patient had first contact with specialised center on 2020-12-01.
For this patient, a clinical diagnosis was established on 2020-12-05.
This patient signed informed consent for a patient registry on 2020-12-06.
All these infos were entered into a registry during some "enrolment"-event on 2020-12-06.
=> Given that, what are the expected values for column context_id for Care_pathway, Diagnosis, Date_of_diagnosis, Consent?

Thanks!

Dagmar

@pabloalarconm
Copy link
Member

Hi Dagmar!

Please next CDE issue/uncertainty you have, you can tag me as asignee so I can have a look easier :)

context_id its a unique persistant identifier used to define quads. This quad structure allow us to connect any triplet from the model with startdate and enddate of observation. By the deafult CDE implementation its generated by Hefesto module so you dont need to provide it, looks like uniqid ID. I will document it better and more in detail for clear explanation.

Based on your example, this context_id is different in each one of your encounters or visits, however if this clinical diagnosis is asociated to a certain phenotype observation or age/date of the symptom onset, then you can use same context_id to relate them into a common context(by default this context_id is unique and added automatically but to refer to the same context_id it have to be added manually, these processes cant be implemented fully automatically right now). Probably this image helps you: https://github.com/ejp-rd-vp/CDE-semantic-model/blob/master/Images/context_metadata.png

Thank you for your feedback and let me know if there's something unclear!

Pablo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants