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

Update automatically loaded dependencies #153

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

jafeltra
Copy link
Collaborator

This PR updates FSH Online to automatically load dependencies that are more in line with SUSHI's current implementation. We use the latest version of hl7.fhir.uv.tools (rather than current, like SUSHI) because FSH Online does not support current versions at the moment. The hl7.terminology and hl7.fhir.uv.extensions packages are now loaded based on the current FHIR version being used, similar to SUSHI.

I made a small refactor to the code in the second commit because it seemed simpler.

You can test this by changing to the different FHIR versions FSH Online supports and ensuring that the proper packages are loaded for each one.

Copy link
Member

@cmoesel cmoesel left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. There is a little squishiness with R4/R4B that works now but could cause problems in the future if new automatic dependencies are added with specific R4 or R4B packages. I've also suggested a couple of other possible refactorings to consider. Since we don't support as many FHIR versions as SUSHI does, I think we can have a simpler approach than SUSHI's.

src/utils/FSHHelpers.js Outdated Show resolved Hide resolved
Copy link
Member

@cmoesel cmoesel left a comment

Choose a reason for hiding this comment

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

Hurray for free packages!

@cmoesel cmoesel merged commit db32571 into master Feb 22, 2024
4 checks passed
@cmoesel cmoesel deleted the update-automatic-dependencies branch February 22, 2024 18:42
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.

3 participants