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

Load the same automatic dependencies as SUSHI #228

Merged
merged 5 commits into from
Jul 25, 2023

Conversation

mint-thompson
Copy link
Collaborator

Completes task CIMPL-1113.

Use SUSHI's function for loading automatic dependencies. There is a minor discrepancy in the expected type, but the FHIR definitions are only passed in so they can be passed to fhir-package-loader's mergeDependency function. So, the ts-ignore here should be safe. Add a note indicating the reason for the ts-ignore and the conditions under which it can be removed.

Use SUSHI's function for loading automatic dependencies. There is a
minor discrepancy in the expected type, but the FHIR definitions are
only passed in so they can be passed to fhir-package-loader's
mergeDependency function. So, the ts-ignore here should be safe. Add a
note indicating the reason for the ts-ignore and the conditions under
which it can be removed.
Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

I just had two pretty small questions. Let me know what you think.

src/app.ts Outdated Show resolved Hide resolved
src/app.ts Outdated Show resolved Hide resolved
All dependency loading is now handled by loadExternalDependencies. This
function is used in both command-line and API modes. This function
determines the core FHIR package, loads automatic dependencies (as
defined by SUSHI), and loads configured dependencies.
Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

This looks really good. I like the refactor, especially since you noticed the fhirToFsh piece! I just had two small questions.

src/utils/Processing.ts Outdated Show resolved Hide resolved
test/api/FhirToFsh.test.ts Outdated Show resolved Hide resolved
jafeltra
jafeltra previously approved these changes Jul 24, 2023
Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thanks for making those updates!

@cmoesel cmoesel self-assigned this Jul 24, 2023
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.

This looks good. I just have one tiny request...

package.json Outdated
@@ -73,7 +73,7 @@
"diff": "^5.0.0",
"diff2html": "^3.1.18",
"fhir": "^4.10.0",
"fhir-package-loader": "^0.3.0",
"fhir-package-loader": "^0.4.0",
Copy link
Member

Choose a reason for hiding this comment

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

FPL is at v0.5.0 now, so... since you're bumping this anyway, might as well bump it to the latest.

Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

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

I still approve

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.

Just what the Dr. ordered.

@mint-thompson mint-thompson merged commit 5c8bec8 into master Jul 25, 2023
@mint-thompson mint-thompson deleted the cimpl-1113-fpl-automatic-dependencies branch July 25, 2023 13:52
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