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

Add timezone based validate and manipulation of period start and end to $evaluate-measure #6328

Closed
wants to merge 17 commits into from

Conversation

lukedegruchy
Copy link
Collaborator

@lukedegruchy lukedegruchy commented Sep 27, 2024

  • Introduce new request header: Timestamp
  • Introduce MeasureReportPeriodConversionHandler, which validates inputs for period start and end, and converts to timestamps with offset based on the request header timezone or the fallback timezone of UTC if no Timestamp header is provided
  • Inject this into the $evaluate-measure MeasureOperationsProvider, but do not invoke it yet. This will be dead code dependent on future changes.
  • Introduce CrBaseConfig for config shared between DSTU3 and R4, and add the class above to that config
  • New tests
  • Fix existing tests based on the new behaviour above

Copy link

github-actions bot commented Sep 27, 2024

Formatting check succeeded!

@lukedegruchy lukedegruchy changed the title Ld 20240919 evaluate measure timezone Add timezone based validate and manipulation of period start and end to $evaluate-measure Sep 27, 2024
@lukedegruchy lukedegruchy marked this pull request as ready for review September 27, 2024 18:57
@lukedegruchy lukedegruchy force-pushed the ld-20240919-evaluate-measure-timezone branch from 913e84a to 3af223f Compare September 27, 2024 19:28
… Strings. Leave this code dormant for now. Fix and change tests. Add serialization and deserialization code for JSON Parameters.
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.53%. Comparing base (406db33) to head (d22ae89).
Report is 47 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6328      +/-   ##
============================================
- Coverage     83.54%   83.53%   -0.01%     
- Complexity    27432    27657     +225     
============================================
  Files          1707     1722      +15     
  Lines        106185   107037     +852     
  Branches      13397    13463      +66     
============================================
+ Hits          88710    89416     +706     
- Misses        11750    11840      +90     
- Partials       5725     5781      +56     
Flag Coverage Δ
83.53% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

* Either both must be null or neither.
*/
public class MeasurePeriodForEvaluation {
@Nullable
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: we push this into Clinical-reasoning instead of hapi-fhir as this can be upstreamed validation

@lukedegruchy
Copy link
Collaborator Author

Superseded by: #6358

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