FHIR Chat · Geometric mean of length stay · implementers

Stream: implementers

Topic: Geometric mean of length stay


view this post on Zulip sai charan (Jan 29 2018 at 12:58):

Hi All,How can i capture geometric mean of length of stay of a patient and count the total
avoidable days in my profile ?Thank You

view this post on Zulip Grahame Grieve (Jan 29 2018 at 13:59):

this is aggregate data across multiple patients?

view this post on Zulip sai charan (Jan 30 2018 at 04:11):

@Grahame Grieve can you explain in detail

view this post on Zulip sai charan (Jan 30 2018 at 04:13):

@Grahame Grieve can you explain in detail

view this post on Zulip Grahame Grieve (Jan 30 2018 at 04:16):

I think you need to explain. what is it you want to capture? the geometric mean of a patient of 1?

view this post on Zulip sai charan (Jan 30 2018 at 04:42):

@Grahame Grieve Which element can store the formula for geometric mean of length of stay of all the patients.

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 04:44):

Geomotric mean of length of stay of all patients sounds like a Measure and the result could be "stored" in a MeasureReport.

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 04:44):

The formula for that would be stored in a Library.

view this post on Zulip sai charan (Jan 30 2018 at 04:48):

@Bryn Rhodes Which element can store the result(measure report) and formula(library)

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 04:51):

http://build.fhir.org/measurereport-definitions.html#MeasureReport.group.measureScore

view this post on Zulip sai charan (Jan 30 2018 at 06:30):

HI All,How to measure the total no. of avoidable days

view this post on Zulip sai charan (Jan 30 2018 at 11:30):

@Bryn Rhodes Hi,how to store the geometric mean of length of stay formula in Library?

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 17:20):

What you're describing is a continuous variable measure, so you have to identify not only the formula you want to evaluate, but what population you want to do the evaluation on.

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 17:21):

I mean, if you just want geometric mean of all encounters, you can specify that as a population-level query.

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 17:22):

We don't have GeometricMean defined as part of the standard library, but you could add it with an external.

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 17:22):

So assuming you had that, it would just be:

view this post on Zulip Bryn Rhodes (Jan 30 2018 at 17:22):

Statistics.GeometricMean(
  [Encounter] E
    return all days betweeen E.period."start" and E.period."end"
)

Last updated: Apr 12 2022 at 19:14 UTC