| 8 | |
| 9 | == Sahana XML Representation == |
| 10 | Here is a simplified blank XML document that highlights the key elements providing in the native XML within SahanaPy. |
| 11 | {{{ |
| 12 | <sahanapy> |
| 13 | <resource name="" uuid="" created_on="" modified_on="" url=""> |
| 14 | <data field=""></data> |
| 15 | <reference field="" resource="" uuid=""></reference> |
| 16 | </sahanapy> |
| 17 | }}} |
| 18 | * {{{<resource>}}} - identifies the type of resource where name="hms_hospital" |
| 19 | * {{{<data>}}} - represents a data field from the model e.g. if a resource is hms_hospital, then the data fields provided will be defined in {{{models/hms.py}}} - look for the resource definition for hospital |
| 20 | * {{{<reference>}}} - contains information about things such as location e.g. {{{field="location_id" resource="gis_location"}}} |