Difference between revisions of "Embed-apps-1 Embedding apps in patient tracker"
Oystg@uio.no (talk | contribs) |
Oystg@uio.no (talk | contribs) (→How to get the weight using the API) |
||
Line 26: | Line 26: | ||
= How to get the weight using the API = | = How to get the weight using the API = | ||
− | Get event with: | + | Get event with: <br /> |
− | http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU | + | http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU <br /> |
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU | http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU | ||
Line 38: | Line 38: | ||
Weight id: | Weight id: | ||
UXz7xuGCEhU | UXz7xuGCEhU | ||
− | |||
= Time schedule = | = Time schedule = |
Revision as of 16:17, 20 November 2013
Contents
Group Members
- Zahra Maslavi
- Torbein Rein
- Øystein Gammersvik
Overview
We are going to embed web apps into the patient tracker, and implement some new functionalities.
Features
Weight graph
A graph showing the weight history of a patient enrolled in the MNCH/PNC (Adult Woman) program
Gestational age
Display the gestational age of the patient
TODO
Embedd app on patient dashboard.- Try to change from highcharts to nvd3
- Use hard coded values to call api at first.
- Use dynamically fethed data to call api.
How to get the weight using the API
Get event with:
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=eaDHS084uMp&startDate=2000-01-01&endDate=2013-12-01&person=fSofnQR6lAU
If we use the call above without specifying programStage we get all program stages.
We can then loop through all programStages (each element in the eventList array in the result), and look for the weight (that is the element in dataValues with dataElement: "UXz7xuGCEhU")
Weight id: UXz7xuGCEhU
Time schedule
-
01. nov: Finish wiki page -
8. nov: Static web application -
15. nov: Make web app uploadable - 30. nov: Milestone 3
- 08. dec: Final delivery