forked from MapComplete/MapComplete
164 lines
4.3 KiB
JSON
164 lines
4.3 KiB
JSON
{
|
|
"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"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|