Retrieve previously entered data

Hi Guys,

Is it possible to retrieve/ populate previously entered data while filling
up a form next time. What I am trying to do is, we are trying to track
pregnant women and their ANC visits.

So for example, if a woman comes for the first ANC visit in the health
facility, we will enter the date when she visited. Now after couple of
months she visits the health facility again for her second ANC follow up.
So what I am trying to do is since we already know or have entered or ANC
visit earlier (couple of months ago), I don't want to ask her the date of
her first ANC visit. I directly want to ask her or note down the date of
her second ANC visit. Is it possible to do this?

I would really appreciate if anyone of you can guide me. Commcare is fairly
new for me.

Hi there,

This is exactly what CommCare is designed for! I would recommend reviewing
the app building tutorials
https://wiki.commcarehq.org/display/commcarepublic/Application+Building+Tutorial+Series
and particular the ones on case management
https://wiki.commcarehq.org/display/commcarepublic/Basic+Case+Management+Tutorial
.

best,
Cory

··· On Wed, Nov 5, 2014 at 9:36 AM, wrote:

Hi Guys,

Is it possible to retrieve/ populate previously entered data while filling
up a form next time. What I am trying to do is, we are trying to track
pregnant women and their ANC visits.

So for example, if a woman comes for the first ANC visit in the health
facility, we will enter the date when she visited. Now after couple of
months she visits the health facility again for her second ANC follow up.
So what I am trying to do is since we already know or have entered or ANC
visit earlier (couple of months ago), I don't want to ask her the date of
her first ANC visit. I directly want to ask her or note down the date of
her second ANC visit. Is it possible to do this?

I would really appreciate if anyone of you can guide me. Commcare is
fairly new for me.

--
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 Cory:

Thank you for the quick reply. I looked at case management and my
understanding is case management cannot handle what I am trying to do. May
be I was not clear earlier or may be I am missing something here.

For our need I have 3 different forms under one module.

  1. Registration Form (this has demographic information)
  2. ANC Visit Form (asks for ANC 1, 2, 3 and 4)
  3. Family Planning.

First time a pregnant woman visits we register her in our system using
registration form. Here I am using case management so that to be able to
record ANC visit the member should be registered, and most probably this
will be her first ANC visit so I will use ANC visit form to record her
first ANC visit. Which works great.

Now she comes back after couple of months for her ANC second visit. Since
she is already registered I won't use Registration form this time. I will
directly go to ANC visit form. However, first question in our ANC visit
form is date for first ANC visit followed by second ANC visit. Now the
problem I am having is, I don't want to ask her date of her ANC visit 1. We
should have that already when she registered couple of months ago. I want
to ask her ANC visit 2 date.

Same applies when she comes next time ANC visit 3.

Please advice. I pretty much already looked at case management and I don't
this case management will full fill our needs

··· On Wednesday, November 5, 2014 9:37:01 PM UTC+5:45, Cory Zue wrote: > > Hi there, > > This is exactly what CommCare is designed for! I would recommend reviewing > the app building tutorials > > and particular the ones on case management > > . > > best, > Cory > > On Wed, Nov 5, 2014 at 9:36 AM, <adhika...@gmail.com > wrote: > >> Hi Guys, >> >> Is it possible to retrieve/ populate previously entered data while >> filling up a form next time. What I am trying to do is, we are trying to >> track pregnant women and their ANC visits. >> >> So for example, if a woman comes for the first ANC visit in the health >> facility, we will enter the date when she visited. Now after couple of >> months she visits the health facility again for her second ANC follow up. >> So what I am trying to do is since we already know or have entered or ANC >> visit earlier (couple of months ago), I don't want to ask her the date of >> her first ANC visit. I directly want to ask her or note down the date of >> her second ANC visit. Is it possible to do this? >> >> I would really appreciate if anyone of you can guide me. Commcare is >> fairly new for me. >> >> -- >> 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-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Anybody?

