Open referral on commcare

Hi Amelia,
See last email from you below, I want to implement the functionality to
calculate visit number.
Is it possible to do this right from the form editor? Or need to be done
manually?
Thanks.

··· ---------- Forwarded message ---------- From: Amelia Sagoff Date: Mon, Sep 12, 2011 at 5:23 PM Subject: Re: Open referral on commcare To: Peter D Lubambi

Hi Peter,

This email is followup from our call about the cyclical dependency in
visit_count. When you have a preload binding, the piece of data is loaded
for all lines thereafter. You cannot refer to the piece of data in the
same preload binding.

For example, in your application you had something like:

You are preloading visit_number, and at the same time have a calculate with
visit_number. You must do the calculate later in the form.

Makes sense?

Amelia

On Sun, Sep 11, 2011 at 11:08 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
4 pm EAT works for me, my skype name is 'plubambi'.

I edit my forms manualy, but i have ever tried to edit my hand authored
form with old form designer the same problem happened.

About the binds on visit_number and date_of_birth, i have noticed because
the visit_number was intended to increment with every visit now it is not
working. We can discuss this in our call later.

Also, the automatic referral works for child module. If you can also add
this for mother, please go ahead!

Thanks

Peter.

sent from Lubambi's android phone

On 12 Sep 2011 00:08, "Amelia Sagoff" asagoff@dimagi.com wrote:
Hi Peter,

We never scheduled a time for our Skype call on Monday -- would 4pm EAT
work for you?

answers to your questions inline below.

On Sat, Sep 10, 2011 at 12:53 PM, Peter D Lubambi plubambi@gmail.com wrote:

Hi Amelia,
I hav...

That was not intentional,and may have been a side effect of the new
editor. Have you been using one of the form designers to edit your form?
If so, which one (the old Form Designer or Vellum (new)) ?

You may have noticed I also removed some of the data preloads since they
had cyclical bindings. visit_number in the mother followup and
date_of_birth in the child followup.

I have been testing the app i have few questions,

-Is it possible to pass the referral inf...

You probably noticed that this is done automatically in the child form. I
think it's possible to put this functionality in the mother form as well.
I can try to add that in on Monday if you like.

Best,
Amelia

Thanks.

Peter

On Fri, Sep 9, 2011 at 5:12 PM, Amelia Sagoff asagoff@dimagi.com
wrote:...

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

Hi Peter,

You can track which # visit this is using data nodes and a case property.
You will use the data nodes to add 1 to the case property visit_number
every time the user fills out the form.

You'll need 1 case property to track this (e.g. visit_number)
You'll need 2 data nodes in the form (e.g. /data/prev_visit_number and
/data/cur_visit_number).

  1. Load the case property visit_number into the data node
    /data/prev_visit_number
  2. Write a calculate in /data/cur_visit_number to calculate
    /data/prev_visit_number+1, or 1 if /data/prev_visit_number is null: e.g.
    if(/data/prev_visit_number = '', 1, /data/prev_visit_number+1)
  3. Update the case property visit_number with /data/cur_visit_number.

Hope this helps!

Thanks,
Amelia

··· On Thu, Mar 7, 2013 at 12:02 PM, Peter D Lubambi wrote:

Hi Amelia,
See last email from you below, I want to implement the functionality to
calculate visit number.
Is it possible to do this right from the form editor? Or need to be done
manually?
Thanks.

---------- Forwarded message ----------
From: Amelia Sagoff asagoff@dimagi.com
Date: Mon, Sep 12, 2011 at 5:23 PM
Subject: Re: Open referral on commcare
To: Peter D Lubambi plubambi@gmail.com

Hi Peter,

This email is followup from our call about the cyclical dependency in
visit_count. When you have a preload binding, the piece of data is loaded
for all lines thereafter. You cannot refer to the piece of data in the
same preload binding.

For example, in your application you had something like:

You are preloading visit_number, and at the same time have a calculate
with visit_number. You must do the calculate later in the form.

Makes sense?

Amelia

On Sun, Sep 11, 2011 at 11:08 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
4 pm EAT works for me, my skype name is 'plubambi'.

I edit my forms manualy, but i have ever tried to edit my hand authored
form with old form designer the same problem happened.

About the binds on visit_number and date_of_birth, i have noticed because
the visit_number was intended to increment with every visit now it is not
working. We can discuss this in our call later.

