← Back to team overview

dhis2-users team mailing list archive

Re: Attribute value "Patient Code" from his "Name" and his "Year of birth" in Individual Records [2.20]

 

Dear Harivola,

You will need a custom form with some JQuery/Javascript that splits the
name and takes the first 3 letters in the name and the last two letters in
year of birth and inserts into into the patient code fields.

For that to happen, the name and year of birth should be filled first, and
on focus in the patient code, you need to call the script/function.

Alex

On Thu, Aug 20, 2015 at 1:55 PM, Harivola RANDRIANJAFY <harivolar@xxxxxx>
wrote:

> Hi all,
>
>
>
> In our program, we want to register the attribute patient code. Does
> someone know how to obtain automatic value in attribute « Patient Code »
> from his attribute « Name » and « Year of birth » instead of writing the
> value manually ?
>
> Ex :
>
> Name : *SAR*AH
>
> Year of birth : 19*80*
>
> ð  Patient Code : value should be "*SAR80*"
>
>
>
> Thanks,
>
>
>
> Harivola
>
>
> ------------------------------
> [image: Avast logo] <https://www.avast.com/antivirus>
>
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> www.avast.com <https://www.avast.com/antivirus>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET
Kampala
Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems -
DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don't want to be anything other than what I have been - one tree hill "

Follow ups

References