··· On Wednesday, November 5, 2014 11:13:11 PM UTC+5:45, adhika...@gmail.com wrote: > > Hi Cory: > > Thank you for the quick reply. I looked at case management and my > understanding is case management cannot handle what I am trying to do. May > be I was not clear earlier or may be I am missing something here. > > For our need I have 3 different forms under one module. > > 1. Registration Form (this has demographic information) > 2. ANC Visit Form (asks for ANC 1, 2, 3 and 4) > 3. Family Planning. > > First time a pregnant woman visits we register her in our system using > registration form. Here I am using case management so that to be able to > record ANC visit the member should be registered, and most probably this > will be her first ANC visit so I will use ANC visit form to record her > first ANC visit. Which works great. > > Now she comes back after couple of months for her ANC second visit. Since > she is already registered I won't use Registration form this time. I will > directly go to ANC visit form. However, first question in our ANC visit > form is date for first ANC visit followed by second ANC visit. Now the > problem I am having is, I don't want to ask her date of her ANC visit 1. We > should have that already when she registered couple of months ago. I want > to ask her ANC visit 2 date. > > Same applies when she comes next time ANC visit 3. > > Please advice. I pretty much already looked at case management and I don't > this case management will full fill our needs > > On Wednesday, November 5, 2014 9:37:01 PM UTC+5:45, Cory Zue wrote: >> >> Hi there, >> >> This is exactly what CommCare is designed for! I would recommend >> reviewing the app building tutorials >> >> and particular the ones on case management >> >> . >> >> best, >> Cory >> >> On Wed, Nov 5, 2014 at 9:36 AM, wrote: >> >>> Hi Guys, >>> >>> Is it possible to retrieve/ populate previously entered data while >>> filling up a form next time. What I am trying to do is, we are trying to >>> track pregnant women and their ANC visits. >>> >>> So for example, if a woman comes for the first ANC visit in the health >>> facility, we will enter the date when she visited. Now after couple of >>> months she visits the health facility again for her second ANC follow up. >>> So what I am trying to do is since we already know or have entered or ANC >>> visit earlier (couple of months ago), I don't want to ask her the date of >>> her first ANC visit. I directly want to ask her or note down the date of >>> her second ANC visit. Is it possible to do this? >>> >>> I would really appreciate if anyone of you can guide me. Commcare is >>> fairly new for me. >>> >>> -- >>> 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-user...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >>

Hey,

As Cory suggested this can be accomplished with case management. To be
specific, you would have four case properties: ANC_1, ANC_2, etc. When you
enter the ANC Visit Form, you would load all of these properties into the
form using case management. You could ask the current date as usual; then,
you would have some calculation logic in a hidden value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial
that
checked if the ANC_1 value was set or not; if so, it would check if ANC_2
was set; continuing until it finds the first such date that was not set.
Then you would know that was the Nth visit and you would save the result of
the date question to the respective case property. The next time you enter,
that date would be loaded as a case property, and you would move on to the
next case property. You could use similar logic to set the question label
to say "This is the Nth visit."

Hope this helps.

Best,
Will

··· On Wed, Nov 5, 2014 at 10:17 PM, wrote:

Anybody?

On Wednesday, November 5, 2014 11:13:11 PM UTC+5:45, adhika...@gmail.com wrote:

Hi Cory:

Thank you for the quick reply. I looked at case management and my
understanding is case management cannot handle what I am trying to do. May
be I was not clear earlier or may be I am missing something here.

For our need I have 3 different forms under one module.

  1. Registration Form (this has demographic information)
  2. ANC Visit Form (asks for ANC 1, 2, 3 and 4)
  3. Family Planning.

First time a pregnant woman visits we register her in our system using
registration form. Here I am using case management so that to be able to
record ANC visit the member should be registered, and most probably this
will be her first ANC visit so I will use ANC visit form to record her
first ANC visit. Which works great.

Now she comes back after couple of months for her ANC second visit. Since
she is already registered I won't use Registration form this time. I will
directly go to ANC visit form. However, first question in our ANC visit
form is date for first ANC visit followed by second ANC visit. Now the
problem I am having is, I don't want to ask her date of her ANC visit 1. We
should have that already when she registered couple of months ago. I want
to ask her ANC visit 2 date.

