Several case filters

Hi everyone,

One of the Township Medical Officer we work with in Myanmar came up with an interesting suggestion : she would like to only see the High Risk Pregnancy cases.

We currently have a single MNCH module. This module displays our cases list by Village and Patient Name. Cases filters / sort keys are defined at the module level, which mean I’m going to try to create another module with the “Show cases” option checked. I’ll have to keep an empty, dummy form as CommCareHQ wouldn’t allow a module with no form.

This approach is probably not optimal : it means that I’ll have to maintain two Case Details. Having separate modules just to hold different filtering configurations feels odd.

Is there a more elegant way to expose several sorting / filtering strategies to the mobile users ?

Many thanks,

··· -- Charles Flèche mHealth Advisor Télécoms Sans Frontières http://www.tsfi.org Première Urgence - Aide Médicale Internationale http://www.pu-ami.org

Charles,

Interesting use case. A couple ideas, unfortunately neither is perfect:

  1. Add a property to each case that gets set to “highrisk” (or some other
    keyword) when that pregnancy enters that category. Then you can type in
    this keyword in the case list search box to see only the high risk cases.
    Downside here is dealing with typing this in and managing that variable.

  2. Use custom user data to filter the case list differently based on who is
    logged in. Then in your case filtering XPath you’d have a condition like
    "if(custom_user_variable = highrisk, [condition that returns true for
    highrisk patients], [normal case filter or none at all IE just true]).
    Downside here is that logging in and out just to look at a case list might
    become a pain.

There’s a feature due out in the next mobile release or two that might be
useful for this. I’ll ping this thread again when its available.

Best,
Will

··· On Sun, Apr 26, 2015 at 1:06 AM, Charles Flèche wrote:

Hi everyone,

One of the Township Medical Officer we work with in Myanmar came up with
an interesting suggestion : she would like to only see the High Risk
Pregnancy cases.

We currently have a single MNCH module. This module displays our cases
list by Village and Patient Name. Cases filters / sort keys are defined at
the module level, which mean I’m going to try to create another module with
the “Show cases” option checked. I’ll have to keep an empty, dummy form as
CommCareHQ wouldn’t allow a module with no form.

This approach is probably not optimal : it means that I’ll have to
maintain two Case Details. Having separate modules just to hold different
filtering configurations feels odd.

Is there a more elegant way to expose several sorting / filtering
strategies to the mobile users ?

Many thanks,

Charles Flèche

mHealth Advisor

Télécoms Sans Frontières http://www.tsfi.org

Première Urgence - Aide Médicale Internationale http://www.pu-ami.org


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.

Hi Charles,

Just a note that it should be possible to have a module with no form as
long as the “Case List Menu Item” is set to “Show” under the “Case
Management” tab of the module Settings. Details here
https://confluence.dimagi.com/display/commcarepublic/Case+Configuration.

Thanks,
Kriti

··· On Mon, Apr 27, 2015 at 6:48 AM, William Pride wrote:

Charles,

Interesting use case. A couple ideas, unfortunately neither is perfect:

  1. Add a property to each case that gets set to “highrisk” (or some other
    keyword) when that pregnancy enters that category. Then you can type in
    this keyword in the case list search box to see only the high risk cases.
    Downside here is dealing with typing this in and managing that variable.

  2. Use custom user data to filter the case list differently based on who
    is logged in. Then in your case filtering XPath you’d have a condition like
    "if(custom_user_variable = highrisk, [condition that returns true for
    highrisk patients], [normal case filter or none at all IE just true]).
    Downside here is that logging in and out just to look at a case list might
    become a pain.

There’s a feature due out in the next mobile release or two that might be
useful for this. I’ll ping this thread again when its available.

Best,
Will

On Sun, Apr 26, 2015 at 1:06 AM, Charles Flèche mhealth-myanmar@tsfi.org wrote:

Hi everyone,

One of the Township Medical Officer we work with in Myanmar came up with
an interesting suggestion : she would like to only see the High Risk
Pregnancy cases.

We currently have a single MNCH module. This module displays our cases
list by Village and Patient Name. Cases filters / sort keys are defined at
the module level, which mean I’m going to try to create another module with
the “Show cases” option checked. I’ll have to keep an empty, dummy form as
CommCareHQ wouldn’t allow a module with no form.

This approach is probably not optimal : it means that I’ll have to
maintain two Case Details. Having separate modules just to hold different
filtering configurations feels odd.

Is there a more elegant way to expose several sorting / filtering
strategies to the mobile users ?

Many thanks,

Charles Flèche

mHealth Advisor

Télécoms Sans Frontières http://www.tsfi.org

Première Urgence - Aide Médicale Internationale http://www.pu-ami.org


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 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.

I like this, thanks Will. We though again about this feature and it seems clear that a “Patient status” field could be useful. We wouldn’t restrict this as HighRisk only : it could be something like “High risks”, “Referred”, “OK”, “Unknown”, etc.

I’ll have a chat with the doctors and will wee what we can do. Thanks again, Will.

··· On Sunday 26 April 2015 21:18:37 William Pride wrote: > 1) Add a property to each case that gets set to "highrisk" (or some other > keyword) when that pregnancy enters that category. Then you can type in > this keyword in the case list search box to see only the high risk cases. > Downside here is dealing with typing this in and managing that variable.


Charles Flèche
mHealth Advisor
Télécoms Sans Frontières http://www.tsfi.org
Première Urgence - Aide Médicale Internationale http://www.pu-ami.org

Ah, good to know, many thanks Kriti.

··· On Monday 27 April 2015 10:41:59 Kriti Mehrotra wrote: > Just a note that it should be possible to have a module with no form as > long as the "Case List Menu Item" is set to "Show" under the "Case


Charles Flèche
mHealth Advisor
Télécoms Sans Frontières http://www.tsfi.org
Première Urgence - Aide Médicale Internationale http://www.pu-ami.org

Hi Charles- one more quick note. If you have to make a copy of a case
list/detail configuration there is a hidden way to copy/paste items which
is described here
https://help.commcarehq.org/display/commcarepublic/Case+List+and+Case+Detail+Configuration#CaseListandCaseDetailConfiguration-CopyingRowsfromtheCaseList/Detail
.

Jeremy

··· On Mon, Apr 27, 2015 at 1:13 AM, Charles Flèche wrote:

On Monday 27 April 2015 10:41:59 Kriti Mehrotra wrote:

Just a note that it should be possible to have a module with no form as

long as the “Case List Menu Item” is set to “Show” under the "Case

Ah, good to know, many thanks Kriti.

Charles Flèche

mHealth Advisor

Télécoms Sans Frontières http://www.tsfi.org

Première Urgence - Aide Médicale Internationale http://www.pu-ami.org


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.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.

Thanks for the head-up. I’m more concerned by maintaining two lists than just a one off copy. But I’ll keep this in mind for sure.

··· On Monday 27 April 2015 08:23:12 Jeremy W. wrote: > Hi Charles- one more quick note. If you have to make a copy of a case


Charles Flèche
mHealth Advisor
Télécoms Sans Frontières http://www.tsfi.org
Première Urgence - Aide Médicale Internationale http://www.pu-ami.org