Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CARE Facility: Difference between revisions

Template page
More languages
Content deleted Content added
Add locality field; district is now only set when genuinely resolved (via update-page on MediaWiki MCP Server)
Add Kerala CARE fields: facility UUID, local body, pincode, ownership, address (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
<noinclude>
<noinclude>
Infobox and semantic annotations for a health facility with a CARE deployment.
Infobox and semantic annotations for a health facility that uses CARE.


These pages are '''machine-maintained'''. They are generated and refreshed from the [https://github.com/ohcnetwork/deployments_registry deployments registry] and OpenStreetMap; facilities are not added by hand.
These pages are '''machine-maintained'''. They are generated and refreshed from upstream APIs; facilities are not added by hand.


== Sources ==
== Locality versus district ==


; Kerala
<code>locality</code> holds the registry's free-text place value (its <code>city</code> field). For keralacare records this is often an address fragment such as "Vazhithla P O" rather than a district, so it is stored as [[Property:Has locality|Has locality]] and is '''not''' treated as a district.
: <code>https://api.care.kerala.gov.in/api/v1/getallfacilities/</code> — the live Kerala CARE instance, 2,536 organisations, authoritative. Keyed by [[Property:Has CARE facility ID|Has CARE facility ID]] (a UUID).
; Other states (10BedICU)
: [https://github.com/ohcnetwork/deployments_registry deployments registry], keyed by [[Property:Has CARE ID|Has CARE ID]].


The Kerala export carries a full organisation hierarchy (ward → local body → block panchayat → district → state), so <code>district</code> and <code>local_body</code> are reliable for those records. The registry has no such hierarchy, so for 10BedICU records <code>locality</code> holds its free-text place value and <code>district</code> is filled only where it could be established.
<code>district</code> is set only when a real district could be established — from the registry directly (10bedicu), or by matching a known district name against the facility name, locality and postal address (keralacare). Where it cannot be established it is left blank and the page lands in [[:Category:Facilities with an unresolved district]], which is the queue for a future postal-code or HFR-based pass.

Page titles are the plain facility name; the registry ID is appended only to separate genuinely duplicated names.


== Known limitation: no maps yet ==
== Known limitation: no maps yet ==
Line 20: Line 21:
<pre>
<pre>
{{CARE Facility
{{CARE Facility
| care_facility_id = 5e0646d5-e1ef-4780-b687-763be0f71f1c
| care_id = keralacare-1124
| name = FHC Panjal
| name = FHC Noolpuzha
| program = keralacare
| program = keralacare
| facility_type = Family Health Centre
| facility_type = Family Health Centre
| locality = THRISSUR
| ownership = government
| district = Thrissur
| local_body = Noolpuzha Grama Panchayat
| state = Kerala
| district = Wayanad
| latitude = 10.71962549
| state = Kerala
| longitude = 76.31563961
| pincode = 673592
| address = NIRAPPAM, NEAR SULTAN BATHERY, WAYANAD.
| date_deployed = 2025-03-03
| care_status = active
| latitude =
| osm_id =
| longitude =
| wikidata =
| care_status = active
| last_synced = 2025-11-22
| last_synced = 2026-09-09
}}
}}
</pre>
</pre>
Line 42: Line 43:
| {{{facility_type|''unknown''}}}
| {{{facility_type|''unknown''}}}
|-
|-
! style="text-align:left;" | Locality
! style="text-align:left;" | Ownership
| {{{locality|''unknown''}}}
| {{{ownership|''unknown''}}}
{{#if:{{{local_body|}}}|{{!}}-
⚫
! style="text-align:left;" {{!}} Local body
{{!}} {{{local_body}}}}}{{#if:{{{locality|}}}|
{{!}}-
! style="text-align:left;" {{!}} Locality
{{!}} {{{locality}}}}}
|-
|-
! style="text-align:left;" | District
! style="text-align:left;" | District
Line 50: Line 57:
! style="text-align:left;" | State
! style="text-align:left;" | State
| {{{state|''unknown''}}}
| {{{state|''unknown''}}}
{{#if:{{{pincode|}}}|{{!}}-
! style="text-align:left;" {{!}} PIN code
{{!}} {{{pincode}}}}}
|-
|-
! style="text-align:left;" | Coordinates
! style="text-align:left;" | Coordinates
| {{#if:{{{latitude|}}}|[https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}}&zoom=16 {{{latitude}}}, {{{longitude}}}]|''unknown''}}
| {{#if:{{{latitude|}}}|[https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}}&zoom=16 {{{latitude}}}, {{{longitude}}}]|''not recorded''}}
|-
|-
! colspan="2" style="text-align:center; background:#eaecf0;" | CARE deployment
! colspan="2" style="text-align:center; background:#eaecf0;" | CARE deployment
Line 61: Line 71:
! style="text-align:left;" | Status
! style="text-align:left;" | Status
| {{{care_status|''unknown''}}}
| {{{care_status|''unknown''}}}
{{#if:{{{date_deployed|}}}|{{!}}-
|-
! style="text-align:left;" | Deployed
! style="text-align:left;" {{!}} Deployed
| {{{date_deployed|''unknown''}}}
{{!}} {{{date_deployed}}}}}{{#if:{{{care_facility_id|}}}|
|-
⚫
! style="text-align:left;" | Registry ID
⚫
| <code>{{{care_id|}}}</code>{{#if:{{{beds|}}}|
{{!}}-
{{!}}-
! style="text-align:left;" {{!}} Beds
! style="text-align:left;" {{!}} CARE facility ID
{{!}} {{{beds}}}}}{{#if:{{{phone|}}}|
{{!}} <code>{{{care_facility_id}}}</code>}}{{#if:{{{care_id|}}}|
{{!}}-
! style="text-align:left;" {{!}} Registry ID
⚫
{{!}} <code>{{{care_id}}}</code>}}{{#if:{{{phone|}}}|
{{!}}-
{{!}}-
! style="text-align:left;" {{!}} Phone
! style="text-align:left;" {{!}} Phone
{{!}} {{{phone}}}}}{{#if:{{{website|}}}|
{{!}} {{{phone}}}}}{{#if:{{{beds|}}}|
{{!}}-
{{!}}-
! style="text-align:left;" {{!}} Website
! style="text-align:left;" {{!}} Beds
{{!}} {{{website}}}}}
{{!}} {{{beds}}}}}
|-
|-
! colspan="2" style="text-align:center; background:#eaecf0;" | External identifiers
! colspan="2" style="text-align:center; background:#eaecf0;" | External identifiers
Line 88: Line 98:
| {{#if:{{{hfr_id|}}}|<code>{{{hfr_id}}}</code>|''not recorded''}}
| {{#if:{{{hfr_id|}}}|<code>{{{hfr_id}}}</code>|''not recorded''}}
|-
|-
| colspan="2" style="font-size:88%; color:#54595d;" | {{#if:{{{last_synced|}}}|Synced from the registry on {{{last_synced}}}.|}}
| colspan="2" style="font-size:88%; color:#54595d;" | {{#if:{{{last_synced|}}}|Synced from the upstream API on {{{last_synced}}}.|}}
|}<!--
|}<!--
-->{{#if:{{{care_facility_id|}}}|[[Has CARE facility ID::{{{care_facility_id}}}| ]]}}<!--
-->{{#if:{{{care_id|}}}|[[Has CARE ID::{{{care_id}}}| ]]}}<!--
-->{{#if:{{{care_id|}}}|[[Has CARE ID::{{{care_id}}}| ]]}}<!--
-->{{#if:{{{program|}}}|[[Has program::{{{program}}}| ]]}}<!--
-->{{#if:{{{program|}}}|[[Has program::{{{program}}}| ]]}}<!--
-->{{#if:{{{facility_type|}}}|[[Has facility type::{{{facility_type}}}| ]]}}<!--
-->{{#if:{{{facility_type|}}}|[[Has facility type::{{{facility_type}}}| ]]}}<!--
-->{{#if:{{{ownership|}}}|[[Has ownership::{{{ownership}}}| ]]}}<!--
-->{{#if:{{{local_body|}}}|[[Located in local body::{{{local_body}}}| ]]}}<!--
-->{{#if:{{{locality|}}}|[[Has locality::{{{locality}}}| ]]}}<!--
-->{{#if:{{{locality|}}}|[[Has locality::{{{locality}}}| ]]}}<!--
-->{{#if:{{{district|}}}|[[Located in district::{{{district}}}| ]]}}<!--
-->{{#if:{{{district|}}}|[[Located in district::{{{district}}}| ]]}}<!--
-->{{#if:{{{state|}}}|[[Located in state::{{{state}}}| ]]}}<!--
-->{{#if:{{{state|}}}|[[Located in state::{{{state}}}| ]]}}<!--
-->{{#if:{{{pincode|}}}|[[Has pincode::{{{pincode}}}| ]]}}<!--
-->{{#if:{{{latitude|}}}|[[Has latitude::{{{latitude}}}| ]]}}<!--
-->{{#if:{{{latitude|}}}|[[Has latitude::{{{latitude}}}| ]]}}<!--
-->{{#if:{{{longitude|}}}|[[Has longitude::{{{longitude}}}| ]]}}<!--
-->{{#if:{{{longitude|}}}|[[Has longitude::{{{longitude}}}| ]]}}<!--
Line 110: Line 124:
-->{{#if:{{{facility_type|}}}|[[Category:{{{facility_type}}}s in India]]|}}<!--
-->{{#if:{{{facility_type|}}}|[[Category:{{{facility_type}}}s in India]]|}}<!--
-->{{#if:{{{program|}}}|[[Category:{{{program}}} deployments]]|}}<!--
-->{{#if:{{{program|}}}|[[Category:{{{program}}} deployments]]|}}<!--
-->{{#ifeq:{{{ownership|}}}|government|[[Category:Government health facilities]]|}}<!--
-->{{#ifeq:{{{ownership|}}}|non-government|[[Category:Non-government CARE organisations]]|}}<!--
-->{{#ifeq:{{{osm_match_confidence|}}}|review|[[Category:Facilities with an OSM match needing review]]|}}<!--
-->{{#ifeq:{{{osm_match_confidence|}}}|review|[[Category:Facilities with an OSM match needing review]]|}}<!--
-->{{#if:{{{osm_id|}}}||[[Category:Facilities not linked to OpenStreetMap]]}}</includeonly>
-->{{#ifeq:{{{retired|}}}|yes|[[Category:Facilities not in the current CARE export]]|}}</includeonly>