Vocabulary Reference
Contents
Vocabulary Reference#
Complete reference for all standard vocabularies in OpenSPP V2.
Quick Reference#
Vocabulary |
Namespace |
Codes |
Hierarchical |
Domain |
|---|---|---|---|---|
|
4 |
No |
Core |
|
|
15 |
No |
Core |
|
|
6 |
No |
Core |
|
|
4 |
No |
Core |
|
Group Type |
|
2 |
No |
Core |
Housing Type (UN Rev.3) |
|
12 |
Yes |
Core |
|
249 |
No |
Geographic |
|
|
180+ |
No |
Geographic |
|
|
170+ |
No |
Geographic |
|
|
400+ |
Yes |
Disability |
|
|
300+ |
Yes |
Disability |
|
|
17,000+ |
Yes |
Health |
|
|
400+ |
Yes |
Labor |
|
Economic Activity Status |
|
6 |
No |
Labor |
|
9 |
Yes |
Education |
|
Religion |
|
10+ |
No |
Core |
Ethnocultural Status |
|
varies |
No |
Core |
|
1,000+ |
Yes |
Agriculture |
Core Vocabularies#
ISO 5218: Gender#
Standardized codes for representing biological sex.
Namespace: urn:iso:std:iso:5218
Reference: ISO 5218:2004
System: Yes (read-only)
Hierarchical: No
Codes:
Code |
URI |
Display |
Definition |
|---|---|---|---|
0 |
|
Not Known |
Sex is not known |
1 |
|
Male |
Male sex |
2 |
|
Female |
Female sex |
9 |
|
Not Applicable |
Not applicable or not stated |
Use cases:
Individual registration
Demographic data collection
Beneficiary targeting (gender-specific programs)
Eligibility criteria
CEL expressions:
# Check if female
in_group(me.gender, "feminine_gender")
# Explicit code check
me.gender == code("urn:iso:std:iso:5218#2")
Relationship Types#
Household and family relationship classifications.
Namespace: urn:openspp:vocab:relationship
Reference: OpenSPP-specific (no international standard)
System: Yes
Hierarchical: No
Individual-to-Individual Relationships:
Code |
URI |
Display |
Definition |
|---|---|---|---|
head |
|
Head of Household |
Primary household decision-maker |
spouse |
|
Spouse/Partner |
Married or domestic partner |
child |
|
Child |
Son or daughter (biological/adopted/step) |
child_in_law |
|
Son/Daughter-in-law |
Child's spouse |
grandchild |
|
Grandchild |
Grandchild |
parent |
|
Parent |
Father or mother |
parent_in_law |
|
Parent-in-law |
Spouse's parent |
grandparent |
|
Grandparent |
Grandparent |
sibling |
|
Sibling |
Brother or sister |
other_relative |
|
Other Relative |
Related but not in above categories |
non_relative |
|
Non-Relative |
Unrelated household member |
Group-to-Group Relationships:
Code |
URI |
Display |
Definition |
|---|---|---|---|
parent_organization |
|
Parent Organization |
Parent organization in hierarchy |
subsidiary |
|
Subsidiary |
Child organization |
partner_organization |
|
Partner Organization |
Partner organization |
affiliated_with |
|
Affiliated With |
Affiliated organization |
Use cases:
Household member relationships
Household composition analysis
Dependency ratio calculations
Head of household identification
Organizational hierarchies
CEL expressions:
# Check if head of household
in_group(m.relationship, "head_of_household")
# Count children
members.filter(m, m.relationship.code == "child").size()
Marital Status#
UN Population Census standard marital status codes.
Namespace: urn:un:unsd:pop-census:marital-status
Reference: UN Census Recommendations
System: Yes
Hierarchical: No
Codes:
Code |
URI |
Display |
Definition |
|---|---|---|---|
S |
|
Never Married |
Persons who have never entered into a marriage |
M |
|
Married |
Currently married |
W |
|
Widowed |
Spouse deceased, not remarried |
D |
|
Divorced |
Legally divorced |
L |
|
Separated |
Married but living apart |
C |
|
Consensual Union |
Living together as partners (cohabiting) |
Use cases:
Demographic data
Widows/widowers programs
Family targeting criteria
Household composition
CEL expressions:
# Widowed individuals
me.marital_status.code == "W"
# Married or civil union
me.marital_status.code in ["M", "C"]
ID Types#
Standard identification document classifications.
Namespace: urn:openspp:vocab:id-type
Reference: OpenSPP-specific
System: Yes
Hierarchical: No
Codes:
Code |
URI |
Display |
|---|---|---|
national_id |
|
National ID |
passport |
|
Passport |
tax_id |
|
Tax ID |
birth_certificate |
|
Birth Certificate |
Note
Deployments can extend this vocabulary with additional ID types (e.g., driver's license, voter ID, social security) using custom vocabularies or local extensions.
Use cases:
Identity verification
Document tracking
Deduplication
KYC compliance
Geographic Vocabularies#
ISO 3166: Countries#
ISO standard country codes.
Namespace: urn:iso:std:iso:3166-1
Reference: ISO 3166-1
System: Yes
Hierarchical: No
Total Codes: 249
Sample Codes:
Alpha-2 |
Alpha-3 |
Numeric |
URI |
Country Name |
|---|---|---|---|---|
PH |
PHL |
608 |
|
Philippines |
KE |
KEN |
404 |
|
Kenya |
US |
USA |
840 |
|
United States |
GB |
GBR |
826 |
|
United Kingdom |
IN |
IND |
356 |
|
India |
BR |
BRA |
076 |
|
Brazil |
ZA |
ZAF |
710 |
|
South Africa |
AU |
AUS |
036 |
|
Australia |
Use cases:
Address data
Nationality tracking
Country of origin
Geographic reporting
ISO 639: Languages#
ISO standard language codes.
Namespace: urn:iso:std:iso:639
Reference: ISO 639
System: Yes
Hierarchical: No
Total Codes: 180+
Sample Codes:
Code |
URI |
Language |
|---|---|---|
en |
|
English |
es |
|
Spanish |
fr |
|
French |
ar |
|
Arabic |
zh |
|
Chinese |
hi |
|
Hindi |
pt |
|
Portuguese |
ru |
|
Russian |
ja |
|
Japanese |
tl |
|
Tagalog |
sw |
|
Swahili |
Use cases:
Preferred language
Multilingual forms
Translation requirements
Communication preferences
ISO 4217: Currencies#
ISO standard currency codes.
Namespace: urn:iso:std:iso:4217
Reference: ISO 4217
System: Yes
Hierarchical: No
Total Codes: 170+
Sample Codes:
Code |
URI |
Currency |
Country/Region |
|---|---|---|---|
USD |
|
US Dollar |
United States |
EUR |
|
Euro |
European Union |
PHP |
|
Philippine Peso |
Philippines |
KES |
|
Kenyan Shilling |
Kenya |
GBP |
|
Pound Sterling |
United Kingdom |
INR |
|
Indian Rupee |
India |
BRL |
|
Brazilian Real |
Brazil |
ZAR |
|
South African Rand |
South Africa |
Use cases:
Entitlement amounts
Payment programs
Financial tracking
Multi-currency deployments
Disability & Health#
WHO ICF: Body Functions#
WHO International Classification of Functioning - Body Functions.
Namespace: urn:who:icf:b
Reference: WHO ICF Browser
System: Yes
Hierarchical: Yes (4 levels)
Total Codes: 400+
Sample Hierarchy:
b1 - Mental functions
├── b110 - Consciousness functions
├── b114 - Orientation functions
├── b117 - Intellectual functions
└── b122 - Global psychosocial functions
b2 - Sensory functions and pain
├── b210 - Seeing functions
│ ├── b2100 - Visual acuity
│ ├── b2101 - Visual field
│ └── b2102 - Quality of vision
├── b230 - Hearing functions
│ ├── b2300 - Sound detection
│ └── b2301 - Sound discrimination
└── b280 - Sensation of pain
b7 - Neuromusculoskeletal and movement-related functions
├── b710 - Mobility of joint functions
├── b730 - Muscle power functions
└── b740 - Muscle endurance functions
Use cases:
Disability classification
Functional assessment
Targeting persons with disabilities
Service needs identification
CEL expressions:
# Check for sensory disability
me.disability_codes.exists(d, d.code.startsWith("b2"))
# Specific function impairment
in_group(me.disability_primary, "seeing_functions")
WHO ICF: Activities & Participation#
WHO ICF - Activities and Participation component.
Namespace: urn:who:icf:d
Reference: WHO ICF
System: Yes
Hierarchical: Yes
Total Codes: 300+
Sample Codes:
d4 - Mobility
├── d450 - Walking
├── d455 - Moving around
└── d465 - Moving around using equipment
d5 - Self-care
├── d510 - Washing oneself
├── d520 - Caring for body parts
├── d530 - Toileting
├── d540 - Dressing
└── d550 - Eating
d6 - Domestic life
├── d620 - Acquisition of goods and services
├── d630 - Preparing meals
└── d640 - Doing housework
Use cases:
Activity limitations assessment
Participation restrictions
Needs-based targeting
Support service planning
WHO ICD-11: Health Conditions#
WHO International Classification of Diseases, 11th Revision.
Namespace: urn:who:icd-11
Reference: ICD-11 Browser
System: Yes
Hierarchical: Yes
Total Codes: 17,000+
Sample Codes:
Code |
URI |
Display |
Category |
|---|---|---|---|
9B71.0 |
|
Type 1 diabetes mellitus |
Endocrine |
BA00 |
|
Essential hypertension |
Cardiovascular |
6A70 |
|
HIV disease |
Infectious |
8B20 |
|
Tuberculosis |
Infectious |
2A00 |
|
Malaria |
Infectious |
Use cases:
Health condition tracking
Medical eligibility criteria
Disease surveillance
Health program targeting
Labor & Education#
ILO ISCO-08: Occupations#
International Labour Organization - International Standard Classification of Occupations.
Namespace: urn:ilo:isco-08
Reference: ILO ISCO-08
System: Yes
Hierarchical: Yes (4 levels)
Total Codes: 400+
Hierarchy Structure:
1-digit: Major group (10 groups)
2-digit: Sub-major group (~40 groups)
3-digit: Minor group (~130 groups)
4-digit: Unit group (~400 groups)
Sample Codes:
Code |
Level |
URI |
Display |
|---|---|---|---|
1 |
Major |
|
Managers |
11 |
Sub-major |
|
Chief executives, senior officials and legislators |
111 |
Minor |
|
Legislators and senior officials |
1111 |
Unit |
|
Legislators |
5 |
Major |
|
Service and sales workers |
51 |
Sub-major |
|
Personal service workers |
511 |
Minor |
|
Travel attendants, conductors and guides |
5111 |
Unit |
|
Travel attendants and travel stewards |
Use cases:
Employment tracking
Labor market programs
Skills assessment
Occupational hazard identification
UNESCO ISCED 2011: Education#
UNESCO International Standard Classification of Education.
Namespace: urn:unesco:isced:2011
Reference: UNESCO ISCED
System: Yes
Hierarchical: Yes (levels with sub-categories)
Total Codes: 9 main levels
Codes:
Code |
URI |
Display |
Description |
|---|---|---|---|
0 |
|
Early childhood education |
Less than primary |
1 |
|
Primary education |
Basic literacy/numeracy |
2 |
|
Lower secondary |
Foundation for lifelong learning |
3 |
|
Upper secondary |
More specialized education |
4 |
|
Post-secondary non-tertiary |
Bridge to tertiary |
5 |
|
Short-cycle tertiary |
Practical/technical orientation |
6 |
|
Bachelor's or equivalent |
First tertiary degree |
7 |
|
Master's or equivalent |
Advanced specialization |
8 |
|
Doctoral or equivalent |
Research qualification |
Use cases:
Education level tracking
Scholarship programs
Education targeting
Skills assessment
Agriculture (Optional)#
FAO AGROVOC: Crops#
FAO Agricultural Thesaurus - crop and livestock terms.
Namespace: urn:fao:agrovoc
Reference: FAO AGROVOC
System: Yes
Hierarchical: Yes
Total Codes: 1,000+
Availability: Requires spp_registry_farmer module
Sample Codes:
Code |
URI |
Display |
Category |
|---|---|---|---|
c_6599 |
|
Rice |
Cereal |
c_12332 |
|
Maize (Corn) |
Cereal |
c_8373 |
|
Wheat |
Cereal |
c_4849 |
|
Millet |
Cereal |
c_10999 |
|
Cassava |
Root/tuber |
c_6214 |
|
Potato |
Root/tuber |
c_1439 |
|
Coffee |
Cash crop |
c_1872 |
|
Cotton |
Cash crop |
Use cases:
Farmer registries
Agricultural programs
Crop tracking
Food security monitoring
Concept Groups#
Semantic groupings for business logic abstraction.
Built-in Groups#
Group Name |
Description |
Codes Included |
|---|---|---|
|
Codes representing feminine gender |
ISO 5218: Female (2) |
|
Codes representing masculine gender |
ISO 5218: Male (1) |
|
Head of household relationships |
Relationship: head |
|
Pregnancy statuses for maternal benefits |
(custom per deployment) |
Usage in CEL#
# Check semantic group membership
in_group(me.gender, "feminine_gender")
# Semantic helper functions
is_female(me.gender)
is_male(me.gender)
is_head(member.relationship)
is_pregnant(me.pregnancy_status)
API Usage#
Requesting with URIs#
POST /api/v2/individuals:
{
"gender": "urn:iso:std:iso:5218#2",
"marital_status": "urn:un:unsd:pop-census:marital-status#M",
"country": "urn:iso:std:iso:3166-1#PH"
}
Response Format#
GET /api/v2/individuals/{id}:
{
"gender": {
"uri": "urn:iso:std:iso:5218#2",
"code": "2",
"display": "Female",
"namespace": "urn:iso:std:iso:5218"
},
"marital_status": {
"uri": "urn:un:unsd:pop-census:marital-status#M",
"code": "M",
"display": "Married"
}
}
Filtering by Code#
GET /api/v2/individuals?gender=urn:iso:std:iso:5218#2
Returns all individuals with female gender code.
Extending Vocabularies#
For information on creating custom vocabularies or local extensions, see:
Custom Vocabularies - Creating custom vocabularies
Vocabulary Profiles - Configuring deployment profiles
openspp.org