Also, the automatic referral works for child module. If you can also add
this for mother, please go ahead!

Thanks

Peter.

sent from Lubambi's android phone

On 12 Sep 2011 00:08, "Amelia Sagoff" asagoff@dimagi.com wrote:
Hi Peter,

We never scheduled a time for our Skype call on Monday -- would 4pm EAT
work for you?

answers to your questions inline below.

On Sat, Sep 10, 2011 at 12:53 PM, Peter D Lubambi plubambi@gmail.com wrote:

Hi Amelia,
I hav...

That was not intentional,and may have been a side effect of the new
editor. Have you been using one of the form designers to edit your form?
If so, which one (the old Form Designer or Vellum (new)) ?

You may have noticed I also removed some of the data preloads since they
had cyclical bindings. visit_number in the mother followup and
date_of_birth in the child followup.

I have been testing the app i have few questions,

-Is it possible to pass the referral inf...

You probably noticed that this is done automatically in the child form.
I think it's possible to put this functionality in the mother form as
well. I can try to add that in on Monday if you like.

Best,
Amelia

Thanks.

Peter

On Fri, Sep 9, 2011 at 5:12 PM, Amelia Sagoff asagoff@dimagi.com
wrote:...

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

--
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 Amelia,
This was easy to follow.
When I display the cur_visit_number I keep on on getting 1 even on second
visit
Am I missing any step here?

See my comments in line.

Hi Peter,

You can track which # visit this is using data nodes and a case property.
You will use the data nodes to add 1 to the case property visit_number
every time the user fills out the form.

You'll need 1 case property to track this (e.g. visit_number)

I have this node on registration form <post_visit />

You'll need 2 data nodes in the form (e.g. /data/prev_visit_number and
/data/cur_visit_number).

Nodes on follow up form
<post_visit />
<prev_visit_number />
<cur_visit_number />

  1. Load the case property visit_number into the data node
    /data/prev_visit_number
  1. Write a calculate in /data/cur_visit_number to calculate
    /data/prev_visit_number+1, or 1 if /data/prev_visit_number is null: e.g.
    if(/data/prev_visit_number = '', 1, /data/prev_visit_number+1)
  1. Update the case property visit_number with /data/cur_visit_number.

See image step number 1.

··· On Thu, Mar 7, 2013 at 8:07 PM, Amelia Sagoff wrote:

Hope this helps!

Thanks,
Amelia

On Thu, Mar 7, 2013 at 12:02 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
See last email from you below, I want to implement the functionality to
calculate visit number.
Is it possible to do this right from the form editor? Or need to be done
manually?
Thanks.

---------- Forwarded message ----------
From: Amelia Sagoff asagoff@dimagi.com
Date: Mon, Sep 12, 2011 at 5:23 PM
Subject: Re: Open referral on commcare
To: Peter D Lubambi plubambi@gmail.com

Hi Peter,

This email is followup from our call about the cyclical dependency in
visit_count. When you have a preload binding, the piece of data is loaded
for all lines thereafter. You cannot refer to the piece of data in the
same preload binding.

For example, in your application you had something like:

You are preloading visit_number, and at the same time have a calculate
with visit_number. You must do the calculate later in the form.

Makes sense?

Amelia

On Sun, Sep 11, 2011 at 11:08 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
4 pm EAT works for me, my skype name is 'plubambi'.

I edit my forms manualy, but i have ever tried to edit my hand authored
form with old form designer the same problem happened.

About the binds on visit_number and date_of_birth, i have noticed
because the visit_number was intended to increment with every visit now it
is not working. We can discuss this in our call later.

Also, the automatic referral works for child module. If you can also add
this for mother, please go ahead!

Thanks

Peter.

sent from Lubambi's android phone

On 12 Sep 2011 00:08, "Amelia Sagoff" asagoff@dimagi.com wrote:
Hi Peter,

We never scheduled a time for our Skype call on Monday -- would 4pm EAT
work for you?

answers to your questions inline below.

On Sat, Sep 10, 2011 at 12:53 PM, Peter D Lubambi plubambi@gmail.com wrote:

Hi Amelia,
I hav...

That was not intentional,and may have been a side effect of the new
editor. Have you been using one of the form designers to edit your form?
If so, which one (the old Form Designer or Vellum (new)) ?

