Exercise24
description
Transcript of Exercise24
Sahana Eden:Emergency
Development Environment16 September 2010, Exercise 24
Fran Boon
Sahana Modules
• Organisation Registry
• Person Finder
• Request Management
• Inventory
• Shelter Registry
• Hospital Management
Mapping
• Overlay
• Import
• Export
…including Offline…
Export Feeds (e.g. KML)• Show all Hospitals which have more than 10 beds available:…/hms/hospital?hospital.available_beds__gt=10 • Show all Hospitals which have a Burns unit:
…/hms/hospital?services.burn=True • All Hospitals +/- 1 degree from Peshawar
…/hms/hospital?location_id.lat__gt=33&location_id.lat__lt=35&location_id.lon_gt=70.5&location_id.lon__lt=72.5 • …/hms/hospital?hospital.postcode__like=7%,8%,9% • …/hms/hospital?hospital.postcode__unlike=7%
• …/pr/person?address.location_id=1,3,65,2 • …/pr/person?address.location_id__ne=1,3,65,2 • …/pr/person?presence.presence_condition=99&presence.closed=False
Mapping
• OpenStreetMap
• Google, Yahoo, Bing
• GIS: WMS, WFS
• GeoRSS
• KML
• GPX
Other Technology
• Synchronisation–Offline usage
• Internationalisation–Even if Google doesn’t support the
language
Other Technology
• Messaging–SMS / Email / Twitter
• Android (XForms)
• Assisted OCR (XForms)
• Spreadsheet Importer
• Charting: SVG
Software Development Cycle
Emergency• We have to build a system in 5 minutes!
Incident Reporting System
Data:• Location• Date• Reporter• Details
Screens:• Report Incident• View Incidents• Update Incident
Define Data
models/inc.py
table = db.define_table("inc_incident",
location_id,
Field("date", "date"),
person_id,
comments
)
Forms for CRUD
controllers/inc.py
def incident():
return shn_rest_controller("inc",
"incident")
We’re already working!
http://127.0.0.1:8000/eden/inc/incident
Interested?Join the Global Community:
Eden.SahanaFoundation.org• Mailing List, IRC Chat
• Partners:
Healthscapes.org
HumanityRoad.org