Open jingtang10 opened 11 months ago
@brynrhodes
trying to work out in https://github.com/cqframework/clinical_quality_language/tree/master/Src/java how system date is retrived...
The engine has an evaluationDateTime that is used to determine the current date time. This is by default set to the machine time when the execution is started. However, there is a setEvaluationDateTime on the State class that can be used to set this for each execution:
Yes, that's correct
Describe the bug One of our patients in this test case https://github.com/google/android-fhir/blob/3da3bef82566f02a3e81b3d3bf00c0fc81221fe2/workflow-testing/src/main/resources/group-measure/Data-Patients-bundle.json#L564 has just become 1 year old last week (happy belated birthday!). This has caused our measure reporting test case (stratified by age) to fail.
Component Workflow library
To Reproduce Steps to reproduce the behavior: Run test case:
in file
FhirOperatorTest.kt
.Expected behavior Output should be the same as: https://github.com/google/android-fhir/blob/master/workflow-testing/src/main/resources/group-measure/Results-Measure-report.json
Actual behavior The age group
P1-5Y
count has gone from 11 to 12. Meanwhile the age group0Y
count has gone from 1 to 0.Screenshots NA
Smartphone (please complete the following information): Unit test. Not on real device.
Additional context Add any other context about the problem here.
Would you like to work on the issue? Yes