-
Notifications
You must be signed in to change notification settings - Fork 12
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
FHIR feature updates #285
FHIR feature updates #285
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
81734f0
to
8a63397
Compare
8a63397
to
337a7e8
Compare
337a7e8
to
22cc8ee
Compare
22cc8ee
to
90a2668
Compare
90a2668
to
05faba2
Compare
40141eb
to
f6fed2e
Compare
src/sssom/writers.py
Outdated
@@ -450,7 +520,7 @@ def to_fhir_json(msdf: MappingSetDataFrame) -> Dict: | |||
# ...that is, if I happen to know the categories/codes for this categorical variable | |||
# ...if i do that, do i also need to upload that coding as a (i) `ValueSet` resource? (or (ii) codeable concept? prolly (i)) | |||
"url": "http://example.org/fhir/StructureDefinition/mapping_justification", | |||
"ValueString": row.get( | |||
"valueString": row.get( |
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.
Capitalization bugfix
Partially addresses:
@matentzn This is an FYI, although this is the main reason I think I started this PR. It's the only bug fix.
@ShahimEssaid This is a main reason of this PR. But I wanna get this one merged first to get a flow going; more updates will come in subsequent PRs.
f6fed2e
to
1bbc454
Compare
bc3c37e
to
6e1b54f
Compare
tests/test_writers.py
Outdated
self.assertEqual(d["url"], mapping_set_id) | ||
self.assertIn(d["identifier"][0]["system"], mapping_set_id) | ||
self.assertEqual(d["identifier"][0]["value"], mapping_set_id) | ||
self.assertEqual(d["identifier"][0]["value"], d["url"]) |
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.
Update: test_write_sssom_fhir()
- @ShahimEssaid Review my assertions
Added more assertions. @ShahimEssaid could you maybe review my assertions and, for whichever you can easily understand, can you confirm if my expectations of what I should be seeing in the output are valid / ideal? Feel free to suggest any other assertions I might want to add.
Note that I don't have any outputs for you to review yet. When I do, they will be in: https://github.com/timsbiomed/sssom-on-fhir-content/
FYI here's the actual output file that I'm testing here: basic.fhir.json
06e023a
to
024e8d9
Compare
5d826c5
to
feb14bd
Compare
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.
Nice changes! Some comments, but its close
a47427f
to
a106833
Compare
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 did not do a detailed code review, just looked out for breaking changes. If you want me to merge and run a release, ping me on slack.
- Added: schema/fhir_json.csv: For automation of conversion by utilizing CSV export from curated GoogleSheet. - Update: Comments: Added state of mappings between SSSOM and FHIR ConceptMap
- Update: Minor codestyle updates, comments, todo's - Delete: Unused schema/fhir_json.csv. Mappings will continue to be done via pure Python - Bugfix: extension.ValueString -> extension.valueString - Delete: Comments about spec field mappings
- Refactored 3 JSON writer functions to a state that they were probably intended to be in: 1 json function with branching logic depending on 'serialization' param.
- Add: _test_to_fhir_json() - Update: test_write_sssom_fhir(): More assertions - Update: Fixed some typos - Update: model mappings: exporter: title --> title (was previously name --> title) - Update: Drepecated these functions instead of deleting: write_fhir_json(), write_ontoportal_json()
Partially addresses:
Overview
Updates
7b91d57da9a5143c5ce8335897ad2542424797c6
157ae226921891feeaa38b4329c98b762b2b8727
0ab8625887a1d57adeadd5ad6d3c47dd08524839
0dd0772dc7bc4a263fa8e8f8e5c02c6f6c3264bf