You may have noticed I also removed some of the data preloads since they
had cyclical bindings. visit_number in the mother followup and
date_of_birth in the child followup.

I have been testing the app i have few questions,

-Is it possible to pass the referral inf...

You probably noticed that this is done automatically in the child form.
I think it's possible to put this functionality in the mother form as
well. I can try to add that in on Monday if you like.

Best,
Amelia

Thanks.

Peter

On Fri, Sep 9, 2011 at 5:12 PM, Amelia Sagoff asagoff@dimagi.com
wrote:...

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

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

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

Ooooh Sorry, Images seem corrupted.

See attached for step 1 and 2.

··· On Fri, Mar 8, 2013 at 5:03 PM, Peter D Lubambi wrote:

Hi Amelia,
This was easy to follow.
When I display the cur_visit_number I keep on on getting 1 even on second
visit
Am I missing any step here?

See my comments in line.

On Thu, Mar 7, 2013 at 8:07 PM, Amelia Sagoff asagoff@dimagi.com wrote:

Hi Peter,

You can track which # visit this is using data nodes and a case property.
You will use the data nodes to add 1 to the case property visit_number
every time the user fills out the form.

You'll need 1 case property to track this (e.g. visit_number)

I have this node on registration form <post_visit />

You'll need 2 data nodes in the form (e.g. /data/prev_visit_number and
/data/cur_visit_number).

Nodes on follow up form
<post_visit />
<prev_visit_number />
<cur_visit_number />

  1. Load the case property visit_number into the data node
    /data/prev_visit_number
  1. Write a calculate in /data/cur_visit_number to calculate
    /data/prev_visit_number+1, or 1 if /data/prev_visit_number is null: e.g.
    if(/data/prev_visit_number = '', 1, /data/prev_visit_number+1)
  1. Update the case property visit_number with /data/cur_visit_number.

See image step number 1.

Hope this helps!

Thanks,
Amelia

On Thu, Mar 7, 2013 at 12:02 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
See last email from you below, I want to implement the functionality to
calculate visit number.
Is it possible to do this right from the form editor? Or need to be done
manually?
Thanks.

---------- Forwarded message ----------
From: Amelia Sagoff asagoff@dimagi.com
Date: Mon, Sep 12, 2011 at 5:23 PM
Subject: Re: Open referral on commcare
To: Peter D Lubambi plubambi@gmail.com

Hi Peter,

This email is followup from our call about the cyclical dependency in
visit_count. When you have a preload binding, the piece of data is loaded
for all lines thereafter. You cannot refer to the piece of data in the
same preload binding.

For example, in your application you had something like:

You are preloading visit_number, and at the same time have a calculate
with visit_number. You must do the calculate later in the form.

Makes sense?

Amelia

On Sun, Sep 11, 2011 at 11:08 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
4 pm EAT works for me, my skype name is 'plubambi'.

I edit my forms manualy, but i have ever tried to edit my hand authored
form with old form designer the same problem happened.

About the binds on visit_number and date_of_birth, i have noticed
because the visit_number was intended to increment with every visit now it
is not working. We can discuss this in our call later.

Also, the automatic referral works for child module. If you can also
add this for mother, please go ahead!

Thanks

Peter.

sent from Lubambi's android phone

On 12 Sep 2011 00:08, "Amelia Sagoff" asagoff@dimagi.com wrote:
Hi Peter,

We never scheduled a time for our Skype call on Monday -- would 4pm EAT
work for you?

answers to your questions inline below.

On Sat, Sep 10, 2011 at 12:53 PM, Peter D Lubambi plubambi@gmail.com wrote:

Hi Amelia,
I hav...

That was not intentional,and may have been a side effect of the new
editor. Have you been using one of the form designers to edit your form?
If so, which one (the old Form Designer or Vellum (new)) ?

You may have noticed I also removed some of the data preloads since
they had cyclical bindings. visit_number in the mother followup and
date_of_birth in the child followup.

I have been testing the app i have few questions,

-Is it possible to pass the referral inf...

You probably noticed that this is done automatically in the child form.
I think it's possible to put this functionality in the mother form as
well. I can try to add that in on Monday if you like.

Best,
Amelia

Thanks.

Peter

On Fri, Sep 9, 2011 at 5:12 PM, Amelia Sagoff asagoff@dimagi.com
wrote:...

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

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

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

Hi Peter,

I don't think you need post_visit_number.

