Comparin values from different visits

Hie guys,

My app records childs weight on each visit.

I would like to calculate the rate total weight gain of each child by
comparin the lowest recorded weiht to the heihest recorded weiht.

What is the best way to keep track of each weight recorded throughout the 5
or 6 visits each patient may make once admitted into the feedinn programmes?

Can I achieve this efficiently by linkin each visit to the discharge form
so i can access the weight from each vsit and then use the min function for
all weights recorded.

Is there an easier alternative?? Like for example, can I save each recorded
weight to a hidden value in the parent module then i retrieve min of all
saved values once im in the discharge module / form?

kind regards,

Eva

Hi Eva,

It sounds like the easiest option available would be to keep tracking on
the Case representing the child the highest_weight and lowest_weight values
which were recorded during any given visit, and to overwrite the existing
value if the current weight recorded is higher or lower respectively.

That would let you create the interaction you are looking for without
needing to keep track of each weight individually.

CommCare is capable of tracking each previous measurement (which would
allow the use of min() and max()) , but setting up such a structure is
quite complex, since you need to use an addition set of "Child Cases" for
each person in your system.

-Clayton

··· On Mon, Sep 18, 2017 at 6:46 AM, Eva wrote:

Hie guys,

My app records childs weight on each visit.

I would like to calculate the rate total weight gain of each child by
comparin the lowest recorded weiht to the heihest recorded weiht.

What is the best way to keep track of each weight recorded throughout the
5 or 6 visits each patient may make once admitted into the feedinn pro
grammes?

Can I achieve this efficiently by linkin each visit to the discharge form
so i can access the weight from each vsit and then use the min function
for all weights recorded.

Is there an easier alternative?? Like for example, can I save each recorded
weight to a hidden value in the parent module then i retrieve min of all
saved values once im in the discharge module / form?

kind regards,

Eva

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hie Clayton

Thanks let me try it out.

Hope I succeed

··· On Tue, Oct 3, 2017 at 9:57 PM, Clayton Sims wrote:

Hi Eva,

It sounds like the easiest option available would be to keep tracking on
the Case representing the child the highest_weight and lowest_weight values
which were recorded during any given visit, and to overwrite the existing
value if the current weight recorded is higher or lower respectively.

That would let you create the interaction you are looking for without
needing to keep track of each weight individually.

CommCare is capable of tracking each previous measurement (which would
allow the use of min() and max()) , but setting up such a structure is
quite complex, since you need to use an addition set of "Child Cases" for
each person in your system.

-Clayton

On Mon, Sep 18, 2017 at 6:46 AM, Eva eva.tsitsi@gmail.com wrote:

Hie guys,

My app records childs weight on each visit.

I would like to calculate the rate total weight gain of each child by
comparin the lowest recorded weiht to the heihest recorded weiht.

What is the best way to keep track of each weight recorded throughout
the 5 or 6 visits each patient may make once admitted into the feedinn pro
grammes?

Can I achieve this efficiently by linkin each visit to the discharge
form so i can access the weight from each vsit and then use the min
function for all weights recorded.

Is there an easier alternative?? Like for example, can I save each recorded
weight to a hidden value in the parent module then i retrieve min of
all saved values once im in the discharge module / form?

kind regards,

Eva

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/0tQgU2B_NJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.