Skip to content

Use HAPI Repository interface#654

Closed
barhodes wants to merge 9 commits into
masterfrom
deprecate-repository-and-use-hapi
Closed

Use HAPI Repository interface#654
barhodes wants to merge 9 commits into
masterfrom
deprecate-repository-and-use-hapi

Conversation

@barhodes
Copy link
Copy Markdown
Contributor

@barhodes barhodes commented Apr 10, 2025

Deprecate the CR Repository interface and use the new HAPI Repository interface in its place.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 10, 2025

Formatting check succeeded!

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 77.41935% with 7 lines in your changes missing coverage. Please review.

Project coverage is 70.88%. Comparing base (71a2c08) to head (2ee5e15).

Files with missing lines Patch % Lines
...ds/cqf/fhir/utility/repository/RestRepository.java 0.00% 4 Missing ⚠️
...opencds/cqf/fhir/cr/hapi/repo/SearchConverter.java 80.00% 1 Missing ⚠️
...hir/utility/repository/InMemoryFhirRepository.java 87.50% 0 Missing and 1 partial ⚠️
...s/cqf/fhir/utility/repository/ig/IgRepository.java 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #654      +/-   ##
============================================
- Coverage     70.95%   70.88%   -0.07%     
  Complexity      153      153              
============================================
  Files           473      473              
  Lines         22189    22196       +7     
  Branches       2898     2903       +5     
============================================
- Hits          15744    15734      -10     
- Misses         4990     5004      +14     
- Partials       1455     1458       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@barhodes barhodes marked this pull request as ready for review April 11, 2025 14:20
import org.hl7.fhir.instance.model.api.IIdType;

/**
* @deprecated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where did this requirement come from?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We've been working towards moving this interface down into HAPI for awhile now. That happened with the 8.0.0 release.

import static org.opencds.cqf.fhir.test.Resources.getResourcePath;

import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.repository.Repository;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens if we need to update this interface? Will we now have to wait at least one more release cycle to propagate it to clinical-reasoning + cdr-cr? Meaning, with a dependency sequence of hapi-fhir <- clinical-reasoning <- cdr-cr.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, and we already have that dependency for the models. Ideally this interface will not be changing often, if at all.

@barhodes barhodes marked this pull request as draft April 15, 2025 17:17
@sonarqubecloud
Copy link
Copy Markdown

@barhodes
Copy link
Copy Markdown
Contributor Author

Work moved to another PR

@barhodes barhodes closed this May 19, 2025
@JPercival JPercival deleted the deprecate-repository-and-use-hapi branch October 7, 2025 20:30
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