From 8189503c76bfa6e7c85d39ec8c7bc048a28a4422 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 13 Sep 2017 14:05:55 -0400 Subject: [PATCH] Add generic healthcare preset --- data/presets.yaml | 8 ++++++++ data/presets/fields.json | 5 +++++ data/presets/fields/healthcare.json | 5 +++++ data/presets/presets.json | 30 ++++++++++++++++++++++++++++ data/presets/presets/healthcare.json | 30 ++++++++++++++++++++++++++++ data/taginfo.json | 3 +++ dist/locales/en.json | 7 +++++++ 7 files changed, 88 insertions(+) create mode 100644 data/presets/fields/healthcare.json create mode 100644 data/presets/presets/healthcare.json diff --git a/data/presets.yaml b/data/presets.yaml index 9aa79aa04..a515db569 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -587,6 +587,9 @@ en: label: Hashtags # hashtags field placeholder placeholder: '#example' + healthcare: + # healthcare=* + label: Type healthcare/speciality: # 'healthcare:speciality=*' label: Specialties @@ -2763,6 +2766,11 @@ en: # golf=water_hazard name: Water Hazard terms: '' + healthcare: + # healthcare=* + name: Healthcare Facility + # 'terms: clinic,doctor,disease,health,institution,sick,surgery,wellness' + terms: '' healthcare/blood_donation: # healthcare=blood_donation name: Blood Donor Center diff --git a/data/presets/fields.json b/data/presets/fields.json index 57a013fb7..a1e181419 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -808,6 +808,11 @@ "label": "Hashtags", "placeholder": "#example" }, + "healthcare": { + "key": "healthcare", + "type": "typeCombo", + "label": "Type" + }, "healthcare/speciality": { "key": "healthcare:speciality", "type": "semiCombo", diff --git a/data/presets/fields/healthcare.json b/data/presets/fields/healthcare.json new file mode 100644 index 000000000..0e71c85dd --- /dev/null +++ b/data/presets/fields/healthcare.json @@ -0,0 +1,5 @@ +{ + "key": "healthcare", + "type": "typeCombo", + "label": "Type" +} diff --git a/data/presets/presets.json b/data/presets/presets.json index a048f3a94..b9a84dd1e 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -6142,6 +6142,36 @@ }, "name": "Water Hazard" }, + "healthcare": { + "icon": "hospital", + "fields": [ + "name", + "healthcare", + "operator", + "healthcare/speciality", + "address", + "building_area", + "opening_hours" + ], + "geometry": [ + "point", + "area" + ], + "tags": { + "healthcare": "*" + }, + "terms": [ + "clinic", + "doctor", + "disease", + "health", + "institution", + "sick", + "surgery", + "wellness" + ], + "name": "Healthcare Facility" + }, "healthcare/blood_donation": { "icon": "blood-bank", "fields": [ diff --git a/data/presets/presets/healthcare.json b/data/presets/presets/healthcare.json new file mode 100644 index 000000000..6a6fa301c --- /dev/null +++ b/data/presets/presets/healthcare.json @@ -0,0 +1,30 @@ +{ + "icon": "hospital", + "fields": [ + "name", + "healthcare", + "operator", + "healthcare/speciality", + "address", + "building_area", + "opening_hours" + ], + "geometry": [ + "point", + "area" + ], + "tags": { + "healthcare": "*" + }, + "terms": [ + "clinic", + "doctor", + "disease", + "health", + "institution", + "sick", + "surgery", + "wellness" + ], + "name": "Healthcare Facility" +} diff --git a/data/taginfo.json b/data/taginfo.json index b5aba1a9d..5ffde27bc 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -1201,6 +1201,9 @@ "key": "golf", "value": "water_hazard" }, + { + "key": "healthcare" + }, { "key": "healthcare", "value": "blood_donation" diff --git a/dist/locales/en.json b/dist/locales/en.json index 2feb475e3..06c9609b0 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1582,6 +1582,9 @@ "label": "Hashtags", "placeholder": "#example" }, + "healthcare": { + "label": "Type" + }, "healthcare/speciality": { "label": "Specialties" }, @@ -3510,6 +3513,10 @@ "name": "Water Hazard", "terms": "" }, + "healthcare": { + "name": "Healthcare Facility", + "terms": "clinic,doctor,disease,health,institution,sick,surgery,wellness" + }, "healthcare/blood_donation": { "name": "Blood Donor Center", "terms": "blood bank,blood donation,blood transfusion,apheresis,plasmapheresis,plateletpheresis,stem cell donation"