Automatically assign cases to one of multiple user groups based on patient's address

Hello,

I am just rolling out CommCare for a small TB-outreach project of 12 users
in Vietnam. We have a supervisor who registers new cases at the health
center (currently a member of all case sharing groups), and these cases
need to be assigned to a health counselor (only one counselor per case
sharing group) for following their treatment progress. Each counselor is
responsible for 2 city zones. The city zone ID is collected in the case
registration form.

It seems there should be a way to auto-assign cases to the appropriate
counselor based on the zone entered in the registration form. I couldn’t
figure out how to associate the zone with the appropriate user, so instead
implemented the steps from ‘Assigning cases to one of multiple groups’.
However, the Lookup Table isn’t an active feature for below-standard
accounts.

One of the nearest use cases I could find was this email from Eric Stephan: Request:
XML code to grab the ID of a specific case sharing group…

It seems I should be able to do something similar, but rather than grab the
zone from the current active user, to identify the user based on the zone
entered in the form by the supervisor user.

Since we don’t really need the Lookup Table feature, is there a work around
that takes the question_id ‘zone’, matches it to a ‘zone’ field associated
with a particular user/group, and then assigns the case there?

Thanks for your help!
Tiffany

This requires using non-standard XML so we’ve taken the conversation
offline.

Thanks,
Will

··· On Sun, Nov 15, 2015 at 11:36 AM, Tiffany Talsma wrote:

Hello,

I am just rolling out CommCare for a small TB-outreach project of 12 users
in Vietnam. We have a supervisor who registers new cases at the health
center (currently a member of all case sharing groups), and these cases
need to be assigned to a health counselor (only one counselor per case
sharing group) for following their treatment progress. Each counselor is
responsible for 2 city zones. The city zone ID is collected in the case
registration form.

It seems there should be a way to auto-assign cases to the appropriate
counselor based on the zone entered in the registration form. I couldn’t
figure out how to associate the zone with the appropriate user, so instead
implemented the steps from ‘Assigning cases to one of multiple groups’.
However, the Lookup Table isn’t an active feature for below-standard
accounts.

One of the nearest use cases I could find was this email from Eric
Stephan: Request: XML code to grab the ID of a specific case sharing
group…

It seems I should be able to do something similar, but rather than grab
the zone from the current active user, to identify the user based on the
zone entered in the form by the supervisor user.

Since we don’t really need the Lookup Table feature, is there a work
around that takes the question_id ‘zone’, matches it to a ‘zone’ field
associated with a particular user/group, and then assigns the case there?

Thanks for your help!
Tiffany


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.