Sequential Numbering of Registered Cases

​Hello,
Can someone help me in creating Sequential number for all cases a mobile
worker register during registration? For instance, at a clinic, when a new
patient comes, upon registration, the system should be able to assign a
unique sequential number to each patient.

Thank you in advanced
Yaw

Hi Yaw,

Please see this documentation
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter
about
managing an incremental counter.

Cheers,
Will

··· On Sun, Apr 2, 2017 at 3:57 PM, YAW ANTWI-ADJEI wrote:

​Hello,
Can someone help me in creating Sequential number for all cases a mobile
worker register during registration? For instance, at a clinic, when a new
patient comes, upon registration, the system should be able to assign a
unique sequential number to each patient.

Thank you in advanced
Yaw


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 Will,
Thank you for your response. Unfortunately, my issue is to do with
Registration of Cases not in Follow up forms. In fact, I tried this very
function and it did not work before calling for help.

In short want I want to automatically create and assign unique Patient
Number as soon as a Patient is registered for the first time​. Something
like Auto Increment in Microsoft Access.

A new patient comes to the clinic and we are going to create a folder for
this patient. We need, the Name, Date of Birth, Sex, Residential Address,
Telephone Number, and *Folder/Patient Number. *

The patient will provide all except the Patient Number and that is want I
want to create automatically anytime a new patient comes.

If there is any other way that anyone can suggest, I shall really
appreciate it.

Yaw

··· On 3 April 2017 at 08:36, William Pride wrote:

Hi Yaw,

Please see this documentation
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter about
managing an incremental counter.

Cheers,
Will

On Sun, Apr 2, 2017 at 3:57 PM, YAW ANTWI-ADJEI yawantwiadjei@gmail.com wrote:

​Hello,
Can someone help me in creating Sequential number for all cases a mobile
worker register during registration? For instance, at a clinic, when a new
patient comes, upon registration, the system should be able to assign a
unique sequential number to each patient.

Thank you in advanced
Yaw


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.

Hi Yaw. In order to achieve exactly what you’re describing, you’ll need to
combine the strategy that Will linked to with User as a case
https://confluence.dimagi.com/display/commcarepublic/User+Case, in that
the case property for the incrementing counter needs to be a property of
the user case, rather than an individual case, so that it is always
accessible to that user in a registration form. Note that the User Case
feature requires having a Standard Plan or higher.

··· On Mon, Apr 3, 2017 at 11:36 AM, William Pride wrote:

Hi Yaw,

Please see this documentation
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter about
managing an incremental counter.

Cheers,
Will

On Sun, Apr 2, 2017 at 3:57 PM, YAW ANTWI-ADJEI yawantwiadjei@gmail.com wrote:

​Hello,
Can someone help me in creating Sequential number for all cases a mobile
worker register during registration? For instance, at a clinic, when a new
patient comes, upon registration, the system should be able to assign a
unique sequential number to each patient.

Thank you in advanced
Yaw


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.