DHIS2 Javascript

Dear all,

Does anyone have any idea in how do I create a javascript in dhis2 to pull data from previous period to a field in the current form during data entry? This is because we need to avoid user input in some fields that must be calculated and on the previous periods values.

Melhores Cumprimentos

João Gabriel Mazuze

National Database Manager

CHASS-SMT Project

Abt Associates Inc.

Av. Marginal nº 4067

Maputo - Mozambique

Fax: (+ 258) 21493525/6/8

Tel: (+ 258) 21486767

Cell: (+258) 824236279

www.chasssmt.com

Description: Description: Description: Description: Description: Description: Description: Description: Logotipo CHASS-SMT

  • We are a project founded by PEPFAR-II through USAID to strengthen the Health System in Sofala, Manica and Tete Provinces.*

  • Our aim is to improve linkages and integration of HIV to primary health care and other related services in coordination with the Provincial Health Directorates and partners.*

  • Through CHASS-SMT project, the US Government supports the Mozambican Governament to improve quality of health care services in the country.*

Dear Joao,

Use a custom form, JQuery and DHIS2 API. This should help you achieve what you want.

JQuery library is pre-loaded for you in the custom form.

Thanks.

image

···

On Tue, Nov 18, 2014 at 4:18 PM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:

Dear all,

Does anyone have any idea in how do I create a javascript in dhis2 to pull data from previous period to a field in the current form during data entry? This is because we need to avoid user input in some fields that must be calculated and on the previous periods values.

Melhores Cumprimentos


João Gabriel Mazuze

National Database Manager

CHASS-SMT Project

Abt Associates Inc.

Av. Marginal nº 4067

Maputo - Mozambique

Fax: (+ 258) 21493525/6/8

Tel: (+ 258) 21486767

Cell: (+258) 824236279

www.chasssmt.com

  • We are a project founded by PEPFAR-II through USAID to strengthen the Health System in Sofala, Manica and Tete Provinces.*
  • Our aim is to improve linkages and integration of HIV to primary health care and other related services in coordination with the Provincial Health Directorates and partners.*
  • Through CHASS-SMT project, the US Government supports the Mozambican Governament to improve quality of health care services in the country.*

This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2,
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 "

Some relevant docs here:

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s09.html#d5e1250

and here (some of this is in latest trunk only):

https://www.dhis2.org/doc/snapshot/en/user/html/ch05s02.html#d5e909

Lars

Thank you all, I will have a look on the docs bellow.

Melhores Cumprimentos

João Gabriel Mazuze

National Database Manager

CHASS-SMT Project

Abt Associates Inc.

Av. Marginal nº 4067

Maputo - Mozambique

Fax: (+ 258) 21493525/6/8

Tel: (+ 258) 21486767

Cell: (+258) 824236279

www.chasssmt.com

Description: Description: Description: Description: Description: Description: Description: Description: Logotipo CHASS-SMT

We are a project founded by PEPFAR-II through USAID to strengthen the Health System in Sofala, Manica and Tete Provinces.

Our aim is to improve linkages and integration of HIV to primary health care and other related services in coordination with the Provincial Health Directorates and partners.

Through CHASS-SMT project, the US Government supports the Mozambican Governament to improve quality of health care services in the country.

···

Some relevant docs here:

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s09.html#d5e1250

and here (some of this is in latest trunk only):

https://www.dhis2.org/doc/snapshot/en/user/html/ch05s02.html#d5e909

Lars

Are the data entry events specific to the aggregate data entry module (2.16 inclusive) or they also apply to the tracked entity module?

···

On Tue, Nov 18, 2014 at 4:29 PM, Lars Helge Øverland larshelge@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Sam Kasozi
Information Systems Consultant
HISP Uganda | GHSI - Uganda MOH - PH Emergency Operation Center
+256 788 993565 | +256 757 662752

kasozis@gmail.com | skasozi@pheoc.go.ug | Skype: sam.kasoziug

Some relevant docs here:

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s09.html#d5e1250

and here (some of this is in latest trunk only):

https://www.dhis2.org/doc/snapshot/en/user/html/ch05s02.html#d5e909

Lars