Same applies when she comes next time ANC visit 3.

Please advice. I pretty much already looked at case management and I
don't this case management will full fill our needs

On Wednesday, November 5, 2014 9:37:01 PM UTC+5:45, Cory Zue wrote:

Hi there,

This is exactly what CommCare is designed for! I would recommend
reviewing the app building tutorials
https://wiki.commcarehq.org/display/commcarepublic/Application+Building+Tutorial+Series
and particular the ones on case management
https://wiki.commcarehq.org/display/commcarepublic/Basic+Case+Management+Tutorial
.

best,
Cory

On Wed, Nov 5, 2014 at 9:36 AM, adhika...@gmail.com wrote:

Hi Guys,

Is it possible to retrieve/ populate previously entered data while
filling up a form next time. What I am trying to do is, we are trying to
track pregnant women and their ANC visits.

So for example, if a woman comes for the first ANC visit in the health
facility, we will enter the date when she visited. Now after couple of
months she visits the health facility again for her second ANC follow up.
So what I am trying to do is since we already know or have entered or ANC
visit earlier (couple of months ago), I don't want to ask her the date of
her first ANC visit. I directly want to ask her or note down the date of
her second ANC visit. Is it possible to do this?

I would really appreciate if anyone of you can guide me. Commcare is
fairly new for me.

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

Hello,

I wanted to follow up with a bit more explanation to help you through this
process. Like Will commented, we do believe that case management contains a
solution for you. I've outlined some steps you can follow to use the case
to share information from the registration form in the followup forms.

  1. First, it's necessary have to save the case properties into the case
    from your registration form. You're looking to be able to save the
    information from your registration ANC date question into the first case
    property, which you might call anc_visit_1_date. The following page has
    some helpful steps:
    Advanced Case Management Tutorial Part 1 - Saving Data to Case Properties - CommCare Public - CommCare Public

  2. Next we have to add logic to the form for setting the date in the
    correct ANC property when you open up the follow up ANC visit. This is the
    logic that Will explained in his last email to you. It is advanced logic
    and involves checking the values for the date that have been previously
    set. I have created a demo form for the date logic that automatically
    assigns today's date into the first empty anc_visit_date. I've invited you
    to view the form in a follow up email; it is in the only application listed
    in this project space.

You'll note that in my form, I have these four properties that represent
the visit dates: anc_visit_1_date, anc_visit_2_date, anc_visit_3_date,
anc_visit_4_date. The calcluate logic for these checks the properties for
the previous anc visits, which we will load into the form in step 3 below.
Basically, the idea is to track the visit number in a variable called
visit_num and add one to it each time the ANC form is opened. This is done
in the Calculate Condition for visit_num. Then, the Calculate Condition for
each anc_visit_date checks to see if it is the current visit number and
sets today's date if it is.

The following wiki page might be helpful in providing more context for this
logic:
https://wiki.commcarehq.org/display/commcarepublic/Advanced+Case+Management+Tutorial+Part+4+-+Referencing+Data+from+the+Case

  1. There are two actions that need to be performed with regard to Case
    Management in this form. We have to load the previous dates into the ANC
    followup form and we have to save the new data back to the case. It works
    best if you up the save first. Start by loading the information from the
    ANC dates into hidden values in the ANC form as shown in the following page.

To load the data, I made five hidden values total called prev_visit_num,
prev_anc_1_date, prev_anc_2_date, prev_anc_3_date, and prev_anc_4_date.
Respectively, these load the number of visits so far, and the dates of
these visits. For more information about the load and save, please see this
page:

https://wiki.commcarehq.org/display/commcarepublic/Advanced+Case+Management+Tutorial+Part+3+-+Loading+Data+from+the+Case

  1. Saving the data to the case properties is also done on the Case
    Management tab for the follow up form. Under Save data to the following
    case properties, you'll see the hidden values are matched up with their
    associated case properties in order to save the data back to the case.

  2. Finally, you can set up these visit dates so they are viewed in the Case
    List screen when you select the a case to update on your mobile device. I
    have done this in the Case List for my demo as well. More details on that
    can be found here:
    https://confluence.dimagi.com/display/commcarepublic/Case+List+and+Case+Detail+View+Configuration

