-
Notifications
You must be signed in to change notification settings - Fork 0
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
v2 cutover #36
v2 cutover #36
Conversation
1ffb869
to
ce9acb1
Compare
ce9acb1
to
e3b3a31
Compare
in the absence of unit tests, here are some counts from the previous run (before the additional data we added) and the new version:
We're accepting the no PCR count for now as a defect of our internal implementation and will follow on with a dot release here/in the library to try to address. |
version = "0.2.2" | ||
version = "1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 🎊
o.lab_code AS covid_pcr_code, | ||
o.lab_date AS covid_pcr_date, | ||
o.lab_week AS covid_pcr_week, | ||
o.lab_month AS covid_pcr_month, | ||
o.observation_code AS covid_pcr_code, | ||
o.effectivedatetime_day AS covid_pcr_date, | ||
o.effectivedatetime_week AS covid_pcr_week, | ||
o.effectivedatetime_month AS covid_pcr_month, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new field names are much clearer (if you are familiar with the FHIR spec anyway, and that is probably a given for the audience).
Though... I'm already wondering what you'll do once you decide to abstract away the effectiveX
fields - like if core
decides to also examine effectiveInstant
or effectivePeriod
if they are present instead of datetime - do we have a naming convention for that kind of abstraction of multi-format fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet, no - we're are lightly overloading fields in some places (like period.end
, which is often null and we coalesce with period.start
).
We can talk about this a bit maybe outside the context of this PR, but I sort of think that's ok as part of the core study's simplification promise - if for some reason it's not, you can roll your own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure - but I want the simplification promise to go even further 😄 - give me just effective_day
and that will be the day for whichever of the effectiveX
fields happened to be filled out. That's right in core
's wheelhouse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observation.effective especially triggers me because it offers two fields that are so very similar: effectiveDateTime and effectiveInstant - the only difference being whether the field can hold sub-seconds. But now all consumers have to check both fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the effective day promise - like, i'm fine with saying that should always resolve to a reasonable thing.
week and month are trickier, if only because they are very common binning units for studies - we're basically obviating away date casting downstream at the cost of space on disk. I'm sort of ok with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for posterity - after clarifying some stuff off thread, we created an issue in core to simplify this kind of rat king type handling smart-on-fhir/cumulus-library#205
SELECT 2 AS data_package_version; | ||
SELECT 3 AS data_package_version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because of the enc_class_code
-> enc_class_display
field change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and also that, with a breaking changes in the upstream tables, it felt like a good idea to provide a hard deliniation here.
749a0b7
to
32c0764
Compare
Description
This PR cuts over fields to the v2 library field names
Checklist
docs/
) needs to be updated