Skip to content

Commit d5c7645

Browse files
committed
Improving V schema for Socio-eco index
Extensive changes
1 parent 73414af commit d5c7645

File tree

2 files changed

+109
-29
lines changed

2 files changed

+109
-29
lines changed

_static/RDL_MDE.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ <h5 class="modal-title" id="githubConfigModalLabel">GitHub Configuration</h5>
18581858
const isDirectFormProperty = !name.includes('.') || name.split('.').length <= 2;
18591859
const isSpatialField = name === 'spatial';
18601860
const isGeometryField = name.endsWith('.geometry');
1861-
const isClassificationField = name.endsWith('.se_category') || name === 'se_category';
1861+
const isClassificationField = name.endsWith('.se_indicator') || name === 'se_indicator';
18621862

18631863
// Always show title for spatial field, geometry sub-field, classification fields, or for nested objects
18641864
if (!isDirectFormProperty || isSpatialField || isGeometryField || isClassificationField) {
@@ -4352,11 +4352,11 @@ <h5 class="modal-title" id="githubConfigModalLabel">GitHub Configuration</h5>
43524352
(vulnerability.functions?.fragility) ||
43534353
(vulnerability.functions?.damage_to_loss) ||
43544354
(vulnerability.functions?.engineering_demand) ||
4355-
(vulnerability.se_category);
4355+
(vulnerability.se_indicator);
43564356

43574357
if (!hasVulnerabilityApproach) {
43584358
vulnerabilityValid = false;
4359-
vulnerabilityError = 'Vulnerability must specify at least one approach: vulnerability function, fragility function, damage-to-loss function, engineering demand function, or socio-economic index category';
4359+
vulnerabilityError = 'Vulnerability must specify at least one approach: vulnerability function, fragility function, damage-to-loss function, engineering demand function, or socio-economic vulnerability indicator';
43604360
}
43614361
}
43624362
}

_static/rdls_schema_v3.json

