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

Switch _code_system to _system #264

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Switch _code_system to _system #264

merged 3 commits into from
Jul 11, 2024

Conversation

dogversioning
Copy link
Contributor

@dogversioning dogversioning commented Jul 11, 2024

Screenshot 2024-07-11 at 1 02 20 PM

Checklist

  • Consider if documentation (like in docs/) needs to be updated
  • Consider if tests should be added
  • Update template repo if there are changes to study configuration

Copy link

github-actions bot commented Jul 11, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1950 1902 98% 90% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_library/studies/discovery/code_detection.py 96% 🟢
cumulus_library/studies/discovery/discovery_templates/discovery_templates.py 100% 🟢
TOTAL 98% 🟢

updated for commit: d5992b5 by action🐍

cdc.code_system AS category_code_system,
cdc.code_system AS category_system,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach is fine, but I worry that we're setting ourselves up for accidentally using code_system again down the line by not changing the denorm code now to give .system instead of .code_system.

Copy link
Contributor Author

@dogversioning dogversioning Jul 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

system is a reserved word in sql, which is how we originally got to this place - it'll be fussier, but we can change it there too, though my soft preference is not to

CREATE TABLE core__fhir_mapping_code_system_uri AS SELECT * FROM
CREATE TABLE core__fhir_mapping_system_uri AS SELECT * FROM
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stale reference build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah or i saved at the wrong point - will fix.

@dogversioning dogversioning merged commit bd05325 into main Jul 11, 2024
3 checks passed
@dogversioning dogversioning deleted the mg/code_system_revert branch July 11, 2024 19:10
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

Successfully merging this pull request may close these issues.

2 participants