Data dictionary
This dictionary covers the public API, downloads, and facility profiles. The OpenAPI document is the machine-readable contract. Category, ownership, access, and contact labels come from GET /v1/taxonomy, so clients need no second vocabulary.
Missing is not zero, false, or inactive
Endpoint: GET /v1/facilities/{id-or-slug}. Bulk downloads expose a flattened subset with publication status visible.
| Field | Type | Meaning |
|---|---|---|
| id | UUID | Stable PhilFacilities identifier; not derived from a name or agency ID. |
| slug | string or null | Human-readable URL identifier. Not an identity key. |
| display_name | string | Name used for display; may be a normalized source value. |
| official_name | string or null | Name recorded as official by a source, when supplied. |
| facility_type | controlled string | Broad category: school, health facility, government office, community facility, library, museum, transport, utility, and related categories. |
| facility_subtype | string or null | Category-specific subtype. Null means the source did not establish one. |
| facility_kind | controlled string | facility, site, building, facility_unit, infrastructure_asset, or project. |
| inclusion_class | controlled string | Government facility, private public-service provider, public-access venue, or unclassified record. |
| ownership | government, private, unknown | Source-reported ownership. Unknown is not assumed public. |
| ownership_type, operator_type | controlled string | Specific public, private, joint, or unknown owner/operator type; ownership and operation are separate. |
| public_access_class | controlled string | PUBLIC_FREE, PUBLIC_PAID_OR_CONDITIONAL, SERVICE_USERS_ONLY, APPOINTMENT_ONLY, MEMBERS_STUDENTS_ONLY, STAFF_ONLY, RESTRICTED, or UNKNOWN. |
| functions | string array | Function codes recorded for the facility, such as HEALTHCARE or EVACUATION_SITE. |
| function_details[] | array | Per-source function claims with source value, designation status, validity, and optional capacity. |
| roles[] | array | Owner, operator, host, funder, regulator, and accreditor roles. Entity type and evidence are recorded separately. |
| services[] | array | Services delivered at the facility, with service code, optional name, source field, and validity. |
| contacts[] | array | Source-supplied phone, email, website, opening hours, or other contact values. Missing contact types are not inferred. |
| relationships[] | array | Explicit links to related facilities, such as a parent site or part-of relationship. Links do not merge identities. |
| accreditations[] | array | Dated, authority-specific accreditation rows. Accreditation is not ownership and not proof of current operation. |
| location.postal_code | string or null | Postal code preserved as text. Null means the source did not supply one. |
| record_status | controlled string | Registry presence, not real-time operational status. |
| publication_status | public or internal | Only public records appear in the public API. |
| created_at, updated_at | timestamp | PhilFacilities record times, not agency update times. |
| source_count | integer | Number of linked source records supporting the canonical record. |
| Precision | Type | Meaning |
|---|---|---|
| gps_verified | enum | Independently verified GPS point. |
| field_verified | enum | Verified on the ground; method may not be GPS. |
| source_gps | enum | GPS coordinates supplied by the source. |
| map_geocoded | enum | Coordinates derived by geocoding an address. |
| barangay_centroid | enum | Area-level point for a barangay, not a building. |
| unknown | enum | Coordinates may exist, but the source supplied no precision. |
These arrays appear in GET /v1/facilities/{id-or-slug}. Contact and service values are source claims, not a live channel check. Role entities are recorded even when they cannot be resolved to another canonical facility.
| Type | Kind | Meaning |
|---|---|---|
| phone | enum | Telephone or mobile number as preserved from the source. |
| enum | Email address as published for the facility or its operator. | |
| website | enum | Official or source-linked website, preserved as text. |
| opening_hours | enum | Source-stated opening or service hours. Not live availability. |
| other | enum | Other contact value that does not fit the typed fields. |
roles[] separates owner, operator, host, funder, regulator, and accreditor. Ownership does not imply operation, and accreditation does not imply ownership.
services[] and function_details[] preserve the source field and validity period. A service listed in a registry is not proof that it is available today.
relationships[] are explicit links to other canonical records. They do not merge identities, and each linked facility keeps its own sources.
Endpoint: GET /v1/facilities/{id-or-slug}/sources. Every canonical record keeps original source identifiers and release context.
| Field | Type | Meaning |
|---|---|---|
| agency, agency_code | mixed | Publishing agency and short code. |
| dataset, dataset_slug | mixed | Dataset name and stable slug. |
| release_id, release_label | mixed | Specific source release used. |
| source_record_id | mixed | Agency record key preserved as text. |
| source_record_uuid | mixed | PhilFacilities identifier for the preserved source row. |
| row_reference | mixed | Row number or PDF page reference in the source file. |
| source_published_at | mixed | When the agency published the release, if known. |
| reference_period_start, reference_period_end | mixed | Period the data describes. |
| retrieved_at, processed_at | mixed | Acquisition time and ETL completion time. |
| match_method, match_status | mixed | How and how confidently the source record was linked. |
| match_confidence | mixed | Numeric confidence for the recorded link method. |
| rights_status, publication_status | mixed | Dataset redistribution state and publication gate. |
| license_identifier, attribution_text | mixed | Recorded licence and required attribution. |
| Status | Type | Meaning |
|---|---|---|
| unknown | enum | No rights review has been completed. Do not republish. |
| review_required | enum | Access or reuse terms are unresolved; publication stays blocked. |
| approved_public_redistribution | enum | Terms permit public redistribution. |
| approved_with_attribution | enum | Publication is permitted with the recorded attribution text. |
| publicly_available_verified | enum | Verified and publicly available with no explicit prohibition; only reviewed institutional fields are published. |
| restricted_non_redistributable | enum | Records may be retained internally but not republished. |
| denied | enum | The source has denied the intended reuse. |
| expired | enum | A previously recorded permission is no longer current. |
Coverage belongs to the source dataset, not the facility. Read coverage_scope and coverage_note together; a published count is not the size of the real-world universe.
| Scope | Type | Meaning |
|---|---|---|
| NATIONAL_OFFICIAL_INVENTORY | enum | Agency-published national inventory, subject to the source's own completeness limits. |
| NATIONAL_PARTIAL | enum | National in intent but known to cover only part of the target universe. |
| REGIONAL | enum | Covers one or more regions but not the whole country. |
| PARTICIPATING_LGUS | enum | Only local government units that participate in or report to the source. |
| SELECTED_LGUS | enum | A deliberately selected set of LGUs, not a complete national list. |
| SINGLE_LGU | enum | One city or municipality only. |
| DIRECTORY_SUBSET | enum | A directory subset selected for a specific programme or purpose. |
| DISCOVERY_LAYER | enum | A discovery layer used to find candidates; it is not an official inventory. |
| UNKNOWN_COVERAGE | enum | Coverage has not been reviewed or documented. |
The matcher proposes candidates from names, PSGC units, facility types, and agencies; it never merges automatically. Endpoint: GET /v1/quality/match-candidates?status=pending.
| Status | Type | Meaning |
|---|---|---|
| pending | enum | Deterministic evidence exists, but no reviewer has decided. |
| accepted | enum | A reviewer confirmed the duplicate. Merging is still a separate explicit step. |
| rejected | enum | A reviewer rejected the candidate. The pair is retained and not re-queued for the same algorithm version. |
| merged | enum | The accepted source facility was retired into the surviving candidate facility with audit history. |
Reviewing and merging are separate explicit steps. Evidence moves to the survivor; the duplicate is retired with an audit trail.
| Field | Type | Meaning |
|---|---|---|
| deped_school_id | mixed | DepEd school identifier preserved as text. |
| sector, school_management | mixed | Source values; not normalized policy categories. |
| division, district, legislative_district | mixed | DepEd administrative areas from the SY 2020-2021 masterlist. |
| settlement_type | mixed | Source settlement class: urban, partially urban, or rural. |
| offering_classification | mixed | Combined source offering category retained verbatim. |
| offers_es, offers_jhs, offers_shs | mixed | Tri-state: true, false, or null for unknown. |
| resources[] | mixed | Dated ICT/WASH/resource observations with numeric or text values. |
| Field | Type | Meaning |
|---|---|---|
| doh_facility_id | mixed | DOH source identifier preserved as text. |
| facility_major_type | mixed | NHFR major classification, such as Health Facility or Health Related Facility. |
| facility_type_detail | mixed | NHFR facility type exactly as published, such as Hospital or Rural Health Unit. |
| facility_category | mixed | Source category retained from the establishing release; not a normalized service capability. |
| ownership_subclassification | mixed | NHFR ownership sub-classification, such as Local Government Unit or Corporation. |
| licensing_status | mixed | NHFR licensing status as published: With License, Without License, or null when the source is blank. |
| bed_capacity | mixed | Source bed count. Zero is a real source value; null is unknown. |
| licenses[] | mixed | Time-bounded licences with issuing authority and source status. |
| accreditations[] | mixed | Time-bounded PhilHealth or other accreditation rows. |
| Field | Type | Meaning |
|---|---|---|
| doe_facility_code | mixed | DOE facility code preserved as text. |
| resource_type, technology_type | mixed | Source resource and technology labels, not normalized generation categories. |
| connection_type, grid | mixed | Source connection and grid labels, such as Luzon or off-grid. |
| owner_type, contract_type | mixed | DOE owner and contract classes; not a legal-ownership determination. |
| installed_mw, dependable_mw | mixed | Source capacity ratings in megawatts; null when blank. |
| number_of_units, date_commissioned | mixed | Source unit count and commissioning date, preserved as stated. |
Licences and accreditations are time-bounded, not proof of current service. School offerings are tri-state (true, false, null). Capacity is a registry rating, not metered output.
GET /v1/quality/summary reports measured counts. GET /v1/quality/issues lists issue codes, severity, evidence, and open or resolved status.
A clean summary is not a proof of correctness. Counts describe processed records, not the real-world facility universe.
GET /v1/facilities/{id}/history returns append-oriented change events. GET /v1/changes?since= is the cursor-paginated feed.
Merge events record the source and surviving facility IDs. Corrections create new events rather than rewriting earlier evidence.
The repository copy of this dictionary is docs/data-dictionary.md. Operational procedures are in the about and governance page.