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

Merge Fix: Fix split logic of canonical into url and version in several places #1663

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

dotasek
Copy link
Collaborator

@dotasek dotasek commented Jun 19, 2024

Fixes merge issues with #1619

Removed

org.hl7.fhir.r4b.renderers.DataRenderer#versionFromCanonical
org.hl7.fhir.r4b.renderers.DataRenderer#systemFromCanonical
org.hl7.fhir.r5.renderers.DataRenderer#versionFromCanonical
org.hl7.fhir.r5.renderers.DataRenderer#systemFromCanonical
The logic of these methods is wrong, the functionality of extracting the version and the system URL have been swapped.

Therefore, all usages of aforementioned methods were replaced by the use of org.hl7.fhir.utilities.CanonicalPair in org.hl7.fhir.r4b.renderers.TerminologyRenderer and org.hl7.fhir.r5.renderers.TerminologyRenderer. This not only fixes the problem, but also reduces duplicated functionality.

The test case for this change was proposed to the test repository in PR FHIR/fhir-test-cases#172 .
This PR closes the second round of errors found in issue #1611 . After this PR, all found bugs are taken care of.

Boereck and others added 4 commits May 10, 2024 18:18
Removed
- org.hl7.fhir.r4b.renderers.DataRenderer#versionFromCanonical
- org.hl7.fhir.r4b.renderers.DataRenderer#systemFromCanonical
- org.hl7.fhir.r5.renderers.DataRenderer#versionFromCanonical
- org.hl7.fhir.r5.renderers.DataRenderer#systemFromCanonical

The logic of these methods is wrong, the functionality of extracting
the version and the system URL have been swapped.

Therefore, all usages of aforementioned methods were replaced by the
use of org.hl7.fhir.utilities.CanonicalPair. This not only fixes the
problem, but also reduces duplicated functionality.
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.23%. Comparing base (e731c0c) to head (429f663).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1663   +/-   ##
=========================================
  Coverage     12.23%   12.23%           
- Complexity    31658    31672   +14     
=========================================
  Files          2198     2198           
  Lines        672883   672877    -6     
  Branches     198442   198441    -1     
=========================================
+ Hits          82308    82331   +23     
+ Misses       561123   561098   -25     
+ Partials      29452    29448    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dotasek dotasek merged commit c631f6c into master Jun 19, 2024
33 checks passed
markiantorno added a commit that referenced this pull request Jun 27, 2024
## Validator Changes

* Change how count is calculated when expanding value sets
* Fix value set expansion bugs
* Fix for fhirpath issue on command line (#1650)
* Add IG dependency validator
* work around bad r4 extension definitions
* don't reload different sub-version of extensions pack

## Other code changes

* Rework rendering library from ground up
  * Merge Fix: Fix split logic of canonical into url and version in several places (#1663)
  * Suppress spurious message when code system is unknown
  * don't raise needless and wrong exceptions about extension definitions when rendering
  * fix duplicate link creation
  * Stop recursive rendering crash
  * Obligation rendering improvements
* Handle extra profiles on resources in an IG when converting between versions
* Fixed issue with actor title not rendering in obligations
* Test and adaption for dateOp #1655
* Use assertj instead of hamcrest (#1662)
* More transifex work
* Add support for local packages during testing
***NO_CI***
@dotasek dotasek deleted the do-20240619-fix-canonical-split branch November 22, 2024 16:28
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