Adds support for Health-RI v2#65
Conversation
Reviewer's GuideThis pull request implements support for the Health-RI v2 model. This was achieved by refactoring the Command Line Interface (CLI) into a modular input-mapping-output structure using chained click commands, updating the XNAT-to-Health-RI mapping logic to use Health-RI v2 Sempyro Pydantic classes, and modifying the configuration system and tests accordingly. The documentation (README) was also comprehensively updated to reflect these changes. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PatrickDekkerHealthRI
left a comment
There was a problem hiding this comment.
Why was this overwrite mechanism for private projects added ? I would expect the project should decide and not the person who runs the img2catalog tool, would optin keyword not be a better solution ?
Creator / identifier I often see [ ] so it look like a list, but in the datamodel these two have cardinality 1..1
I like your comment, it helped me to understand the code.
| name = ["Example publishing institution",] | ||
| identifier = "http://www.example.com/institution#example" | ||
| identifier = ["http://www.example.com/institution#example"] | ||
| mbox = "publisher@example.com" |
There was a problem hiding this comment.
All example emails have been prefixed with 'mailto:'
| # Default License for datasets is "available upon reasonable request" | ||
| # I can't find that, so putting a placeholder here | ||
| license = "http://example.com/license#nolicense" | ||
| # license = "http://example.com/license#nolicense" |
There was a problem hiding this comment.
I have removed all unused, commented out statements from the test configuration
|
The reason to include a feature to index metadata from private projects is allow for broader use of the tool on our XNAT server. To get metadata from a private project, you will still need to have access to that project. It will not be possible to set 'include_private = true' and get the metadata from these projects without the knowledge of the data holder. It is also still possible to set an opt-in or opt-out keyword to filter projects. This functionality still holds also for private projects. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #65 +/- ##
===========================================
- Coverage 94.65% 93.88% -0.78%
===========================================
Files 10 10
Lines 393 425 +32
Branches 48 58 +10
===========================================
+ Hits 372 399 +27
Misses 12 12
- Partials 9 14 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|


In this pull request:
xnatand adding a mapping from XNAT variables to the Health-RI v2 Sempyro classes.Due to the change of the CLI and the upgrade to Health-RI v2, this version will be a 2.0.0 release.
This pull request uses the Health-RI v2 Sempyro classes as defined in this version of Sempyro: Health-RI/SeMPyRO#56. This is the reason the tests aren't passing.
These additions to Sempyro will most likely also be released as a 2.0.0 release.