You need to save /data/cur_visit_number to the case, using the same case
property name that you load into the form into /data/prev_visit_number.

So if you keep everything the same, except update the case with
/data/cur_visit_number to the case property post_visit, it should work.

Amelia

··· On Fri, Mar 8, 2013 at 9:10 AM, Peter D Lubambi wrote:

Ooooh Sorry, Images seem corrupted.

See attached for step 1 and 2.

On Fri, Mar 8, 2013 at 5:03 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
This was easy to follow.
When I display the cur_visit_number I keep on on getting 1 even on second
visit
Am I missing any step here?

See my comments in line.

On Thu, Mar 7, 2013 at 8:07 PM, Amelia Sagoff asagoff@dimagi.com wrote:

Hi Peter,

You can track which # visit this is using data nodes and a case
property. You will use the data nodes to add 1 to the case property
visit_number every time the user fills out the form.

You'll need 1 case property to track this (e.g. visit_number)

I have this node on registration form <post_visit />

You'll need 2 data nodes in the form (e.g. /data/prev_visit_number and
/data/cur_visit_number).

Nodes on follow up form
<post_visit />
<prev_visit_number />
<cur_visit_number />

  1. Load the case property visit_number into the data node
    /data/prev_visit_number
  1. Write a calculate in /data/cur_visit_number to calculate
    /data/prev_visit_number+1, or 1 if /data/prev_visit_number is null: e.g.
    if(/data/prev_visit_number = '', 1, /data/prev_visit_number+1)
  1. Update the case property visit_number with /data/cur_visit_number.

See image step number 1.

Hope this helps!

Thanks,
Amelia

On Thu, Mar 7, 2013 at 12:02 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
See last email from you below, I want to implement the functionality to
calculate visit number.
Is it possible to do this right from the form editor? Or need to be
done manually?
Thanks.

---------- Forwarded message ----------
From: Amelia Sagoff asagoff@dimagi.com
Date: Mon, Sep 12, 2011 at 5:23 PM
Subject: Re: Open referral on commcare
To: Peter D Lubambi plubambi@gmail.com

Hi Peter,

This email is followup from our call about the cyclical dependency in
visit_count. When you have a preload binding, the piece of data is loaded
for all lines thereafter. You cannot refer to the piece of data in the
same preload binding.

For example, in your application you had something like:

You are preloading visit_number, and at the same time have a calculate
with visit_number. You must do the calculate later in the form.

Makes sense?

Amelia

On Sun, Sep 11, 2011 at 11:08 PM, Peter D Lubambi plubambi@gmail.comwrote:

Hi Amelia,
4 pm EAT works for me, my skype name is 'plubambi'.

I edit my forms manualy, but i have ever tried to edit my hand
authored form with old form designer the same problem happened.

About the binds on visit_number and date_of_birth, i have noticed
because the visit_number was intended to increment with every visit now it
is not working. We can discuss this in our call later.

Also, the automatic referral works for child module. If you can also
add this for mother, please go ahead!

Thanks

Peter.

sent from Lubambi's android phone

On 12 Sep 2011 00:08, "Amelia Sagoff" asagoff@dimagi.com wrote:
Hi Peter,

We never scheduled a time for our Skype call on Monday -- would 4pm
EAT work for you?

answers to your questions inline below.

On Sat, Sep 10, 2011 at 12:53 PM, Peter D Lubambi plubambi@gmail.com wrote:

Hi Amelia,
I hav...

That was not intentional,and may have been a side effect of the new
editor. Have you been using one of the form designers to edit your form?
If so, which one (the old Form Designer or Vellum (new)) ?

You may have noticed I also removed some of the data preloads since
they had cyclical bindings. visit_number in the mother followup and
date_of_birth in the child followup.

I have been testing the app i have few questions,

-Is it possible to pass the referral inf...

You probably noticed that this is done automatically in the child
form. I think it's possible to put this functionality in the mother form
as well. I can try to add that in on Monday if you like.

Best,
Amelia

Thanks.

Peter

On Fri, Sep 9, 2011 at 5:12 PM, Amelia Sagoff asagoff@dimagi.com
wrote:...

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

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

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

--
Peter Dotto Lubambi,
IT Manager,
D-tree International -Tanzania,
Tanzania.
+255 786 087 087
http://tz.linkedin.com/in/plubambi

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