Let me know if you have further questions and I'll be happy to help you
continue on your way.

Cheers,

Nate

··· On Wed, Nov 5, 2014 at 10:35 PM, William Pride wrote:

Hey,

As Cory suggested this can be accomplished with case management. To be
specific, you would have four case properties: ANC_1, ANC_2, etc. When you
enter the ANC Visit Form, you would load all of these properties into the
form using case management. You could ask the current date as usual; then,
you would have some calculation logic in a hidden value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial that
checked if the ANC_1 value was set or not; if so, it would check if ANC_2
was set; continuing until it finds the first such date that was not set.
Then you would know that was the Nth visit and you would save the result of
the date question to the respective case property. The next time you enter,
that date would be loaded as a case property, and you would move on to the
next case property. You could use similar logic to set the question label
to say "This is the Nth visit."

Hope this helps.

Best,
Will

On Wed, Nov 5, 2014 at 10:17 PM, adhikari1983@gmail.com wrote:

Anybody?

On Wednesday, November 5, 2014 11:13:11 PM UTC+5:45, adhika...@gmail.com wrote:

Hi Cory:

Thank you for the quick reply. I looked at case management and my
understanding is case management cannot handle what I am trying to do. May
be I was not clear earlier or may be I am missing something here.

For our need I have 3 different forms under one module.

  1. Registration Form (this has demographic information)
  2. ANC Visit Form (asks for ANC 1, 2, 3 and 4)
  3. Family Planning.

First time a pregnant woman visits we register her in our system using
registration form. Here I am using case management so that to be able to
record ANC visit the member should be registered, and most probably this
will be her first ANC visit so I will use ANC visit form to record her
first ANC visit. Which works great.

Now she comes back after couple of months for her ANC second visit.
Since she is already registered I won't use Registration form this time. I
will directly go to ANC visit form. However, first question in our ANC
visit form is date for first ANC visit followed by second ANC visit. Now
the problem I am having is, I don't want to ask her date of her ANC visit

  1. We should have that already when she registered couple of months ago. I
    want to ask her ANC visit 2 date.

Same applies when she comes next time ANC visit 3.

Please advice. I pretty much already looked at case management and I
don't this case management will full fill our needs

On Wednesday, November 5, 2014 9:37:01 PM UTC+5:45, Cory Zue wrote:

Hi there,

This is exactly what CommCare is designed for! I would recommend
reviewing the app building tutorials
https://wiki.commcarehq.org/display/commcarepublic/Application+Building+Tutorial+Series
and particular the ones on case management
https://wiki.commcarehq.org/display/commcarepublic/Basic+Case+Management+Tutorial
.

best,
Cory

On Wed, Nov 5, 2014 at 9:36 AM, adhika...@gmail.com wrote:

Hi Guys,

Is it possible to retrieve/ populate previously entered data while
filling up a form next time. What I am trying to do is, we are trying to
track pregnant women and their ANC visits.

So for example, if a woman comes for the first ANC visit in the health
facility, we will enter the date when she visited. Now after couple of
months she visits the health facility again for her second ANC follow up.
So what I am trying to do is since we already know or have entered or ANC
visit earlier (couple of months ago), I don't want to ask her the date of
her first ANC visit. I directly want to ask her or note down the date of
her second ANC visit. Is it possible to do this?

I would really appreciate if anyone of you can guide me. Commcare is
fairly new for me.

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

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

--
Nate Haduch

Technical Support Analyst
Dimagi, Inc | 585 Massachusetts Ave | Suite 3 | Cambridge, MA 02139
web: http://www.dimagi.com/

Hi @Nate,

This was post a long ago. My question is: is it still possible to have a demo that accompanies your explanation?. @Adhikari1983 has raised a very good question.
it would be of great help to me.

Thanks