clinical-reasoning icon indicating copy to clipboard operation
clinical-reasoning copied to clipboard

Fixes Measure Evaluate Start and End times

Open vitorpamplona opened this issue 8 months ago • 5 comments

Something like this:

    val measureReport =
      fhirOperator.evaluateMeasure(
        measureUrl = "http://fhir.org/guides/who/anc-cds/Measure/ANCIND01",
        start = "2020-01-01",
        end = "2020-01-31",
        reportType = MeasureEvalType.SUBJECT.toCode(),
        subjectId = "charity-otala-1",
        practitioner = "jane",
      )

went from outputting

  "period": {
    "start": "2020-01-01T00:00:00+00:00",
    "end": "2020-01-31T23:59:59+00:00"
  },

to

  "period": {
    "start": "2020-01-01T00:00:00+00:00",
    "end": "2020-01-31T00:00:00+00:00"
  },

after the upgrade to 3.0.

After lots of debug, I believe the following lines set the precision to seconds without considering if the last day is closed or open, which causes the subsequent operations to be based on the 0 hour and the output to match that.

vitorpamplona avatar Oct 12 '23 22:10 vitorpamplona