Table descriptions

org_main - Store details of the organization which is mainly used in the organization registry

  • the organization can be a sub organization of another organization.
  • The hierarchy can be of any depth and the parent_id field is used for that.
  • opt_org_type is a customizable field that gives the type of organization (e.g. Government,NGO)

Relationships

org_users - links the organization to the system users in the user table sector - links the organizations to the services it provides (e.g. Health , Rehabilitation services)

API

in "mod/or/api.inc"

shn_or_organization_list($incidents=null,$sectors=null,$types=null,$extra_opts=null)

This function returns a list of organizations in the database. You can filter by the incident,sector and organization type.

shn_or_organization_name($org_id_arr)

This function return a list of organization names when you input the corresponding Ids.

shn_or_service_list()

This function returns all the organization services available. Will be improved to filter by location , organization , type and incident.

shn_or_type_list()

This function returns all the organization types available. Will be improved to filter by location , organization , service and incident.

in "mod/or/lib_or.inc"

shn_or_org_list($incidents=null,$rootsonly=false)

This is a deprecated function which returns all the organizations in the database. Use shn_or_organization_list() instead.


Navigation
QR Code
QR Code sql:organization (generated for current page)