Standard Vocabularies
Contents
Standard Vocabularies#
This guide is for implementers who need to understand which standard vocabularies are available in OpenSPP and what codes they contain.
Overview#
OpenSPP V2 includes standard vocabularies based on international standards. These are system vocabularies (read-only) that ensure data consistency and interoperability.
Why standards? Using internationally recognized vocabularies means:
Your data can be shared with other systems (WHO, ILO, government agencies)
Reports are comparable across countries
No need to reinvent classification systems
Automatic compliance with international requirements
Core Vocabularies#
ISO 5218: Gender#
Internationally standardized codes for representing biological sex.
Code |
Display |
URI |
|---|---|---|
0 |
Not Known |
|
1 |
Male |
|
2 |
Female |
|
9 |
Not Applicable |
|
Namespace: urn:iso:std:iso:5218
Reference: ISO 5218 Standard
Use in: Individual registration, household members, beneficiary data
Note: Some deployments extend this with additional gender identity codes (non-binary, other, prefer not to say) using local vocabularies.
Relationship Types#
Household and family relationship classifications.
Individual-to-Individual Relationships:
Code |
Display |
URI |
|---|---|---|
head |
Head of Household |
|
spouse |
Spouse/Partner |
|
child |
Child |
|
child_in_law |
Son/Daughter-in-law |
|
grandchild |
Grandchild |
|
parent |
Parent |
|
parent_in_law |
Parent-in-law |
|
grandparent |
Grandparent |
|
sibling |
Sibling |
|
other_relative |
Other Relative |
|
non_relative |
Non-Relative |
|
Group-to-Group Relationships:
Code |
Display |
URI |
|---|---|---|
parent_organization |
Parent Organization |
|
subsidiary |
Subsidiary |
|
partner_organization |
Partner Organization |
|
affiliated_with |
Affiliated With |
|
Namespace: urn:openspp:vocab:relationship
Reference: OpenSPP-specific (no international standard)
Use in: Household member relationships, beneficiary household composition, organizational relationships
Marital Status#
Based on UN Population Census Principles.
Code |
Display |
URI |
|---|---|---|
S |
Never Married |
|
M |
Married |
|
W |
Widowed |
|
D |
Divorced |
|
L |
Separated |
|
C |
Consensual Union |
|
Namespace: urn:un:unsd:pop-census:marital-status
Reference: UN Census Recommendations
Use in: Individual demographics, eligibility criteria (widows programs, etc.)
ID Types#
Standard identification document classifications.
Code |
Display |
URI |
|---|---|---|
national_id |
National ID |
|
passport |
Passport |
|
tax_id |
Tax ID |
|
birth_certificate |
Birth Certificate |
|
Namespace: urn:openspp:vocab:id-type
Reference: OpenSPP-specific
Use in: ID document tracking, identity verification, deduplication
Note
Deployments can extend this vocabulary with additional ID types (e.g., driver's license, voter ID, social security card) using custom vocabularies or local extensions. See Custom Vocabularies for details.
Geographic Vocabularies#
ISO 3166: Countries#
ISO standard country codes.
Sample codes:
Alpha-2 |
Alpha-3 |
Numeric |
Country Name |
URI |
|---|---|---|---|---|
PH |
PHL |
608 |
Philippines |
|
KE |
KEN |
404 |
Kenya |
|
US |
USA |
840 |
United States |
|
GB |
GBR |
826 |
United Kingdom |
|
Namespace: urn:iso:std:iso:3166-1
Reference: ISO 3166
Use in: Address data, nationality, country of origin
Total codes: 249 countries and territories
ISO 639: Languages#
ISO standard language codes.
Sample codes:
Code |
Language |
URI |
|---|---|---|
en |
English |
|
es |
Spanish |
|
fr |
French |
|
ar |
Arabic |
|
zh |
Chinese |
|
tl |
Tagalog |
|
sw |
Swahili |
|
Namespace: urn:iso:std:iso:639
Reference: ISO 639
Use in: Preferred language, multilingual forms, translation requirements
Total codes: 180+ major languages
ISO 4217: Currencies#
ISO standard currency codes.
Sample codes:
Code |
Currency |
Country/Region |
URI |
|---|---|---|---|
USD |
US Dollar |
United States |
|
EUR |
Euro |
European Union |
|
PHP |
Philippine Peso |
Philippines |
|
KES |
Kenyan Shilling |
Kenya |
|
GBP |
Pound Sterling |
United Kingdom |
|
Namespace: urn:iso:std:iso:4217
Reference: ISO 4217
Use in: Entitlement amounts, payment programs, financial tracking
Total codes: 170+ currencies
Disability & Health#
Washington Group: Disability Domain#
Washington Group Short Set disability functional domains.
Code |
Display |
URI |
|---|---|---|
seeing |
Seeing |
|
hearing |
Hearing |
|
walking |
Walking |
|
remembering |
Remembering |
|
selfcare |
Self-care |
|
communicating |
Communicating |
|
Namespace: urn:wg:disability:domain
Reference: Washington Group
Use in: Disability screening, functional assessment
Washington Group: Disability Severity#
Severity levels for Washington Group assessments.
Code |
Display |
URI |
|---|---|---|
no_difficulty |
No difficulty |
|
some_difficulty |
Some difficulty |
|
a_lot_of_difficulty |
A lot of difficulty |
|
cannot_do_at_all |
Cannot do at all |
|
Namespace: urn:wg:disability:severity
Use in: Disability severity assessment, targeting criteria
Disability Status#
General disability status classification.
Namespace: urn:openspp:vocab:disability-status
Use in: Quick disability identification
Labor & Education#
ILO ISCO-08: Occupations#
International Labour Organization - International Standard Classification of Occupations.
Sample codes (hierarchical):
Code |
Display |
Level |
URI |
|---|---|---|---|
1 |
Managers |
Major group |
|
11 |
Chief executives, senior officials |
Sub-major |
|
111 |
Legislators and senior officials |
Minor |
|
1111 |
Legislators |
Unit |
|
5 |
Service and sales workers |
Major |
|
51 |
Personal service workers |
Sub-major |
|
511 |
Travel attendants, conductors |
Minor |
|
5111 |
Travel attendants |
Unit |
|
Namespace: urn:ilo:isco-08
Reference: ILO ISCO-08
Use in: Employment tracking, labor market programs, skills assessment
Total codes: 400+ occupation codes (4-level hierarchy)
UNESCO ISCED 2011: Education Levels#
UNESCO International Standard Classification of Education.
Code |
Display |
URI |
|---|---|---|
0 |
Early childhood education |
|
1 |
Primary education |
|
2 |
Lower secondary education |
|
3 |
Upper secondary education |
|
4 |
Post-secondary non-tertiary |
|
5 |
Short-cycle tertiary |
|
6 |
Bachelor's or equivalent |
|
7 |
Master's or equivalent |
|
8 |
Doctoral or equivalent |
|
Namespace: urn:unesco:isced:2011
Reference: UNESCO ISCED
Use in: Education level tracking, scholarship programs, education targeting
Total codes: 9 main levels + sub-levels
Agriculture (Optional Module)#
FAO AGROVOC: Crops#
FAO Agricultural Thesaurus (subset for common crops).
Sample codes:
Code |
Display |
URI |
|---|---|---|
c_6599 |
Rice |
|
c_12332 |
Maize (Corn) |
|
c_8373 |
Wheat |
|
c_4849 |
Millet |
|
c_10999 |
Cassava |
|
c_6214 |
Potato |
|
Namespace: urn:fao:agrovoc
Reference: FAO AGROVOC
Use in: Farmer registries, agricultural programs, crop tracking
Total codes: 1,000+ crop and livestock terms
Note: Available only when spp_registry_farmer module is installed
Additional System Vocabularies#
OpenSPP includes additional system vocabularies for specialized use cases:
Vocabulary |
Namespace |
Domain |
Description |
|---|---|---|---|
Group Type |
|
Core |
Types of groups (household, family) |
Group Membership Type |
|
Core |
Types of group memberships |
Housing Type (UN Rev.3) |
|
Core |
UN standard housing classification (hierarchical) |
Economic Activity Status |
|
Labor |
ILO employment status codes |
Religion |
|
Core |
UN census religious affiliation framework |
Ethnocultural Status |
|
Core |
Ethnicity and cultural identity |
These vocabularies are available in the system and can be browsed via Settings → Vocabularies → Manage Vocabularies.
Using Standard Vocabularies#
In Registration Forms#
Standard vocabularies populate dropdown fields automatically:
Example: Gender field on Individual form
Gender: [Select...]
↓ (shows codes from active deployment profile)
Male
Female
In CEL Expressions#
Use vocabulary codes in eligibility rules:
Example: Check if female
# Robust approach using concept groups
in_group(me.gender, "feminine_gender")
# OR explicit URI
me.gender == code("urn:iso:std:iso:5218#2")
See CEL expressions for more CEL vocabulary functions.
In API Data#
API V2 uses vocabulary URIs for interoperability:
Request:
{
"gender": "urn:iso:std:iso:5218#2",
"marital_status": "urn:un:unsd:pop-census:marital-status#M"
}
Response:
{
"gender": {
"uri": "urn:iso:std:iso:5218#2",
"code": "2",
"display": "Female"
}
}
Vocabulary Metadata#
Viewing Vocabulary Details#
Navigation: Settings → Vocabularies → Manage Vocabularies
Each vocabulary shows:
Field |
Description |
|---|---|
Name |
Human-readable name (e.g., "Gender") |
Namespace URI |
Unique identifier (e.g., |
Version |
Standard version (e.g., "2004") |
Domain |
Category: core, disability, labor, agriculture, etc. |
Is System |
Read-only (true for standards) |
Is Hierarchical |
Has parent-child codes (true for ICF, ISCO) |
Reference URL |
Link to official documentation |
Code Count |
Number of codes in vocabulary |
Checking Which Codes Are Active#
Navigation: Settings → Vocabularies → Vocabulary Selections
Shows which codes from each vocabulary are active in your deployment profile.
Are You Stuck?#
Need a code that's not in the standard vocabulary? Check if you can add it as a custom extension. See Custom Vocabularies → Local Extensions.
Too many codes showing in dropdown? Configure your deployment profile to activate only needed codes. See Vocabulary Profiles.
Can't find a vocabulary for your data? Some domains don't have international standards. Create a custom vocabulary (see Custom Vocabularies).
Vocabulary is in English but need other languages? OpenSPP vocabularies support translation. Go to Settings → Translations to add your language.
Codes are showing but values aren't being saved? Check field permissions - you may need Registry Officer role. Contact your administrator.
Next Steps#
To... |
See... |
|---|---|
Configure which codes appear in your deployment |
|
Add custom codes or vocabularies |
|
Use vocabularies in eligibility expressions |
|
View complete vocabulary reference |
Related:
Vocabulary Overview - Vocabulary system concepts
Vocabulary Profiles - Configure active codes
Custom Vocabularies - Create custom vocabularies
Vocabulary Reference - Complete vocabulary reference
openspp.org