Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upgrading Firely packages to v5. #4760

Merged
merged 19 commits into from
Jan 23, 2025

Conversation

tarunmathew12
Copy link
Contributor

@tarunmathew12 tarunmathew12 commented Dec 26, 2024

Description

The change upgrades the Firely package version to v5. It also includes fixes caused by the version upgrade that has a number of breaking changes as well as test failures.

Related issues

Addresses [issue #135365].
User Story 135365: Investigate & Fix Unit, Integration, & E2E Test Failures for Firely V5 Upgrade

Testing

Tested by the PR pipeline.

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 65 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@tarunmathew12 tarunmathew12 added Dependencies Pull requests that update a dependency file Open source This change is only relevant to the OSS code or release. labels Dec 26, 2024
@tarunmathew12 tarunmathew12 added this to the backlog milestone Dec 26, 2024
@tarunmathew12 tarunmathew12 requested a review from a team as a code owner December 26, 2024 23:48
Comment on lines +1267 to +1271
foreach (var system in systems)
{
var subsettedTag = new Coding(system, "SUBSETTED");
patients[i].Meta.Tag.Add(subsettedTag);
}

Check notice

Code scanning / CodeQL

Missed opportunity to use Select Note test

This foreach loop immediately
maps its iteration variable to another variable
- consider mapping the sequence explicitly using '.Select(...)'.
@tarunmathew12
Copy link
Contributor Author

tarunmathew12 commented Jan 14, 2025 via email

Comment on lines 41 to 47
#elif R4
Type = resourceType.ToString(),
#elif R5
Type = resourceType.ToString(),
#elif R4B
Type = resourceType.ToString(),
#endif
Copy link
Member

Choose a reason for hiding this comment

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

All the same?

@brendankowitz brendankowitz requested a review from Copilot January 22, 2025 18:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 94 out of 108 changed files in this pull request and generated 1 comment.

Files not reviewed (14)
  • Directory.Packages.props: Language not supported
  • src/Microsoft.Health.Fhir.Api/Microsoft.Health.Fhir.Api.csproj: Language not supported
  • src/Microsoft.Health.Fhir.Core/Data/R5/unsupported-search-parameters.json: Language not supported
  • src/Microsoft.Health.Fhir.Core/Microsoft.Health.Fhir.Core.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R4.Api/Microsoft.Health.Fhir.R4.Api.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R4.Core/Microsoft.Health.Fhir.R4.Core.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R4B.Api/Microsoft.Health.Fhir.R4B.Api.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R4B.Core/Microsoft.Health.Fhir.R4B.Core.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R5.Api/Microsoft.Health.Fhir.R5.Api.csproj: Language not supported
  • src/Microsoft.Health.Fhir.R5.Core/Microsoft.Health.Fhir.R5.Core.csproj: Language not supported
  • src/Microsoft.Health.Fhir.Shared.Api.UnitTests/Features/Routing/ResourceTypesRouteConstraintTests.cs: Evaluated as low risk
  • src/Microsoft.Health.Fhir.R5.Core.UnitTests/Features/Search/Converters/MoneyToQuantitySearchValueConverterTests.cs: Evaluated as low risk
  • src/Microsoft.Health.Fhir.Core/Features/Search/LightweightReferenceToElementResolver.cs: Evaluated as low risk
  • src/Microsoft.Health.Fhir.Core/Models/KnownResourceTypes.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/Microsoft.Health.Fhir.Core/Features/Search/Converters/IdToReferenceSearchValueConverter.cs:32

  • The condition 'if (id == null)' should yield a return instead of a break to ensure the conversion happens correctly.
yield break;

brendankowitz
brendankowitz previously approved these changes Jan 22, 2025
Copy link
Member

@brendankowitz brendankowitz left a comment

Choose a reason for hiding this comment

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

Looks ok to me. @feordin, @fhibf anything further?

@tarunmathew12
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tarunmathew12 tarunmathew12 enabled auto-merge (squash) January 23, 2025 17:21
@tarunmathew12 tarunmathew12 merged commit 09128a7 into main Jan 23, 2025
47 checks passed
@tarunmathew12 tarunmathew12 deleted the personal/v-tmathew/upgrade-hl7-v5-2 branch January 23, 2025 17:22
@brendankowitz brendankowitz mentioned this pull request Jan 23, 2025
1 task
brendankowitz added a commit that referenced this pull request Feb 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Dependencies Pull requests that update a dependency file Open source This change is only relevant to the OSS code or release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants