forked from MapComplete/MapComplete
Themes(wheelchair): add questions on the presence of grab rails in toilets and showers
This commit is contained in:
parent
14691cac45
commit
bab506d8f6
6 changed files with 355 additions and 1 deletions
164
assets/layers/grab_rail/grab_rail.json
Normal file
164
assets/layers/grab_rail/grab_rail.json
Normal file
|
@ -0,0 +1,164 @@
|
|||
{
|
||||
"id": "grab_rail",
|
||||
"description": {
|
||||
"en": "A grab rail is a support to help persons with reduced mobility or a motor disability. It helps them to transfer from their wheelchair onto the toilet, to stand in a shower, close a door, ... "
|
||||
},
|
||||
"source": "special:library",
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "has_grab_rail_lr",
|
||||
"question": {
|
||||
"en": "Is there a grab rail?",
|
||||
"nl": "Is er een handgreep of grijpbeugel?"
|
||||
},
|
||||
"#questionHint": "The questionhint should indicate how 'left' and 'right' are interpreted",
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"grab_rail:left=yes",
|
||||
"grab_rail:right=yes"
|
||||
]
|
||||
},
|
||||
"alsoShowIf": "grab_rails=both",
|
||||
"addExtraTags": [
|
||||
"grab_rails="
|
||||
],
|
||||
"then": {
|
||||
"en": "Grab rails on <b>both</b> sides",
|
||||
"nl": "Grijpbeugels aan beide zijdes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"grab_rail:left=yes",
|
||||
"grab_rail:right=no"
|
||||
]
|
||||
},
|
||||
"alsoShowIf": "grab_rail:left=yes",
|
||||
"addExtraTags": [
|
||||
"grab_rails="
|
||||
],
|
||||
"then": {
|
||||
"en": "Only grab rails on the <b>left</b> side",
|
||||
"nl": "Grijpbeugels enkel aan de <b>linkderzijde</b>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"grab_rail:left=no",
|
||||
"grab_rail:right=yes"
|
||||
]
|
||||
},
|
||||
"alsoShowIf": "grab_rail:right=yes",
|
||||
"addExtraTags": [
|
||||
"grab_rails="
|
||||
],
|
||||
"then": {
|
||||
"en": "Grab rails on the <b>right</b> side",
|
||||
"nl": "Grijpbeugels enkel aan de <b>rechterkant</b>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"grab_rail:left=no",
|
||||
"grab_rail:right=no"
|
||||
]
|
||||
},
|
||||
"alsoShowIf": "grab_rails=no",
|
||||
"addExtraTags": [
|
||||
"grab_rails="
|
||||
],
|
||||
"then": {
|
||||
"en": "<b>No grab rails</b> at all",
|
||||
"nl": "<b>Geen</b> grijpbeugels"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "has_grab_rail_behind",
|
||||
"question": {
|
||||
"en": "Does the toilet have a grab rail behind the toilet?",
|
||||
"nl": "Heeft deze toilet een grijpbeugel achter de toilet?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "grab_rail:behind=yes",
|
||||
"then": {
|
||||
"en": "Has a grab rail <b>behind</b> the toilet",
|
||||
"nl": "Heeft een grijpbeugel <b>achter</b> de toilet"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "grab_rail:behind=no",
|
||||
"then": {
|
||||
"en": "No grab rail behind the toilet",
|
||||
"nl": "Heeft <i>geen</i> grijpbeugel achter de toilet"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "is_foldable",
|
||||
"rewrite": {
|
||||
"sourceString": [
|
||||
"LOCATION",
|
||||
"{{TRANSL}}"
|
||||
],
|
||||
"into": [
|
||||
[
|
||||
"left",
|
||||
{
|
||||
"en": "left",
|
||||
"nl": "linker"
|
||||
}
|
||||
],
|
||||
[
|
||||
"right",
|
||||
{
|
||||
"en": "right",
|
||||
"nl": "rechter"
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"renderings": [
|
||||
{
|
||||
"id": "is_foldable_LOCATION",
|
||||
"labels": [
|
||||
"generic_questions"
|
||||
],
|
||||
"question": {
|
||||
"en": "Is the {{TRANSL}} grab rail foldable?",
|
||||
"nl": "Is de grijpbeugel aan de {{TRANSL}}kant opklapbaar?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "is_foldable:LOCATION=yes",
|
||||
"then": {
|
||||
"en": "The {{TRANSL}} grab rail is <b>foldable</b>",
|
||||
"nl": "De grijpbeugel aan de {{TRANSL}}kant is <b>opklapbaar</b>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "is_foldable:LOCATION=no",
|
||||
"then": {
|
||||
"en": "The {{TRANSL}} grab rail is not foldable",
|
||||
"nl": "De grijpbeugel aan de {{TRANSL}}kant is niet opklapbaar"
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"and": [
|
||||
"grab_rail:LOCATION=yes"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -255,6 +255,18 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "grab_rail.has_grab_rail_lr",
|
||||
"override": {
|
||||
"labels+": [
|
||||
"wheelchair"
|
||||
],
|
||||
"questionHint": {
|
||||
"en": "Left and right are interpreted as when <b>entering</b> the shower",
|
||||
"nl": "Links en rechts zijn zoals wanneer je <b>de douche binnenstapt</b>"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"filter": [
|
||||
|
|
|
@ -1412,6 +1412,44 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"builtin": "grab_rail.has_grab_rail_lr",
|
||||
"override": {
|
||||
"labels+": [
|
||||
"wheelchair"
|
||||
],
|
||||
"questionHint": {
|
||||
"en": "Left and right are interpreted as when <b>sitting</b> on the toilet",
|
||||
"nl": "Links en rechts zijn zoals wanneer je <b>zit</b> op de toilet"
|
||||
},
|
||||
"condition": "wheelchair=yes"
|
||||
},
|
||||
"prefix": "toilets:wheelchair"
|
||||
},
|
||||
{
|
||||
"builtin": "grab_rail.has_grab_rail_behind",
|
||||
"override": {
|
||||
"labels+": [
|
||||
"wheelchair"
|
||||
],
|
||||
"condition": "wheelchair=yes"
|
||||
},
|
||||
"prefix": "toilets:wheelchair"
|
||||
},
|
||||
{
|
||||
"builtin": "grab_rail.generic_questions",
|
||||
"override": {
|
||||
"labels+": [
|
||||
"wheelchair"
|
||||
],
|
||||
"condition": {
|
||||
"and+": [
|
||||
"wheelchair=yes"
|
||||
]
|
||||
}
|
||||
},
|
||||
"prefix": "toilets:wheelchair"
|
||||
},
|
||||
{
|
||||
"id": "wheelchair-door-width",
|
||||
"condition": {
|
||||
|
@ -1482,7 +1520,7 @@
|
|||
"amenity-prefixed"
|
||||
],
|
||||
"condition": {
|
||||
"and": [
|
||||
"and+": [
|
||||
"changing_table:adult=yes"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue