Generating an individual case specific I.D

Hi there,

As part of our household survey the enumerators are to interview all
eligible people in that household.

So this could mean that multiple men and women of reproductive age and
multiple children U5 could be interviewed.

Is there a way of generating an individual case specific I.D in the system?
Currently there is the case I.d which appears to be form specific and not
individual specific. Basically we want to be able to identify whether this
is eligible man 1, 2 or 3 from that household. we need a systematic number
not a random number.

Also in a scenario where a mistake occurs and the interviewer realises
this after they have submitted the form to the server. So they want to
enter the information again into the form. IS there ayway the system can
recognise that this is form number 2 of form i.d XXXXXXX?

Any help you could provide on this would be great.

Cheers,
Jess

Hi Jessica,

Case-id is not form-specific, it is generated whenever you ‘create’ a case.
Usually this happens when you fill out a survey form with information about
one individual and her details are then stored with that case id, which can
be used later to change those details. This is just a brief explanation,
you can find the full process here:
https://confluence.dimagi.com/display/commcarepublic/Case+Management

Best,
Devika

Field Manager, Dimagi
+91 9555571141

··· On Fri, Feb 7, 2014 at 10:40 AM, Jessica Hall wrote:

Hi there,

As part of our household survey the enumerators are to interview all
eligible people in that household.

So this could mean that multiple men and women of reproductive age and
multiple children U5 could be interviewed.

Is there a way of generating an individual case specific I.D in the
system? Currently there is the case I.d which appears to be form specific
and not individual specific. Basically we want to be able to identify
whether this is eligible man 1, 2 or 3 from that household. we need a
systematic number not a random number.

Also in a scenario where a mistake occurs and the interviewer realises
this after they have submitted the form to the server. So they want to
enter the information again into the form. IS there ayway the system can
recognise that this is form number 2 of form i.d XXXXXXX?

Any help you could provide on this would be great.

Cheers,
Jess


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/groups/opt_out.

Hi Jessica

If you need a systematic number you can use a hidden value to generate one
when you first register a person and save this value to the case. You can
use a combination of the user filling out the form, the date and any info
captured in the form. For example, the expression below will generate an ID
like this ‘someuser-20140107185623’

  • concat(instance(‘commcaresession’)/session/context/username,’-’,format-date(now(),
    "%Y%m%d%H%M%S"))

There is more information about what functions are available on these pages:

··· - https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial - https://confluence.dimagi.com/display/commcarepublic/Common+Logic+and+Calculations

Cheers
Simon

On 7 February 2014 07:28, Devika . d.devika@dimagi.com wrote:

Hi Jessica,

Case-id is not form-specific, it is generated whenever you ‘create’ a
case. Usually this happens when you fill out a survey form with information
about one individual and her details are then stored with that case id,
which can be used later to change those details. This is just a brief
explanation, you can find the full process here:
https://confluence.dimagi.com/display/commcarepublic/Case+Management

Best,
Devika

Field Manager, Dimagi
+91 9555571141

On Fri, Feb 7, 2014 at 10:40 AM, Jessica Hall jhal2920@gmail.com wrote:

Hi there,

As part of our household survey the enumerators are to interview all
eligible people in that household.

So this could mean that multiple men and women of reproductive age and
multiple children U5 could be interviewed.

Is there a way of generating an individual case specific I.D in the
system? Currently there is the case I.d which appears to be form specific
and not individual specific. Basically we want to be able to identify
whether this is eligible man 1, 2 or 3 from that household. we need a
systematic number not a random number.

Also in a scenario where a mistake occurs and the interviewer realises
this after they have submitted the form to the server. So they want to
enter the information again into the form. IS there ayway the system can
recognise that this is form number 2 of form i.d XXXXXXX?

Any help you could provide on this would be great.

Cheers,
Jess


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/groups/opt_out.


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/groups/opt_out.


Simon Kelly
Senior Engineer | Dimagi South Africa