Parent/Child Relationships-Closing child cases when a parent case is closed

Esteemed CommCare users,

I need your help here… i have successfully built a form that registers a
parent case(caregiver) and, based on whether caregiver has a child, child
case(s). Child cases get opened into another module which is what i want,
but the challenge i have is when i close the parent case!

Is there a way i can configure the form or edit XML of the form to embed
the logic for closing all child cases belonging to a parent case when
parent is closed? I don’t want to use filters to hide the child cases based
on some value, but to actually close them! Surely this should be
possible…anybody to help??

Thanks,
Chaiwa.

Hi Chaiwa,

Unfortunately this isn’t possible currently on CommCareHQ (but definitely
something we want to make possible long term). We have Uservoice ticket
tracking the issue (
http://dimagi.uservoice.com/forums/194738-app-builder/suggestions/5431942-provide-option-to-close-sub-cases-when-closing-a-c).

For now, an alternate option would be to use CommCareHQ’s close case
functionality (when you select a case you can close it, or you can close
cases using the Excel bulk importer) to get around this issue. Let me
know if that will work for you.

Thanks,
Sheel

··· On Tue, Mar 24, 2015 at 9:24 AM, Chaiwa Berian wrote:

Esteemed CommCare users,

I need your help here… i have successfully built a form that registers a
parent case(caregiver) and, based on whether caregiver has a child, child
case(s). Child cases get opened into another module which is what i want,
but the challenge i have is when i close the parent case!

Is there a way i can configure the form or edit XML of the form to embed
the logic for closing all child cases belonging to a parent case when
parent is closed? I don’t want to use filters to hide the child cases based
on some value, but to actually close them! Surely this should be
possible…anybody to help??

Thanks,
Chaiwa.


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah

Hi Sheel,

I am still waiting for your guidance on the technical options you earlier
mentioned.

Thanks,
Chaiwa.

··· On Tuesday, March 24, 2015 at 3:24:26 PM UTC+2, Chaiwa Berian wrote: > > Esteemed CommCare users, > > I need your help here.. i have successfully built a form that registers a > parent case(caregiver) and, based on whether caregiver has a child, child > case(s). Child cases get opened into another module which is what i want, > but the challenge i have is when i close the parent case! > > Is there a way i can configure the form or edit XML of the form to embed > the logic for closing all child cases belonging to a parent case when > parent is closed? I don't want to use filters to hide the child cases based > on some value, but to actually close them! Surely this should be > possible...anybody to help?? > > Thanks, > Chaiwa. >

Thanks Sheel for the prompt response.

Since this is not possible yet, is there a way i can close child cases
simply by passing the case id of the parent to a CommCare function that
handles case closing, even if it is advanced feature? Is such a function
accessible by us(commcare-users), in any way? Because what i don’t want is
to leave it up to the users to close the child cases when the parent case
is closed! i would like to programmatically/configuratively close child
cases when their respective parent case is closed as is the app requirement.

Thanks,
Chaiwa.

··· On Tue, Mar 24, 2015 at 5:59 PM, Sheel Shah wrote:

Hi Chaiwa,

Unfortunately this isn’t possible currently on CommCareHQ (but definitely
something we want to make possible long term). We have Uservoice ticket
tracking the issue (
http://dimagi.uservoice.com/forums/194738-app-builder/suggestions/5431942-provide-option-to-close-sub-cases-when-closing-a-c).

For now, an alternate option would be to use CommCareHQ’s close case
functionality (when you select a case you can close it, or you can close
cases using the Excel bulk importer) to get around this issue. Let me
know if that will work for you.

Thanks,
Sheel

On Tue, Mar 24, 2015 at 9:24 AM, Chaiwa Berian chaiwa.berian@gmail.com wrote:

Esteemed CommCare users,

I need your help here… i have successfully built a form that registers a
parent case(caregiver) and, based on whether caregiver has a child, child
case(s). Child cases get opened into another module which is what i want,
but the challenge i have is when i close the parent case!

Is there a way i can configure the form or edit XML of the form to embed
the logic for closing all child cases belonging to a parent case when
parent is closed? I don’t want to use filters to hide the child cases based
on some value, but to actually close them! Surely this should be
possible…anybody to help??

Thanks,
Chaiwa.


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


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

Hi Chaiwa,

Sorry, I was unclear about your last email. I’ll respond today.

Sheel

··· On Sun, Mar 29, 2015 at 5:45 AM, Chaiwa Berian wrote:

Hi Sheel,

I am still waiting for your guidance on the technical options you earlier
mentioned.

Thanks,
Chaiwa.

On Tuesday, March 24, 2015 at 3:24:26 PM UTC+2, Chaiwa Berian wrote:

Esteemed CommCare users,

I need your help here… i have successfully built a form that registers a
parent case(caregiver) and, based on whether caregiver has a child, child
case(s). Child cases get opened into another module which is what i want,
but the challenge i have is when i close the parent case!

Is there a way i can configure the form or edit XML of the form to embed
the logic for closing all child cases belonging to a parent case when
parent is closed? I don’t want to use filters to hide the child cases based
on some value, but to actually close them! Surely this should be
possible…anybody to help??

Thanks,
Chaiwa.


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah

Hey Chaiwa,

You can use the CommCareHQ APIs to close a case problematically but that
would require building an external system that would interact with ours.
There isn’t a function on the phone directly. I’ll send you a direct
email to discuss some more technical options.

Sheel

··· On Wed, Mar 25, 2015 at 6:40 AM, Chaiwa Berian wrote:

Thanks Sheel for the prompt response.

Since this is not possible yet, is there a way i can close child cases
simply by passing the case id of the parent to a CommCare function that
handles case closing, even if it is advanced feature? Is such a function
accessible by us(commcare-users), in any way? Because what i don’t want is
to leave it up to the users to close the child cases when the parent case
is closed! i would like to programmatically/configuratively close child
cases when their respective parent case is closed as is the app requirement.

Thanks,
Chaiwa.

On Tue, Mar 24, 2015 at 5:59 PM, Sheel Shah sshah@dimagi.com wrote:

Hi Chaiwa,

Unfortunately this isn’t possible currently on CommCareHQ (but definitely
something we want to make possible long term). We have Uservoice ticket
tracking the issue (
http://dimagi.uservoice.com/forums/194738-app-builder/suggestions/5431942-provide-option-to-close-sub-cases-when-closing-a-c).

For now, an alternate option would be to use CommCareHQ’s close case
functionality (when you select a case you can close it, or you can close
cases using the Excel bulk importer) to get around this issue. Let me
know if that will work for you.

Thanks,
Sheel

On Tue, Mar 24, 2015 at 9:24 AM, Chaiwa Berian chaiwa.berian@gmail.com wrote:

Esteemed CommCare users,

I need your help here… i have successfully built a form that registers
a parent case(caregiver) and, based on whether caregiver has a child, child
case(s). Child cases get opened into another module which is what i want,
but the challenge i have is when i close the parent case!

Is there a way i can configure the form or edit XML of the form to embed
the logic for closing all child cases belonging to a parent case when
parent is closed? I don’t want to use filters to hide the child cases based
on some value, but to actually close them! Surely this should be
possible…anybody to help??

Thanks,
Chaiwa.


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


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


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah