-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
lukedegruchy
commented
Sep 27, 2024
•
edited
Loading
edited
- 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
…on logic to $evaluate-measure.
…e some existing tests and address TODOs.
…th start and end as null or both neither. javadoc. Refactoring. More tests.
Formatting check succeeded! |
…ing config class to be used by both DSTU3 and R4.
…e-measure-timezone
913e84a
to
3af223f
Compare
… Strings. Leave this code dormant for now. Fix and change tests. Add serialization and deserialization code for JSON Parameters.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* Either both must be null or neither. | ||
*/ | ||
public class MeasurePeriodForEvaluation { | ||
@Nullable |
There was a problem hiding this comment.
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
Superseded by: #6358 |