Skip to content

Add support for applicability behavior in $apply#666

Merged
barhodes merged 3 commits into
masterfrom
apply-applicability-behavior
May 16, 2025
Merged

Add support for applicability behavior in $apply#666
barhodes merged 3 commits into
masterfrom
apply-applicability-behavior

Conversation

@barhodes
Copy link
Copy Markdown
Contributor

Add support for all and any applicability behavior when processing actions during the PlanDefinition/$apply operation.

all - meaning the current behavior of evaluating the applicability of each child action independently.
any - meaning that each child action will be evaluated in order, and the first action that returns an applicability of true will be performed, and processing of the parent action will stop.

The behavior is indicated on the action by the extension "http://hl7.org/fhir/StructureDefinition/cqf-applicabilityBehavior" with a value type of code.
If not specified, the current default behavior of all is used.

@github-actions
Copy link
Copy Markdown

Formatting check succeeded!

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2025

Codecov Report

Attention: Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.52%. Comparing base (e5fa42e) to head (b718364).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...qf/fhir/cr/plandefinition/apply/ProcessAction.java 93.75% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #666      +/-   ##
============================================
+ Coverage     71.50%   71.52%   +0.02%     
  Complexity      153      153              
============================================
  Files           475      475              
  Lines         22247    22270      +23     
  Branches       2862     2868       +6     
============================================
+ Hits          15907    15928      +21     
  Misses         4922     4922              
- Partials       1418     1420       +2     

☔ 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.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@brynrhodes brynrhodes left a comment

Choose a reason for hiding this comment

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

Looks good, and I'll note the trackers this is relevant to:

https://jira.hl7.org/browse/FHIR-50150
https://jira.hl7.org/browse/FHIR-50490

@barhodes barhodes merged commit d36ab2c into master May 16, 2025
10 checks passed
@barhodes barhodes deleted the apply-applicability-behavior branch May 16, 2025 16:48
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