Lines changed: 106 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,54 +1302,133 @@
13021302
}
13031303
},
13041304
"SocioEconomicIndex": {
1305-
"title": "Socio-economic index",
1305+
"title": "Socio-economic Indicator",
13061306
"type": "object",
1307-
"description": "The socio-economic category vulnerable to the hazard.",
1308-
"required": ["identifier"],
1307+
"description": "A socio-economic indicator or index used to characterize vulnerability.",
1308+
"required": [
1309+
"indicator_name",
1310+
"indicator_code",
1311+
"description",
1312+
"reference_year"
1313+
],
1314+
"examples": [
1315+
{
1316+
"scheme": "GED4ALL-socio-economic",
1317+
"indicator_name": "Elderly population",
1318+
"indicator_code": "AGE_65_PLUS",
1319+
"description": "Population aged 65 years and older, which is more vulnerable to heat-related health impacts",
1320+
"reference_year": "2020"
1321+
},
1322+
{
1323+
"scheme": "CDC-SVI",
1324+
"indicator_name": "Overall Social Vulnerability Index",
1325+
"indicator_code": "SVI_OVERALL",
1326+
"description": "Overall social vulnerability score combining socioeconomic status, household composition, minority status, and housing/transportation factors",
1327+
"threshold": "High vulnerability (SVI > 0.75)",
1328+
"reference_year": "2020",
1329+
"uri": "https://www.atsdr.cdc.gov/placeandhealth/svi/index.html"
1330+
},
1331+
{
1332+
"scheme": "custom",
1333+
"indicator_name": "Poverty headcount ratio",
1334+
"indicator_code": "POV_HEADCOUNT_NATL",
1335+
"description": "Households living below the national poverty line with limited resources for disaster preparedness and recovery",
1336+
"threshold": "Below poverty line",
1337+
"reference_year": "2021",
1338+
"uri": "https://data.worldbank.org/indicator/SI.POV.DDAY"
1339+
}
1340+
],
13091341
"properties": {
13101342
"scheme": {
1311-
"title": "Scheme",
1312-
"description": "The scheme or codelist from which the classification code is taken, using the open [classification_scheme](https://docs.riskdatalibrary.org/en/latest/reference/codelists/#classification-scheme) codelist.",
1343+
"title": "Indicator scheme",
1344+
"description": "The classification scheme or framework from which the indicator is taken.",
13131345
"type": "string",
1314-
"codelist": "classification_scheme.csv",
1315-
"openCodelist": false,
1316-
"enum": [
1346+
"codelist": "socioeconomic_scheme.csv",
1347+
"openCodelist": true,
1348+
"suggestions": [
13171349
"GED4ALL-socio-economic",
13181350
"MOVER-social-vulnerability-categories",
1319-
"GLIDE",
1320-
"EMDAT",
1321-
"USGS_EHP"
1351+
"CDC-SVI",
1352+
"INFORM-risk-index",
1353+
"custom"
1354+
],
1355+
"examples": [
1356+
"GED4ALL-socio-economic",
1357+
"CDC-SVI",
1358+
"INFORM-risk-index"
13221359
]
13231360
},
1324-
"identifier": {
1325-
"title": "Classification identifier",
1326-
"description": "The classification code taken from the scheme.",
1361+
"indicator_name": {
1362+
"title": "Indicator name",
1363+
"description": "The name of the specific indicator or index used to characterize vulnerability.",
13271364
"type": "string",
13281365
"minLength": 1,
13291366
"examples": [
1330-
"2024-0123-PHL",
1331-
"FL-20240315-PHL",
1332-
"EQ-M7.2-2024-0401",
1333-
"TC-HAIYAN-2013"
1367+
"Poverty headcount ratio",
1368+
"Social Vulnerability Index",
1369+
"Population density",
1370+
"Access to healthcare facilities",
1371+
"Elderly population percentage",
1372+
"Educational attainment"
1373+
]
1374+
},
1375+
"indicator_code": {
1376+
"title": "Indicator code",
1377+
"description": "The code or identifier for the indicator within the scheme.",
1378+
"type": "string",
1379+
"minLength": 1,
1380+
"examples": [
1381+
"AGE_65_PLUS",
1382+
"POV_HEADCOUNT",
1383+
"SVI_OVERALL",
1384+
"POP_DENSITY",
1385+
"HEALTH_ACCESS"
13341386
]
13351387
},
13361388
"description": {
13371389
"title": "Description",
1338-
"description": "A textual description or title for the classification code.",
1390+
"description": "Description of what this indicator measures and how it relates to vulnerability to the hazard.",
13391391
"type": "string",
13401392
"minLength": 1,
13411393
"examples": [
1342-
"Severe flooding in Central Luzon, Philippines, March 2024",
1343-
"Magnitude 7.2 earthquake offshore Mindanao, April 2024",
1344-
"Super Typhoon Haiyan (Yolanda), November 2013",
1345-
"Extended drought affecting agricultural regions"
1394+
"Population aged 65 years and older, which is more vulnerable to heat-related health impacts",
1395+
"Households living below the poverty line with limited resources for disaster preparedness and recovery",
1396+
"Overall social vulnerability score combining socioeconomic status, household composition, minority status, and housing/transportation factors"
1397+
]
1398+
},
1399+
"threshold": {
1400+
"title": "Threshold or value",
1401+
"description": "Specific threshold or value range used to define vulnerability level (if applicable).",
1402+
"type": "string",
1403+
"examples": [
1404+
"Below poverty line",
1405+
">65 years old",
1406+
"High vulnerability (SVI > 0.75)",
1407+
"Population density > 1000 persons/km²"
1408+
]
1409+
},
1410+
"reference_year": {
1411+
"title": "Reference year",
1412+
"description": "The year the indicator data applies to.",
1413+
"type": "integer",
1414+
"minimum": 1900,
1415+
"maximum": 2100,
1416+
"examples": [
1417+
2020,
1418+
2021,
1419+
2023
13461420
]
13471421
},
13481422
"uri": {
13491423
"title": "URI",
1350-
"description": "A URI to uniquely identify the classification code.",
1424+
"description": "A URI to the indicator definition or data source.",
13511425
"type": "string",
1352-
"format": "uri"
1426+
"format": "iri",
1427+
"examples": [
1428+
"https://www.atsdr.cdc.gov/placeandhealth/svi/index.html",
1429+
"https://data.worldbank.org/indicator/SI.POV.DDAY",
1430+
"https://drmkc.jrc.ec.europa.eu/inform-index"
1431+
]
13531432
},
13541433
"analysis_details": {
13551434
"title": "Analysis details",
@@ -1360,7 +1439,8 @@
13601439
"Socio-economic vulnerability index derived from census data and household surveys conducted in 2023."
13611440
]
13621441
}
1363-
}
1442+
},
1443+
"minProperties": 1
13641444
},
13651445
"exposure_category": {
13661446
"type": "string",

0 commit comments

Comments
 (0)