From 9e487c9b060afa7e0914454ee719d33035753cc8 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 12 Feb 2023 18:51:21 +0100 Subject: [PATCH] Include 'clinics' in hospital theme; add question to distinguish them, fix #1311 --- assets/layers/hospital/hospital.json | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/assets/layers/hospital/hospital.json b/assets/layers/hospital/hospital.json index 144490447b..d488fccfd0 100644 --- a/assets/layers/hospital/hospital.json +++ b/assets/layers/hospital/hospital.json @@ -22,7 +22,7 @@ }, "minzoom": 12, "source": { - "osmTags": "amenity=hospital" + "osmTags": {"or": ["amenity=hospital","amenity=clinic"]} }, "tagRenderings": [ { @@ -43,6 +43,26 @@ "key": "name" } }, + { + "id": "inpatient", + "question": { + "en": "Does this facility admit inpatients?
An inpatient is a patient which stays for multiple days in the facility" + }, + "mappings": [ + { + "if": "amenity=clinic", + "then": { + "en": "This is a clinic - patients can not stay overnight" + } + }, + { + "if": "amenity=hospital", + "then": { + "en": "This is a hospital - patients can be admitted here for multiple days" + } + } + ] + }, "phone", "email", "website" @@ -63,4 +83,4 @@ "width": 1 } ] -} \ No newline at end of file +}