Mobile user full name in forms

Hi everyone,

I’m trying to store the list of mobile users who edited a case. The goal
is to display the health workers names who followed a patient in the
case list screen on the Android app.

Basically I’d like to update a string each time a consultation is done,
something in the spirit of “”“ANC 1 - HealthWorkerA
ANC 2 - HealthWorkerB
PNC 1 - HealthWorkerA
etc
”""

https://bitbucket.org/commcare/commcare/wiki/commcaresession shows the
way to retrieve the username, deviceid, etc for a user through
instance(‘commcaresession’)/session/context/*

While username returns the system user name (mobile_worker_01,
mobile_worker_2, etc), I’d like to retrieve the First and Last names
entered during mobile user creation (or ideally directly a Full Name).

Is it possible to query the mobile user Full Name at form filling time ?

Many thanks,

··· -- Charles Flèche mHealth advisor Télécoms Sans Frontières http://www.tsfi.org Première Urgence - Aide Médicale Internationale http://www.pu-ami.org +95 9 431 978 25 Skype: charles.fleche

Hey Charles,

Unfortunatlely, I don’t think we currently provide the user’s full name
through the commcaresession. One way around this issue to manually add
some custom data on each user that is their full name (which may involves
some duplication of data entry unfortunately). This is then available
through the CommCareSession.

For example, if you add a custom field for each mobile worker called
display_name, then it will be available at
instance(‘commcaresession’)/session/user/data/display_name

I’d also suggest adding a UserVoice idea to view the list of users who
modified a case on the mobile. Seems really useful!

Thanks,
Sheel

··· On Mon, Aug 18, 2014 at 6:33 AM, Charles Flèche wrote:

Hi everyone,

I’m trying to store the list of mobile users who edited a case. The goal
is to display the health workers names who followed a patient in the case
list screen on the Android app.

Basically I’d like to update a string each time a consultation is done,
something in the spirit of “”“ANC 1 - HealthWorkerA
ANC 2 - HealthWorkerB
PNC 1 - HealthWorkerA
etc
”""

https://bitbucket.org/commcare/commcare/wiki/commcaresession shows the
way to retrieve the username, deviceid, etc for a user through
instance(‘commcaresession’)/session/context/*

While username returns the system user name (mobile_worker_01,
mobile_worker_2, etc), I’d like to retrieve the First and Last names
entered during mobile user creation (or ideally directly a Full Name).

Is it possible to query the mobile user Full Name at form filling time ?

Many thanks,


Charles Flèche
mHealth advisor
Télécoms Sans Frontières http://www.tsfi.org
Première Urgence - Aide Médicale Internationale http://www.pu-ami.org
+95 9 431 978 25
Skype: charles.fleche


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.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah