diff --git a/.github/workflows/deploy-data.yml b/.github/workflows/deploy-data.yml index 088a98d..c219909 100644 --- a/.github/workflows/deploy-data.yml +++ b/.github/workflows/deploy-data.yml @@ -5,6 +5,7 @@ on: branches: [main] paths: - "data/**" + - "data-v2/**" - "images/**" - "docs/**" - "scripts/**" @@ -15,6 +16,7 @@ on: pull_request: paths: - "data/**" + - "data-v2/**" - "images/**" - "docs/**" - "scripts/**" diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c409c..3e4b6f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,10 +14,33 @@ Dates are Philippine time (UTC+8). See [MILESTONES.md](MILESTONES.md) for the bi ### v2 (in development, not public) A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unchanged by it. - Institutions get `branches` (address, map point, hours and contacts per office). -- Lists of `sources`, `cancerTypes`, `lastVerified`, and one fixed list of contact types. +- Lists of `sources` and `cancerTypes`, and one fixed list of contact types. (Records have no `lastVerified`; each file's `meta.lastUpdated` says when its records last changed.) - Benefit `amount` separate from the benefit name; clinic `bookingType` instead of `isWalkIns` and `canDoBoth`; `eligibility` as a list. - No loan programs. New: PCSO (Medical Assistance Program) and DOH (MAIFIP). -- A `null` or empty value means "Not available". +- Feeds: 6 posts from the Philippine Society of Medical Oncology (psmo.ph): NCCN's locally adapted treatment guidelines, PANAG-ISTORYA (Davao City), the National Cancer Alliance, Barangayan in Gingoog City, "Ano ang Sarcoma?" and the 1st National Patient Navigation Conference. Titles, authors and dates as written; short summaries in our own words, with a link to each post. +- Feeds: 7 Davao City cancer news posts (2025–2026) from the City Government of Davao, SunStar Davao, MindaNews and the Daily Tribune: free cervical and breast cancer screening in health centers, breast and cervical cancer deaths, child cancer treatment at SPMC, SPMC's stereotactic radiosurgery, and a Malasakit Center patient story. Same rules. +- Health institutions: "SPMC Cancer Institute" is renamed "Southern Philippines Medical Center", since its cancer clinics are in several departments. It gets its official site as source, its main contacts, and 8 department cancer clinics with schedules (adult oncology and hematology, surgical oncology, gynecologic oncology, trophoblastic clinic, colposcopy and Pap smear, pediatric oncology, breast imaging). New: Davao Doctors Hospital with 6 cancer services (radiation oncology, external beam radiation, brachytherapy, in-patient chemotherapy, radioactive iodine therapy, long-term radiotherapy). Sources: spmc.doh.gov.ph and ddh.com.ph. +- SPMC fees for radiation therapy, the adult cancer unit (room and board, average chemotherapy fees) and breast imaging, as written in SPMC's official Rates and Fees PDF (tables as of August 31, 2022). The PDF is listed in each service's sources. +- Where to go for financial help, from official directories: PhilHealth's LHIO Davao City, PhilHealth Express Calinan and Toril, and the Gaisano Mall service desk, plus the eGovPH Super App (YAKAP's apply-online link); PCSO's Davao City office, its Online MAP Application link, and a first step listing the online, office and hospital Malasakit options; DOH MAIFIP at the hospital's Malasakit Center or Medical Social Work Unit, or online through eMAIFIP in the eGovPH app (PTV News and PNA, August–September 2026). +- Support groups: removed (082) 295-2133 from AMUMA. PhilHealth's directory lists it as PhilHealth Regional Office XI's trunkline. +- PhilHealth Z Benefits is one program (`Z Benefits`) instead of five. Every benefit and amount, every eligibility rule and each cancer's description from v1 is kept, labeled with its cancer (for example "Breast Cancer (cStage 0 to IV): Total package"). +- A `null` or empty value means "Not given". +- Served at `/v2/` next to v1: the files at `/v2//.json`, the dataset list at `GET /v2/`, and its own spec at `/v2/openapi.json`. v1 paths don't change. +- The docs page has a version picker (v1 or v2); `/docs/?version=v2` opens v2. +- DOH programs: Cancer Assistance Fund (CAF, up to P150,000 for 8 priority cancer types; Southern Philippines Medical Center is the Davao City access site) and CSPMAP (free cancer medicines not yet covered by PhilHealth). Sources: DOH-DBM Joint Memorandum Circular 2023-001, the DOH-WHO release of 14 February 2024, and news. +- PCSO has one branch, the "Davao City Branch", and DOH's office branch is the "DOH Office Davao City" (names chosen by the maintainer). +- Feeds 16 to 18: PhilHealth's lists of hospitals contracted for Z Benefits, accredited cancer screening providers and accredited YAKAP clinics, all as of September 30, 2026, with the Davao City facilities in each summary. +- Health institutions get `coverage`: the programs each hospital accepts or is accredited for. Each item has a `programID` that links to a financial program, or `null` when that program isn't in the API. +- New dataset `Accommodation` (`/v2/Accommodation/AccommodationData.json`): places where patients and companions can stay near the hospitals. Each place has a type, operator, cost, `amenities` (a list, as written), `roomCapacity` (people per room as a range: `min` and `max`, each a whole number or `null`), contacts, sources, and branches with address, landmark and map point; who can stay is in the description. Apps can sort them by distance from a hospital using the branches' `latitude` and `longitude` (filled in as GPS readings come in). For now: 10 paid hotels and inns a few minutes from SPMC (Red Planet Davao, Hop Inn, Seda Abreeza, Park Inn by Radisson, Acacia) or Davao Doctors Hospital (RedDoorz, Rogen Inn, D'Morvie Suites, The Bourke Hotel, Apo View Hotel). Free shelters and halfway houses will be added after the maintainer talks with them. `sources` is empty when a place has no website. Landmarks for Red Planet and Park Inn, as written by their own pages. +- Every branch (financial offices, hospitals, places to stay) gets `landmark`: a landmark that helps people find it, as written, or `null`. Addresses that already include a landmark stay as written. `latitude` and `longitude` are described as decimal degrees from an official source or an on-site GPS reading. +- Every v2 file starts with a `meta` block: title, description, `apiVersion`, `lastUpdated` (the date its records last changed, Philippine time), `recordCount`, coverage, language, license (CC0-1.0) with its link, publisher, contact (GitHub issues) and the schema path. +- **All v2 keys are camelCase**, with `ID` and `URL` kept upper case (as in `programID` and `imageURL`). Records keys: `feed`, `financialInsti`, `healthInsti`, `medicalSpecialist`, `supportGroup`, `accommodation`. Inside records: `contactID`, `contactDetails`, `programName`, `programDescription`, `benefitID`, `benefitName`, `requirementID`, `requirementDescription`, `serviceName`, `serviceDescription`, `serviceSchedule`. v1 keeps its old names. +- **Every source is a `sources` list** (links, no repeats). Feeds, financial and health institutions had one `source` link; places to stay had both `source` and `sources`. Feeds and institutions must have at least one link; elsewhere an empty list means "Not given". Values are unchanged. +- Specialists: no SeriousMD page gives a booking type for an online clinic, so all 9 online clinics have `bookingType` `null`. +- DOH programs use official sources instead of news: the DOH Malasakit Program Office pages (MAIFIP requirements, how to apply, eMAIFIP access sites), DOH Davao's Citizen's Charter 2025, and DOH's own releases on CAF and CSPMAP. Facts that only news gave are removed until an official source is found: MAIFIP's "no fixed cap" and 12-working-day payment, applying through the eGovPH app, and CAF's "up to P150,000" (both amounts are now "Not given"). +- Display rule for apps: when a program's or service's `requirements` or `procedure` is empty, show "Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about the requirements." (or "…about the steps."). The text is in the schemas and the v2 OpenAPI spec; the data stays empty, so the missing-data list still shows these gaps. +- Same display rule for an empty money-help `eligibility`: show "Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about who can apply." (first used by DOH's CSPMAP, 606003). +- DOH has one branch, the Malasakit Center (beside SPMC). The "DOH Office Davao City" branch (PRRD Bldg) is removed: DOH's MAIFIP steps send patients to the Malasakit Center, and no listed source says to apply at that office. MAIP is written MAIFIP everywhere. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/MAINTAINING.md b/MAINTAINING.md index 8998150..6ebcd02 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -26,6 +26,7 @@ The small Worker script (`worker/src/index.js`) runs only for `/` (the dataset l - **`/openapi.json` is generated at build time** (`scripts/build-openapi.mjs`) from the real schema files. Change a schema, and the docs change on the next deploy, so they can't drift from the data. Dataset descriptions live in `DESCRIPTIONS` in that file; a new dataset without one gets a generic line. - **`/docs/` is Swagger UI, hosted here** (copied from the `swagger-ui-dist` package at build), with no CDN. The page files are in `docs/`. +- **Two versions.** When `data-v2/` exists, the build also serves it at `/v2/` with its own spec (`/v2/openapi.json`) and list (`GET /v2/`). The docs page's version picker reads `docs/versions.json`, written by the build; `/docs/?version=v2` opens v2. - `/docs/` sends a strict `Content-Security-Policy`: scripts only from this site, no framing, nothing sent elsewhere. Swagger's online validator is off, so the spec isn't sent to swagger.io. - Tests check that the spec is valid OpenAPI 3.1 and that each schema is embedded exactly as written. The smoke test checks that both routes respond after each deploy. diff --git a/MILESTONES.md b/MILESTONES.md index f4a00bb..d6ed6cb 100644 --- a/MILESTONES.md +++ b/MILESTONES.md @@ -8,7 +8,7 @@ Last updated: 14 November 2026. **Scope: Davao City** (see [Notes](#notes)). | 0 | **Capstone data** | 5 datasets (feeds, financial institutions, health institutions, medical specialists, support groups), each with a JSON Schema | ✅ Done | | 1 | **Public API (v1) live** | Cloudflare Worker; CI that validates, tests, deploys, smoke-tests and rolls back on failure; Swagger docs and OpenAPI | ✅ Done (10 Nov 2026) | | 2 | **v1 growth and fixes** | 11 more specialists, a new support group, PhilHealth Z Benefits, real SPMC services; then fixes found in the v2 review (wrong contacts removed, placeholder photos cleared, short feed summaries, official Facebook pages, YAKAP from its official page, simpler Z Benefits steps) | ✅ Live (13 Nov 2026, version `8d206e1`) | -| 3 | **v2 design and build** | New data shape: branches, lists of sources, cancer types, separate amounts, booking type, eligibility as a list, `lastVerified`, one fixed list of contact types, "Not available" for any `null` value. No loans. PCSO (Medical Assistance Program) and DOH (MAIFIP) added | 🟡 Built and under review, not public yet. Released after milestones 4 and 5 | +| 3 | **v2 design and build** | New data shape: branches, lists of sources, cancer types, separate amounts, booking type, eligibility as a list, `lastVerified`, one fixed list of contact types, "Not given" for any `null` value. No loans. PCSO (Medical Assistance Program) and DOH (MAIFIP) added | 🟡 Built and under review, not public yet. Released after milestones 4 and 5 | | 4 | **Contract with apps** | Apps that read the API accept every value the schema allows. The schema states the limits apps rely on, so CI catches a mismatch before deploy | 🔴 In progress | | 5 | **Data completeness** | Fill values that are not available yet (map points, contacts, booking info, office hours), correct source links, check photo consent | ⏳ Next | | 6 | **v2 release** | v2 served at `/v2/` next to v1; v2 docs and tests; known users told before it goes live | ⏳ Planned | diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json new file mode 100644 index 0000000..48c1903 --- /dev/null +++ b/data-v2/Accommodation/AccommodationData.json @@ -0,0 +1,319 @@ +{ + "$schema": "./AccommodationData.schema.json", + "meta": { + "title": "Accommodation", + "description": "Places where cancer patients and their companions can stay near the hospitals.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 10, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./AccommodationData.schema.json" + }, + "accommodation": [ + { + "id": 4, + "name": "Red Planet Davao", + "bgImageURL": "", + "sources": [ + "https://www.redplanethotels.com/hotel/red-planet-davao" + ], + "description": "Budget hotel on J.P. Laurel Avenue. Its official page says \"Damosa IT Park and Davao Medical Center are nearby\" (Davao Medical Center is SPMC's former name).", + "type": "Hotel", + "operator": "Red Planet Hotels", + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "+63 (082) 224 0577" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": "Red Planet Davao", + "location": "JP LAUREL AVE., BUHANGIN (POB), BUHANGIN DISTRICT 8000 DAVAO CITY DAVAO DEL SUR PHILIPPINES", + "landmark": "just 2 minutes from SM Lanang Premier", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 5, + "name": "Hop Inn Hotel Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Lot 1175 C1-C3 J.P. Laurel Avenue, Barrio Bajada, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 6, + "name": "Seda Abreeza", + "bgImageURL": "", + "sources": [ + "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" + ], + "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", + "type": "Hotel", + "operator": "Seda Hotels", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Abreeza Ayala Business Park, J.P. Laurel Ave., Bajada, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 7, + "name": "Park Inn by Radisson Davao", + "bgImageURL": "", + "sources": [ + "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" + ], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": "Park Inn by Radisson", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "J.P. Laurel Ave, Agdao", + "landmark": "Accessible to SM Lanang Premier via footbridge", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [ + "Complimentary parking", + "Business services", + "Unlimited Wi-Fi", + "Outdoor pool", + "Fitness center, open 24 hours a day", + "VANDA restaurant", + "24/7 DASH self-service counter" + ], + "roomCapacity": { + "min": null, + "max": 4 + } + }, + { + "id": 8, + "name": "Acacia Hotel Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "71 J.P. Laurel Street Lanang, Davao City 8000 Philippines", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 9, + "name": "RedDoorz near Davao Doctors Hospital", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Elpidio Quirino Ave., Poblacion District, Davao, Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 10, + "name": "Rogen Inn", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Inn", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Mt. Apo, Cor Lopez Jaena St, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 11, + "name": "D'Morvie Suites - Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "224 San Pedro St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 12, + "name": "The Bourke Hotel", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "115 P Pelayo St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 13, + "name": "Apo View Hotel", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "4-A, Barangay, J. Camus St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + } + ] +} diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json new file mode 100644 index 0000000..3f46f90 --- /dev/null +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -0,0 +1,335 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "AccommodationData.schema.json", + "title": "AccommodationData", + "description": "Cancer Open Data v2. Places where cancer patients and their companions can stay near the hospitals: free shelters and halfway houses, and paid hotels and inns. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./AccommodationData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "accommodation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "bgImageURL": { + "type": "string", + "description": "Background image: a path in this API like /images//.webp, or a full https:// URL. Empty if none.", + "format": "uri-reference" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "description": "Kind of place, e.g. Halfway house, Shelter, Care facility, Hotel." + }, + "operator": { + "type": [ + "string", + "null" + ], + "description": "Who runs it, as written by the source. null if not given." + }, + "contacts": { + "$ref": "#/$defs/contacts", + "description": "Organization contacts only (no personal numbers of private people). Branch contacts are inside each branch." + }, + "branches": { + "type": "array", + "items": { + "$ref": "#/$defs/branch" + }, + "minItems": 1, + "description": "Each house or building where people stay." + }, + "cost": { + "type": [ + "string", + "null" + ], + "description": "Cost as written, e.g. 'Free'. null if not given." + }, + "amenities": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "What the place has or gives, one item each, as written by the source, e.g. kitchen, Wi-Fi, parking, free water. Empty if not given." + }, + "roomCapacity": { + "type": "object", + "description": "How many people can stay in one room, as a range. Each number is null if not given (show \"Not given\").", + "properties": { + "min": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "description": "Fewest people per room. null if not given." + }, + "max": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "description": "Most people per room. null if not given." + } + }, + "required": [ + "min", + "max" + ], + "additionalProperties": false + }, + "sources": { + "$ref": "#/$defs/sources" + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "sources", + "description", + "type", + "operator", + "contacts", + "branches", + "cost", + "amenities", + "roomCapacity" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "accommodation" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contactID": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contactDetails": { + "type": "string" + } + }, + "required": [ + "contactID", + "type", + "contactDetails" + ], + "additionalProperties": false + }, + "contacts": { + "type": "array", + "items": { + "$ref": "#/$defs/contact" + } + }, + "scheduleEntry": { + "type": "object", + "properties": { + "day": { + "type": "string", + "description": "Day or days as written by the source, e.g. 'Monday' or 'Monday-Friday'. A day can appear twice for split hours." + }, + "timeIn": { + "type": "string", + "description": "Opening or start time, e.g. '8:00 am'." + }, + "timeOut": { + "type": "string", + "description": "Closing or end time, e.g. '5:00 pm'." + } + }, + "required": [ + "day", + "timeIn", + "timeOut" + ], + "additionalProperties": false + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/$defs/scheduleEntry" + }, + "description": "Open days and hours. Closed days are left out." + }, + "branch": { + "type": "object", + "properties": { + "branchID": { + "type": "integer" + }, + "branchName": { + "type": [ + "null", + "string" + ], + "description": "Name of the branch, e.g. 'Davao City Branch'. null if not given." + }, + "location": { + "type": "string" + }, + "landmark": { + "type": [ + "null", + "string" + ], + "description": "A landmark that helps people find it, as written by the source, e.g. 'infront SPMC Hospital'. null if not given." + }, + "latitude": { + "type": [ + "null", + "number" + ], + "description": "Latitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "longitude": { + "type": [ + "null", + "number" + ], + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "schedule": { + "anyOf": [ + { + "$ref": "#/$defs/schedule" + }, + { + "type": "null" + } + ], + "description": "Open days and hours. null if not known (show \"Not given\")." + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "branchID", + "branchName", + "location", + "landmark", + "latitude", + "longitude", + "schedule", + "contacts" + ], + "additionalProperties": false + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + } + } +} diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json new file mode 100644 index 0000000..3b89e0e --- /dev/null +++ b/data-v2/Feeds/FeedsData.json @@ -0,0 +1,343 @@ +{ + "$schema": "./FeedsData.schema.json", + "meta": { + "title": "Feeds", + "description": "News, articles and announcements about cancer care in Davao City, with a short summary and a link to each source.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 18, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./FeedsData.schema.json" + }, + "feed": [ + { + "id": 1, + "title": "Philippine Cancer Society Delegation Prominent at UICC World Cancer Leaders’ Summit in Melbourne, Championing the New Global Declaration", + "bgImageURL": "https://www.philcancer.org.ph/images/uicc.png", + "category": "News", + "tags": [], + "content": "The Philippine Cancer Society joined the UICC World Cancer Leaders' Summit in Melbourne, Australia, on 18–20 November 2025, together with other Filipino cancer groups. The delegation took part in talks on non-communicable diseases and in a workshop on ending cervical cancer through HPV vaccination and screening. The summit launched the World Cancer Declaration 2025–2035, which sets global goals for 2035, such as fewer cancer deaths and more cancers found early.", + "authors": [ + "Philippine Cancer Society" + ], + "publishDate": "21 November 2025", + "sources": [ + "https://www.philcancer.org.ph/about-us/announcements/latest-news/125-uicc-world-cancer-leaders-summit" + ] + }, + { + "id": 2, + "title": "DOST-ASTI Convenes National Stakeholders to Build the FIRST Philippine Cervical Image Bank and Advance AI-Driven Screening", + "bgImageURL": "https://www.philcancer.org.ph/images/dost1.png", + "category": "News", + "tags": [], + "content": "On 17 November 2025, DOST-ASTI hosted \"AI Against Cervical Cancer,\" a hybrid meeting of research, government and civil society groups. They discussed building the first Philippine Cervical Image Bank for the Cerv.ai project, which makes AI tools to find early cervical cancer, and lower-cost HPV-DNA testing. The Philippine Cancer Society offered its mobile bus for screening in poor and far communities.", + "authors": [ + "Philippine Cancer Society" + ], + "publishDate": "20 November 2025", + "sources": [ + "https://www.philcancer.org.ph/about-us/announcements/latest-news/123-dost-asti-convenes" + ] + }, + { + "id": 3, + "title": "NCCN Partners with Philippine Cancer Organizations to Develop Locally Adapted Cancer Treatment Guidelines", + "bgImageURL": "", + "category": "News", + "tags": [ + "Treatment Guidelines" + ], + "content": "The National Comprehensive Cancer Network (NCCN) is working with Philippine medical groups, including PSMO and the Society of Gynecological Oncologists of the Philippines, to adapt its cancer treatment guidelines to conditions in the Philippines. The planned guidelines cover 10 cancers: B-cell lymphomas, breast, colon, hepatocellular carcinoma (liver), lung, prostate, rectal, cervical, ovarian and uterine cancer. The aim is more consistent, evidence-based treatment for Filipino patients.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "19 October 2026", + "sources": [ + "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + ] + }, + { + "id": 4, + "title": "PANAG-ISTORYA: Conversations that matter in Cancer Care.", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Conference" + ], + "content": "PSMO announced its 24th Midyear Convention, set for 16–17 April 2026 at the Dusit Thani D2 Hotel in Davao City. The theme, Panag-istorya (a Visayan word for dialogue), is about how cancer doctors talk with patients and families during hard moments, with a communication skills workshop led by Dr. Antonio Sison, who trained in psycho-oncology.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "18 February 2026", + "sources": [ + "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + ] + }, + { + "id": 5, + "title": "A Unified Front in Systemic Care: PSMO Reinforces the National Cancer Alliance", + "bgImageURL": "", + "category": "Blog", + "tags": [ + "Cancer Care Network" + ], + "content": "On World Cancer Day, 4 February 2026, PSMO joined the Philippine Cancer Society, the Philippine Society of Oncologists and the Philippine Medical Association at the PMA Auditorium. The groups signed a National Alliance memorandum of understanding on working together to make patient care pathways smoother, and launched a partnership between Quezon City and the City Cancer Challenge (C/Can).", + "authors": [ + "PSMO Digital" + ], + "publishDate": "10 February 2026", + "sources": [ + "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + ] + }, + { + "id": 6, + "title": "BARANGAYAN GOES TO GINGOOG CITY!", + "bgImageURL": "", + "category": "News", + "tags": [ + "Cancer Awareness", + "Barangay Health Workers" + ], + "content": "On 16 August 2025, PSMO held a cancer awareness caravan for health workers at the Arturo S. Lugod Gymnasium in Gingoog City. Doctors, barangay health workers and cancer survivors talked about cancer basics, prevention, screening, treatment and common myths. It was done with the Department of Health, the Gingoog City government and the Philippine College of Physicians–Caraga Chapter.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "21 August 2025", + "sources": [ + "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + ] + }, + { + "id": 7, + "title": "Ano ang Sarcoma?", + "bgImageURL": "", + "category": "Blog", + "tags": [ + "Sarcoma" + ], + "content": "A short PSMO explainer in Filipino about sarcoma, a rare cancer that grows in bones and soft tissues such as muscle, fat, blood vessels, nerves, tendons and cartilage. It reminds readers that not every lump is cancer, but a swelling that lasts more than 2 weeks should be checked by a doctor.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "31 July 2025", + "sources": [ + "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + ] + }, + { + "id": 8, + "title": "Philippine Society of Medical Oncologists: A Vital Presence at the 1st National Patient Navigation Conference", + "bgImageURL": "", + "category": "News", + "tags": [ + "Patient Navigation" + ], + "content": "PSMO took part in the 1st National Patient Navigation Conference on 26–27 June 2025 at Casa Ibarra, Pasay City. It was organized by the DOH Cancer Control Division, Amang Rodriguez Memorial Medical Center and the Philippine Cancer Society, and ended a training program that trained 61 patient navigators, who guide patients through cancer care.", + "authors": [ + "Herdee Gloriane C. Luna, MD", + "PSMO Digital" + ], + "publishDate": "30 June 2025", + "sources": [ + "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" + ] + }, + { + "id": 9, + "title": "Davao City boosts anti cervical cancer drive", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Cervical Cancer", + "Screening" + ], + "content": "For Cervical Cancer Consciousness Month, the Davao City Health Office reminded women that free cervical cancer screening by visual inspection with acetic acid (VIA) and free HPV vaccination are available all year in the city's health centers. Some barangays also offer Pap smears; women can ask their health center for the schedule.", + "authors": [ + "CIO Admin" + ], + "publishDate": "4 May 2026", + "sources": [ + "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + ] + }, + { + "id": 10, + "title": "Free breast cancer-screening available all-year-roundin health centers", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer", + "Screening" + ], + "content": "The Davao City Health Office reminded the public that breast cancer screening is free all year in health centers across the city. From January to September 2025 it screened 33,796 people and referred 364 with suspicious lumps for follow-up. It noted that breast cancer can affect women as young as 25, and most deaths are among women aged 60 and above.", + "authors": [ + "CIO Admin" + ], + "publishDate": "23 October 2025", + "sources": [ + "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + ] + }, + { + "id": 11, + "title": "Davao City logs 197 breast cancer deaths in 2024", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer" + ], + "content": "The City Health Office recorded 197 breast cancer deaths in Davao City in 2024, including four men, and 161 more from January to September 2025. Most were aged 50 and above, though some were in their early 20s. The office urges all women aged 40 and above to get a yearly mammogram, even without symptoms.", + "authors": [ + "Rojean Grace G. Patumbon" + ], + "publishDate": "24 October 2025", + "sources": [ + "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + ] + }, + { + "id": 12, + "title": "Cervical cancer deaths, screening rates decline", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Cervical Cancer", + "Screening" + ], + "content": "Cervical cancer deaths in Davao City fell from 88 in 2023 to 67 in 2024, the City Health Office said, but fewer women got screened: 7,137 in 2023 and 6,104 in 2024. Most cases are in women aged 40 to 50. The HPV vaccine is free at health centers for girls aged 9 to 14, given in two doses six months apart.", + "authors": [ + "Rojean Grace G. Patumbon" + ], + "publishDate": "16 May 2025", + "sources": [ + "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + ] + }, + { + "id": 13, + "title": "SPMC says child cancer patients skipping treatment down to 2%", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Childhood Cancer" + ], + "content": "Southern Philippines Medical Center says the share of children who stop their cancer treatment fell from 90 percent in 2004 to 2 percent last year. Dr. Mae Dolendo, head of SPMC's Children's Cancer Institute, credited the hospital's strategies and support from government and non-government groups.", + "authors": [ + "CIO Admin" + ], + "publishDate": "19 September 2025", + "sources": [ + "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + ] + }, + { + "id": 14, + "title": "Davao City's SPMC now performing non-surgical procedure to remove brain tumors", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Radiation Therapy", + "Brain Tumor" + ], + "content": "The Cancer Institute of Southern Philippines Medical Center began offering stereotactic radiosurgery (SRS), a non-surgical treatment that aims high doses of radiation at a precise spot, making it the only government hospital in the country able to do it. Its first patient was a 27-year-old Davao City resident with a brain tumor (cranial meningioma), treated in five sessions.", + "authors": [ + "Antonio L. Colina IV" + ], + "publishDate": "10 February 2026", + "sources": [ + "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + ] + }, + { + "id": 15, + "title": "Malasakit Center eases cancer treatment burden for North Cotabato midwife", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer", + "Financial Help" + ], + "content": "A midwife from Magpet, North Cotabato, diagnosed with Stage 2 breast cancer in 2024, had surgery, chemotherapy and radiation therapy at Southern Philippines Medical Center in Davao City. The story tells how the hospital's Malasakit Center helped with the cost of her treatment.", + "authors": [ + "Daily Tribune" + ], + "publishDate": "26 August 2026", + "sources": [ + "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + ] + }, + { + "id": 16, + "title": "Contracted Health facilities for Z Benefit Packages as of Septemeber 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "Z Benefits", + "Financial Help" + ], + "content": "PhilHealth's list of hospitals contracted for its Z Benefit packages, as of 30 September 2026. In Davao City, Southern Philippines Medical Center is contracted for all six cancer packages on the list: acute lymphocytic (lymphoblastic) leukemia, breast, cervical, prostate, colon and rectum cancer. Davao Doctors Hospital is contracted for breast cancer.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] + }, + { + "id": 17, + "title": "List of Accredited Providers for Selected Outpatient Cancer Screening Tests for CY 2026 Updated as of September 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "Cancer Screening" + ], + "content": "PhilHealth's list of 415 health facilities accredited for selected outpatient cancer screening tests in 2026, updated as of 30 September 2026. The tests on the list are breast ultrasound, low-dose chest CT scan, liver ultrasound, mammography, alpha-fetoprotein and colonoscopy. In Davao City, six facilities are on the list: Alterado General Hospital, Davao Medical School Foundation, Ernesto Guadalupe Community Hospital, Holy Spirit Community Hospital of Davao, Malta Medical Center and Southern Philippines Medical Center. Southern Philippines Medical Center is accredited for all six tests.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + ] + }, + { + "id": 18, + "title": "List of Accredited YAKAP Clinics for CY 2026 Updated as of September 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "YAKAP" + ], + "content": "PhilHealth's list of 4,138 clinics accredited for YAKAP (Yaman ng Kalusugan Program) in 2026, updated as of 30 September 2026. Davao City has 56 of them: 22 government and 34 private. They include City Government of Davao health centers, Southern Philippines Medical Center, hospitals, clinics and diagnostic laboratories.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" + ] + } + ] +} diff --git a/data-v2/Feeds/FeedsData.schema.json b/data-v2/Feeds/FeedsData.schema.json new file mode 100644 index 0000000..2a816fe --- /dev/null +++ b/data-v2/Feeds/FeedsData.schema.json @@ -0,0 +1,169 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "FeedsData.schema.json", + "title": "FeedsData", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./FeedsData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "feed": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "bgImageURL": { + "type": "string", + "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", + "format": "uri-reference" + }, + "category": { + "type": "string", + "enum": [ + "News", + "Blog", + "Article" + ], + "description": "Feed type: News, Blog or Article." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "Topics, free text, e.g. 'Breast Cancer'. Can be empty." + }, + "content": { + "type": "string" + }, + "authors": { + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true, + "description": "Writers or organizations, as written by the source." + }, + "publishDate": { + "type": "string", + "description": "Publish date in 'DD Month YYYY' format, e.g. '21 November 2025'." + }, + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 + } + }, + "required": [ + "id", + "title", + "bgImageURL", + "category", + "tags", + "content", + "authors", + "publishDate", + "sources" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "feed" + ], + "additionalProperties": false, + "$defs": { + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + } + } +} diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json new file mode 100644 index 0000000..b1403e9 --- /dev/null +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -0,0 +1,727 @@ +{ + "$schema": "./FinancialInstiData.schema.json", + "meta": { + "title": "Financial help", + "description": "Programs that help cancer patients pay for care: where to go, who can apply, benefits, requirements and steps.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 3, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./FinancialInstiData.schema.json" + }, + "financialInsti": [ + { + "id": 1, + "name": "PhilHealth", + "bgImageURL": "/images/FinancialInstitution/philhealth.webp", + "sources": [ + "https://www.philhealth.gov.ph/" + ], + "description": "PhilHealth is the Philippines' government-owned health insurer, providing universal health coverage through a social insurance program. It pools funds from member contributions to subsidize medical costs, making healthcare affordable for hospitalizations and preventive care.", + "type": "Public Institution", + "contacts": [ + { + "contactID": 1, + "type": "Hotline", + "contactDetails": "(02) 866-225-88" + }, + { + "contactID": 2, + "type": "Website", + "contactDetails": "https://e.gov.ph/" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": "Local Health Insurance Office (LHIO) Davao City", + "location": "Valgosons Bldg., Bolton Ext., Poblacion District, Davao City, Davao del Sur", + "landmark": null, + "latitude": 7.0655, + "longitude": 125.6128, + "schedule": [ + { + "day": "Monday-Friday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(082) 295-2133 loc. 6328 to 30" + }, + { + "contactID": 2, + "type": "Mobile", + "contactDetails": "09457256139" + }, + { + "contactID": 3, + "type": "Email", + "contactDetails": "lhiodavao.onlinetransactions@gmail.com" + } + ] + }, + { + "branchID": 2, + "branchName": "PhilHealth Express Calinan", + "location": "Old Barangay Hall beside Police Station, Aurora-Quezon St., Calinan, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contactID": 1, + "type": "Email", + "contactDetails": "pro11.fod.ossco@gmail.com" + } + ] + }, + { + "branchID": 3, + "branchName": "PhilHealth Express Toril", + "location": "Urban Health Center A, Agton St., Toril, Davao City, Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0955 986 0938" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "pro11.express.toril@gmail.com" + } + ] + }, + { + "branchID": 4, + "branchName": "One-Stop Service Center Office (OSSCO) Gaisano Mall Davao", + "location": "Fifth Floor, OSSCO, Gaisano Mall of Davao, Bajada, J.P. Laurel Ave., Davao City, Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contactID": 1, + "type": "Email", + "contactDetails": "pro11.fod.ossco@gmail.com" + } + ] + } + ], + "programs": [ + { + "programID": 161213, + "programName": "PhilHealth YAKAP: Yaman ng Kalusugan Program", + "eligibility": [ + "Government and Private Employees", + "Kasambahay", + "Indigents", + "Persons with Disability", + "Self-Earning Individuals or Professional Practitioners", + "Lifetime Members", + "Pantawid Pamilyang Pilipino Program (4Ps)", + "Infants and Children under 21 years old", + "Overseas Filipino Workers", + "Solo Parent", + "Senior Citizens" + ], + "programDescription": "Government program that helps Filipinos take care of their health and prevent illness. YAKAP Clinics watch over members' health, find illness early, and give the right medicines so the illness does not get worse and hospital stays are avoided.", + "cancerTypes": [ + "Breast Cancer", + "Liver Cancer", + "Colorectal Cancer", + "Lung Cancer" + ], + "applicationURL": "https://e.gov.ph/", + "sources": [ + "https://www.philhealth.gov.ph/yakap/" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Primary Care Checkup", + "amount": "Free" + }, + { + "benefitID": 2, + "benefitName": "Selected laboratory tests based on risk, age and health assessment: Complete Blood Count (CBC) with Platelet Count, Lipid Profile, Fasting Blood Sugar (FBS), Oral Glucose Tolerance Test (OGTT), Hemoglobin Test (HbA1c), Creatinine, Chest X-Ray, Sputum Microscopy, Electrocardiogram (ECG), Urinalysis, Pap Smear, Fecalysis, Fecal Occult Blood Test (FOBT), Upper Abdomen & Pelvic Ultrasound", + "amount": null + }, + { + "benefitID": 3, + "benefitName": "Medicines under PhilHealth GAMOT", + "amount": null + }, + { + "benefitID": 4, + "benefitName": "Breast cancer screening: Breast Ultrasound & Mammogram", + "amount": null + }, + { + "benefitID": 5, + "benefitName": "Liver cancer screening: Alpha Fetoprotein Test & Liver Ultrasound", + "amount": null + }, + { + "benefitID": 6, + "benefitName": "Colorectal cancer screening: Fecal Immunochemical Test, Fecal Occult Blood Test & Colonoscopy", + "amount": null + }, + { + "benefitID": 7, + "benefitName": "Lung cancer screening: Low-dose Chest CT Scan", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "PhilHealth Identification Number (PIN) with updated membership" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Register: make sure you have a PhilHealth Identification Number (PIN) and your membership is updated." + }, + { + "step": 2, + "instruction": "Choose a YAKAP Clinic using the eGovPH Super App, the PhilHealth Member Portal, or the nearest PhilHealth office." + }, + { + "step": 3, + "instruction": "Have your First Patient Encounter (FPE): medical history, health screening and health education." + }, + { + "step": 4, + "instruction": "Sign the form agreeing that your chosen YAKAP Clinic will keep caring for you." + }, + { + "step": 5, + "instruction": "Keep seeing your YAKAP doctor for prescriptions, referrals for laboratory and/or cancer screening tests when needed, and follow-up checkups." + } + ] + }, + { + "programID": 101002, + "programName": "Z Benefits", + "eligibility": [ + "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval", + "Breast Cancer (cStage 0 to IV): Breast cancer clinical stage requiring treatments covered under the Z Benefits (Stage 0 Ductal Carcinoma in Situ (DCIS), Stage I, Stage II, Stage III or Stage IV), with management involving any or all of: Surgery; Chemotherapy (neo/adjuvant); Targeted therapy; Hormonotherapy; Surveillance", + "Breast Cancer (cStage 0 to IV): Chemotherapy (neo/adjuvant): patient has not initiated any chemotherapy treatment from any HF", + "Breast Cancer (cStage 0 to IV): Diagnostic tests are covered when all of these are met: Positive (+) breast mass AND/OR palpable axillary lymph node; BI-RADS category 4 to 5 result of either mammogram or ultrasound; and Biopsy result of confirmed malignant breast cancer or ductal carcinoma in situ (DCIS)", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Patients not yet registered in PhilHealth must complete member registration first", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Age 1 to less than 10 years old and 364 days", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): White blood cell count ‹50,000/mcL", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): No CNS leukemia at diagnosis", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): There should be no testicular involvement of male patient at diagnosis", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): WHO Classification: B or T lymphoblastic leukemia immunophenotype (mature B-cell ALL or Burkitt leukemia are excluded)", + "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): The membership category upon approval of the pre-authorization applies for the three years of the package", + "Prostate Cancer (low to intermediate risk): PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Prostate Cancer (low to intermediate risk): Patients not yet registered in PhilHealth must complete member registration first", + "Prostate Cancer (low to intermediate risk): Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "Prostate Cancer (low to intermediate risk): Male patients age up to 70 years old", + "Prostate Cancer (low to intermediate risk): Clinical stage (T1a-T2c), PSA level 10 to 20 ng/ml, Tumor Grade (Gleason's score of 2-7) - Low risk: T1-T2a and Gleason score 2-6, and PSA ‹10 ng/ml - Intermediate risk: T2b to T2c, Gleason score of 7, and PSA 10-20 ng/ml", + "Prostate Cancer (low to intermediate risk): Localized prostate cancer", + "Prostate Cancer (low to intermediate risk): No uncontrolled co-morbid conditions", + "Cervical Cancer: PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Cervical Cancer: Patients not yet registered in PhilHealth must complete member registration first", + "Cervical Cancer: Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "Cervical Cancer: No previous chemotherapy", + "Cervical Cancer: No previous radiotherapy", + "Cervical Cancer: No uncontrolled co-morbid conditions", + "Colorectal Cancer: Colon or rectal cancer stage I to III", + "Colorectal Cancer: Normal or with mild systemic disease (ASA I or II)", + "Colorectal Cancer: Fully active, able to carry on all pre-disease performance without restriction, OR restricted in physically strenuous activity but ambulatory and able to carry out work of a light or sedentary nature, e.g light house work, office work, OR ambulatory and capable of all self-care but unable to carry out any work activities. Up and about more than 50% of working hours.", + "Colorectal Cancer: Services needed after progression to stage IV are not covered." + ], + "programDescription": "PhilHealth's Z Benefits packages for selected cancers, at Z Benefits contracted health facilities. Each cancer has its own package and medical criteria; the hospital's Z Benefits coordinator checks them.\n\nBreast Cancer (cStage 0 to IV): PhilHealth's Z Benefit package for breast cancer, up to P1.4 million (effective March 30, 2024). It covers diagnostic tests, surgery, hormonotherapy, chemotherapy, targeted therapy and surveillance after surgery, at Z Benefits contracted health facilities. Up to five (5) days are deducted from the 45-day annual benefit limit.\n\nAcute Lymphocytic / Lymphoblastic Leukemia (standard risk): PhilHealth's Z Benefit package for children with standard-risk acute lymphoblastic leukemia: five hundred thousand pesos (Php 500,000) for the complete course of treatment for three (3) years, paid to the contracted health facility in three tranches. Pre-authorization must be submitted before the end of the induction phase.\n\nProstate Cancer (low to intermediate risk): PhilHealth's Z Benefit package for localized low- to intermediate-risk prostate cancer, at Z Benefits contracted health facilities.\n\nCervical Cancer: PhilHealth's Z Benefit package for cervical cancer treatment (chemoradiation with brachytherapy, or primary surgery for early stages), at Z Benefits contracted health facilities.\n\nColorectal Cancer: PhilHealth's Z Benefit package for colon and rectal cancer. The amount depends on the cancer, its stage and risk. Available at Z Benefits contracted health facilities. Up to five (5) days are deducted from the 45-day annual benefit limit.", + "cancerTypes": [ + "Breast Cancer", + "Acute Lymphocytic / Lymphoblastic Leukemia", + "Prostate Cancer", + "Cervical Cancer", + "Colorectal Cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/circulars/2024/PC2024-0007.pdf", + "https://www.philhealth.gov.ph/circulars/2017/circ2017-0016.pdf", + "https://www.philhealth.gov.ph/benefits/", + "https://www.philhealth.gov.ph/circulars/2023/PC2023-0005.pdf" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Breast Cancer (cStage 0 to IV): Total package", + "amount": "Up to P1.4 million" + }, + { + "benefitID": 2, + "benefitName": "Breast Cancer (cStage 0 to IV): Diagnostic tests and prognostication", + "amount": "Php 1,000 to Php 10,000.00" + }, + { + "benefitID": 3, + "benefitName": "Breast Cancer (cStage 0 to IV): Surgical procedures (partial mastectomy to modified radical mastectomy)", + "amount": "Php 30,000 – Php 140,000.00" + }, + { + "benefitID": 4, + "benefitName": "Breast Cancer (cStage 0 to IV): Hormonotherapy", + "amount": "Php 2,700 or Php 18,000" + }, + { + "benefitID": 5, + "benefitName": "Breast Cancer (cStage 0 to IV): Cytotoxic chemotherapy", + "amount": "Php 43,000 to Php 185,010" + }, + { + "benefitID": 6, + "benefitName": "Breast Cancer (cStage 0 to IV): Targeted therapy", + "amount": "Php 333,336 for 18 maximum cycles" + }, + { + "benefitID": 7, + "benefitName": "Breast Cancer (cStage 0 to IV): Surveillance", + "amount": "Php 5,000 (basic) and Php 9,000 (specific)" + }, + { + "benefitID": 8, + "benefitName": "Breast Cancer (cStage 0 to IV): No co-payment for patients admitted in basic or ward-type accommodation", + "amount": null + }, + { + "benefitID": 9, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Total package", + "amount": "Php 500,000 for the complete course of treatment for three (3) years" + }, + { + "benefitID": 10, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 1", + "amount": "Php 300,000 (after the 1st induction phase)" + }, + { + "benefitID": 11, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 2", + "amount": "Php 125,000 (after the 3rd maintenance cycle)" + }, + { + "benefitID": 12, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 3", + "amount": "Php 75,000 (after the 7th maintenance cycle)" + }, + { + "benefitID": 13, + "benefitName": "Prostate Cancer (low to intermediate risk): Total package", + "amount": "P100,000" + }, + { + "benefitID": 14, + "benefitName": "Cervical Cancer: Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", + "amount": "P120,000" + }, + { + "benefitID": 15, + "benefitName": "Cervical Cancer: Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", + "amount": "P175,000" + }, + { + "benefitID": 16, + "benefitName": "Colorectal Cancer: Colon Cancer, Stage I to II (Low Risk)", + "amount": "Php 150,000" + }, + { + "benefitID": 17, + "benefitName": "Colorectal Cancer: Colon Cancer, Stage II to III (High Risk)", + "amount": "Php 300,000" + }, + { + "benefitID": 18, + "benefitName": "Colorectal Cancer: Rectal Cancer, Stage I to II (Low Risk)", + "amount": "Php 150,000" + }, + { + "benefitID": 19, + "benefitName": "Colorectal Cancer: Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", + "amount": "Php 400,000" + }, + { + "benefitID": 20, + "benefitName": "Colorectal Cancer: Rectal Cancer, Stage II to III", + "amount": "Php 400,000" + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "PhilHealth ID" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID to the hospital's Z Benefits coordinator for the list of requirements and further steps." + } + ] + } + ] + }, + { + "id": 5, + "name": "Philippine Charity Sweepstakes Office (PCSO)", + "bgImageURL": "/images/FinancialInstitution/pcso.webp", + "sources": [ + "https://www.pcso.gov.ph/", + "https://lawphil.net/statutes/repacts/ra2019/ra_11463_2019.html", + "https://doh.gov.ph/mpo/mc-directory/" + ], + "description": "Government agency that gives financial help to people with health problems through its Medical Assistance Program, together with government and private hospitals, health facilities and medicine retailers.", + "type": "Public Institution", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Davao City Branch", + "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(082) 282-0305" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "mindanao@pcso.gov.ph" + } + ] + }, + { + "branchID": 2, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] + } + ], + "programs": [ + { + "programID": 505001, + "programName": "Medical Assistance Program (MAP)", + "eligibility": [ + "Individuals with health-related problems seeking financial help" + ], + "programDescription": "Financial help for patients, given in partnership with government and private hospitals, health facilities, medicine retailers and other partners. Cancer treatment (chemotherapy drugs, immunotherapy and radiation therapy) is one of the types of help. If approved, the patient gets a Guarantee Letter (GL) for the hospital, health facility, medicine retailer or diagnostic center.", + "cancerTypes": [ + "All cancers" + ], + "applicationURL": "https://onlinemap.pcso.gov.ph/", + "sources": [ + "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx", + "https://www.pcso.gov.ph/About/Directories/MindanaoDepartment.aspx", + "https://www.pcso.gov.ph/pcsofiles/infographics/pcsoadvisory/PCSOAdvisory2021121501.jpg" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Cancer treatment: chemotherapeutic drugs and immunotherapy", + "amount": null + }, + { + "benefitID": 2, + "benefitName": "Radiation therapy", + "amount": null + }, + { + "benefitID": 3, + "benefitName": "Confinement assistance", + "amount": null + }, + { + "benefitID": 4, + "benefitName": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Duly Accomplished MAP Application Form" + }, + { + "requirementID": 2, + "requirementDescription": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + }, + { + "requirementID": 3, + "requirementDescription": "Valid ID of the patient's next of kin, if applicable" + }, + { + "requirementID": 4, + "requirementDescription": "For cancer treatment: updated clinical or medical abstract (issued within the past 3 months), medical prescription, and treatment protocol (chemotherapy) or treatment plan (radiation therapy), each with the full name, signature and license number of the attending physician" + }, + { + "requirementID": 5, + "requirementDescription": "For cancer treatment: one quotation from the hospital willing to accept the GL, or official quotations from three different suppliers if the medicine is not available in the hospital" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to the PCSO Davao City Branch, or to the PCSO or Malasakit Center desk of your hospital. In some areas, MAP can be accessed only through hospitals with a Malasakit Center." + }, + { + "step": 2, + "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." + }, + { + "step": 3, + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." + }, + { + "step": 4, + "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + }, + { + "step": 5, + "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + }, + { + "step": 6, + "instruction": "Wait for the result in your email or in your online account." + } + ] + } + ] + }, + { + "id": 6, + "name": "Department of Health (DOH)", + "bgImageURL": "/images/FinancialInstitution/doh.webp", + "sources": [ + "https://doh.gov.ph/", + "https://doh.gov.ph/mpo/mc-directory/" + ], + "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them, and its Cancer Assistance Fund (CAF) and CSPMAP help cancer patients with treatment and free medicines.", + "type": "Public Institution", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] + } + ], + "programs": [ + { + "programID": 606001, + "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "eligibility": [ + "Every Filipino who is an indigent patient", + "Every Filipino who is a financially incapacitated patient: a patient facing serious money problems in paying for long-term treatment or costs" + ], + "programDescription": "DOH medical and financial help given at Malasakit Centers, inside DOH hospitals, state university and college hospitals, the Department of National Defense hospital, the Philippine National Police hospital, and selected LGU hospitals.", + "cancerTypes": null, + "applicationURL": null, + "sources": [ + "https://doh.gov.ph/mpo/list-of-documentary-requirements-in-availing-maifip-program-medical-assistance/", + "https://doh.gov.ph/mpo/process-of-availing-of-medical-assistance/" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Medicines in the Philippine National Drug Formulary (PNDF), or medicines for compassionate use", + "amount": null + }, + { + "benefitID": 2, + "benefitName": "Blood products", + "amount": null + }, + { + "benefitID": 3, + "benefitName": "Medical procedures and supplies", + "amount": null + }, + { + "benefitID": 4, + "benefitName": "Support for mental health, psychosocial and rehabilitation services", + "amount": null + }, + { + "benefitID": 5, + "benefitName": "Hospital bill", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "In-patients: Hospital bill or charges or fees or statement of account (SOA)" + }, + { + "requirementID": 2, + "requirementDescription": "In-patients: Copy of valid ID of the patient or medical social services-issued ID or barangay-issued Certificate of Residence (for GIDA areas) or Certification from Indigenous People (IP) representatives (for IPs) or valid ID of next of kin, if applicable." + }, + { + "requirementID": 3, + "requirementDescription": "Out-patients: Prescription of drugs and medicines or treatment protocol or laboratory or diagnostic request issued by referring facilities, if applicable." + }, + { + "requirementID": 4, + "requirementDescription": "Out-patients: Copy of valid ID of the patient or medical social services-issued ID or barangay-issued Certificate of Residence (for GIDA areas) or Certification from Indigenous People (IP) representatives (for IPs) or valid ID of next of kin, if applicable." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Get a consultation or treatment at a hospital that has a Malasakit Center." + }, + { + "step": 2, + "instruction": "Go to the Malasakit Center office inside the hospital for your medical or financial needs." + }, + { + "step": 3, + "instruction": "Have an interview and assessment with the assigned social worker." + }, + { + "step": 4, + "instruction": "Submit the required documents to receive the benefits." + }, + { + "step": 5, + "instruction": "Receive the approved medical or financial benefit." + } + ] + }, + { + "programID": 606002, + "programName": "Cancer Assistance Fund (CAF)", + "eligibility": [ + "Persons with cancer, cancer survivors and high-risk individuals", + "For the eight priority cancer types" + ], + "programDescription": "DOH fund under RA 11215 (National Integrated Cancer Control Act). It pays for cancer prevention, screening, early detection and diagnosis, treatment and care-related components for 8 priority cancer types. It adds to PhilHealth and other help for costs they do not cover, and for cancer cases it is used before MAIFIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 34 in DOH's 2025 list).", + "cancerTypes": [ + "Breast cancer", + "Childhood cancers", + "Gynecologic cancers", + "Liver cancer, including colorectal and other digestive tract cancers", + "Adult blood cancers", + "Head and neck cancers, including thyroid", + "Lung cancer", + "Prostate, renal and urinary bladder cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.dbm.gov.ph/wp-content/uploads/Issuances/2023/Joint-Memorandum-Circular/JOINT-MEMORANDUM-CIRCULAR-NO.-2023-001-DATED-SEPTEMBER-18-2023.pdf", + "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/", + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Diagnostic procedures, medicines and treatment", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Medical abstract, doctor's prescription, or treatment plan" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Go to a CAF access site. In Davao City: Southern Philippines Medical Center." + }, + { + "step": 2, + "instruction": "Present your medical abstract, doctor's prescription, or treatment plan to the social worker assigned to the hospital for assessment and approval." + }, + { + "step": 3, + "instruction": "Your documents are evaluated before approval and availment of services." + } + ] + }, + { + "programID": 606003, + "programName": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "eligibility": [], + "programDescription": "DOH program that gives free medicines not yet covered by PhilHealth, to lower or remove out-of-pocket costs. It is part of the National Integrated Cancer Control Program. Its DOH hospital access sites are also CAF access sites. In 2024, 35 access sites offered 61 medicines for the most common cancers.", + "cancerTypes": null, + "applicationURL": null, + "sources": [ + "https://www.dbm.gov.ph/wp-content/uploads/Issuances/2023/Joint-Memorandum-Circular/JOINT-MEMORANDUM-CIRCULAR-NO.-2023-001-DATED-SEPTEMBER-18-2023.pdf", + "https://doh.gov.ph/press-release/DOH-LEADS-NATIONAL-LUNG-CANCER-AWARENESS-MONTH-FREE-MEDICINES-AVAILABLE-NATIONWIDE/", + "https://doh.gov.ph/doh-who-launch-2024-2028-national-integrated-cancer-control-program-niccp-strategic-framework/" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Free medicines not yet covered by PhilHealth", + "amount": "Free" + } + ], + "requirements": [], + "procedure": [] + } + ] + } + ] +} diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json new file mode 100644 index 0000000..b04d7cc --- /dev/null +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -0,0 +1,420 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "FinancialInstiData.schema.json", + "title": "FinancialInstiData", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./FinancialInstiData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "financialInsti": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "bgImageURL": { + "type": "string", + "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", + "format": "uri-reference" + }, + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "contacts": { + "$ref": "#/$defs/contacts", + "description": "Main contacts of the whole institution, e.g. a national hotline. Branch contacts are inside each branch." + }, + "branches": { + "type": "array", + "items": { + "$ref": "#/$defs/branch" + }, + "minItems": 1 + }, + "programs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "programID": { + "type": "integer" + }, + "programName": { + "type": "string" + }, + "eligibility": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "Who can get this program, one rule per item, as written by the source. Empty if not given. Apps: when empty, show \"Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about who can apply.\"" + }, + "programDescription": { + "type": "string" + }, + "cancerTypes": { + "$ref": "#/$defs/cancerTypes" + }, + "applicationURL": { + "type": [ + "null", + "string" + ], + "format": "uri", + "description": "Page to apply online. null if there is none or it is not known." + }, + "sources": { + "$ref": "#/$defs/sources" + }, + "benefits": { + "type": "array", + "items": { + "type": "object", + "properties": { + "benefitID": { + "type": "integer" + }, + "benefitName": { + "type": "string" + }, + "amount": { + "type": [ + "null", + "string" + ], + "description": "Amount as written by the source, e.g. 'Up to ₱100,000'. null if not given." + } + }, + "required": [ + "benefitID", + "benefitName", + "amount" + ], + "additionalProperties": false + } + }, + "requirements": { + "$ref": "#/$defs/requirements" + }, + "procedure": { + "$ref": "#/$defs/procedure" + } + }, + "required": [ + "programID", + "programName", + "eligibility", + "programDescription", + "cancerTypes", + "applicationURL", + "sources", + "benefits", + "requirements", + "procedure" + ], + "additionalProperties": false + } + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "sources", + "description", + "type", + "contacts", + "branches", + "programs" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "financialInsti" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contactID": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contactDetails": { + "type": "string" + } + }, + "required": [ + "contactID", + "type", + "contactDetails" + ], + "additionalProperties": false + }, + "contacts": { + "type": "array", + "items": { + "$ref": "#/$defs/contact" + } + }, + "scheduleEntry": { + "type": "object", + "properties": { + "day": { + "type": "string", + "description": "Day or days as written by the source, e.g. 'Monday' or 'Monday-Friday'. A day can appear twice for split hours." + }, + "timeIn": { + "type": "string", + "description": "Opening or start time, e.g. '8:00 am'." + }, + "timeOut": { + "type": "string", + "description": "Closing or end time, e.g. '5:00 pm'." + } + }, + "required": [ + "day", + "timeIn", + "timeOut" + ], + "additionalProperties": false + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/$defs/scheduleEntry" + }, + "description": "Open days and hours. Closed days are left out." + }, + "branch": { + "type": "object", + "properties": { + "branchID": { + "type": "integer" + }, + "branchName": { + "type": [ + "null", + "string" + ], + "description": "Name of the branch, e.g. 'Davao City Branch'. null if not given." + }, + "location": { + "type": "string" + }, + "landmark": { + "type": [ + "null", + "string" + ], + "description": "A landmark that helps people find it, as written by the source, e.g. 'infront SPMC Hospital'. null if not given." + }, + "latitude": { + "type": [ + "null", + "number" + ], + "description": "Latitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "longitude": { + "type": [ + "null", + "number" + ], + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "schedule": { + "anyOf": [ + { + "$ref": "#/$defs/schedule" + }, + { + "type": "null" + } + ], + "description": "Open days and hours. null if not known (show \"Not given\")." + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "branchID", + "branchName", + "location", + "landmark", + "latitude", + "longitude", + "schedule", + "contacts" + ], + "additionalProperties": false + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + }, + "cancerTypes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true, + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not given\")." + }, + "requirements": { + "type": "array", + "description": "Documents to bring, one per item, as written by the source. Empty if not given. Apps: when empty, show \"Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about the requirements.\"", + "items": { + "type": "object", + "properties": { + "requirementID": { + "type": "integer" + }, + "requirementDescription": { + "type": "string" + } + }, + "required": [ + "requirementID", + "requirementDescription" + ], + "additionalProperties": false + } + }, + "procedure": { + "type": "array", + "description": "Steps in order, as written by the source. Empty if not given. Apps: when empty, show \"Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about the steps.\"", + "items": { + "type": "object", + "properties": { + "step": { + "type": "integer" + }, + "instruction": { + "type": "string" + } + }, + "required": [ + "step", + "instruction" + ], + "additionalProperties": false + } + } + } +} diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json new file mode 100644 index 0000000..78dbdf7 --- /dev/null +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -0,0 +1,681 @@ +{ + "$schema": "./HealthInstiData.schema.json", + "meta": { + "title": "Hospitals", + "description": "Hospitals with cancer services in Davao City: services, schedules, fees and the programs they accept.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 3, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./HealthInstiData.schema.json" + }, + "healthInsti": [ + { + "id": 1, + "name": "Southern Philippines Medical Center", + "bgImageURL": "/images/HealthInstitution/spmc-cancer-institute.webp", + "sources": [ + "https://spmc.doh.gov.ph/" + ], + "description": "The Southern Philippines Medical Center is the largest government hospital under the Department of Health of the Republic of the Philippines. It is located at the JP Laurel Ave, Bajada, Davao City. It began as the Davao Medical Center. Its name was changed on November 19, 2009, by Republic Act 9792.", + "type": "Public Institution", + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(082) 227-2731" + }, + { + "contactID": 2, + "type": "Other", + "contactDetails": "TELEFAX: (082) 221-7029" + }, + { + "contactID": 3, + "type": "Email", + "contactDetails": "coh.spmc@gmail.com" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "J.P. Laurel Ave, Bajada, Davao City", + "landmark": null, + "latitude": 7.099167, + "longitude": 125.619722, + "schedule": [ + { + "day": "Monday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [] + } + ], + "services": [ + { + "serviceID": 1, + "branchIDs": [ + 1 + ], + "serviceName": "Adult Cancer Clinic and Infusion Unit", + "serviceDescription": "Opened on February 8, 2018 on the fourth floor of the Cancer Institute. It offers subsidized multidisciplinary care for all kinds of cancer. The hospital said most patients are free or subsidized charity, assisted through Lingap, PCSO and others.", + "cancerTypes": null, + "fee": "Adult Onco Unit room and board: 1,000.00. CHEMOTHERAPY (AVERAGE HCI FEES): 8,871.94 (Professional Fee 1,680.00 to 33,350.00). As of August 31, 2022.", + "sources": [ + "https://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "serviceName": "Radiation Therapy (Linear Accelerator)", + "serviceDescription": "The Cancer Institute's linear accelerator (Linac) for radiation therapy started operating with the adult cancer unit in 2018.", + "cancerTypes": null, + "fee": "LINAC Daily fee: 5,160.00 (Professional Fee 800.00 to 2,200.00); Conventional Radiotherapy (2D/3D) Session: 5,160.00 (Professional Fee 800.00 to 2,200.00); IMRT Treatment Session: 16,245.00 (Professional Fee 1,680.00 to 4,000.00); CT Simulation- IMRT: 57,730.00 (Professional Fee 11,546.00 to 27,430.00); Treatment Planning Dosimetry (Xray): 24,225.00 (Professional Fee 2,380.00 to 7,225.00); TREATMENT PLANNING SYSTEM (IMRT): 25,265.00 (Professional Fee 8,400.00 to 12,265.00). As of August 31, 2022.", + "sources": [ + "https://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "serviceName": "Cancer Assistance Fund (CAF)", + "serviceDescription": "Listed by the Department of Health as one of 34 CAF access sites in its 2025 list. The fund supports cancer care, from early screening and diagnosis to treatment.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view", + "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 4, + "branchIDs": [ + 1 + ], + "serviceName": "Chemotherapy", + "serviceDescription": "Chemotherapy is listed in the hospital's official Rates and Fees (as of August 31, 2022).", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "serviceName": "Oncology Clinic (Internal Medicine)", + "serviceDescription": "dedicated to the diagnosis, treatment and care of adults with cancer. Location: Internal Medicine OPD at the Second Floor of JICA OPD Building.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/internal-medicine/" + ], + "serviceSchedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1 pm", + "timeOut": "5 pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 6, + "branchIDs": [ + 1 + ], + "serviceName": "Hematology Clinic (Internal Medicine)", + "serviceDescription": "provides assessment and treatment as well as co-ordination of clinical care for patients with blood diseases and blood-related cancers. Location: Internal Medicine OPD at the Second Floor of JICA OPD Building.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/internal-medicine/" + ], + "serviceSchedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1 pm", + "timeOut": "5 pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 7, + "branchIDs": [ + 1 + ], + "serviceName": "Surgical Oncology", + "serviceDescription": "Location: Cancer Institute – 2nd Floor.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/surgery/" + ], + "serviceSchedule": [ + { + "day": "Monday to Friday", + "timeIn": "8AM", + "timeOut": "5PM" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 8, + "branchIDs": [ + 1 + ], + "serviceName": "Gynecologic Oncology", + "serviceDescription": "Caters to patients diagnosed with cancer in the reproductive organs", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "serviceSchedule": [ + { + "day": "weekdays", + "timeIn": "1:00 pm", + "timeOut": "5:00 pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 9, + "branchIDs": [ + 1 + ], + "serviceName": "Trophoblastic Service Clinic", + "serviceDescription": "Specializes in dealing with a group of conditions involving tumor growth in the womb.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "serviceSchedule": [ + { + "day": "weekdays", + "timeIn": "1:00 pm", + "timeOut": "5:00 pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 10, + "branchIDs": [ + 1 + ], + "serviceName": "Colposcopy / Pap’s Smear", + "serviceDescription": "Screening procedure for detecting cervical cancer.", + "cancerTypes": [ + "Cervical Cancer" + ], + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "serviceSchedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1:00 pm", + "timeOut": "7:00 pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 11, + "branchIDs": [ + 1 + ], + "serviceName": "Oncology Clinic (Pediatrics)", + "serviceDescription": "Specializes on diagnoses, treatment and management of cancer.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/pediatrics-2/" + ], + "serviceSchedule": [ + { + "day": "Monday and Wednesday", + "timeIn": "2:00", + "timeOut": "4:00 PM" + }, + { + "day": "Tuesday, Thursday and Friday", + "timeIn": "8:00 AM", + "timeOut": "12:00 PM" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 12, + "branchIDs": [ + 1 + ], + "serviceName": "Breast Imaging", + "serviceDescription": "Involves the use of mammography, sonomammography and elastography. Imaging exam dedicated for screening breast cancer.", + "cancerTypes": [ + "Breast Cancer" + ], + "fee": "SCREENING MAMMOGRAM: 2,500.00. DIAGNOSTIC MAMMOGRAM: 3,500.00. As of August 31, 2022.", + "sources": [ + "https://spmc.doh.gov.ph/radiological-and-imaging-sciences/", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" + ], + "serviceSchedule": [ + { + "day": "weekdays (OPD)", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "requirements": [], + "procedure": [] + } + ], + "coverage": [ + { + "programID": 101002, + "name": "Z Benefit Packages", + "details": "Contracted for Acute Lymphocytic (Lymphoblastic) Leukemia (ALL), Breast Cancer, Cervical Cancer, Prostate Cancer, Colon Cancer and Rectum Cancer, as of September 30, 2026.", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] + }, + { + "programID": null, + "name": "Selected Outpatient Cancer Screening Tests", + "details": "Accredited for breast ultrasound, low-dose chest CT scan, liver ultrasound, mammography, alpha-fetoprotein and colonoscopy. Accreditation expires 12/31/2026.", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + ] + }, + { + "programID": 161213, + "name": "YAKAP", + "details": "Accredited YAKAP clinic. Accreditation expires 12/31/2026.", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" + ] + }, + { + "programID": 606002, + "name": "Cancer Assistance Fund", + "details": "One of 34 CAF access sites in DOH's 2025 list.", + "sources": [ + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" + ] + } + ] + }, + { + "id": 2, + "name": "Davao Doctors Hospital", + "bgImageURL": "", + "sources": [ + "https://ddh.com.ph/" + ], + "description": "Davao Doctors Hospital soon opened its doors to the public in 1969, starting with a 50-bed capacity. Over time, DDH continued to foster many other firsts in the region as its Radiation Oncology Department became fully operational, among other notable innovations.", + "type": "Private Institution", + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(+6382) 222-8000" + }, + { + "contactID": 2, + "type": "Landline", + "contactDetails": "(+6382) 222 - 7948" + }, + { + "contactID": 3, + "type": "Email", + "contactDetails": "info@ddh.com.ph" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "118 E. Quirino Avenue, Davao City Philippines 8000", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [] + } + ], + "services": [ + { + "serviceID": 1, + "branchIDs": [ + 1 + ], + "serviceName": "Radiation Oncology Department", + "serviceDescription": "The oncology Center uses clinical and holistic approaches for the management of cancer. We aim to cure- to eradicate the tumor and prevent its recurrence, as well as to relieve pain and other discomforts of cancer. Equipment: Dual Energy Linear Accelerator; the Elekta Synergy linear Accelerator- the first IMRT/IGRT facility. Services Offered: Radiation Consultation Evaluation; Treatment Planning; External Beam Radiography; Low Dose Rate (LDR) Brachytherapy; Blood Irradiation. Location: Ground Level, Oncology Building. Office Hours: 6:00am - 6:00pm. Contact: (082) 222 8000 local 8158 | radonco@ddh.com.ph", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/radiation-oncology-department/" + ], + "serviceSchedule": null, + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Referral letter and a short clinical abstract." + }, + { + "requirementID": 2, + "requirementDescription": "Histopathologic report." + }, + { + "requirementID": 3, + "requirementDescription": "Laboratory and Imaging work-ups with results and radiographs." + }, + { + "requirementID": 4, + "requirementDescription": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + }, + { + "requirementID": 5, + "requirementDescription": "Dental clearance for head and neck tumors." + }, + { + "requirementID": 6, + "requirementDescription": "Steroid coverage for brain and spinal cord irradiation." + } + ], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "serviceName": "External Beam Radiation Therapy", + "serviceDescription": "Curative: Destroy tumors that have not spread the other parts of the body and cure you of disease reduce the risk that cancer will return after you undergo surgery or systemic/chemotherapy by killing small amounts of remaining cancer cells shrink cancer before surgery. Palliative: Shrink tumors that are interfering with your quality of life, such as lung tumor that is causing shortness of breath to relieve pain by reducing the size of a tumor and other unpleasant symptoms, thus improving the quality of life and prolongation of survival. Radiation Therapy usually takes from a week to eight weeks, depending on the goal, either curative or palliative. It is given daily from Monday to Friday lasting only for a few minutes, based on the prescribed dose and number of treatment fields. Who can avail? It has clinical applications for patients diagnosed with malignant tumors and occasionally benign diseases. Location: Ground floor of Oncology Building. Contact: +63 82 222 8000 local 8158 | +63 82 222 7992 | radonco@ddh.com.ph", + "cancerTypes": [ + "Brain / spinal cord tumors", + "Head and neck tumors", + "Lung cancer", + "Breast cancer", + "Cervix/ Endometrial / Ovarian", + "Vulvar cancer", + "Rectal cancer", + "Lymphoma", + "soft tissue tumors" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/external-beam-radiation-therapy/" + ], + "serviceSchedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "6:00am", + "timeOut": "6:00pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "serviceName": "Brachytherapy", + "serviceDescription": "Brachytherapy is a procedure that involves placing radioactive material inside your body. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": [ + "Cervical Cancer", + "Endometrial Cancer", + "Vaginal Cancer" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [ + { + "step": 1, + "instruction": "Scheduling & pre – operative preparations c/o cancer center" + }, + { + "step": 2, + "instruction": "Direct to room admission (with prior doctors orders)" + }, + { + "step": 3, + "instruction": "Confined in a private deluxe for 2 – 3 days" + } + ] + }, + { + "serviceID": 4, + "branchIDs": [ + 1 + ], + "serviceName": "In-patient Chemotherapy", + "serviceDescription": "Hemotherapy is a drug treatment that uses powerful chemicals to kill fast-growing cells in your body. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "serviceName": "Radioactive Iodine Therapy (RAI)", + "serviceDescription": "Low dose and high dose radioactive iodine (RAI) therapy c/o physician on – board. Uses: Hyperthyroidism (Grave's Disease, solitary autonomous nodule); Ablation of thyroid remnants after thyroidectomy; Treatment of Metastatic Thyroid Carcinoma. Location: Ground Level, Oncology Building. Contact Info: (6382) 222 - 8000 loc. 8143", + "cancerTypes": [ + "Papillary Thyroid Cancer", + "Follicular Thyroid Cancer" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/", + "https://ddh.com.ph/services-and-centers/nuclear-medicine/" + ], + "serviceSchedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "7:00am", + "timeOut": "6:00pm" + }, + { + "day": "Saturdays", + "timeIn": "7:00 am", + "timeOut": "3:00 pm" + } + ], + "requirements": [], + "procedure": [ + { + "step": 1, + "instruction": "Scheduling c/o Nuclear Medicine Department" + }, + { + "step": 2, + "instruction": "Direct – to – room admission (with prior doctors orders)" + }, + { + "step": 3, + "instruction": "Confined in a private deluxe for 2 – 3 days" + } + ] + }, + { + "serviceID": 6, + "branchIDs": [ + 1 + ], + "serviceName": "Long Term Radiotherapy", + "serviceDescription": "Clients located far from the city may opt to be admitted in the unit to complete the recommended number of RT treatments. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + } + ], + "coverage": [ + { + "programID": 101002, + "name": "Z Benefit Packages", + "details": "Contracted for Breast Cancer, as of September 30, 2026.", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] + }, + { + "programID": null, + "name": "LINGAP – City Government of Davao", + "details": "Accredited government financial medical assistance (as of November 2024). Office: Malasakit Center, Bajada, Davao City (beside SPMC Hospital).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": null, + "name": "DSWD – Department of Social Welfare & Development", + "details": "Accredited government financial medical assistance (as of November 2024). Office: Ramon Magsaysay, Davao City (near DPWH Office).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": 505001, + "name": "PCSO – Philippine Charity Sweepstakes Office", + "details": "Accredited government financial medical assistance (as of November 2024).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": 606001, + "name": "MAIFIP", + "details": "Accredited government financial medical assistance (as of November 2024). For out-patient help, the hospital asks for a Certificate of Procedure's Non-Availability from SPMC Hospital.", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + } + ] + }, + { + "id": 3, + "name": "Brokenshire Medical Center", + "bgImageURL": "", + "sources": [ + "https://brokenshiremed.com/" + ], + "description": "Private mission hospital in Davao City. It opened a Chemotherapy and Infusion Unit on March 9, 2026, and has medical, surgical and urologic oncologists. In January 2026 it performed its first laparoscopic radical cystectomy for bladder cancer.", + "type": "Private Institution", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "landmark": null, + "latitude": 7.0836433, + "longitude": 125.6006496, + "schedule": [], + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(082) 282 1908" + }, + { + "contactID": 2, + "type": "Mobile", + "contactDetails": "0917-326-2262" + }, + { + "contactID": 3, + "type": "Email", + "contactDetails": "info@brokenshire.org" + } + ] + } + ], + "services": [ + { + "serviceID": 1, + "branchIDs": [ + 1 + ], + "serviceName": "Chemotherapy and Infusion Unit", + "serviceDescription": "Delivering safe, patient-centered chemotherapy and infusion treatments in a supportive and healing environment (hospital's words). Opened on March 9, 2026.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://brokenshiremed.com/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + } + ], + "coverage": [] + } + ] +} diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json new file mode 100644 index 0000000..b2be154 --- /dev/null +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -0,0 +1,441 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "HealthInstiData.schema.json", + "title": "HealthInstiData", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./HealthInstiData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "healthInsti": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "bgImageURL": { + "type": "string", + "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", + "format": "uri-reference" + }, + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "contacts": { + "$ref": "#/$defs/contacts", + "description": "Main contacts of the whole institution, e.g. a national hotline. Branch contacts are inside each branch." + }, + "branches": { + "type": "array", + "items": { + "$ref": "#/$defs/branch" + }, + "minItems": 1 + }, + "services": { + "type": "array", + "items": { + "type": "object", + "properties": { + "serviceID": { + "type": "integer" + }, + "branchIDs": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true, + "description": "Branches that offer this service. Each must be a branchID of the same institution." + }, + "serviceName": { + "type": "string" + }, + "serviceDescription": { + "type": "string" + }, + "cancerTypes": { + "$ref": "#/$defs/cancerTypes" + }, + "fee": { + "type": [ + "null", + "string" + ], + "description": "Fee as written by the source, e.g. '₱5,000 per session' or 'Free'. null if not given." + }, + "sources": { + "$ref": "#/$defs/sources" + }, + "serviceSchedule": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/$defs/scheduleEntry" + }, + "description": "Days and hours of this service. Empty list = follows the branch hours. null if not given." + }, + "requirements": { + "$ref": "#/$defs/requirements" + }, + "procedure": { + "$ref": "#/$defs/procedure" + } + }, + "required": [ + "serviceID", + "branchIDs", + "serviceName", + "serviceDescription", + "cancerTypes", + "fee", + "sources", + "serviceSchedule", + "requirements", + "procedure" + ], + "additionalProperties": false + } + }, + "coverage": { + "type": "array", + "description": "Payment and financial-help programs this hospital accepts or is accredited for. Empty if not given (show \"Not given\").", + "items": { + "type": "object", + "properties": { + "programID": { + "type": [ + "integer", + "null" + ], + "description": "The program in FinancialInstiData (programs[].programID), so apps can link to it. null when that program is not in this API." + }, + "name": { + "type": "string", + "description": "Program or agency name, as written by the source." + }, + "details": { + "type": [ + "string", + "null" + ], + "description": "What the source says about it at this hospital, e.g. packages, tests or office. null if not given." + }, + "sources": { + "$ref": "#/$defs/sources" + } + }, + "required": [ + "programID", + "name", + "details", + "sources" + ], + "additionalProperties": false + } + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "sources", + "description", + "type", + "contacts", + "branches", + "services", + "coverage" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "healthInsti" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contactID": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contactDetails": { + "type": "string" + } + }, + "required": [ + "contactID", + "type", + "contactDetails" + ], + "additionalProperties": false + }, + "contacts": { + "type": "array", + "items": { + "$ref": "#/$defs/contact" + } + }, + "scheduleEntry": { + "type": "object", + "properties": { + "day": { + "type": "string", + "description": "Day or days as written by the source, e.g. 'Monday' or 'Monday-Friday'. A day can appear twice for split hours." + }, + "timeIn": { + "type": "string", + "description": "Opening or start time, e.g. '8:00 am'." + }, + "timeOut": { + "type": "string", + "description": "Closing or end time, e.g. '5:00 pm'." + } + }, + "required": [ + "day", + "timeIn", + "timeOut" + ], + "additionalProperties": false + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/$defs/scheduleEntry" + }, + "description": "Open days and hours. Closed days are left out." + }, + "branch": { + "type": "object", + "properties": { + "branchID": { + "type": "integer" + }, + "branchName": { + "type": [ + "null", + "string" + ], + "description": "Name of the branch, e.g. 'Davao City Branch'. null if not given." + }, + "location": { + "type": "string" + }, + "landmark": { + "type": [ + "null", + "string" + ], + "description": "A landmark that helps people find it, as written by the source, e.g. 'infront SPMC Hospital'. null if not given." + }, + "latitude": { + "type": [ + "null", + "number" + ], + "description": "Latitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "longitude": { + "type": [ + "null", + "number" + ], + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." + }, + "schedule": { + "anyOf": [ + { + "$ref": "#/$defs/schedule" + }, + { + "type": "null" + } + ], + "description": "Open days and hours. null if not known (show \"Not given\")." + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "branchID", + "branchName", + "location", + "landmark", + "latitude", + "longitude", + "schedule", + "contacts" + ], + "additionalProperties": false + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + }, + "cancerTypes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true, + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not given\")." + }, + "requirements": { + "type": "array", + "description": "Documents to bring, one per item, as written by the source. Empty if not given. Apps: when empty, show \"Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about the requirements.\"", + "items": { + "type": "object", + "properties": { + "requirementID": { + "type": "integer" + }, + "requirementDescription": { + "type": "string" + } + }, + "required": [ + "requirementID", + "requirementDescription" + ], + "additionalProperties": false + } + }, + "procedure": { + "type": "array", + "description": "Steps in order, as written by the source. Empty if not given. Apps: when empty, show \"Not given yet. Visit the facility and ask the staff in charge (for example the social worker or the help desk) about the steps.\"", + "items": { + "type": "object", + "properties": { + "step": { + "type": "integer" + }, + "instruction": { + "type": "string" + } + }, + "required": [ + "step", + "instruction" + ], + "additionalProperties": false + } + } + } +} diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json new file mode 100644 index 0000000..ece8c9d --- /dev/null +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -0,0 +1,2084 @@ +{ + "$schema": "./MedicalSpecialistData.schema.json", + "meta": { + "title": "Medical specialists", + "description": "Cancer doctors in Davao City, with their clinics, schedules and booking.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 29, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./MedicalSpecialistData.schema.json" + }, + "medicalSpecialist": [ + { + "id": 1, + "firstname": "Soo Rah", + "lastname": "Chavez", + "specialty": "Internal Medicine", + "description": "I specialize in all adult disease (internal medicine) and also specialize in medical oncology (cancer care and treatment). I handle consultations virtually and face to face, administer vaccines and chemotherapy. I also do surveillance and screening of any adult cancer type.", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/soo-rah-kwak?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "01:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "01:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "01:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:00 am", + "timeOut": "01:00 pm" + } + ] + } + ] + }, + { + "id": 2, + "firstname": "Miguel", + "lastname": "Villanueva", + "specialty": "General Surgery", + "description": "A General Surgeon/ Surgical Oncologist based in Davao City.", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/miguel-villanueva?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Care Center - SM Lanang", + "location": "Ground Floor, SM Lanang, J.P. Laurel Ave, Agdao, Davao City, 8000 Davao del Sur", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 am", + "timeOut": "05:00 am" + }, + { + "day": "Friday", + "timeIn": "01:00 am", + "timeOut": "03:00 am" + }, + { + "day": "Saturday", + "timeIn": "01:00 am", + "timeOut": "03:00 am" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Miguel Villanueva General Surgery and Surgical Oncology Clinic", + "location": "Room 204, 2nd Floro Jesusa Complex, Malvar Street Corner Mt. Apo Street, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "03:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "03:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Saturday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 3, + "firstname": "John Paul", + "lastname": "Abrina", + "specialty": "Radiation Oncology", + "description": "Board-certified radiation oncologist practicing in the cities of Davao and Tagum", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/jpabrina?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctor's Hospital", + "location": "118 E, Quirino Avenue, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "08:00 am", + "timeOut": "04:00 pm" + } + ] + } + ] + }, + { + "id": 4, + "firstname": "Perlita Joanne", + "lastname": "Yu-dela Cruz", + "specialty": "Internal Medicine", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/perlita-joanne-yudelacruz?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Integrated Health Ministries, Inc.", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + }, + { + "day": "Thursday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + }, + { + "day": "Friday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + } + ] + }, + { + "clinicID": 3, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Thursday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + } + ] + } + ] + }, + { + "id": 5, + "firstname": "Lauralee", + "lastname": "Leaño-Samonte", + "specialty": "Breast and Surgical Oncology", + "description": "A general surgeon and a surgical oncologist specializing in breast and other solid cancers", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/lauralee-leanosamonte?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + }, + { + "day": "Friday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Tagum Global Medical Center", + "location": "Daang Maharlika Hwy,", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 6, + "firstname": "Jay-R", + "lastname": "Enojo", + "specialty": "Oncologic Urology / General Urology", + "description": "Treats and manages Adrenal, Kidney, Ureter, Bladder, Prostate, Testicular and Penile Cancers and Genitourinary Stones", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/jay-r-enojo" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "BROKENSHIRE MEDICAL CENTER", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "01:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Friday", + "timeIn": "01:00 pm", + "timeOut": "05:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Saturday", + "timeIn": "08:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 7, + "firstname": "Chita", + "lastname": "Matunog", + "specialty": "Diplomate in Internal Medicine", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/chita-matunog?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%2520-%2520Medical%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Matunog Cancer Care Clinic", + "location": "Guzman Street", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + } + ] + } + ] + }, + { + "id": 8, + "firstname": "Hannah Grace", + "lastname": "Segocio", + "specialty": "General Pediatrics and Oncology", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/hannah-grace-segocio?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "M300 Health Science Wellness Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Thursday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Saturday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "12:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "08:00 am", + "timeOut": "05:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "08:00 am", + "timeOut": "05:00 pm" + }, + { + "day": "Friday", + "timeIn": "12:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Saturday", + "timeIn": "09:00 am", + "timeOut": "05:00 pm" + } + ] + } + ] + }, + { + "id": 9, + "firstname": "Noel Rex", + "lastname": "Penaranda", + "specialty": "Orthopedic Oncology", + "description": "Orthopedic Oncologist, Musculoskeletal Tumor Surgeon and Sarcoma Surgeon", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/noel-rex-penaranda?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D1" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Orthopedic Center", + "location": "118 E, Quirino Avenue, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "11:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "11:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Friday", + "timeIn": "11:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 10, + "firstname": "Charmaine Catherine", + "lastname": "Valdez", + "specialty": "General Surgery", + "description": "Orthopedic Oncologist, Musculoskeletal Tumor Surgeon and Sarcoma Surgeon", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/charmaine-catherine-valdez" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Integrated Health Ministries, Inc.", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Thursday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Saturday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + }, + { + "day": "Sunday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + } + ] + } + ] + }, + { + "id": 11, + "firstname": "Aaron Paul", + "lastname": "Punzalan", + "specialty": "Orthopedic Oncology", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/aaron-paul-punzalan" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Ecoland Medical and Wellness Center", + "location": "Quimpo Blvd. cor Tulip Drive, Ecoland", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "03:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + }, + { + "day": "Saturday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Good Shepherd Hospital of Panabo City", + "location": "Km. 31 National Highway, New Pandan, Panabo, Philippines", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Saturday", + "timeIn": "09:00 am", + "timeOut": "11:30 am" + } + ] + }, + { + "clinicID": 3, + "clinicName": "Davao Outpatient Surgery and Advanced Wound Care Center", + "location": "Km. 4 J.P. Laurel Avenue, Bajada", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 4, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "10:30 am" + } + ] + }, + { + "clinicID": 5, + "clinicName": "Malta Medical Center, Inc.", + "location": "Kilometer 14 Mac Arthur Highway, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Friday", + "timeIn": "01:30 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 6, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "07:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "07:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "07:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:00 am", + "timeOut": "07:00 pm" + }, + { + "day": "Saturday", + "timeIn": "10:00 am", + "timeOut": "03:00 pm" + } + ] + } + ] + }, + { + "id": 12, + "firstname": "Michael Jonathan", + "lastname": "Latayan", + "specialty": "Urologic Oncology", + "description": "I am a urologist certified by the Philippine Board of Urology practicing in Davao City. I was trained in the National Kidney and Transplant Institute, the premier training institution in the field of Urology. I am an expert in minimally invasive and laparoscopic urologic surgeries as well as transplant urology. I treat diseases , tumors and stones of the KIDNEYS, URETER, URINARY BLADDER, PROSTATE and ADRENALS as well as disorders and problems of the MALE GENITALIA, TESTIS and SCROTUM.", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/mlatayan" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday to Friday", + "timeIn": "05:00 pm", + "timeOut": "06:00 pm" + }, + { + "day": "Saturday", + "timeIn": "10:00 am", + "timeOut": "11:00 am" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Davao Medical School Foundation Hospital", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "11:30 am", + "timeOut": "12:30 pm" + }, + { + "day": "Tuesday to Friday", + "timeIn": "11:00 am", + "timeOut": "12:30 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "Latayan Urology Clinic MDMRC", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday to Friday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + } + ] + } + ] + }, + { + "id": 13, + "firstname": "Danzon John", + "lastname": "De Castro", + "specialty": "ENT-HNS - Head & Neck Surgical Oncology", + "description": "Dr. Danzon John de Castro was born and raised in Butuan City, Agusan del Norte. He earned his bachelor's degree in Nutrition and Dietetics from Silliman University and his Doctor of Medicine degree from Southwestern University Matias H. Aznar Memorial College of Medicine. He is a licensed physician and a registered nutritionist-dietitian. His professional interests include head and neck oncology, free flap reconstruction, nutritional biochemistry, medical nutrition therapy, and surgical innovation.", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/danzon-john-decastro?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D2" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "ENT Head & Neck Reconstructive Microsurgery Clinic", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0918 426 3266" + } + ], + "schedule": [ + { + "day": "Monday", + "timeIn": "04:00 pm", + "timeOut": "06:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "09:30 am", + "timeOut": "04:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "04:00 pm", + "timeOut": "06:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:30 am", + "timeOut": "04:00 pm" + }, + { + "day": "Saturday", + "timeIn": "09:30 am", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Integrated Clinics Of Otolaryngology - Head And Neck Surgery", + "location": "Quirno Avenue, Mayon St, Poblacion District, Davao City, 8000 Davao del Sur", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "(082) 227 7343" + } + ], + "schedule": [ + { + "day": "Friday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "San Pedro Hospital of Davao City", + "location": "G. Guzman, Guerrero St., Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:30 am", + "timeOut": "03:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:30 am", + "timeOut": "03:00 pm" + } + ] + }, + { + "clinicID": 4, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + }, + { + "day": "Thursday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + }, + { + "day": "Friday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + }, + { + "day": "Saturday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + } + ] + } + ] + }, + { + "id": 14, + "firstname": "Felycette Gay M.", + "lastname": "Lapus", + "specialty": "Medical Oncology", + "description": "Medical Oncology specialist at Davao Doctors Hospital (RM. 7 09).", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/lapus-felycette-gay-m-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 7 09)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0917-701-0567" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "9am", + "timeOut": "12nn" + }, + { + "day": "TUE", + "timeIn": "1pm", + "timeOut": "3pm" + }, + { + "day": "WED", + "timeIn": "1pm", + "timeOut": "3pm" + } + ] + } + ] + }, + { + "id": 15, + "firstname": "Kenny Jun N.", + "lastname": "Demegillo", + "specialty": "Geriatric Oncology", + "description": "Geriatric Oncology specialist at Davao Doctors Hospital (RM. 1010, RM. 7 09).", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/demegillo-kenny-jun-n-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 1010, RM. 7 09)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0954-273-4521" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "1pm", + "timeOut": "5pm" + }, + { + "day": "TUE", + "timeIn": "1pm", + "timeOut": "5pm" + }, + { + "day": "WED", + "timeIn": "By Appointment", + "timeOut": "" + }, + { + "day": "THU", + "timeIn": "1pm", + "timeOut": "5pm" + }, + { + "day": "FRI", + "timeIn": "1pm", + "timeOut": "5pm" + } + ] + } + ] + }, + { + "id": 16, + "firstname": "Honey Sarita J.", + "lastname": "Abarquez", + "specialty": "Medical Oncology", + "description": "Medical Oncology specialist at Davao Doctors Hospital (RM. 8 09).", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/abarquez-honey-sarita-j-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 8 09)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0915-058-3725" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "2pm onwards", + "timeOut": "" + }, + { + "day": "TUE", + "timeIn": "2pm onwards", + "timeOut": "" + }, + { + "day": "WED", + "timeIn": "2pm onwards", + "timeOut": "" + }, + { + "day": "THU", + "timeIn": "2pm onwards", + "timeOut": "" + }, + { + "day": "FRI", + "timeIn": "2pm onwards", + "timeOut": "" + } + ] + } + ] + }, + { + "id": 17, + "firstname": "James Edward R.", + "lastname": "Mangaoil", + "specialty": "Surgical Oncology", + "description": "Surgical Oncology specialist at Davao Doctors Hospital.", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/mangaoil-james-edward-r-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 805)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09694235569" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "By Appointment", + "timeOut": "" + }, + { + "day": "TUE", + "timeIn": "By Appointment", + "timeOut": "" + }, + { + "day": "WED", + "timeIn": "By Appointment", + "timeOut": "" + }, + { + "day": "THU", + "timeIn": "By Appointment", + "timeOut": "" + }, + { + "day": "FRI", + "timeIn": "By Appointment", + "timeOut": "" + } + ] + } + ] + }, + { + "id": 18, + "firstname": "Roland Victor A.", + "lastname": "Chiu", + "specialty": "Surgical Oncology", + "description": "Surgical Oncology specialist at Davao Doctors Hospital and Brokenshire Medical Center.", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/chiu-roland-victor-a-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 903)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09423997676" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "2pm", + "timeOut": "4pm" + }, + { + "day": "TUE", + "timeIn": "2pm", + "timeOut": "4pm" + }, + { + "day": "WED", + "timeIn": "2pm", + "timeOut": "4pm" + }, + { + "day": "THU", + "timeIn": "2pm", + "timeOut": "4pm" + }, + { + "day": "FRI", + "timeIn": "2pm", + "timeOut": "4pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0953-960-8332" + } + ], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:30 AM", + "timeOut": "03:00 PM" + }, + { + "day": "Tuesday", + "timeIn": "09:30 AM", + "timeOut": "03:00 PM" + }, + { + "day": "Wednesday", + "timeIn": "09:30 AM", + "timeOut": "03:00 PM" + }, + { + "day": "Thursday", + "timeIn": "09:30 AM", + "timeOut": "03:00 PM" + }, + { + "day": "Friday", + "timeIn": "09:30 AM", + "timeOut": "03:00 PM" + } + ] + } + ] + }, + { + "id": 19, + "firstname": "Carol Marjorie P.", + "lastname": "Flavier", + "specialty": "Gynecological Oncology", + "description": "Gynecological Oncology specialist at Davao Doctors Hospital (RM. 215).", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/flavier-carol-marjorie-p-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 215)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09333486510" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "9am", + "timeOut": "2pm" + }, + { + "day": "TUE", + "timeIn": "9am", + "timeOut": "2pm" + }, + { + "day": "WED", + "timeIn": "9am", + "timeOut": "2pm" + }, + { + "day": "THU", + "timeIn": "9am", + "timeOut": "2pm" + }, + { + "day": "FRI", + "timeIn": "9am", + "timeOut": "2pm" + } + ] + } + ] + }, + { + "id": 20, + "firstname": "Concepcion D.", + "lastname": "Rayel", + "specialty": "Gynecological Oncology", + "description": "Gynecological Oncology specialist at Davao Doctors Hospital (RM. 407).", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/rayel-concepcion-d-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 407)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09502681182" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "9:30am", + "timeOut": "1pm" + }, + { + "day": "TUE", + "timeIn": "9:30am", + "timeOut": "1pm" + }, + { + "day": "WED", + "timeIn": "9:30am", + "timeOut": "1pm" + }, + { + "day": "THU", + "timeIn": "9:30am", + "timeOut": "1pm" + }, + { + "day": "FRI", + "timeIn": "9:30am", + "timeOut": "1pm" + } + ] + } + ] + }, + { + "id": 21, + "firstname": "Manuel R. Jr.", + "lastname": "Garcia", + "specialty": "Head, and Neck Surgical Oncology", + "description": "Head, and Neck Surgical Oncology specialist at Davao Doctors Hospital.", + "imageURL": "", + "sources": [ + "https://ddh.com.ph/doctors/garcia-manuel-r-jr-m-d/" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 601)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09755547833" + } + ], + "schedule": [ + { + "day": "MON", + "timeIn": "1pm onwards", + "timeOut": "" + }, + { + "day": "TUE", + "timeIn": "1pm onwards", + "timeOut": "" + }, + { + "day": "WED", + "timeIn": "10am", + "timeOut": "12nn" + }, + { + "day": "THU", + "timeIn": "1pm onwards", + "timeOut": "" + }, + { + "day": "FRI", + "timeIn": "1pm onwards", + "timeOut": "" + } + ] + } + ] + }, + { + "id": 22, + "firstname": "Shalimar C.", + "lastname": "Cortez", + "specialty": "Surgery - Oncology", + "description": "Surgery - Oncology specialist at Brokenshire Medical Center.", + "imageURL": "", + "sources": [ + "https://brokenshiremed.com/doctors-directory" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0943-707-8266" + }, + { + "contactID": 2, + "type": "Mobile", + "contactDetails": "0917-705-6902" + } + ], + "schedule": [] + } + ] + }, + { + "id": 23, + "firstname": "Anthony", + "lastname": "Araral", + "specialty": "Surgery - Oncology- Cancer & General- Minimally Invasive", + "description": "Surgery - Oncology- Cancer & General- Minimally Invasive specialist at Brokenshire Medical Center.", + "imageURL": "", + "sources": [ + "https://brokenshiremed.com/doctors-directory" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0917-705-6902" + } + ], + "schedule": [] + } + ] + }, + { + "id": 24, + "firstname": "Abdiel", + "lastname": "Galicia", + "specialty": "Internal Medicine - Oncology", + "description": "Internal Medicine - Oncology specialist at Brokenshire Medical Center.", + "imageURL": "", + "sources": [ + "https://brokenshiremed.com/doctors-directory" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0963-124-3548" + }, + { + "contactID": 2, + "type": "Mobile", + "contactDetails": "0917-319-5140" + } + ], + "schedule": [] + } + ] + }, + { + "id": 25, + "firstname": "Anna Mariel", + "lastname": "Rivera", + "specialty": "General Surgery, Head and Neck Surgery, Minimally Invasive Surgery", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/anna-mariel-rivera" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Rivera Medical Center", + "location": "7302 San Francisco, Panabo City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "03:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "03:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Friday", + "timeIn": "09:00 am", + "timeOut": "03:00 pm" + }, + { + "day": "Saturday", + "timeIn": "09:00 am", + "timeOut": "03:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Brokenshire Integrated Health Ministries, Inc.", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Thursday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + } + ] + } + ] + }, + { + "id": 26, + "firstname": "Jeannine Anjelica", + "lastname": "Ledesma-Quijada", + "specialty": "Breast Surgical Oncology and Oncoplastic Surgery, General Surgery", + "description": "Breast surgical oncology and oncoplastic surgery; General Surgery", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/jeannine-anjelica-ledesma" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "San Pedro Hospital of Davao City", + "location": "G. Guzman, Guerrero St., Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Saturday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Anda Riverview Medical Center (ARMCI)", + "location": "Magallanes St.,", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "10:00 am", + "timeOut": "02:00 pm" + }, + { + "day": "Saturday", + "timeIn": "10:00 am", + "timeOut": "02:00 pm" + } + ] + } + ] + }, + { + "id": 27, + "firstname": "Romulo", + "lastname": "Ong Abrantes", + "specialty": "Surgery, General Surgery, HepatoPancreatoBiliary Surgery", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/rongabrantes" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Liver, Pancreas And Biliary Tree Clinic", + "location": "118 E, Quirino Avenue, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + }, + { + "day": "Wednesday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + }, + { + "day": "Friday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Saturday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + }, + { + "day": "Wednesday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + }, + { + "day": "Friday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Saturday", + "timeIn": "12:00 am", + "timeOut": "11:30 pm" + } + ] + } + ] + }, + { + "id": 28, + "firstname": "Kristine Kamille", + "lastname": "Nieto-Lorenzo", + "specialty": "General Surgery, Surgical Oncology", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/kristine-kamille-nietolorenzo" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Clinica Tan", + "location": "18 Gempesaw Street", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "02:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:00 am", + "timeOut": "02:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Lorenzo Surgical Clinic", + "location": "Demontano Building, Santiago Boulevard", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "01:00 pm", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "General Santos Doctor's Hospital", + "location": "National Highway, General Santos City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + } + ] + }, + { + "clinicID": 4, + "clinicName": "Dadiangas Medical Center", + "location": "Allado Compound, Leon Llido St, City Heights", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 29, + "firstname": "Adrian", + "lastname": "Lorenzo", + "specialty": "General Surgery, Advanced Laparoscopic Surgery, Hepatobiliary and Pancreatic Surgery", + "description": "For any inquiries please reach me here:\n\nhttps://www.facebook.com/dr.adrianlorenzo", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/adrianlorenzo" + ], + "clinics": [ + { + "clinicID": 1, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Saturday", + "timeIn": "08:00 am", + "timeOut": "10:00 am" + } + ] + }, + { + "clinicID": 2, + "clinicName": "GSDH Medical Suites Buidling", + "location": "National Highway, General Santos City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "08:00 am", + "timeOut": "02:00 pm" + }, + { + "day": "Tuesday", + "timeIn": "08:00 am", + "timeOut": "02:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "08:00 am", + "timeOut": "02:00 pm" + }, + { + "day": "Thursday", + "timeIn": "08:00 am", + "timeOut": "02:00 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "St. Elizabeth Hospital", + "location": "National Highway, General Santos City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "02:00 pm", + "timeOut": "05:00 pm" + } + ] + } + ] + } + ] +} diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json new file mode 100644 index 0000000..b71ff06 --- /dev/null +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -0,0 +1,269 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "MedicalSpecialistData.schema.json", + "title": "MedicalSpecialistData", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./MedicalSpecialistData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "medicalSpecialist": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "specialty": { + "type": "string" + }, + "description": { + "type": "string" + }, + "imageURL": { + "type": "string", + "description": "Profile image: a path in this API like /images//.webp, or a full https:// URL. Empty if there is no consented photo.", + "format": "uri-reference" + }, + "sources": { + "$ref": "#/$defs/sources" + }, + "clinics": { + "type": "array", + "items": { + "type": "object", + "properties": { + "clinicID": { + "type": "integer" + }, + "clinicName": { + "type": "string" + }, + "location": { + "type": "string" + }, + "latitude": { + "type": [ + "null", + "number" + ], + "description": "Latitude (from Google Maps). null if not known." + }, + "longitude": { + "type": [ + "null", + "number" + ], + "description": "Longitude (from Google Maps). null if not known." + }, + "bookingType": { + "type": [ + "null", + "string" + ], + "enum": [ + null, + "Walk-in only", + "Appointment only", + "Walk-in and appointment" + ], + "description": "How patients are seen. null if not known (show \"Not given\")." + }, + "contacts": { + "$ref": "#/$defs/contacts" + }, + "schedule": { + "$ref": "#/$defs/schedule" + } + }, + "required": [ + "clinicID", + "clinicName", + "location", + "latitude", + "longitude", + "bookingType", + "contacts", + "schedule" + ], + "additionalProperties": false + } + } + }, + "required": [ + "id", + "firstname", + "lastname", + "specialty", + "description", + "imageURL", + "sources", + "clinics" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "medicalSpecialist" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contactID": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contactDetails": { + "type": "string" + } + }, + "required": [ + "contactID", + "type", + "contactDetails" + ], + "additionalProperties": false + }, + "contacts": { + "type": "array", + "items": { + "$ref": "#/$defs/contact" + } + }, + "scheduleEntry": { + "type": "object", + "properties": { + "day": { + "type": "string", + "description": "Day or days as written by the source, e.g. 'Monday' or 'Monday-Friday'. A day can appear twice for split hours." + }, + "timeIn": { + "type": "string", + "description": "Opening or start time, e.g. '8:00 am'." + }, + "timeOut": { + "type": "string", + "description": "Closing or end time, e.g. '5:00 pm'." + } + }, + "required": [ + "day", + "timeIn", + "timeOut" + ], + "additionalProperties": false + }, + "schedule": { + "type": "array", + "items": { + "$ref": "#/$defs/scheduleEntry" + }, + "description": "Open days and hours. Closed days are left out." + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + } + } +} diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json new file mode 100644 index 0000000..9240651 --- /dev/null +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -0,0 +1,73 @@ +{ + "$schema": "./SupportGroupsData.schema.json", + "meta": { + "title": "Support groups", + "description": "Cancer support groups for patients, survivors and families.", + "apiVersion": "v2", + "lastUpdated": "2026-11-27", + "recordCount": 2, + "coverage": "Davao City, Philippines", + "language": "en", + "license": "CC0-1.0", + "licenseURL": "https://creativecommons.org/publicdomain/zero/1.0/", + "publisher": "Cancer Open Data (ProjectFuritsu)", + "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", + "schema": "./SupportGroupsData.schema.json" + }, + "supportGroup": [ + { + "id": 1, + "name": "AMUMA", + "description": "AMUMA is a non-stock, non-profit foundation based in Davao City, Philippines. We are a group of dynamic and caring individuals committed to meeting the spiritual, emotional, and practical needs of cancer patients, their families and caregivers, by providing holistic care and support through building and maintaining a healing center for education, counseling, networking, and empowerment.", + "type": "General Support Groups", + "cancerTypes": null, + "socmedURL": "https://www.facebook.com/amumasupport", + "bgImageURL": "/images/SupportGroups/amuma.webp", + "location": "Davao City", + "latitude": null, + "longitude": null, + "founders": [ + "Dr. Jose Beltran" + ], + "meetingSchedule": null, + "sources": [], + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "09384376090" + } + ] + }, + { + "id": 2, + "name": "House of Hope Foundation for Kids with Cancer Inc.", + "description": "Foundation in Davao City for children with cancer aged 19 and below who are admitted at the Southern Philippines Medical Center or its shared care facilities in Mindanao. It started in 2004 as Davao Children's with Cancer Fund Inc. and became the House of Hope Foundation in 2015. It runs transient homes for young patients and their families, and helps with diagnostics, medicines and treatment such as radiotherapy.", + "type": "Family Support Groups", + "cancerTypes": null, + "socmedURL": "https://www.facebook.com/kidsofhopeorg", + "bgImageURL": "", + "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", + "latitude": null, + "longitude": null, + "founders": [ + "Mae Dolendo" + ], + "meetingSchedule": null, + "sources": [ + "https://www.kidsofhope.org/contactus", + "https://www.kidsofhope.org", + "https://mindanews.com/top-stories/2023/10/house-of-hope-seeks-more-shared-care-centers-for-children-with-cancer/", + "https://www.sunstar.com.ph/more-articles/house-of-hope-living-up-to-its-name", + "https://www.stjude.org/inspire/series/around-the-world/philippines-dr-mae-dolendo-mindanao-house-of-hope-foundation.html" + ], + "contacts": [ + { + "contactID": 1, + "type": "Mobile", + "contactDetails": "0977 329 8496" + } + ] + } + ] +} diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json new file mode 100644 index 0000000..b9ee7cb --- /dev/null +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -0,0 +1,248 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "SupportGroupsData.schema.json", + "title": "SupportGroupsData", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "meta": { + "type": "object", + "description": "About this file: what it is, when its records last changed, how many there are, and its license. Written by scripts/convert-v2.mjs.", + "properties": { + "title": { + "type": "string", + "description": "Short name of the dataset." + }, + "description": { + "type": "string", + "description": "What the dataset holds." + }, + "apiVersion": { + "const": "v2", + "description": "API version of this file." + }, + "lastUpdated": { + "type": "string", + "format": "date", + "description": "Date (YYYY-MM-DD, Philippine time) the records last changed. Rebuilding without changes keeps the date." + }, + "recordCount": { + "type": "integer", + "minimum": 0, + "description": "Number of records in this file." + }, + "coverage": { + "type": "string", + "description": "Area the data covers." + }, + "language": { + "type": "string", + "description": "Language of the text (BCP 47 code)." + }, + "license": { + "const": "CC0-1.0", + "description": "License of the data (SPDX id). Logos and photos in images/ belong to their owners." + }, + "licenseURL": { + "type": "string", + "format": "uri" + }, + "publisher": { + "type": "string" + }, + "contact": { + "type": "string", + "format": "uri", + "description": "Where to report wrong data or ask questions." + }, + "schema": { + "const": "./SupportGroupsData.schema.json", + "description": "This file's JSON Schema." + } + }, + "required": [ + "title", + "description", + "apiVersion", + "lastUpdated", + "recordCount", + "coverage", + "language", + "license", + "licenseURL", + "publisher", + "contact", + "schema" + ], + "additionalProperties": false + }, + "supportGroup": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "General Support Groups", + "Peer Support Groups", + "Therapeutic Support", + "Condition-Specific Support Groups", + "Online Support Groups", + "Family Support Groups", + "Educational Support Groups" + ] + }, + "cancerTypes": { + "$ref": "#/$defs/cancerTypes" + }, + "socmedURL": { + "type": [ + "null", + "string" + ], + "format": "uri", + "description": "Official social media page URL, or null if not known." + }, + "bgImageURL": { + "type": "string", + "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", + "format": "uri-reference" + }, + "location": { + "type": "string" + }, + "latitude": { + "type": [ + "null", + "number" + ], + "description": "Latitude (from Google Maps). null if not known." + }, + "longitude": { + "type": [ + "null", + "number" + ], + "description": "Longitude (from Google Maps). null if not known." + }, + "founders": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "Founders' names as written. Empty if not given." + }, + "meetingSchedule": { + "type": [ + "null", + "string" + ], + "description": "When the group meets, as written, e.g. 'Every 1st Saturday, 2:00 pm'. null if not given." + }, + "sources": { + "$ref": "#/$defs/sources" + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "id", + "name", + "description", + "type", + "cancerTypes", + "socmedURL", + "bgImageURL", + "location", + "latitude", + "longitude", + "founders", + "meetingSchedule", + "sources", + "contacts" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "supportGroup" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contactID": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contactDetails": { + "type": "string" + } + }, + "required": [ + "contactID", + "type", + "contactDetails" + ], + "additionalProperties": false + }, + "contacts": { + "type": "array", + "items": { + "$ref": "#/$defs/contact" + } + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "uniqueItems": true, + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + }, + "cancerTypes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true, + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not given\")." + } + } +} diff --git a/data/HealthInstitution/HealthInstiData.json b/data/HealthInstitution/HealthInstiData.json index fc58e68..786e557 100644 --- a/data/HealthInstitution/HealthInstiData.json +++ b/data/HealthInstitution/HealthInstiData.json @@ -51,6 +51,56 @@ "service_description": "Listed by the Department of Health as one of 36 Cancer Assistance Fund access sites nationwide (July 2026). The fund supports cancer care, from early screening and diagnosis to treatment.", "requirements": [], "procedure": [] + }, + { + "serviceID": 4, + "source": "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf", + "service_name": "Chemotherapy", + "service_description": "Chemotherapy is listed in the hospital's official Rates and Fees (as of August 31, 2022).", + "requirements": [], + "procedure": [] + } + ] + }, + { + "id": 3, + "name": "Brokenshire Medical Center", + "bgImageURL": "", + "source": "https://brokenshiremed.com/", + "description": "Private mission hospital in Davao City. It opened a Chemotherapy and Infusion Unit on March 9, 2026, and has medical, surgical and urologic oncologists. In January 2026 it performed its first laparoscopic radical cystectomy for bladder cancer.", + "type": "Private Institution", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": 7.0836433, + "longitude": 125.6006496, + "schedule": { + "isWholeWeek": false, + "days": [] + }, + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 282 1908" + }, + { + "contact_id": 2, + "type": "Mobile", + "contact_details": "0917-326-2262" + }, + { + "contact_id": 3, + "type": "Email", + "contact_details": "info@brokenshire.org" + } + ], + "services": [ + { + "serviceID": 1, + "source": "https://brokenshiremed.com/", + "service_name": "Chemotherapy and Infusion Unit", + "service_description": "Delivering safe, patient-centered chemotherapy and infusion treatments in a supportive and healing environment (hospital's words). Opened on March 9, 2026.", + "requirements": [], + "procedure": [] } ] } diff --git a/docs/docs.css b/docs/docs.css index 6ee0c5c..6581bc0 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -3,4 +3,11 @@ body { margin: 0; background: #fafafa; } .swagger-ui .topbar { display: none; } .swagger-ui .info { margin: 32px 0 16px; } .swagger-ui .wrapper { padding: 0 16px; } +/* Top bar with the API version picker (v1 / v2). */ +.versionbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e3e3e3; font: 14px/1.4 system-ui, sans-serif; color: #3b4151; } +.versionbar-title { font-weight: 600; margin-right: auto; } +.versionbar-picker { display: inline-flex; align-items: center; gap: 8px; } +.versionbar-picker[hidden] { display: none; } +.versionbar select { font: inherit; padding: 6px 28px 6px 10px; min-height: 36px; border: 1px solid #b8b8b8; border-radius: 6px; background: #fff; color: inherit; } +.versionbar select:focus-visible { outline: 2px solid #4990e2; outline-offset: 2px; } .noscript { font: 16px/1.5 system-ui, sans-serif; max-width: 640px; margin: 48px auto; padding: 0 16px; } diff --git a/docs/index.html b/docs/index.html index 48799d6..a546f47 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,6 +14,13 @@

This page needs JavaScript. The machine-readable spec is at /openapi.json, and the dataset list is at /.

+
+ Cancer Open Data API + +
diff --git a/docs/init.js b/docs/init.js index afde97b..9e7b4fa 100644 --- a/docs/init.js +++ b/docs/init.js @@ -1,13 +1,42 @@ -// Starts Swagger UI on /docs with the spec from /openapi.json. +// Starts Swagger UI on /docs with a version picker. +// The versions (v1, and v2 when it is built) come from versions.json, written by +// scripts/build-site.mjs. /docs/?version=v2 opens v2; the default is the first (v1). // Kept in its own file (no inline script), so the page can use a strict Content-Security-Policy. -window.ui = SwaggerUIBundle({ - url: "/openapi.json", - dom_id: "#swagger-ui", - deepLinking: true, - docExpansion: "list", - defaultModelsExpandDepth: 0, - displayRequestDuration: true, - tryItOutEnabled: true, - supportedSubmitMethods: ["get", "head"], - validatorUrl: null, // don't send the spec to swagger.io for validation -}); +(async () => { + let versions = [{ id: "v1", label: "v1", spec: "/openapi.json" }]; + try { + const res = await fetch("./versions.json"); + if (res.ok) { + const list = await res.json(); + if (Array.isArray(list) && list.length) versions = list; + } + } catch { + // No versions.json: show v1 only. + } + + const wanted = new URLSearchParams(location.search).get("version"); + const current = versions.find((v) => v.id === wanted) ?? versions[0]; + + if (versions.length > 1) { + const select = document.getElementById("api-version"); + for (const v of versions) select.add(new Option(v.label, v.id, false, v === current)); + select.addEventListener("change", () => { + const params = new URLSearchParams(location.search); + params.set("version", select.value); + location.search = params.toString(); // reloads the page with the chosen version + }); + document.getElementById("version-picker").hidden = false; + } + + window.ui = SwaggerUIBundle({ + url: current.spec, + dom_id: "#swagger-ui", + deepLinking: true, + docExpansion: "list", + defaultModelsExpandDepth: 0, + displayRequestDuration: true, + tryItOutEnabled: true, + supportedSubmitMethods: ["get", "head"], + validatorUrl: null, // don't send the spec to swagger.io for validation + }); +})(); diff --git a/scripts/build-openapi.mjs b/scripts/build-openapi.mjs index 9ea6bc4..98eb32c 100644 --- a/scripts/build-openapi.mjs +++ b/scripts/build-openapi.mjs @@ -1,16 +1,38 @@ -// Builds the OpenAPI 3.1 spec served at /openapi.json. -// OpenAPI 3.1 uses JSON Schema 2020-12, the same version as data/*.schema.json, +// Builds the OpenAPI 3.1 specs served at /openapi.json (v1) and /v2/openapi.json (v2). +// OpenAPI 3.1 uses JSON Schema 2020-12, the same version as the *.schema.json files, // so each dataset's real schema goes into components.schemas as it is. // Called by build-site.mjs; don't edit the output by hand. -// Short descriptions for the docs. A new dataset without an entry here -// still gets documented, with a generic description. +// Short descriptions for the docs, per API version. A new dataset without an entry +// here still gets documented, with a generic description. const DESCRIPTIONS = { - Feeds: "News, blogs and articles about cancer care.", - FinancialInstitution: "Financial institutions and their programs (e.g. PhilHealth, SSS, GSIS, Pag-IBIG): eligibility, benefits, requirements and steps to apply.", - HealthInstitution: "Health institutions and their services (e.g. SPMC Cancer Institute): schedules, requirements and procedures.", - MedicalSpecialist: "Medical specialists (oncology and related fields) and their clinics. Clinic booking: if `canDoBoth` is true the clinic takes walk-ins and appointments; if it is false, `isWalkIns: true` means walk-in only and `false` means appointment only. A `null` in either field means not known (show \"Not given\").", - SupportGroups: "Cancer support groups (e.g. AMUMA) and how to contact them.", + v1: { + Feeds: "News, blogs and articles about cancer care.", + FinancialInstitution: "Financial institutions and their programs (e.g. PhilHealth, SSS, GSIS, Pag-IBIG): eligibility, benefits, requirements and steps to apply.", + HealthInstitution: "Health institutions and their services (e.g. SPMC Cancer Institute): schedules, requirements and procedures.", + MedicalSpecialist: "Medical specialists (oncology and related fields) and their clinics. Clinic booking: if `canDoBoth` is true the clinic takes walk-ins and appointments; if it is false, `isWalkIns: true` means walk-in only and `false` means appointment only. A `null` in either field means not known (show \"Not available\").", + SupportGroups: "Cancer support groups (e.g. AMUMA) and how to contact them.", + }, + v2: { + Feeds: "News, blogs and articles about cancer care, with tags and a list of authors.", + FinancialInstitution: "Financial help that does not have to be paid back (PhilHealth, PCSO, DOH): who qualifies (`eligibility` list), benefits with their `amount`, requirements, steps, cancer types, and the Davao City `branches` with hours and contacts.", + HealthInstitution: "Health institutions (e.g. SPMC Cancer Institute), their `branches` and services: fees, schedules, requirements and steps.", + MedicalSpecialist: "Medical specialists and their clinics. Each clinic's `bookingType` says how to book (for example \"Walk-in and appointment\"); `null` means not known (show \"Not given\").", + SupportGroups: "Cancer support groups: the cancer types they serve, founders, meeting schedule, contacts and sources.", + }, +}; + +const INTRO = { + v1: { title: "Cancer Open Data API", note: [] }, + v2: { + title: "Cancer Open Data API v2 (preview)", + note: [ + "**Preview of version 2.** The data shape can still change before release. Version 1 stays at the same links.", + "- **New in v2:** office `branches` with their own hours and contacts, lists of `sources` and `cancerTypes`, a `meta` block with `lastUpdated` in each file, benefit `amount`, clinic `bookingType`, and `eligibility` as a list. No loan programs; PCSO and DOH added.", + "- **A `null`, empty text or empty list means \"Not given\".**", + "", + ], + }, }; const errorResponse = description => ({ @@ -19,17 +41,29 @@ const errorResponse = description => ({ }); // Keep the schema as written, minus keys that only make sense in a standalone file. -function embed(schema) { +// Local $refs (like "#/$defs/sources", used by the v2 schemas) point into the +// standalone file; inside the spec they must point into components.schemas.. +function embed(schema, name) { const { $schema, $id, ...rest } = schema; - return rest; + const fix = (v) => + Array.isArray(v) ? v.map(fix) + : v && typeof v === "object" + ? Object.fromEntries(Object.entries(v).map(([k, x]) => + [k, k === "$ref" && typeof x === "string" && x.startsWith("#") ? `#/components/schemas/${name}${x.slice(1)}` : fix(x)])) + : v; + return fix(rest); } /** * @param {Array<{name, data, schema, size, updated}>} datasets entries from index.json (paths, not URLs) * @param {Record} schemas dataset name -> parsed schema file * @param {string} version commit SHA + * @param {{apiVersion?: "v1" | "v2"}} [opts] which API version the spec is for (default v1) */ -export function buildOpenApi(datasets, schemas, version) { +export function buildOpenApi(datasets, schemas, version, { apiVersion = "v1" } = {}) { + const descriptions = DESCRIPTIONS[apiVersion]; + const intro = INTRO[apiVersion]; + const listPath = apiVersion === "v1" ? "/" : `/${apiVersion}/`; const paths = {}; const components = { schemas: { @@ -80,10 +114,10 @@ export function buildOpenApi(datasets, schemas, version) { }, }; - paths["/"] = { + paths[listPath] = { get: { tags: ["Index"], - summary: "List all datasets", + summary: apiVersion === "v1" ? "List all datasets" : `List all ${apiVersion} datasets`, description: "Every dataset with its data URL, schema URL, size and last change, plus the live commit.", operationId: "listDatasets", responses: { @@ -96,8 +130,8 @@ export function buildOpenApi(datasets, schemas, version) { for (const d of datasets) { const schema = schemas[d.name]; if (!d.data || !schema) continue; - components.schemas[d.name] = embed(schema); - const desc = DESCRIPTIONS[d.name] ?? schema.description ?? `The ${d.name} dataset.`; + components.schemas[d.name] = embed(schema, d.name); + const desc = descriptions[d.name] ?? schema.description ?? `The ${d.name} dataset.`; paths[d.data] = { get: { tags: ["Datasets"], @@ -136,7 +170,7 @@ export function buildOpenApi(datasets, schemas, version) { operationId: "getImage", parameters: [ { name: "folder", in: "path", required: true, schema: { type: "string", pattern: "^[A-Za-z0-9_-]+$" }, example: "SupportGroups" }, - { name: "file", in: "path", required: true, schema: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]*\\.(webp|avif|png|jpg|jpeg|gif)$" }, example: "amuma.jpg" }, + { name: "file", in: "path", required: true, schema: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]*\\.(webp|avif|png|jpg|jpeg|gif)$" }, example: "amuma.webp" }, ], responses: { 200: { description: "The image.", content: { "image/*": { schema: { type: "string", contentMediaType: "image/*" } } } }, @@ -150,10 +184,11 @@ export function buildOpenApi(datasets, schemas, version) { // No jsonSchemaDialect: OpenAPI 3.1's default dialect already includes JSON Schema // 2020-12, and Swagger UI shows a warning box for any other value. info: { - title: "Cancer Open Data API", + title: intro.title, version: version ? version.slice(0, 7) : "local", summary: "Public, read-only data on cancer care resources in one place.", description: [ + ...intro.note, "Data on cancer care resources: health and financial institutions, medical specialists, support groups and news.", "", "- **Read-only, no keys.** Any website can read it (`Access-Control-Allow-Origin: *`).", diff --git a/scripts/build-site.mjs b/scripts/build-site.mjs index d0ebce6..e781786 100644 --- a/scripts/build-site.mjs +++ b/scripts/build-site.mjs @@ -1,11 +1,13 @@ -// Builds worker/dist from data/, images/ and docs/ for Workers Static Assets. -// - copies every data//.json (same paths as before) +// Builds worker/dist from data/, data-v2/, images/ and docs/ for Workers Static Assets. +// - copies every data//.json (v1, same paths as before) +// - copies every data-v2//.json to /v2//.json (when data-v2/ exists) // - copies every images// of an allowed type to /images/... -// - writes openapi.json from the schemas, and the Swagger UI page at /docs/ -// - writes index.json: the dataset list the Worker serves at "/" +// - writes openapi.json (v1) and v2/openapi.json from the schemas, and the Swagger UI page +// at /docs/ with docs/versions.json for its version picker +// - writes index.json and v2/index.json: the dataset lists the Worker serves at "/" and "/v2/" // - writes _headers: CORS + cache headers for every static file, CSP for /docs/ // Run from the repo root after npm install: node scripts/build-site.mjs (run validate first) -import { readdirSync, readFileSync, mkdirSync, copyFileSync, writeFileSync, rmSync, statSync } from "node:fs"; +import { readdirSync, readFileSync, mkdirSync, copyFileSync, writeFileSync, rmSync, statSync, existsSync } from "node:fs"; import { join, dirname } from "node:path"; import { execFileSync } from "node:child_process"; import { createRequire } from "node:module"; @@ -15,6 +17,7 @@ import { buildOpenApi } from "./build-openapi.mjs"; const quietGit = { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }; const DATA = "data"; +const DATA_V2 = "data-v2"; const OUT = join("worker", "dist"); const KEY = /^[A-Za-z0-9_-]+\/[A-Za-z0-9_.-]+\.json$/; @@ -34,67 +37,97 @@ function gitHead() { } } -rmSync(OUT, { recursive: true, force: true }); -mkdirSync(OUT, { recursive: true }); - -const datasets = new Map(); -let count = 0; -for (const folder of readdirSync(DATA, { withFileTypes: true })) { - if (!folder.isDirectory()) continue; - for (const file of readdirSync(join(DATA, folder.name))) { - const key = `${folder.name}/${file}`; - if (!KEY.test(key)) continue; - const src = join(DATA, folder.name, file); - const dest = join(OUT, folder.name, file); - mkdirSync(dirname(dest), { recursive: true }); - copyFileSync(src, dest); - count++; +// Copies srcDir//.json to outDir and lists the datasets with their URL paths +// (prefix + "//.json"). +function collect(srcDir, outDir, prefix) { + const datasets = new Map(); + let files = 0; + for (const folder of readdirSync(srcDir, { withFileTypes: true })) { + if (!folder.isDirectory()) continue; + for (const file of readdirSync(join(srcDir, folder.name))) { + const key = `${folder.name}/${file}`; + if (!KEY.test(key)) continue; + const src = join(srcDir, folder.name, file); + const dest = join(outDir, folder.name, file); + mkdirSync(dirname(dest), { recursive: true }); + copyFileSync(src, dest); + files++; - const entry = datasets.get(folder.name) ?? { name: folder.name }; - if (file.endsWith(".schema.json")) { - entry.schema = `/${key}`; - } else { - entry.data = `/${key}`; - entry.size = statSync(src).size; - entry.updated = lastCommitDate(src); + const entry = datasets.get(folder.name) ?? { name: folder.name }; + if (file.endsWith(".schema.json")) { + entry.schema = `${prefix}/${key}`; + } else { + entry.data = `${prefix}/${key}`; + entry.size = statSync(src).size; + entry.updated = lastCommitDate(src); + } + datasets.set(folder.name, entry); } - datasets.set(folder.name, entry); } + const list = [...datasets.values()].sort((a, b) => a.name.localeCompare(b.name)); + const schemas = {}; + for (const d of list) if (d.schema) schemas[d.name] = JSON.parse(readFileSync(join(srcDir, d.schema.slice(prefix.length + 1)), "utf8")); + return { files, list, schemas }; } -let images = 0; -for (const { rel, size } of listImageFiles()) { - if (!IMAGE_FILE_RE.test(rel) || size > MAX_BYTES) continue; // validate.mjs reports these - const dest = join(OUT, "images", rel); - mkdirSync(dirname(dest), { recursive: true }); - copyFileSync(join(IMAGES_DIR, rel), dest); - images++; -} +rmSync(OUT, { recursive: true, force: true }); +mkdirSync(OUT, { recursive: true }); const version = process.env.GITHUB_SHA ?? gitHead() ?? "local"; -const datasetList = [...datasets.values()].sort((a, b) => a.name.localeCompare(b.name)); +const IMAGES_NOTE = "Image fields that start with / are paths in this API: put the base URL in front."; +const SOURCE = "https://github.com/ProjectFuritsu/CancerOpenData"; -const index = { +// ---- v1: data/ at the root paths ---- +const v1 = collect(DATA, OUT, ""); +writeFileSync(join(OUT, "index.json"), JSON.stringify({ name: "Cancer Open Data", about: "Public data on cancer care resources in one place. Each dataset has a JSON data file and a JSON Schema.", - source: "https://github.com/ProjectFuritsu/CancerOpenData", + source: SOURCE, version, docs: "/docs/", openapi: "/openapi.json", - images: "Image fields that start with / are paths in this API: put the base URL in front.", - datasets: datasetList, -}; -writeFileSync(join(OUT, "index.json"), JSON.stringify(index, null, 2) + "\n"); + images: IMAGES_NOTE, + datasets: v1.list, +}, null, 2) + "\n"); +writeFileSync(join(OUT, "openapi.json"), JSON.stringify(buildOpenApi(v1.list, v1.schemas, version), null, 2) + "\n"); + +// ---- v2: data-v2/ under /v2/ (preview until it is released) ---- +const docVersions = [{ id: "v1", label: "v1 (current)", spec: "/openapi.json" }]; +let v2 = null; +if (existsSync(DATA_V2)) { + const V2_OUT = join(OUT, "v2"); + v2 = collect(DATA_V2, V2_OUT, "/v2"); + writeFileSync(join(V2_OUT, "index.json"), JSON.stringify({ + name: "Cancer Open Data", + apiVersion: "v2", + status: "preview", + about: "Version 2 of the data: branches, sources, cancer types, amounts and booking type. A null or empty value means \"Not given\".", + source: SOURCE, + version, + docs: "/docs/?version=v2", + openapi: "/v2/openapi.json", + images: IMAGES_NOTE, + datasets: v2.list, + }, null, 2) + "\n"); + writeFileSync(join(V2_OUT, "openapi.json"), JSON.stringify(buildOpenApi(v2.list, v2.schemas, version, { apiVersion: "v2" }), null, 2) + "\n"); + docVersions.push({ id: "v2", label: "v2 (preview)", spec: "/v2/openapi.json" }); +} -// ---- OpenAPI spec, from the real schemas ---- -const schemas = {}; -for (const d of datasetList) if (d.schema) schemas[d.name] = JSON.parse(readFileSync(join(DATA, d.schema.slice(1)), "utf8")); -writeFileSync(join(OUT, "openapi.json"), JSON.stringify(buildOpenApi(datasetList, schemas, version), null, 2) + "\n"); +let images = 0; +for (const { rel, size } of listImageFiles()) { + if (!IMAGE_FILE_RE.test(rel) || size > MAX_BYTES) continue; // validate.mjs reports these + const dest = join(OUT, "images", rel); + mkdirSync(dirname(dest), { recursive: true }); + copyFileSync(join(IMAGES_DIR, rel), dest); + images++; +} // ---- Swagger UI at /docs/ (self-hosted from swagger-ui-dist, no CDN) ---- const DOCS_OUT = join(OUT, "docs"); mkdirSync(DOCS_OUT, { recursive: true }); for (const f of ["index.html", "init.js", "docs.css"]) copyFileSync(join("docs", f), join(DOCS_OUT, f)); +// The versions the page's picker offers; init.js reads it. +writeFileSync(join(DOCS_OUT, "versions.json"), JSON.stringify(docVersions, null, 2) + "\n"); const swaggerDir = dirname(createRequire(import.meta.url).resolve("swagger-ui-dist/package.json")); for (const f of ["swagger-ui-bundle.js", "swagger-ui.css", "favicon-32x32.png", "LICENSE"]) { copyFileSync(join(swaggerDir, f), join(DOCS_OUT, f === "LICENSE" ? "swagger-ui-LICENSE.txt" : f)); @@ -112,4 +145,5 @@ writeFileSync(join(OUT, "_headers"), [ "", ].join("\n")); -console.log(`Built ${OUT}: ${count} data files, ${datasets.size} datasets, ${images} images, openapi.json, docs/, index.json, _headers`); +const v2Text = v2 ? `, v2: ${v2.files} data files, ${v2.list.length} datasets` : ""; +console.log(`Built ${OUT}: v1: ${v1.files} data files, ${v1.list.length} datasets${v2Text}, ${images} images, openapi.json, docs/, index.json, _headers`); diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs new file mode 100644 index 0000000..0f3f459 --- /dev/null +++ b/scripts/convert-v2.mjs @@ -0,0 +1,864 @@ +// Converts the v1 data in data/ to the v2 shape in data-v2/. +// Values are copied as written. Nothing is guessed: a value the v1 data +// doesn't have becomes null or an empty list ("Not given" in apps). +// +// Usage (from the repo root): +// node scripts/convert-v2.mjs [--provenance /provenance] +// --provenance is optional. When given, it adds the support group sources +// that were reviewed at import time. (Records have no lastVerified since +// 2026-11-19: each file's meta.lastUpdated says when its records changed.) +// --no-review skips Fritz's review decisions (to see the plain conversion). +import { readFileSync, writeFileSync, existsSync } from "node:fs"; +import { join } from "node:path"; +import { execFileSync } from "node:child_process"; + +const args = process.argv.slice(2); +const provDir = args.includes("--provenance") ? args[args.indexOf("--provenance") + 1] : null; + +const read = (p) => JSON.parse(readFileSync(p, "utf8")); +const prov = (folder) => { + if (!provDir) return {}; + const p = join(provDir, `${folder}.json`); + return existsSync(p) ? read(p) : {}; +}; +const list = (v) => (v === null || v === undefined || v === "" ? [] : [v]); + +// ---- Fritz's review decisions (2026-11-13) ---- +// Applied after the plain conversion, so they survive a re-run. Each fix logs +// what it changed. Full reasons: vault note 01-projects/cancer-project-v3/v2-data-review.md +const REVIEW = { + // Decision 7: short summaries in our own words (Feed 1 held the full article text, Feed 2 had "TBA"). + feedSummaries: { + 1: "The Philippine Cancer Society joined the UICC World Cancer Leaders' Summit in Melbourne, Australia, on 18–20 November 2025, together with other Filipino cancer groups. The delegation took part in talks on non-communicable diseases and in a workshop on ending cervical cancer through HPV vaccination and screening. The summit launched the World Cancer Declaration 2025–2035, which sets global goals for 2035, such as fewer cancer deaths and more cancers found early.", + 2: "On 17 November 2025, DOST-ASTI hosted \"AI Against Cervical Cancer,\" a hybrid meeting of research, government and civil society groups. They discussed building the first Philippine Cervical Image Bank for the Cerv.ai project, which makes AI tools to find early cervical cancer, and lower-cost HPV-DNA testing. The Philippine Cancer Society offered its mobile bus for screening in poor and far communities.", + }, + // Decision 1 (simplified by Fritz later on 2026-11-13): from his phone call with a PhilHealth + // officer, recorded in provenance. Every Z Benefits program gets only this one requirement and + // this one step; the hospital's coordinator gives the full list. The official details stay + // in each program's sources (PhilHealth circulars) and in the v1 data. + zBenefitsRequirements: ["PhilHealth ID"], + zBenefitsSteps: ["Regardless of the type of cancer, bring your PhilHealth ID to the hospital's Z Benefits coordinator for the list of requirements and further steps."], + // Decision 12 (Fritz, 2026-11-15, hospitals review): SPMC gets its official site as source, + // its main contacts (Contact Us page) and 8 department cancer clinics with their schedules, + // as written on spmc.doh.gov.ph. A service's location goes at the end of its description, + // since v2 services have no location field. New services get the next serviceIDs, branch 1. + healthInstitutionUpdates: { + "1": { + // Decision 14 (Fritz, 2026-11-15): renamed from "SPMC Cancer Institute", because its + // cancer clinics are in several SPMC departments, not only the Cancer Institute. + "name": "Southern Philippines Medical Center", + "source": "https://spmc.doh.gov.ph/", + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 227-2731" + }, + { + "contact_id": 2, + "type": "Other", + "contact_details": "TELEFAX: (082) 221-7029" + }, + { + "contact_id": 3, + "type": "Email", + "contact_details": "coh.spmc@gmail.com" + } + ], + "addServices": [ + { + "service_name": "Oncology Clinic (Internal Medicine)", + "service_description": "dedicated to the diagnosis, treatment and care of adults with cancer. Location: Internal Medicine OPD at the Second Floor of JICA OPD Building.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/internal-medicine/" + ], + "service_schedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1 pm", + "timeOut": "5 pm" + } + ] + }, + { + "service_name": "Hematology Clinic (Internal Medicine)", + "service_description": "provides assessment and treatment as well as co-ordination of clinical care for patients with blood diseases and blood-related cancers. Location: Internal Medicine OPD at the Second Floor of JICA OPD Building.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/internal-medicine/" + ], + "service_schedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1 pm", + "timeOut": "5 pm" + } + ] + }, + { + "service_name": "Surgical Oncology", + "service_description": "Location: Cancer Institute – 2nd Floor.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/surgery/" + ], + "service_schedule": [ + { + "day": "Monday to Friday", + "timeIn": "8AM", + "timeOut": "5PM" + } + ] + }, + { + "service_name": "Gynecologic Oncology", + "service_description": "Caters to patients diagnosed with cancer in the reproductive organs", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "service_schedule": [ + { + "day": "weekdays", + "timeIn": "1:00 pm", + "timeOut": "5:00 pm" + } + ] + }, + { + "service_name": "Trophoblastic Service Clinic", + "service_description": "Specializes in dealing with a group of conditions involving tumor growth in the womb.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "service_schedule": [ + { + "day": "weekdays", + "timeIn": "1:00 pm", + "timeOut": "5:00 pm" + } + ] + }, + { + "service_name": "Colposcopy / Pap’s Smear", + "service_description": "Screening procedure for detecting cervical cancer.", + "cancerTypes": [ + "Cervical Cancer" + ], + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" + ], + "service_schedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "1:00 pm", + "timeOut": "7:00 pm" + } + ] + }, + { + "service_name": "Oncology Clinic (Pediatrics)", + "service_description": "Specializes on diagnoses, treatment and management of cancer.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/pediatrics-2/" + ], + "service_schedule": [ + { + "day": "Monday and Wednesday", + "timeIn": "2:00", + "timeOut": "4:00 PM" + }, + { + "day": "Tuesday, Thursday and Friday", + "timeIn": "8:00 AM", + "timeOut": "12:00 PM" + } + ] + }, + { + "service_name": "Breast Imaging", + "service_description": "Involves the use of mammography, sonomammography and elastography. Imaging exam dedicated for screening breast cancer.", + "cancerTypes": [ + "Breast Cancer" + ], + "fee": null, + "sources": [ + "https://spmc.doh.gov.ph/radiological-and-imaging-sciences/" + ], + "service_schedule": [ + { + "day": "weekdays (OPD)", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ] + } + ] + } + }, + // Decision 15 (Fritz, 2026-11-15, money-help offices review): where to go for PhilHealth, + // as written in PhilHealth's official Regional Offices Directory (PRO XI): + // https://www.philhealth.gov.ph/about_us/directory . Online: the eGovPH Super App + // (https://e.gov.ph/), which the YAKAP page already names. + financialInstitutionOffices: { + 1: { + branchChanges: { + 1: { + branchName: "Local Health Insurance Office (LHIO) Davao City", + location: "Valgosons Bldg., Bolton Ext., Poblacion District, Davao City, Davao del Sur", + contacts: [ + { contact_id: 1, type: "Landline", contact_details: "(082) 295-2133 loc. 6328 to 30" }, + { contact_id: 2, type: "Mobile", contact_details: "09457256139" }, + { contact_id: 3, type: "Email", contact_details: "lhiodavao.onlinetransactions@gmail.com" }, + ], + }, + }, + addBranches: [ + { branchName: "PhilHealth Express Calinan", location: "Old Barangay Hall beside Police Station, Aurora-Quezon St., Calinan, Davao City", contacts: [{ contact_id: 1, type: "Email", contact_details: "pro11.fod.ossco@gmail.com" }] }, + { branchName: "PhilHealth Express Toril", location: "Urban Health Center A, Agton St., Toril, Davao City, Davao del Sur", contacts: [{ contact_id: 1, type: "Mobile", contact_details: "0955 986 0938" }, { contact_id: 2, type: "Email", contact_details: "pro11.express.toril@gmail.com" }] }, + { branchName: "One-Stop Service Center Office (OSSCO) Gaisano Mall Davao", location: "Fifth Floor, OSSCO, Gaisano Mall of Davao, Bajada, J.P. Laurel Ave., Davao City, Davao del Sur", contacts: [{ contact_id: 1, type: "Email", contact_details: "pro11.fod.ossco@gmail.com" }] }, + ], + addContacts: [{ type: "Website", contact_details: "https://e.gov.ph/" }], + applicationURLs: { 161213: "https://e.gov.ph/" }, + }, + }, + // (082) 295-2133 is PhilHealth Regional Office XI's trunkline (PhilHealth directory), + // so it is not AMUMA's number. + supportGroupWrongContacts: { 1: ["(082) 295-2133"] }, + // Decision 13 (Fritz, 2026-11-15): SPMC fees from its official Rates and Fees PDF + // (tables "As of August 31, 2022": Radiation Oncology p. 19, Room and Board p. 31, + // Health Services and Specialty Clinic p. 57, Operating Room/Delivery Room p. 88). + // Values as written, no peso sign (the PDF has none). The PDF link is added to sources. + healthInstitutionFees: { + 1: { + "Radiation Therapy (Linear Accelerator)": { + fee: "LINAC Daily fee: 5,160.00 (Professional Fee 800.00 to 2,200.00); Conventional Radiotherapy (2D/3D) Session: 5,160.00 (Professional Fee 800.00 to 2,200.00); IMRT Treatment Session: 16,245.00 (Professional Fee 1,680.00 to 4,000.00); CT Simulation- IMRT: 57,730.00 (Professional Fee 11,546.00 to 27,430.00); Treatment Planning Dosimetry (Xray): 24,225.00 (Professional Fee 2,380.00 to 7,225.00); TREATMENT PLANNING SYSTEM (IMRT): 25,265.00 (Professional Fee 8,400.00 to 12,265.00). As of August 31, 2022.", + source: "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf", + }, + "Adult Cancer Clinic and Infusion Unit": { + fee: "Adult Onco Unit room and board: 1,000.00. CHEMOTHERAPY (AVERAGE HCI FEES): 8,871.94 (Professional Fee 1,680.00 to 33,350.00). As of August 31, 2022.", + source: "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf", + }, + "Breast Imaging": { + fee: "SCREENING MAMMOGRAM: 2,500.00. DIAGNOSTIC MAMMOGRAM: 3,500.00. As of August 31, 2022.", + source: "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf", + }, + }, + }, + // Decision 16 (Fritz, 2026-11-19, hospital coverage review, shape "A: linked"): what each + // hospital accepts or is accredited for. programID links to a money-help program; null when + // that program is not in the API (it stays on the hospital side only). Davao Doctors' coverage + // is in scripts/v2-additions/HealthInstitution.json. + healthInstitutionCoverage: { + 1: [ + { + programID: 101002, + name: "Z Benefit Packages", + details: "Contracted for Acute Lymphocytic (Lymphoblastic) Leukemia (ALL), Breast Cancer, Cervical Cancer, Prostate Cancer, Colon Cancer and Rectum Cancer, as of September 30, 2026.", + sources: ["https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf"], + }, + { + programID: null, + name: "Selected Outpatient Cancer Screening Tests", + details: "Accredited for breast ultrasound, low-dose chest CT scan, liver ultrasound, mammography, alpha-fetoprotein and colonoscopy. Accreditation expires 12/31/2026.", + sources: ["https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf"], + }, + { + programID: 161213, + name: "YAKAP", + details: "Accredited YAKAP clinic. Accreditation expires 12/31/2026.", + sources: ["https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf"], + }, + { + programID: 606002, + name: "Cancer Assistance Fund", + details: "One of 34 CAF access sites in DOH's 2025 list.", + sources: ["https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view"], + }, + // MAIFIP removed (Fritz, 2026-11-27): only a SunStar article supported it. + ], + }, + // Decision 11 (Fritz, 2026-11-15): one Z Benefits program instead of one per cancer, + // keeping ALL the v1 details (his choice "A: labeled lists"). Every benefit, every + // eligibility rule and each cancer's description stay as written, each labeled + // ": ...". The general membership rule below comes first, unlabeled; a cancer's + // own copy of it is not repeated when it is word-for-word the same. + zBenefitsMerge: { + programID: 101002, + program_name: "Z Benefits", + // As written in the newer circulars (PC2024-0007, PC2023-0005). + eligibility: ["PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval"], + program_description: "PhilHealth's Z Benefits packages for selected cancers, at Z Benefits contracted health facilities. Each cancer has its own package and medical criteria; the hospital's Z Benefits coordinator checks them.", + }, + // Decision 5: cancer types as named in each Z Benefits program name. + cancerTypesByProgram: { + 101002: ["Breast Cancer"], + 101003: ["Acute Lymphocytic / Lymphoblastic Leukemia"], + 101004: ["Prostate Cancer"], + 101005: ["Cervical Cancer"], + 101006: ["Colorectal Cancer"], + }, + // Decision 3: PhilHealth's national number moves to the institution's main contacts. + hotline: { instiId: 1, contact_details: "(02) 866-225-88" }, + // Decision 2: SPMC's 3 contacts belong to AMUMA and PhilHealth, so they are removed. + clearBranchContacts: [{ instiId: 1, branchID: 1 }], + // Decision 9: eligibility as a list, split as written (no rule removed or reworded; + // only split where the source already separates parts). Programs not listed here + // keep their one v1 sentence as a one-item list. + eligibilityByProgram: { + 101002: [ + "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval", + "Breast cancer clinical stage requiring treatments covered under the Z Benefits (Stage 0 Ductal Carcinoma in Situ (DCIS), Stage I, Stage II, Stage III or Stage IV), with management involving any or all of: Surgery; Chemotherapy (neo/adjuvant); Targeted therapy; Hormonotherapy; Surveillance", + "Chemotherapy (neo/adjuvant): patient has not initiated any chemotherapy treatment from any HF", + "Diagnostic tests are covered when all of these are met: Positive (+) breast mass AND/OR palpable axillary lymph node; BI-RADS category 4 to 5 result of either mammogram or ultrasound; and Biopsy result of confirmed malignant breast cancer or ductal carcinoma in situ (DCIS)", + ], + 101003: [ + "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Patients not yet registered in PhilHealth must complete member registration first", + "Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "Age 1 to less than 10 years old and 364 days", + "White blood cell count ‹50,000/mcL", + "No CNS leukemia at diagnosis", + "There should be no testicular involvement of male patient at diagnosis", + "WHO Classification: B or T lymphoblastic leukemia immunophenotype (mature B-cell ALL or Burkitt leukemia are excluded)", + "The membership category upon approval of the pre-authorization applies for the three years of the package", + ], + 101004: [ + "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Patients not yet registered in PhilHealth must complete member registration first", + "Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "Male patients age up to 70 years old", + "Clinical stage (T1a-T2c), PSA level 10 to 20 ng/ml, Tumor Grade (Gleason's score of 2-7) - Low risk: T1-T2a and Gleason score 2-6, and PSA ‹10 ng/ml - Intermediate risk: T2b to T2c, Gleason score of 7, and PSA 10-20 ng/ml", + "Localized prostate cancer", + "No uncontrolled co-morbid conditions", + ], + 101005: [ + "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization", + "Patients not yet registered in PhilHealth must complete member registration first", + "Newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package)", + "No previous chemotherapy", + "No previous radiotherapy", + "No uncontrolled co-morbid conditions", + ], + 101006: [ + "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval", + "Colon or rectal cancer stage I to III", + "Normal or with mild systemic disease (ASA I or II)", + "Fully active, able to carry on all pre-disease performance without restriction, OR restricted in physically strenuous activity but ambulatory and able to carry out work of a light or sedentary nature, e.g light house work, office work, OR ambulatory and capable of all self-care but unable to carry out any work activities. Up and about more than 50% of working hours.", + "Services needed after progression to stage IV are not covered.", + ], + }, + // Fritz (2026-11-13): no loans, to avoid adding financial burden. SSS (Salary Loan), + // GSIS (Multi-Purpose Loan) and Pag-IBIG (Housing Loan) had only a loan, so the whole + // institution is left out of v2. Their ids are not reused. They stay in the v1 data. + removeFinancialInstitutions: [2, 3, 4], + // Official Facebook pages given by Fritz (2026-11-13). AMUMA's replaces a Facebook group link. + socmedURLs: { + 1: "https://www.facebook.com/amumasupport", + 2: "https://www.facebook.com/kidsofhopeorg", + }, + // Decision 10 (Fritz, 2026-11-13): YAKAP rewritten from https://www.philhealth.gov.ph/yakap/ + // (read 2026-11-13). The page is mostly images in Filipino: description, requirement, + // steps and "Free" are translations; member groups and test names are as written. + programOverrides: { + 161213: { + program_name: "PhilHealth YAKAP: Yaman ng Kalusugan Program", + eligibility: [ + "Government and Private Employees", + "Kasambahay", + "Indigents", + "Persons with Disability", + "Self-Earning Individuals or Professional Practitioners", + "Lifetime Members", + "Pantawid Pamilyang Pilipino Program (4Ps)", + "Infants and Children under 21 years old", + "Overseas Filipino Workers", + "Solo Parent", + "Senior Citizens", + ], + program_description: "Government program that helps Filipinos take care of their health and prevent illness. YAKAP Clinics watch over members' health, find illness early, and give the right medicines so the illness does not get worse and hospital stays are avoided.", + cancerTypes: ["Breast Cancer", "Liver Cancer", "Colorectal Cancer", "Lung Cancer"], + applicationURL: null, + sources: ["https://www.philhealth.gov.ph/yakap/"], + benefits: [ + { benefit_id: 1, benefit_name: "Primary Care Checkup", amount: "Free" }, + { benefit_id: 2, benefit_name: "Selected laboratory tests based on risk, age and health assessment: Complete Blood Count (CBC) with Platelet Count, Lipid Profile, Fasting Blood Sugar (FBS), Oral Glucose Tolerance Test (OGTT), Hemoglobin Test (HbA1c), Creatinine, Chest X-Ray, Sputum Microscopy, Electrocardiogram (ECG), Urinalysis, Pap Smear, Fecalysis, Fecal Occult Blood Test (FOBT), Upper Abdomen & Pelvic Ultrasound", amount: null }, + { benefit_id: 3, benefit_name: "Medicines under PhilHealth GAMOT", amount: null }, + { benefit_id: 4, benefit_name: "Breast cancer screening: Breast Ultrasound & Mammogram", amount: null }, + { benefit_id: 5, benefit_name: "Liver cancer screening: Alpha Fetoprotein Test & Liver Ultrasound", amount: null }, + { benefit_id: 6, benefit_name: "Colorectal cancer screening: Fecal Immunochemical Test, Fecal Occult Blood Test & Colonoscopy", amount: null }, + { benefit_id: 7, benefit_name: "Lung cancer screening: Low-dose Chest CT Scan", amount: null }, + ], + requirements: [ + { requirement_id: 1, requirement_description: "PhilHealth Identification Number (PIN) with updated membership" }, + ], + procedure: [ + { step: 1, instruction: "Register: make sure you have a PhilHealth Identification Number (PIN) and your membership is updated." }, + { step: 2, instruction: "Choose a YAKAP Clinic using the eGovPH Super App, the PhilHealth Member Portal, or the nearest PhilHealth office." }, + { step: 3, instruction: "Have your First Patient Encounter (FPE): medical history, health screening and health education." }, + { step: 4, instruction: "Sign the form agreeing that your chosen YAKAP Clinic will keep caring for you." }, + { step: 5, instruction: "Keep seeing your YAKAP doctor for prescriptions, referrals for laboratory and/or cancer screening tests when needed, and follow-up checkups." }, + ], + }, + }, +}; + +const renumber = (items, key) => items.map((x, i) => ({ ...x, [key]: i + 1 })); +const MONEY = /(?:^|\s)(?:Up to )?(?:P|Php)\s?\d/; + +// Decision 4: split "name: amount" at the first ": "; a benefit that is only an amount +// becomes { benefit_name: "Total package", amount: }. Both parts stay as written. +function splitBenefit(b) { + const at = b.benefit_name.indexOf(": "); + if (at > 0 && MONEY.test(b.benefit_name.slice(at + 2))) { + return { ...b, benefit_name: b.benefit_name.slice(0, at), amount: b.benefit_name.slice(at + 2) }; + } + if (/^(?:Up to )?(?:P|Php)\s?\d/.test(b.benefit_name)) { + return { ...b, benefit_name: "Total package", amount: b.benefit_name }; + } + return b; +} + +function applyReview(folder, records) { + const log = (msg) => console.log(` review: ${msg}`); + if (folder === "Feeds") { + for (const r of records) { + if (REVIEW.feedSummaries[r.id]) { r.content = REVIEW.feedSummaries[r.id]; log(`Feed ${r.id}: content -> short summary`); } + } + } + if (folder === "FinancialInstitution") { + for (const id of REVIEW.removeFinancialInstitutions) { + const i = records.findIndex((r) => r.id === id); + if (i >= 0) { log(`removed ${records[i].name} (only program: ${records[i].programs.map((p) => p.program_name).join(", ")})`); records.splice(i, 1); } + } + for (const r of records) { + if (r.id === REVIEW.hotline.instiId) { + const b = r.branches[0]; + const i = b.contacts.findIndex((c) => c.contact_details === REVIEW.hotline.contact_details); + if (i >= 0) { + b.contacts.splice(i, 1); + b.contacts = renumber(b.contacts, "contact_id"); + r.contacts = [{ contact_id: 1, type: "Hotline", contact_details: REVIEW.hotline.contact_details }]; + log(`${r.name}: ${REVIEW.hotline.contact_details} -> main contacts as Hotline`); + } + } + let split = 0, total = 0; + for (const p of r.programs) { + p.benefits = p.benefits.map((b) => { const s = splitBenefit(b); if (s.amount !== null) (s.benefit_name === "Total package" ? total++ : split++); return s; }); + if (REVIEW.programOverrides[p.programID]) { + Object.assign(p, structuredClone(REVIEW.programOverrides[p.programID])); + log(`program ${p.programID}: replaced from its official page -> "${p.program_name}"`); + } + if (REVIEW.eligibilityByProgram[p.programID]) { + p.eligibility = REVIEW.eligibilityByProgram[p.programID]; + log(`program ${p.programID}: eligibility -> ${p.eligibility.length} items`); + } + if (REVIEW.cancerTypesByProgram[p.programID]) { + p.cancerTypes = REVIEW.cancerTypesByProgram[p.programID]; + log(`program ${p.programID}: cancerTypes ${JSON.stringify(p.cancerTypes)}`); + } + if (p.program_name.startsWith("Z Benefits")) { + const before = `${p.requirements.length} requirements, ${p.procedure.length} steps`; + p.requirements = REVIEW.zBenefitsRequirements.map((d, i) => ({ requirement_id: i + 1, requirement_description: d })); + p.procedure = REVIEW.zBenefitsSteps.map((s, i) => ({ step: i + 1, instruction: s })); + log(`program ${p.programID}: ${before} -> ${p.requirements.length} requirement, ${p.procedure.length} step`); + } + } + if (split || total) log(`${r.name}: benefits split ${split}, "Total package" ${total}`); + // Decision 11: the Z Benefits programs become one, where the first one was. + const zs = r.programs.filter((p) => p.program_name.startsWith("Z Benefits:")); + if (zs.length > 1) { + const m = REVIEW.zBenefitsMerge; + const cancerOf = (p) => p.program_name.replace(/^Z Benefits:\s*/, ""); + const packages = zs.flatMap((p) => p.benefits.map((b) => ({ benefit_name: `${cancerOf(p)}: ${b.benefit_name}`, amount: b.amount }))); + const eligibility = [ + ...m.eligibility, + ...zs.flatMap((p) => p.eligibility.filter((e) => !m.eligibility.includes(e)).map((e) => `${cancerOf(p)}: ${e}`)), + ]; + const description = [m.program_description, ...zs.map((p) => `${cancerOf(p)}: ${p.program_description}`)].join("\n\n"); + const merged = { + programID: m.programID, + program_name: m.program_name, + eligibility, + program_description: description, + cancerTypes: [...new Set(zs.flatMap((p) => p.cancerTypes ?? []))], + applicationURL: null, + sources: [...new Set(zs.flatMap((p) => p.sources ?? []))], + benefits: packages.map((b, i) => ({ benefit_id: i + 1, ...b })), + requirements: zs[0].requirements, + procedure: zs[0].procedure, + }; + const at = r.programs.indexOf(zs[0]); + r.programs = r.programs.filter((p) => !zs.includes(p)); + r.programs.splice(at, 0, merged); + log(`${r.name}: ${zs.length} Z Benefits programs -> 1 "${m.program_name}" (${packages.length} benefits, ${eligibility.length} eligibility rules, ${merged.sources.length} sources)`); + } + // Decision 15: where to go, from the institution's official office directory. + const u = REVIEW.financialInstitutionOffices[r.id]; + if (u) { + for (const [bid, change] of Object.entries(u.branchChanges ?? {})) { + const b = r.branches.find((x) => x.branchID === Number(bid)); + if (!b) throw new Error(`financialInstitutionOffices: no branch ${bid} in ${r.name}`); + Object.assign(b, structuredClone(change)); + } + for (const nb of u.addBranches ?? []) { + r.branches.push({ branchID: r.branches.length + 1, branchName: nb.branchName, location: nb.location, latitude: null, longitude: null, schedule: [], contacts: structuredClone(nb.contacts) }); + } + for (const c of u.addContacts ?? []) r.contacts.push({ contact_id: r.contacts.length + 1, ...c }); + for (const [pid, url] of Object.entries(u.applicationURLs ?? {})) { + const p = r.programs.find((x) => x.programID === Number(pid)); + if (!p) throw new Error(`financialInstitutionOffices: no program ${pid} in ${r.name}`); + p.applicationURL = url; + } + log(`${r.name}: offices from the official directory -> ${r.branches.length} branches, ${r.contacts.length} main contacts`); + } + } + } + if (folder === "HealthInstitution") { + for (const r of records) { + for (const { instiId, branchID } of REVIEW.clearBranchContacts) { + const b = r.id === instiId && r.branches.find((x) => x.branchID === branchID); + if (b && b.contacts.length) { log(`${r.name} branch ${branchID}: removed ${b.contacts.length} contacts`); b.contacts = []; } + } + } + // Decision 12: official source, contacts and extra services, per institution id. + for (const [id, u] of Object.entries(REVIEW.healthInstitutionUpdates)) { + const r = records.find((x) => x.id === Number(id)); + if (!r) continue; + if (u.name) { log(`${r.name} -> renamed "${u.name}"`); r.name = u.name; } + if (u.source) r.source = u.source; + if (u.contacts) r.contacts = structuredClone(u.contacts); + const start = r.services.length; + r.services.push(...u.addServices.map((s, i) => ({ + serviceID: start + i + 1, + branchIDs: [1], + service_name: s.service_name, + service_description: s.service_description, + cancerTypes: s.cancerTypes, + fee: s.fee ?? null, + sources: s.sources, + service_schedule: s.service_schedule, + requirements: [], + procedure: [], + }))); + log(`${r.name}: source, ${r.contacts.length} contacts, services ${start} -> ${r.services.length}`); + } + // Decision 13: fees by service name (a renamed service stops the build instead of being skipped). + for (const [id, byName] of Object.entries(REVIEW.healthInstitutionFees)) { + const r = records.find((x) => x.id === Number(id)); + if (!r) continue; + for (const [name, f] of Object.entries(byName)) { + const svc = r.services.find((x) => x.service_name === name); + if (!svc) throw new Error(`healthInstitutionFees: no service "${name}" in ${r.name}`); + svc.fee = f.fee; + if (f.source && !svc.sources.includes(f.source)) svc.sources.push(f.source); + } + log(`${r.name}: fees for ${Object.keys(byName).length} services`); + } + // Decision 22 (Fritz, 2026-11-27): SPMC's CAF access site comes from DOH's 2025 list + // (34 sites), not the Daily Tribune's "36 sites" article. v2 only; v1 keeps its text. + { + const spmc = records.find((x) => x.id === 1); + const svc = spmc?.services.find((x) => x.service_name === "Cancer Assistance Fund (CAF)"); + const old = "Listed by the Department of Health as one of 36 Cancer Assistance Fund access sites nationwide (July 2026)."; + if (!svc || !svc.service_description.includes(old)) throw new Error("Decision 22: SPMC's CAF service text changed; update the rule"); + svc.service_description = svc.service_description.replace(old, "Listed by the Department of Health as one of 34 CAF access sites in its 2025 list."); + // The list backs the access site; DOH's CAF release backs "supports cancer care ... to treatment". + svc.sources = [...new Set(svc.sources.flatMap((u) => (u.includes("tribune.net.ph") + ? ["https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view", "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/"] + : [u])))]; + log(`${spmc.name}: CAF service -> DOH's 2025 access-site list`); + } + // Decision 16: coverage (programs the hospital accepts or is accredited for). + for (const [id, items] of Object.entries(REVIEW.healthInstitutionCoverage)) { + const r = records.find((x) => x.id === Number(id)); + if (!r) continue; + r.coverage = structuredClone(items); + log(`${r.name}: coverage, ${items.length} items`); + } + } + if (folder === "MedicalSpecialist") { + // Decision 6: placeholder faces look like real doctors; no photo until there is a consented one. + const ids = records.filter((r) => /i\.pravatar\.cc/.test(r.imageURL)).map((r) => { r.imageURL = ""; return r.id; }); + if (ids.length) log(`placeholder photos cleared: ${ids.join(", ")}`); + // Decision 21 (Fritz, 2026-11-27): no SeriousMD page gives a booking type for an online + // clinic (and walk-in can't apply online), so every "Online Clinic" has bookingType null. + const online = []; + for (const r of records) for (const c of r.clinics) { + if (c.clinicName === "Online Clinic" && c.bookingType !== null) { c.bookingType = null; online.push(r.id); } + } + if (online.length) log(`online clinics: bookingType -> null for ${online.join(", ")}`); + } + if (folder === "SupportGroups") { + for (const r of records) { + const url = REVIEW.socmedURLs[r.id]; + if (url && r.socmedURL !== url) { log(`${r.name}: socmedURL ${r.socmedURL ?? "null"} -> ${url}`); r.socmedURL = url; } + // Decision 15: contacts that belong to another organization. + const wrong = REVIEW.supportGroupWrongContacts[r.id] ?? []; + const before = r.contacts.length; + r.contacts = r.contacts.filter((c) => !wrong.includes(c.contact_details)).map((c, i) => ({ ...c, contact_id: i + 1 })); + if (r.contacts.length !== before) log(`${r.name}: removed ${before - r.contacts.length} contact(s) of another organization`); + } + } + // Decision 8: branch names stay null until the next source check (no change). + return records; +} + +// Decision 20 (Fritz, 2026-11-27): every v2 key is camelCase, with ID and URL kept upper case +// (contactID, imageURL), and every source is a `sources` list. The converter builds records +// with the v1 key names, then toV2Keys renames them as the last step before writing. +const KEY_V2 = { + Feed: "feed", Financial_Insti: "financialInsti", Health_Insti: "healthInsti", + Medical_Specialist: "medicalSpecialist", Support_Group: "supportGroup", Accommodation: "accommodation", +}; +const RENAME = { + contact_id: "contactID", contact_details: "contactDetails", + program_name: "programName", program_description: "programDescription", + benefit_id: "benefitID", benefit_name: "benefitName", + requirement_id: "requirementID", requirement_description: "requirementDescription", + service_name: "serviceName", service_description: "serviceDescription", service_schedule: "serviceSchedule", +}; +function toV2Keys(v) { + if (Array.isArray(v)) return v.map(toV2Keys); + if (!v || typeof v !== "object") return v; + const out = {}; + for (const [k, x] of Object.entries(v)) { + if (k === "source" || k === "sources") { + // One `sources` list where `source` (or `sources`) first appears; `source` first, no repeats. + if (!("sources" in out)) out.sources = [...new Set([...list(v.source), ...(v.sources ?? [])])]; + continue; + } + out[RENAME[k] ?? k] = toV2Keys(x); + } + return out; +} + +// Records that exist only in v2 live in scripts/v2-additions/.json, under the v2 records +// key (for example "financialInsti") and with v2 key names. +function addV2Only(folder, key, records) { + const p = join("scripts", "v2-additions", `${folder}.json`); + if (!existsSync(p)) return; + const taken = new Set(records.map((r) => r.id)); + const file = read(p); + for (const r of file[KEY_V2[key] ?? key] ?? file[key] ?? []) { + if (taken.has(r.id)) throw new Error(`${p}: id ${r.id} is already used in ${folder}`); + records.push(r); + console.log(` v2 only: added ${r.name ?? r.title ?? r.id} (id ${r.id})`); + } + records.sort((a, b) => a.id - b.id); +} + +// Decision 18 (Fritz, 2026-11-19): every branch has a landmark, as written by a source, or null. +// The key order is fixed here, so branches from v1, the review and v2-additions all look the same. +const BRANCH_KEYS = ["branchID", "branchName", "location", "landmark", "latitude", "longitude", "schedule", "contacts"]; +function withLandmarks(records) { + for (const r of records) { + if (!Array.isArray(r.branches)) continue; + r.branches = r.branches.map((b) => Object.fromEntries(BRANCH_KEYS.map((k) => [k, k === "landmark" ? (b.landmark ?? null) : b[k]]))); + } +} + +// Decision 19 (Fritz, 2026-11-19): every v2 file starts with a "meta" block. +// lastUpdated changes only when the records change: same records as the file already on disk +// keep its date; a file without meta yet takes the date of its last Git commit. +const META = { + Feeds: ["Feeds", "News, articles and announcements about cancer care in Davao City, with a short summary and a link to each source."], + FinancialInstitution: ["Financial help", "Programs that help cancer patients pay for care: where to go, who can apply, benefits, requirements and steps."], + HealthInstitution: ["Hospitals", "Hospitals with cancer services in Davao City: services, schedules, fees and the programs they accept."], + MedicalSpecialist: ["Medical specialists", "Cancer doctors in Davao City, with their clinics, schedules and booking."], + SupportGroups: ["Support groups", "Cancer support groups for patients, survivors and families."], + Accommodation: ["Accommodation", "Places where cancer patients and their companions can stay near the hospitals."], +}; +const today = () => new Date().toLocaleDateString("en-CA", { timeZone: "Asia/Manila" }); // YYYY-MM-DD +function lastUpdated(path, records, key) { + if (existsSync(path)) { + const old = read(path); + if (old.meta?.lastUpdated && JSON.stringify(old[key]) === JSON.stringify(records)) return old.meta.lastUpdated; + if (!old.meta && JSON.stringify(old[key]) === JSON.stringify(records)) { + try { + const d = execFileSync("git", ["log", "-1", "--format=%cs", "--", path], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim(); + if (d) return d; + } catch { /* not a Git checkout: use today */ } + } + } + return today(); +} + +function write(folder, file, key, records) { + if (!args.includes("--no-review")) { applyReview(folder, records); addV2Only(folder, key, records); } + withLandmarks(records); + records = toV2Keys(records); + key = KEY_V2[key] ?? key; + const path = join("data-v2", folder, `${file}.json`); + const [title, description] = META[folder] ?? [folder, ""]; + const meta = { + title, + description, + apiVersion: "v2", + lastUpdated: lastUpdated(path, records, key), + recordCount: records.length, + coverage: "Davao City, Philippines", + language: "en", + license: "CC0-1.0", + licenseURL: "https://creativecommons.org/publicdomain/zero/1.0/", + publisher: "Cancer Open Data (ProjectFuritsu)", + contact: "https://github.com/ProjectFuritsu/CancerOpenData/issues", + schema: `./${file}.schema.json`, + }; + const out = { $schema: `./${file}.schema.json`, meta, [key]: records }; + writeFileSync(path, JSON.stringify(out, null, 2) + "\n"); + console.log(`wrote ${path} (${records.length} records, last updated ${meta.lastUpdated})`); +} + +// ---- Feeds ---- +{ + const v1 = read("data/Feeds/FeedsData.json").Feed; + write("Feeds", "FeedsData", "Feed", v1.map((r) => ({ + id: r.id, + title: r.title, + bgImageURL: r.bgImageURL, + category: r.category, + tags: [], + content: r.content, + authors: list(r.author), + publishDate: r.publishDate, + source: r.source, + }))); +} + +// ---- Financial and Health institutions: shared top part ---- +function instiTop(r, p) { + if (r.schedule.isWholeWeek && r.schedule.days.length === 0) { + console.warn(`WARN ${r.name}: isWholeWeek is true but no days are listed; schedule will be empty`); + } + return { + id: r.id, + name: r.name, + bgImageURL: r.bgImageURL, + source: r.source, + description: r.description, + type: r.type, + // v1 has one address per institution; its contacts belong to that address, + // so they move into branch 1. Main (institution-wide) contacts are decided by hand. + contacts: [], + branches: [{ + branchID: 1, + branchName: null, + location: r.location, + latitude: r.latitude, + longitude: r.longitude, + schedule: r.schedule.days, + contacts: r.contacts, + }], + }; +} + +{ + const p = prov("FinancialInstitution"); + const v1 = read("data/FinancialInstitution/FinancialInstiData.json").Financial_Insti; + write("FinancialInstitution", "FinancialInstiData", "Financial_Insti", v1.map((r) => ({ + ...instiTop(r, p), + programs: r.programs.map((g) => ({ + programID: g.programID, + program_name: g.program_name, + eligibility: list(g.eligibility), + program_description: g.program_description, + cancerTypes: null, + applicationURL: null, + sources: list(g.source), + benefits: g.benefits.map((b) => ({ benefit_id: b.benefit_id, benefit_name: b.benefit_name, amount: null })), + requirements: g.requirements, + procedure: g.procedure, + })), + }))); +} + +{ + const p = prov("HealthInstitution"); + const v1 = read("data/HealthInstitution/HealthInstiData.json").Health_Insti; + write("HealthInstitution", "HealthInstiData", "Health_Insti", v1.map((r) => ({ + ...instiTop(r, p), + services: r.services.map((s) => ({ + serviceID: s.serviceID, + branchIDs: [1], + service_name: s.service_name, + service_description: s.service_description, + cancerTypes: null, + fee: null, + sources: list(s.source), + service_schedule: s.service_schedule ?? null, + requirements: s.requirements, + procedure: s.procedure, + })), + coverage: [], + }))); +} + +// ---- Medical specialists ---- +const bookingType = (c) => + c.canDoBoth === true ? "Walk-in and appointment" + : c.canDoBoth === false && c.isWalkIns === true ? "Walk-in only" + : c.canDoBoth === false && c.isWalkIns === false ? "Appointment only" + : null; + +{ + const p = prov("MedicalSpecialist"); + const v1 = read("data/MedicalSpecialist/MedicalSpecialistData.json").Medical_Specialist; + write("MedicalSpecialist", "MedicalSpecialistData", "Medical_Specialist", v1.map((r) => ({ + id: r.id, + firstname: r.firstname, + lastname: r.lastname, + specialty: r.specialty, + description: r.description, + imageURL: r.imageURL, + sources: list(r.source), + clinics: r.clinics.map((c) => ({ + clinicID: c.clinicid, + clinicName: c.clinicName, + location: c.location, + latitude: null, + longitude: null, + bookingType: bookingType(c), + contacts: c.contacts ?? [], + schedule: c.schedule.map((s) => ({ day: s.day, timeIn: s.timeIN, timeOut: s.timeOUT })), + })), + }))); +} + +// ---- Support groups ---- +{ + const p = prov("SupportGroups"); + const v1 = read("data/SupportGroups/SupportGroupsData.json").Support_Group; + write("SupportGroups", "SupportGroupsData", "Support_Group", v1.map((r) => ({ + id: r.id, + name: r.name, + description: r.description, + type: r.type, + cancerTypes: null, + socmedURL: r.socmedURL, + bgImageURL: r.bgImageURL, + location: r.location, + latitude: r.latitude, + longitude: r.longitude, + founders: list(r.founder), + meetingSchedule: null, + sources: [...new Set((p[r.id]?.sources ?? []).map((s) => s.url).filter(Boolean))], + contacts: r.contacts, + }))); +} + +// ---- Accommodation (v2 only) ---- +// Decision 17 (Fritz, 2026-11-19, accommodation review): places where patients and companions can +// stay near the hospitals. A new dataset with no v1 file: all records are in +// scripts/v2-additions/Accommodation.json. +write("Accommodation", "AccommodationData", "Accommodation", []); diff --git a/scripts/missing-v2.mjs b/scripts/missing-v2.mjs new file mode 100644 index 0000000..3b141d5 --- /dev/null +++ b/scripts/missing-v2.mjs @@ -0,0 +1,100 @@ +// Lists every value in data-v2/ that is not given yet (null or an empty list/text), +// record by record, with where to look for it. Prints a Markdown checklist. +// Usage (from the repo root): node scripts/missing-v2.mjs > missing.md +import { readFileSync } from "node:fs"; + +const read = (p) => JSON.parse(readFileSync(p, "utf8")); +const empty = (v) => v === null || v === undefined || v === "" || (Array.isArray(v) && v.length === 0); + +// Where to look, by field name. +const WHERE = { + bgImageURL: "the institution's own logo or photo, used with permission", + imageURL: "a photo the doctor agreed to share (consent needed)", + contacts: "the official website's contact page, the official Facebook page, or a phone call", + branchName: "the official website or the office signboard", + latitude: "Google Maps pin of the office (copy the coordinates)", + longitude: "Google Maps pin of the office (copy the coordinates)", + schedule: "the official website, the Facebook page, or a phone call", + cancerTypes: "the program or service page (only if it names the cancers)", + applicationURL: "the official website (online application page)", + sources: "the official page the facts come from", + amount: "the official circular or program page", + fee: "the hospital's billing office or price list", + meetingSchedule: "the group's Facebook page or a message to the group", + tags: "write 1–3 topics from the post", + bookingType: "the hospital's doctor page or a call to the clinic", + description: "the hospital's doctor page", + socmedURL: "the group's official Facebook page", + serviceSchedule: "the hospital's service page or a phone call", + requirements: "the hospital's service page, Malasakit desk or social worker", + procedure: "the hospital's service page, Malasakit desk or social worker", + eligibility: "the program page", + founders: "the group's About page", +}; + +const out = []; +const counts = {}; +let total = 0; + +function check(dataset, title, obj, fields, prefix = "") { + const items = []; + for (const f of fields) { + if (empty(obj[f])) { + items.push(`- [ ] ${prefix}\`${f}\` — look in: ${WHERE[f] ?? "the official source"}`); + counts[`${dataset} · ${f}`] = (counts[`${dataset} · ${f}`] ?? 0) + 1; + total++; + } + } + return items; +} + +function section(dataset, records, fn) { + const body = []; + for (const r of records) { + const items = fn(r); + if (items.length) body.push(`\n**${r.label}** (${items.length})\n${items.join("\n")}`); + } + out.push(`\n## ${dataset}\n${body.length ? body.join("\n") : "\nNothing missing."}`); +} + +const insti = (dataset, r, extra) => [ + ...check(dataset, r.name, r, ["bgImageURL", "contacts"]), + ...r.branches.flatMap((b) => check(dataset, r.name, b, ["branchName", "latitude", "longitude", "schedule", "contacts"], `Branch ${b.branchID} › `)), + ...extra, +]; + +const F = read("data-v2/FinancialInstitution/FinancialInstiData.json").financialInsti; +section("Financial institutions", F.map((r) => ({ ...r, label: `#${r.id} ${r.name}` })), (r) => insti("Financial", r, + r.programs.flatMap((p) => [ + ...check("Financial", r.name, p, ["eligibility", "cancerTypes", "applicationURL", "sources", "requirements", "procedure"], `${p.programName} › `), + ...p.benefits.flatMap((b) => check("Financial", r.name, b, ["amount"], `${p.programName} › benefit "${b.benefitName}" › `)), + ]))); + +const H = read("data-v2/HealthInstitution/HealthInstiData.json").healthInsti; +section("Health institutions", H.map((r) => ({ ...r, label: `#${r.id} ${r.name}` })), (r) => insti("Health", r, + r.services.flatMap((s) => check("Health", r.name, s, ["cancerTypes", "fee", "sources", "serviceSchedule", "requirements", "procedure"], `${s.serviceName} › `)))); + +const M = read("data-v2/MedicalSpecialist/MedicalSpecialistData.json").medicalSpecialist; +section("Medical specialists", M.map((r) => ({ ...r, label: `#${r.id} ${r.firstname} ${r.lastname}` })), (r) => [ + ...check("Specialist", r.lastname, r, ["description", "imageURL", "sources"]), + ...r.clinics.flatMap((c) => check("Specialist", r.lastname, c, ["latitude", "longitude", "bookingType", "contacts", "schedule"], `${c.clinicName} › `)), +]); + +const S = read("data-v2/SupportGroups/SupportGroupsData.json").supportGroup; +section("Support groups", S.map((r) => ({ ...r, label: `#${r.id} ${r.name}` })), (r) => + check("Support group", r.name, r, ["cancerTypes", "socmedURL", "bgImageURL", "latitude", "longitude", "founders", "meetingSchedule", "sources", "contacts"])); + +const FD = read("data-v2/Feeds/FeedsData.json").feed; +section("Feeds", FD.map((r) => ({ ...r, label: `#${r.id} ${r.title}` })), (r) => + check("Feed", r.title, r, ["bgImageURL", "tags", "content", "authors", "sources"])); + +const summary = Object.entries(counts).sort((a, b) => b[1] - a[1]).map(([k, n]) => `| ${k} | ${n} |`).join("\n"); +console.log(`# Missing data in v2 (not given yet) + +${total} values are not given yet. In the data they are \`null\` or empty; apps show "Not given". +Tick an item when the value is found and added with its source. Re-run \`node scripts/missing-v2.mjs\` to refresh this list. + +| Dataset · field | Missing | +|---|---| +${summary} +${out.join("\n")}`); diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh index fb55aae..21ea6f8 100644 --- a/scripts/smoke-test.sh +++ b/scripts/smoke-test.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Checks the public URL after a deploy, the way a browser app would see it. -# For every JSON file in data/ and every image in images//: +# For every JSON file in data/ (and data-v2/, served at /v2/) and every image in images//: # - GET returns 200 # - the body is byte-for-byte the same as the repo file # - Access-Control-Allow-Origin is sent (CORS works for other sites) @@ -19,8 +19,13 @@ WAIT="${SMOKE_WAIT:-15}" TMP="$(mktemp -d)" trap 'rm -rf "$TMP"' EXIT +url_path() { # local path -> path in the API: data/X -> X, data-v2/X -> v2/X, images/X -> images/X + case "$1" in data-v2/*) echo "v2/${1#data-v2/}" ;; data/*) echo "${1#data/}" ;; *) echo "$1" ;; esac +} + check_file() { # $1 = local path; prints a reason and returns 1 on failure - local file="$1" key="${1#data/}" headers code acao ctype + local file="$1" key headers code acao ctype + key=$(url_path "$1") headers=$(curl -sS -m 20 -D - -o "$TMP/body" -H "Origin: $ORIGIN" -H "Cache-Control: no-cache" \ "$PUBLIC_URL/$key?smoke=${GITHUB_SHA:-local}" 2>&1) || { echo "request failed: $headers"; return 1; } code=$(printf '%s\n' "$headers" | awk 'toupper($1) ~ /^HTTP/ {c=$2} END {print c}') @@ -42,6 +47,7 @@ check_file() { # $1 = local path; prints a reason and returns 1 on failure mapfile -d '' FILES < <( { find data -type f -name '*.json' -print0 + [[ -d data-v2 ]] && find data-v2 -type f -name '*.json' -print0 [[ -d images ]] && find images -mindepth 2 -maxdepth 2 -type f -size -5121k -regextype posix-extended \ -regex 'images/[A-Za-z0-9_-]+/[a-z0-9][a-z0-9._-]*\.(webp|avif|png|jpg|jpeg|gif)' -print0 } | sort -z @@ -52,10 +58,10 @@ for ((try = 1; try <= TRIES; try++)); do failed=() for file in "${pending[@]}"; do if reason=$(check_file "$file"); then - echo "PASS ${file#data/}" + echo "PASS $(url_path "$file")" else failed+=("$file") - echo "wait ${file#data/}: $reason" + echo "wait $(url_path "$file"): $reason" fi done pending=("${failed[@]}") @@ -68,7 +74,7 @@ done # CORS preflight, as a browser sends before some cross-site requests. pre=$(curl -sS -m 20 -o /dev/null -D - -X OPTIONS -H "Origin: $ORIGIN" \ - -H "Access-Control-Request-Method: GET" "$PUBLIC_URL/${FILES[0]#data/}" 2>&1) + -H "Access-Control-Request-Method: GET" "$PUBLIC_URL/$(url_path "${FILES[0]}")" 2>&1) pre_code=$(printf '%s\n' "$pre" | awk 'toupper($1) ~ /^HTTP/ {c=$2} END {print c}') pre_acao=$(printf '%s\n' "$pre" | grep -ic '^access-control-allow-origin:') # Static assets on Workers answer OPTIONS with 405. Plain GET requests (no custom @@ -91,6 +97,14 @@ if [[ "$spec_code" == "200" ]] && grep -q '"openapi": *"3\.1' "$TMP/spec"; then else echo "FAIL openapi.json (status $spec_code)"; docs_ok=0 fi +if [[ -d data-v2 ]]; then + v2_code=$(curl -sS -m 20 -o "$TMP/spec2" -w '%{http_code}' "$PUBLIC_URL/v2/openapi.json" 2>/dev/null || echo 000) + if [[ "$v2_code" == "200" ]] && grep -q '"openapi": *"3.1' "$TMP/spec2"; then + echo "PASS v2/openapi.json" + else + echo "FAIL v2/openapi.json (status $v2_code)"; docs_ok=0 + fi +fi docs_code=$(curl -sS -m 20 -o "$TMP/docs" -w '%{http_code}' "$PUBLIC_URL/docs/" 2>/dev/null || echo 000) if [[ "$docs_code" == "200" ]] && grep -q 'swagger-ui-bundle.js' "$TMP/docs"; then echo "PASS docs/" @@ -105,7 +119,7 @@ echo; echo "$summary" [[ -n "${GITHUB_STEP_SUMMARY:-}" ]] && echo "$summary" >> "$GITHUB_STEP_SUMMARY" if (( bad > 0 || pre_ok == 0 || docs_ok == 0 )); then - for file in "${pending[@]}"; do echo "::error title=Smoke test failed::${file#data/}"; done - (( docs_ok == 0 )) && echo "::error title=Smoke test failed::docs/ or openapi.json" + for file in "${pending[@]}"; do echo "::error title=Smoke test failed::$(url_path "$file")"; done + (( docs_ok == 0 )) && echo "::error title=Smoke test failed::docs/ or an openapi.json" exit 1 fi diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json new file mode 100644 index 0000000..25f075b --- /dev/null +++ b/scripts/v2-additions/Accommodation.json @@ -0,0 +1,304 @@ +{ + "accommodation": [ + { + "id": 4, + "name": "Red Planet Davao", + "bgImageURL": "", + "sources": [ + "https://www.redplanethotels.com/hotel/red-planet-davao" + ], + "description": "Budget hotel on J.P. Laurel Avenue. Its official page says \"Damosa IT Park and Davao Medical Center are nearby\" (Davao Medical Center is SPMC's former name).", + "type": "Hotel", + "operator": "Red Planet Hotels", + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "+63 (082) 224 0577" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": "Red Planet Davao", + "location": "JP LAUREL AVE., BUHANGIN (POB), BUHANGIN DISTRICT 8000 DAVAO CITY DAVAO DEL SUR PHILIPPINES", + "landmark": "just 2 minutes from SM Lanang Premier", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 5, + "name": "Hop Inn Hotel Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Lot 1175 C1-C3 J.P. Laurel Avenue, Barrio Bajada, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 6, + "name": "Seda Abreeza", + "bgImageURL": "", + "sources": [ + "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" + ], + "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", + "type": "Hotel", + "operator": "Seda Hotels", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Abreeza Ayala Business Park, J.P. Laurel Ave., Bajada, Davao City", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 7, + "name": "Park Inn by Radisson Davao", + "bgImageURL": "", + "sources": [ + "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" + ], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": "Park Inn by Radisson", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "J.P. Laurel Ave, Agdao", + "landmark": "Accessible to SM Lanang Premier via footbridge", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid. Rates on the hotel's website.", + "amenities": [ + "Complimentary parking", + "Business services", + "Unlimited Wi-Fi", + "Outdoor pool", + "Fitness center, open 24 hours a day", + "VANDA restaurant", + "24/7 DASH self-service counter" + ], + "roomCapacity": { + "min": null, + "max": 4 + } + }, + { + "id": 8, + "name": "Acacia Hotel Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "71 J.P. Laurel Street Lanang, Davao City 8000 Philippines", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 9, + "name": "RedDoorz near Davao Doctors Hospital", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Elpidio Quirino Ave., Poblacion District, Davao, Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 10, + "name": "Rogen Inn", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Inn", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Mt. Apo, Cor Lopez Jaena St, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 11, + "name": "D'Morvie Suites - Davao", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "224 San Pedro St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 12, + "name": "The Bourke Hotel", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "115 P Pelayo St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + }, + { + "id": 13, + "name": "Apo View Hotel", + "bgImageURL": "", + "sources": [], + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "4-A, Barangay, J. Camus St, Poblacion District, Davao City, 8000 Davao del Sur", + "landmark": null, + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "cost": "Paid.", + "amenities": [], + "roomCapacity": { + "min": null, + "max": null + } + } + ] +} diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json new file mode 100644 index 0000000..26c3a70 --- /dev/null +++ b/scripts/v2-additions/Feeds.json @@ -0,0 +1,299 @@ +{ + "_about": "Records that exist only in v2 (not in data/). convert-v2.mjs appends them after converting data/. PSMO posts (https://www.psmo.ph/blog) approved by Fritz on 2026-11-15 (feeds review): titles, authors and dates as written, summaries in our own words. Davao City cancer news (davaocity.gov.ph, SunStar Davao, MindaNews, Daily Tribune) approved by Fritz on 2026-11-15, same rules.", + "feed": [ + { + "id": 3, + "title": "NCCN Partners with Philippine Cancer Organizations to Develop Locally Adapted Cancer Treatment Guidelines", + "bgImageURL": "", + "category": "News", + "tags": [ + "Treatment Guidelines" + ], + "content": "The National Comprehensive Cancer Network (NCCN) is working with Philippine medical groups, including PSMO and the Society of Gynecological Oncologists of the Philippines, to adapt its cancer treatment guidelines to conditions in the Philippines. The planned guidelines cover 10 cancers: B-cell lymphomas, breast, colon, hepatocellular carcinoma (liver), lung, prostate, rectal, cervical, ovarian and uterine cancer. The aim is more consistent, evidence-based treatment for Filipino patients.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "19 October 2026", + "sources": [ + "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + ] + }, + { + "id": 4, + "title": "PANAG-ISTORYA: Conversations that matter in Cancer Care.", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Conference" + ], + "content": "PSMO announced its 24th Midyear Convention, set for 16–17 April 2026 at the Dusit Thani D2 Hotel in Davao City. The theme, Panag-istorya (a Visayan word for dialogue), is about how cancer doctors talk with patients and families during hard moments, with a communication skills workshop led by Dr. Antonio Sison, who trained in psycho-oncology.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "18 February 2026", + "sources": [ + "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + ] + }, + { + "id": 5, + "title": "A Unified Front in Systemic Care: PSMO Reinforces the National Cancer Alliance", + "bgImageURL": "", + "category": "Blog", + "tags": [ + "Cancer Care Network" + ], + "content": "On World Cancer Day, 4 February 2026, PSMO joined the Philippine Cancer Society, the Philippine Society of Oncologists and the Philippine Medical Association at the PMA Auditorium. The groups signed a National Alliance memorandum of understanding on working together to make patient care pathways smoother, and launched a partnership between Quezon City and the City Cancer Challenge (C/Can).", + "authors": [ + "PSMO Digital" + ], + "publishDate": "10 February 2026", + "sources": [ + "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + ] + }, + { + "id": 6, + "title": "BARANGAYAN GOES TO GINGOOG CITY!", + "bgImageURL": "", + "category": "News", + "tags": [ + "Cancer Awareness", + "Barangay Health Workers" + ], + "content": "On 16 August 2025, PSMO held a cancer awareness caravan for health workers at the Arturo S. Lugod Gymnasium in Gingoog City. Doctors, barangay health workers and cancer survivors talked about cancer basics, prevention, screening, treatment and common myths. It was done with the Department of Health, the Gingoog City government and the Philippine College of Physicians–Caraga Chapter.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "21 August 2025", + "sources": [ + "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + ] + }, + { + "id": 7, + "title": "Ano ang Sarcoma?", + "bgImageURL": "", + "category": "Blog", + "tags": [ + "Sarcoma" + ], + "content": "A short PSMO explainer in Filipino about sarcoma, a rare cancer that grows in bones and soft tissues such as muscle, fat, blood vessels, nerves, tendons and cartilage. It reminds readers that not every lump is cancer, but a swelling that lasts more than 2 weeks should be checked by a doctor.", + "authors": [ + "PSMO Digital" + ], + "publishDate": "31 July 2025", + "sources": [ + "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + ] + }, + { + "id": 8, + "title": "Philippine Society of Medical Oncologists: A Vital Presence at the 1st National Patient Navigation Conference", + "bgImageURL": "", + "category": "News", + "tags": [ + "Patient Navigation" + ], + "content": "PSMO took part in the 1st National Patient Navigation Conference on 26–27 June 2025 at Casa Ibarra, Pasay City. It was organized by the DOH Cancer Control Division, Amang Rodriguez Memorial Medical Center and the Philippine Cancer Society, and ended a training program that trained 61 patient navigators, who guide patients through cancer care.", + "authors": [ + "Herdee Gloriane C. Luna, MD", + "PSMO Digital" + ], + "publishDate": "30 June 2025", + "sources": [ + "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" + ] + }, + { + "id": 9, + "title": "Davao City boosts anti cervical cancer drive", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Cervical Cancer", + "Screening" + ], + "content": "For Cervical Cancer Consciousness Month, the Davao City Health Office reminded women that free cervical cancer screening by visual inspection with acetic acid (VIA) and free HPV vaccination are available all year in the city's health centers. Some barangays also offer Pap smears; women can ask their health center for the schedule.", + "authors": [ + "CIO Admin" + ], + "publishDate": "4 May 2026", + "sources": [ + "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + ] + }, + { + "id": 10, + "title": "Free breast cancer-screening available all-year-roundin health centers", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer", + "Screening" + ], + "content": "The Davao City Health Office reminded the public that breast cancer screening is free all year in health centers across the city. From January to September 2025 it screened 33,796 people and referred 364 with suspicious lumps for follow-up. It noted that breast cancer can affect women as young as 25, and most deaths are among women aged 60 and above.", + "authors": [ + "CIO Admin" + ], + "publishDate": "23 October 2025", + "sources": [ + "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + ] + }, + { + "id": 11, + "title": "Davao City logs 197 breast cancer deaths in 2024", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer" + ], + "content": "The City Health Office recorded 197 breast cancer deaths in Davao City in 2024, including four men, and 161 more from January to September 2025. Most were aged 50 and above, though some were in their early 20s. The office urges all women aged 40 and above to get a yearly mammogram, even without symptoms.", + "authors": [ + "Rojean Grace G. Patumbon" + ], + "publishDate": "24 October 2025", + "sources": [ + "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + ] + }, + { + "id": 12, + "title": "Cervical cancer deaths, screening rates decline", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Cervical Cancer", + "Screening" + ], + "content": "Cervical cancer deaths in Davao City fell from 88 in 2023 to 67 in 2024, the City Health Office said, but fewer women got screened: 7,137 in 2023 and 6,104 in 2024. Most cases are in women aged 40 to 50. The HPV vaccine is free at health centers for girls aged 9 to 14, given in two doses six months apart.", + "authors": [ + "Rojean Grace G. Patumbon" + ], + "publishDate": "16 May 2025", + "sources": [ + "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + ] + }, + { + "id": 13, + "title": "SPMC says child cancer patients skipping treatment down to 2%", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Childhood Cancer" + ], + "content": "Southern Philippines Medical Center says the share of children who stop their cancer treatment fell from 90 percent in 2004 to 2 percent last year. Dr. Mae Dolendo, head of SPMC's Children's Cancer Institute, credited the hospital's strategies and support from government and non-government groups.", + "authors": [ + "CIO Admin" + ], + "publishDate": "19 September 2025", + "sources": [ + "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + ] + }, + { + "id": 14, + "title": "Davao City's SPMC now performing non-surgical procedure to remove brain tumors", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Radiation Therapy", + "Brain Tumor" + ], + "content": "The Cancer Institute of Southern Philippines Medical Center began offering stereotactic radiosurgery (SRS), a non-surgical treatment that aims high doses of radiation at a precise spot, making it the only government hospital in the country able to do it. Its first patient was a 27-year-old Davao City resident with a brain tumor (cranial meningioma), treated in five sessions.", + "authors": [ + "Antonio L. Colina IV" + ], + "publishDate": "10 February 2026", + "sources": [ + "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + ] + }, + { + "id": 15, + "title": "Malasakit Center eases cancer treatment burden for North Cotabato midwife", + "bgImageURL": "", + "category": "News", + "tags": [ + "Davao City", + "Breast Cancer", + "Financial Help" + ], + "content": "A midwife from Magpet, North Cotabato, diagnosed with Stage 2 breast cancer in 2024, had surgery, chemotherapy and radiation therapy at Southern Philippines Medical Center in Davao City. The story tells how the hospital's Malasakit Center helped with the cost of her treatment.", + "authors": [ + "Daily Tribune" + ], + "publishDate": "26 August 2026", + "sources": [ + "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + ] + }, + { + "id": 16, + "title": "Contracted Health facilities for Z Benefit Packages as of Septemeber 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "Z Benefits", + "Financial Help" + ], + "content": "PhilHealth's list of hospitals contracted for its Z Benefit packages, as of 30 September 2026. In Davao City, Southern Philippines Medical Center is contracted for all six cancer packages on the list: acute lymphocytic (lymphoblastic) leukemia, breast, cervical, prostate, colon and rectum cancer. Davao Doctors Hospital is contracted for breast cancer.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] + }, + { + "id": 17, + "title": "List of Accredited Providers for Selected Outpatient Cancer Screening Tests for CY 2026 Updated as of September 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "Cancer Screening" + ], + "content": "PhilHealth's list of 415 health facilities accredited for selected outpatient cancer screening tests in 2026, updated as of 30 September 2026. The tests on the list are breast ultrasound, low-dose chest CT scan, liver ultrasound, mammography, alpha-fetoprotein and colonoscopy. In Davao City, six facilities are on the list: Alterado General Hospital, Davao Medical School Foundation, Ernesto Guadalupe Community Hospital, Holy Spirit Community Hospital of Davao, Malta Medical Center and Southern Philippines Medical Center. Southern Philippines Medical Center is accredited for all six tests.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + ] + }, + { + "id": 18, + "title": "List of Accredited YAKAP Clinics for CY 2026 Updated as of September 30, 2026", + "bgImageURL": "", + "category": "Article", + "tags": [ + "Davao City", + "PhilHealth", + "YAKAP" + ], + "content": "PhilHealth's list of 4,138 clinics accredited for YAKAP (Yaman ng Kalusugan Program) in 2026, updated as of 30 September 2026. Davao City has 56 of them: 22 government and 34 private. They include City Government of Davao health centers, Southern Philippines Medical Center, hospitals, clinics and diagnostic laboratories.", + "authors": [ + "PhilHealth" + ], + "publishDate": "30 September 2026", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" + ] + } + ] +} diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json new file mode 100644 index 0000000..9d93c10 --- /dev/null +++ b/scripts/v2-additions/FinancialInstitution.json @@ -0,0 +1,341 @@ +{ + "_about": "Records that exist only in v2 (not in data/). convert-v2.mjs appends them after converting data/. Approved by Fritz on 2026-11-13; sources in CancerData-staging/provenance. Office details for PCSO and DOH (where to go) approved by Fritz on 2026-11-15 (money-help offices review).", + "financialInsti": [ + { + "id": 5, + "name": "Philippine Charity Sweepstakes Office (PCSO)", + "bgImageURL": "/images/FinancialInstitution/pcso.webp", + "sources": [ + "https://www.pcso.gov.ph/", + "https://lawphil.net/statutes/repacts/ra2019/ra_11463_2019.html", + "https://doh.gov.ph/mpo/mc-directory/" + ], + "description": "Government agency that gives financial help to people with health problems through its Medical Assistance Program, together with government and private hospitals, health facilities and medicine retailers.", + "type": "Public Institution", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Davao City Branch", + "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(082) 282-0305" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "mindanao@pcso.gov.ph" + } + ] + }, + { + "branchID": 2, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] + } + ], + "programs": [ + { + "programID": 505001, + "programName": "Medical Assistance Program (MAP)", + "eligibility": [ + "Individuals with health-related problems seeking financial help" + ], + "programDescription": "Financial help for patients, given in partnership with government and private hospitals, health facilities, medicine retailers and other partners. Cancer treatment (chemotherapy drugs, immunotherapy and radiation therapy) is one of the types of help. If approved, the patient gets a Guarantee Letter (GL) for the hospital, health facility, medicine retailer or diagnostic center.", + "cancerTypes": [ + "All cancers" + ], + "applicationURL": "https://onlinemap.pcso.gov.ph/", + "sources": [ + "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx", + "https://www.pcso.gov.ph/About/Directories/MindanaoDepartment.aspx", + "https://www.pcso.gov.ph/pcsofiles/infographics/pcsoadvisory/PCSOAdvisory2021121501.jpg" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Cancer treatment: chemotherapeutic drugs and immunotherapy", + "amount": null + }, + { + "benefitID": 2, + "benefitName": "Radiation therapy", + "amount": null + }, + { + "benefitID": 3, + "benefitName": "Confinement assistance", + "amount": null + }, + { + "benefitID": 4, + "benefitName": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Duly Accomplished MAP Application Form" + }, + { + "requirementID": 2, + "requirementDescription": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + }, + { + "requirementID": 3, + "requirementDescription": "Valid ID of the patient's next of kin, if applicable" + }, + { + "requirementID": 4, + "requirementDescription": "For cancer treatment: updated clinical or medical abstract (issued within the past 3 months), medical prescription, and treatment protocol (chemotherapy) or treatment plan (radiation therapy), each with the full name, signature and license number of the attending physician" + }, + { + "requirementID": 5, + "requirementDescription": "For cancer treatment: one quotation from the hospital willing to accept the GL, or official quotations from three different suppliers if the medicine is not available in the hospital" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to the PCSO Davao City Branch, or to the PCSO or Malasakit Center desk of your hospital. In some areas, MAP can be accessed only through hospitals with a Malasakit Center." + }, + { + "step": 2, + "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." + }, + { + "step": 3, + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." + }, + { + "step": 4, + "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + }, + { + "step": 5, + "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + }, + { + "step": 6, + "instruction": "Wait for the result in your email or in your online account." + } + ] + } + ] + }, + { + "id": 6, + "name": "Department of Health (DOH)", + "bgImageURL": "/images/FinancialInstitution/doh.webp", + "sources": [ + "https://doh.gov.ph/", + "https://doh.gov.ph/mpo/mc-directory/" + ], + "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them, and its Cancer Assistance Fund (CAF) and CSPMAP help cancer patients with treatment and free medicines.", + "type": "Public Institution", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] + } + ], + "programs": [ + { + "programID": 606001, + "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "eligibility": [ + "Every Filipino who is an indigent patient", + "Every Filipino who is a financially incapacitated patient: a patient facing serious money problems in paying for long-term treatment or costs" + ], + "programDescription": "DOH medical and financial help given at Malasakit Centers, inside DOH hospitals, state university and college hospitals, the Department of National Defense hospital, the Philippine National Police hospital, and selected LGU hospitals.", + "cancerTypes": null, + "applicationURL": null, + "sources": [ + "https://doh.gov.ph/mpo/list-of-documentary-requirements-in-availing-maifip-program-medical-assistance/", + "https://doh.gov.ph/mpo/process-of-availing-of-medical-assistance/" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Medicines in the Philippine National Drug Formulary (PNDF), or medicines for compassionate use", + "amount": null + }, + { + "benefitID": 2, + "benefitName": "Blood products", + "amount": null + }, + { + "benefitID": 3, + "benefitName": "Medical procedures and supplies", + "amount": null + }, + { + "benefitID": 4, + "benefitName": "Support for mental health, psychosocial and rehabilitation services", + "amount": null + }, + { + "benefitID": 5, + "benefitName": "Hospital bill", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "In-patients: Hospital bill or charges or fees or statement of account (SOA)" + }, + { + "requirementID": 2, + "requirementDescription": "In-patients: Copy of valid ID of the patient or medical social services-issued ID or barangay-issued Certificate of Residence (for GIDA areas) or Certification from Indigenous People (IP) representatives (for IPs) or valid ID of next of kin, if applicable." + }, + { + "requirementID": 3, + "requirementDescription": "Out-patients: Prescription of drugs and medicines or treatment protocol or laboratory or diagnostic request issued by referring facilities, if applicable." + }, + { + "requirementID": 4, + "requirementDescription": "Out-patients: Copy of valid ID of the patient or medical social services-issued ID or barangay-issued Certificate of Residence (for GIDA areas) or Certification from Indigenous People (IP) representatives (for IPs) or valid ID of next of kin, if applicable." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Get a consultation or treatment at a hospital that has a Malasakit Center." + }, + { + "step": 2, + "instruction": "Go to the Malasakit Center office inside the hospital for your medical or financial needs." + }, + { + "step": 3, + "instruction": "Have an interview and assessment with the assigned social worker." + }, + { + "step": 4, + "instruction": "Submit the required documents to receive the benefits." + }, + { + "step": 5, + "instruction": "Receive the approved medical or financial benefit." + } + ] + }, + { + "programID": 606002, + "programName": "Cancer Assistance Fund (CAF)", + "eligibility": [ + "Persons with cancer, cancer survivors and high-risk individuals", + "For the eight priority cancer types" + ], + "programDescription": "DOH fund under RA 11215 (National Integrated Cancer Control Act). It pays for cancer prevention, screening, early detection and diagnosis, treatment and care-related components for 8 priority cancer types. It adds to PhilHealth and other help for costs they do not cover, and for cancer cases it is used before MAIFIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 34 in DOH's 2025 list).", + "cancerTypes": [ + "Breast cancer", + "Childhood cancers", + "Gynecologic cancers", + "Liver cancer, including colorectal and other digestive tract cancers", + "Adult blood cancers", + "Head and neck cancers, including thyroid", + "Lung cancer", + "Prostate, renal and urinary bladder cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.dbm.gov.ph/wp-content/uploads/Issuances/2023/Joint-Memorandum-Circular/JOINT-MEMORANDUM-CIRCULAR-NO.-2023-001-DATED-SEPTEMBER-18-2023.pdf", + "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/", + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Diagnostic procedures, medicines and treatment", + "amount": null + } + ], + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Medical abstract, doctor's prescription, or treatment plan" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Go to a CAF access site. In Davao City: Southern Philippines Medical Center." + }, + { + "step": 2, + "instruction": "Present your medical abstract, doctor's prescription, or treatment plan to the social worker assigned to the hospital for assessment and approval." + }, + { + "step": 3, + "instruction": "Your documents are evaluated before approval and availment of services." + } + ] + }, + { + "programID": 606003, + "programName": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "eligibility": [], + "programDescription": "DOH program that gives free medicines not yet covered by PhilHealth, to lower or remove out-of-pocket costs. It is part of the National Integrated Cancer Control Program. Its DOH hospital access sites are also CAF access sites. In 2024, 35 access sites offered 61 medicines for the most common cancers.", + "cancerTypes": null, + "applicationURL": null, + "sources": [ + "https://www.dbm.gov.ph/wp-content/uploads/Issuances/2023/Joint-Memorandum-Circular/JOINT-MEMORANDUM-CIRCULAR-NO.-2023-001-DATED-SEPTEMBER-18-2023.pdf", + "https://doh.gov.ph/press-release/DOH-LEADS-NATIONAL-LUNG-CANCER-AWARENESS-MONTH-FREE-MEDICINES-AVAILABLE-NATIONWIDE/", + "https://doh.gov.ph/doh-who-launch-2024-2028-national-integrated-cancer-control-program-niccp-strategic-framework/" + ], + "benefits": [ + { + "benefitID": 1, + "benefitName": "Free medicines not yet covered by PhilHealth", + "amount": "Free" + } + ], + "requirements": [], + "procedure": [] + } + ] + } + ] +} diff --git a/scripts/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json new file mode 100644 index 0000000..5a82a84 --- /dev/null +++ b/scripts/v2-additions/HealthInstitution.json @@ -0,0 +1,269 @@ +{ + "_about": "Records that exist only in v2 (not in data/). convert-v2.mjs appends them after converting data/. Davao Doctors Hospital approved by Fritz on 2026-11-15 (hospitals review); sources in each service's sources and in CancerData-staging/provenance.", + "healthInsti": [ + { + "id": 2, + "name": "Davao Doctors Hospital", + "bgImageURL": "", + "sources": [ + "https://ddh.com.ph/" + ], + "description": "Davao Doctors Hospital soon opened its doors to the public in 1969, starting with a 50-bed capacity. Over time, DDH continued to foster many other firsts in the region as its Radiation Oncology Department became fully operational, among other notable innovations.", + "type": "Private Institution", + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "(+6382) 222-8000" + }, + { + "contactID": 2, + "type": "Landline", + "contactDetails": "(+6382) 222 - 7948" + }, + { + "contactID": 3, + "type": "Email", + "contactDetails": "info@ddh.com.ph" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "118 E. Quirino Avenue, Davao City Philippines 8000", + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [] + } + ], + "services": [ + { + "serviceID": 1, + "branchIDs": [ + 1 + ], + "serviceName": "Radiation Oncology Department", + "serviceDescription": "The oncology Center uses clinical and holistic approaches for the management of cancer. We aim to cure- to eradicate the tumor and prevent its recurrence, as well as to relieve pain and other discomforts of cancer. Equipment: Dual Energy Linear Accelerator; the Elekta Synergy linear Accelerator- the first IMRT/IGRT facility. Services Offered: Radiation Consultation Evaluation; Treatment Planning; External Beam Radiography; Low Dose Rate (LDR) Brachytherapy; Blood Irradiation. Location: Ground Level, Oncology Building. Office Hours: 6:00am - 6:00pm. Contact: (082) 222 8000 local 8158 | radonco@ddh.com.ph", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/radiation-oncology-department/" + ], + "serviceSchedule": null, + "requirements": [ + { + "requirementID": 1, + "requirementDescription": "Referral letter and a short clinical abstract." + }, + { + "requirementID": 2, + "requirementDescription": "Histopathologic report." + }, + { + "requirementID": 3, + "requirementDescription": "Laboratory and Imaging work-ups with results and radiographs." + }, + { + "requirementID": 4, + "requirementDescription": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + }, + { + "requirementID": 5, + "requirementDescription": "Dental clearance for head and neck tumors." + }, + { + "requirementID": 6, + "requirementDescription": "Steroid coverage for brain and spinal cord irradiation." + } + ], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "serviceName": "External Beam Radiation Therapy", + "serviceDescription": "Curative: Destroy tumors that have not spread the other parts of the body and cure you of disease reduce the risk that cancer will return after you undergo surgery or systemic/chemotherapy by killing small amounts of remaining cancer cells shrink cancer before surgery. Palliative: Shrink tumors that are interfering with your quality of life, such as lung tumor that is causing shortness of breath to relieve pain by reducing the size of a tumor and other unpleasant symptoms, thus improving the quality of life and prolongation of survival. Radiation Therapy usually takes from a week to eight weeks, depending on the goal, either curative or palliative. It is given daily from Monday to Friday lasting only for a few minutes, based on the prescribed dose and number of treatment fields. Who can avail? It has clinical applications for patients diagnosed with malignant tumors and occasionally benign diseases. Location: Ground floor of Oncology Building. Contact: +63 82 222 8000 local 8158 | +63 82 222 7992 | radonco@ddh.com.ph", + "cancerTypes": [ + "Brain / spinal cord tumors", + "Head and neck tumors", + "Lung cancer", + "Breast cancer", + "Cervix/ Endometrial / Ovarian", + "Vulvar cancer", + "Rectal cancer", + "Lymphoma", + "soft tissue tumors" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/external-beam-radiation-therapy/" + ], + "serviceSchedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "6:00am", + "timeOut": "6:00pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "serviceName": "Brachytherapy", + "serviceDescription": "Brachytherapy is a procedure that involves placing radioactive material inside your body. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": [ + "Cervical Cancer", + "Endometrial Cancer", + "Vaginal Cancer" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [ + { + "step": 1, + "instruction": "Scheduling & pre – operative preparations c/o cancer center" + }, + { + "step": 2, + "instruction": "Direct to room admission (with prior doctors orders)" + }, + { + "step": 3, + "instruction": "Confined in a private deluxe for 2 – 3 days" + } + ] + }, + { + "serviceID": 4, + "branchIDs": [ + 1 + ], + "serviceName": "In-patient Chemotherapy", + "serviceDescription": "Hemotherapy is a drug treatment that uses powerful chemicals to kill fast-growing cells in your body. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "serviceName": "Radioactive Iodine Therapy (RAI)", + "serviceDescription": "Low dose and high dose radioactive iodine (RAI) therapy c/o physician on – board. Uses: Hyperthyroidism (Grave's Disease, solitary autonomous nodule); Ablation of thyroid remnants after thyroidectomy; Treatment of Metastatic Thyroid Carcinoma. Location: Ground Level, Oncology Building. Contact Info: (6382) 222 - 8000 loc. 8143", + "cancerTypes": [ + "Papillary Thyroid Cancer", + "Follicular Thyroid Cancer" + ], + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/", + "https://ddh.com.ph/services-and-centers/nuclear-medicine/" + ], + "serviceSchedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "7:00am", + "timeOut": "6:00pm" + }, + { + "day": "Saturdays", + "timeIn": "7:00 am", + "timeOut": "3:00 pm" + } + ], + "requirements": [], + "procedure": [ + { + "step": 1, + "instruction": "Scheduling c/o Nuclear Medicine Department" + }, + { + "step": 2, + "instruction": "Direct – to – room admission (with prior doctors orders)" + }, + { + "step": 3, + "instruction": "Confined in a private deluxe for 2 – 3 days" + } + ] + }, + { + "serviceID": 6, + "branchIDs": [ + 1 + ], + "serviceName": "Long Term Radiotherapy", + "serviceDescription": "Clients located far from the city may opt to be admitted in the unit to complete the recommended number of RT treatments. Location: Ground Floor, Oncology Building. Office Hours: 24/7. Contact Info: 222-8000 local 7329.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://ddh.com.ph/services-and-centers/nursing-service/" + ], + "serviceSchedule": null, + "requirements": [], + "procedure": [] + } + ], + "coverage": [ + { + "programID": 101002, + "name": "Z Benefit Packages", + "details": "Contracted for Breast Cancer, as of September 30, 2026.", + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] + }, + { + "programID": null, + "name": "LINGAP – City Government of Davao", + "details": "Accredited government financial medical assistance (as of November 2024). Office: Malasakit Center, Bajada, Davao City (beside SPMC Hospital).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": null, + "name": "DSWD – Department of Social Welfare & Development", + "details": "Accredited government financial medical assistance (as of November 2024). Office: Ramon Magsaysay, Davao City (near DPWH Office).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": 505001, + "name": "PCSO – Philippine Charity Sweepstakes Office", + "details": "Accredited government financial medical assistance (as of November 2024).", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + }, + { + "programID": 606001, + "name": "MAIFIP", + "details": "Accredited government financial medical assistance (as of November 2024). For out-patient help, the hospital asks for a Certificate of Procedure's Non-Availability from SPMC Hospital.", + "sources": [ + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/" + ] + } + ] + } + ] +} diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 9cee27d..08c6af8 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -12,6 +12,11 @@ import { } from "./images.mjs"; const DATA_DIR = "data"; +// v2 data (served at /v2/) lives in data-v2/ with the same layout and rules. +const DATA_DIRS = [DATA_DIR, "data-v2"].filter(d => existsSync(d)); +const datasetDirs = () => DATA_DIRS.flatMap(base => + readdirSync(base, { withFileTypes: true }).filter(f => f.isDirectory()).map(f => join(base, f.name))); +const label = p => (p.startsWith(`${DATA_DIR}-`) ? p : relative(DATA_DIR, p)); let failed = 0; let warned = 0; let checked = 0; @@ -27,10 +32,7 @@ function readJson(path) { } } -for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { - if (!folder.isDirectory()) continue; - const dir = join(DATA_DIR, folder.name); - +for (const dir of datasetDirs()) { for (const file of readdirSync(dir).filter(f => f.endsWith(".schema.json"))) { const name = file.replace(/\.schema\.json$/, ""); const schemaPath = join(dir, file); @@ -60,10 +62,10 @@ for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { const validate = ajv.compile(schema); if (validate(data)) { - console.log(`PASS ${relative(DATA_DIR, dataPath)}`); + console.log(`PASS ${label(dataPath)}`); } else { failed++; - console.error(`FAIL ${relative(DATA_DIR, dataPath)}`); + console.error(`FAIL ${label(dataPath)}`); for (const err of validate.errors) { const extra = err.params?.additionalProperty ? ` (${err.params.additionalProperty})` : ""; console.error(` ${err.instancePath || "/"} ${err.message}${extra}`); @@ -73,9 +75,7 @@ for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { } // Data files without a schema are not allowed either. -for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { - if (!folder.isDirectory()) continue; - const dir = join(DATA_DIR, folder.name); +for (const dir of datasetDirs()) { for (const f of readdirSync(dir)) { if (f.endsWith(".json") && !f.endsWith(".schema.json") && !existsSync(join(dir, f.replace(/\.json$/, ".schema.json")))) { console.error(`FAIL ${join(dir, f)}: no matching schema file`); @@ -84,6 +84,68 @@ for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { } } +// ---- v2: each service's branchIDs must exist in the same institution ---- +// JSON Schema can't compare two parts of a file, so this is checked here. +const v2Health = join("data-v2", "HealthInstitution", "HealthInstiData.json"); +if (existsSync(v2Health)) { + let data = null; + try { data = JSON.parse(readFileSync(v2Health, "utf8")); } catch { /* already reported above */ } + for (const insti of data?.healthInsti ?? []) { + const ids = (insti.branches ?? []).map(b => b.branchID); + const known = new Set(ids); + if (known.size !== ids.length) { + console.error(`FAIL ${v2Health}: ${insti.name} has the same branchID twice`); failed++; + } + for (const s of insti.services ?? []) { + for (const id of s.branchIDs ?? []) { + if (!known.has(id)) { + console.error(`FAIL ${v2Health}: ${insti.name}, service ${s.serviceID} "${s.serviceName}" uses branchID ${id}, which this institution doesn't have`); + failed++; + } + } + } + } +} + +// ---- v2: links between datasets must point to records that exist ---- +// Hospital coverage -> financial programs (programID, unless null). +const v2Read = (p) => { try { return existsSync(p) ? JSON.parse(readFileSync(p, "utf8")) : null; } catch { return null; } }; +const v2Fin = v2Read(join("data-v2", "FinancialInstitution", "FinancialInstiData.json")); +const v2Hos = v2Read(v2Health); +if (v2Fin && v2Hos) { + const programIDs = new Set(v2Fin.financialInsti.flatMap(r => (r.programs ?? []).map(p => p.programID))); + for (const h of v2Hos.healthInsti) { + for (const c of h.coverage ?? []) { + if (c.programID !== null && !programIDs.has(c.programID)) { + console.error(`FAIL ${v2Health}: ${h.name}, coverage "${c.name}" uses programID ${c.programID}, which no financial program has`); failed++; + } + } + } +} + +// ---- v2: a room capacity range can't be upside down ---- +const v2Acc = join("data-v2", "Accommodation", "AccommodationData.json"); +for (const a of v2Read(v2Acc)?.accommodation ?? []) { + const { min, max } = a.roomCapacity ?? {}; + if (min != null && max != null && min > max) { + console.error(`FAIL ${v2Acc}: ${a.name} has roomCapacity min ${min} above max ${max}`); failed++; + } +} + +// ---- v2: meta.recordCount must match the records in the file ---- +if (existsSync("data-v2")) { + for (const dir of readdirSync("data-v2", { withFileTypes: true }).filter(d => d.isDirectory())) { + for (const f of readdirSync(join("data-v2", dir.name)).filter(n => n.endsWith(".json") && !n.endsWith(".schema.json"))) { + const p = join("data-v2", dir.name, f); + const d = v2Read(p); + if (!d?.meta) continue; // the schema check reports a missing meta + const key = Object.keys(d).find(k => k !== "$schema" && k !== "meta"); + const n = Array.isArray(d[key]) ? d[key].length : 0; + if (d.meta.recordCount !== n) { console.error(`FAIL ${p}: meta.recordCount is ${d.meta.recordCount}, but the file has ${n} records`); failed++; } + } + } +} + // ---- Images ---- const kb = n => `${Math.round(n / 1024)} KB`; const images = new Set(); @@ -103,11 +165,10 @@ for (const f of listImageFiles()) { const used = new Set(); let imageRefs = 0; -for (const folder of readdirSync(DATA_DIR, { withFileTypes: true })) { - if (!folder.isDirectory()) continue; - for (const f of readdirSync(join(DATA_DIR, folder.name))) { +for (const dir of datasetDirs()) { + for (const f of readdirSync(dir)) { if (!f.endsWith(".json") || f.endsWith(".schema.json")) continue; - const path = join(DATA_DIR, folder.name, f); + const path = join(dir, f); let data; try { data = JSON.parse(readFileSync(path, "utf8")); } catch { continue; } // already reported above for (const { where, value } of findImageValues(data)) { diff --git a/worker/src/index.js b/worker/src/index.js index 3c4f3f2..8ec361d 100644 --- a/worker/src/index.js +++ b/worker/src/index.js @@ -1,7 +1,8 @@ // Cancer Open Data API. -// Data files (//.json) are Workers Static Assets: Cloudflare serves -// them directly with CORS and cache headers from dist/_headers. This code runs -// only for "/" (the dataset list) and for requests no static file matches. +// Data files (//.json, and /v2//.json) are Workers Static +// Assets: Cloudflare serves them directly with CORS and cache headers from dist/_headers. +// This code runs only for "/" and "/v2/" (the dataset lists) and for requests no static +// file matches. // // Every response from this code is JSON with CORS headers, including errors: // { "error": { "status": 404, "message": "Not found", "path": "/x" } } @@ -31,9 +32,12 @@ function error(status, message, details = {}, extra = {}) { return json(status, { error: { status, message, ...details } }, extra); } -async function datasetList(url, env) { - const res = await env.ASSETS.fetch(new URL("/index.json", url.origin)); - if (!res.ok) throw new Error(`index.json returned ${res.status}`); +// prefix "" = v1 (/index.json), "/v2" = v2 (/v2/index.json). +// Returns null when a v2 list isn't built, so the caller can answer 404. +async function datasetList(url, env, prefix = "") { + const res = await env.ASSETS.fetch(new URL(`${prefix}/index.json`, url.origin)); + if (prefix && res.status === 404) return null; + if (!res.ok) throw new Error(`${prefix}/index.json returned ${res.status}`); const index = await res.json(); if (!Array.isArray(index.datasets)) throw new Error("index.json has no datasets list"); // index.json stores paths; return full URLs for this host. @@ -42,7 +46,7 @@ async function datasetList(url, env) { if (d.data) d.data = url.origin + d.data; if (d.schema) d.schema = url.origin + d.schema; } - index.usage = `fetch("${url.origin}//.json").then(r => r.json())`; + index.usage = `fetch("${url.origin}${prefix}//.json").then(r => r.json())`; return index; } @@ -58,6 +62,11 @@ async function handle(request, env) { if (url.pathname === "/") { return json(200, await datasetList(url, env), { "Cache-Control": "public, max-age=60" }); } + if (url.pathname === "/v2" || url.pathname === "/v2/") { + const list = await datasetList(url, env, "/v2"); + if (!list) return error(404, "Not found. See / for the list of datasets.", { path: url.pathname }); + return json(200, list, { "Cache-Control": "public, max-age=60" }); + } return error(404, "Not found. See / for the list of datasets.", { path: url.pathname }); } diff --git a/worker/test/worker.test.mjs b/worker/test/worker.test.mjs index b621054..ffe71fa 100644 --- a/worker/test/worker.test.mjs +++ b/worker/test/worker.test.mjs @@ -32,6 +32,13 @@ async function expectError(res, status) { return body; } +// A schema as build-openapi.mjs embeds it: local $refs ("#/$defs/x") point into +// components.schemas.; everything else as written. +const asEmbedded = (schema, name) => { + const { $schema, $id, ...rest } = schema; + return JSON.parse(JSON.stringify(rest).replace(/"\$ref":"#(\/[^"]*)?"/g, (m, p) => `"$ref":"#/components/schemas/${name}${p ?? ""}"`)); +}; + // ---- Unit tests: call the Worker code directly with a fake asset store ---- const call = (path, assetsFetch, init) => workerModule.fetch(new Request(`https://api.test${path}`, init), { ASSETS: { fetch: assetsFetch } }); @@ -52,6 +59,20 @@ await test("unit: 404 has the standard error shape", async () => { const body = await expectError(await call("/nope", async () => new Response(null, { status: 404 })), 404); assert.equal(body.error.path, "/nope"); }); +await test("unit: /v2/ when v2 isn't built -> JSON 404 with CORS", async () => { + const body = await expectError(await call("/v2/", async () => new Response("nope", { status: 404 })), 404); + assert.equal(body.error.path, "/v2/"); +}); +await test("unit: /v2/ lists v2 datasets with full URLs", async () => { + const assets = async (req) => { + assert.equal(new URL(req.url ?? req).pathname, "/v2/index.json"); // the Worker passes a URL + return Response.json({ docs: "/docs/?version=v2", openapi: "/v2/openapi.json", datasets: [{ name: "Feeds", data: "/v2/Feeds/FeedsData.json", schema: "/v2/Feeds/FeedsData.schema.json" }] }); + }; + const body = await (await call("/v2", assets)).json(); + assert.equal(body.datasets[0].data, "https://api.test/v2/Feeds/FeedsData.json"); + assert.equal(body.openapi, "https://api.test/v2/openapi.json"); + assert.match(body.usage, /api\.test\/v2\//); +}); await test("unit: 405 has the standard error shape and Allow", async () => { const res = await call("/", async () => new Response(null), { method: "DELETE" }); assert.equal(res.headers.get("allow"), "GET, HEAD, OPTIONS"); @@ -72,6 +93,10 @@ execFileSync("node", ["scripts/build-site.mjs"], { cwd: root, stdio: "inherit", rmSync(imgDir, { recursive: true, force: true }); const index = JSON.parse(readFileSync(join(here, "..", "dist", "index.json"), "utf8")); const files = index.datasets.flatMap(d => [d.data, d.schema]).map(p => p.slice(1)); +// v2 is built only when data-v2/ exists; its tests run only then. +const hasV2 = existsSync(join(root, "data-v2")); +const indexV2 = hasV2 ? JSON.parse(readFileSync(join(here, "..", "dist", "v2", "index.json"), "utf8")) : null; +const filesV2 = hasV2 ? indexV2.datasets.flatMap(d => [d.data, d.schema]).map(p => p.slice(1)) : []; const worker = await unstable_startWorker({ config: join(here, "..", "wrangler.jsonc"), @@ -93,6 +118,17 @@ try { }); } + for (const key of filesV2) { + await test(`GET ${key} (v2 static asset)`, async () => { + const r = await fetch(`${base}/${key}`, { headers: { Origin: "https://example.com" } }); + assert.equal(r.status, 200); + assert.equal(r.headers.get("access-control-allow-origin"), "*"); + assert.match(r.headers.get("content-type") ?? "", /^application\/json/); + assert.equal(r.headers.get("cache-control"), "public, max-age=300"); + assert.deepEqual(Buffer.from(await r.arrayBuffer()), readFileSync(join(root, "data-v2", key.slice("v2/".length)))); + }); + } + await test("GET /images/Feeds/zz-test-fixture.png (static image)", async () => { const r = await fetch(`${base}/images/Feeds/zz-test-fixture.png`, { headers: { Origin: "https://example.com" } }); assert.equal(r.status, 200); @@ -125,12 +161,65 @@ try { assert.ok(spec.paths[d.data], `path ${d.data}`); assert.ok(spec.paths[d.schema], `path ${d.schema}`); const real = JSON.parse(readFileSync(join(root, "data", d.schema.slice(1)), "utf8")); - delete real.$schema; delete real.$id; - assert.deepEqual(spec.components.schemas[d.name], real, `${d.name} schema embedded as written`); + assert.deepEqual(spec.components.schemas[d.name], asEmbedded(real, d.name), `${d.name} schema embedded as written`); } assert.ok(spec.paths["/images/{folder}/{file}"], "images path"); }); + if (hasV2) { + await test("/v2/openapi.json is a valid OpenAPI 3.1 spec with every v2 dataset", async () => { + const r = await fetch(`${base}/v2/openapi.json`); + assert.equal(r.status, 200); + const spec = await r.json(); + const result = await new Validator().validate(spec); + assert.ok(result.valid, JSON.stringify(result.errors)?.slice(0, 500)); + assert.match(spec.info.title, /v2/); + assert.ok(spec.paths["/v2/"], "v2 list path"); + for (const d of indexV2.datasets) { + assert.ok(spec.paths[d.data], `path ${d.data}`); + assert.ok(spec.paths[d.schema], `path ${d.schema}`); + const real = JSON.parse(readFileSync(join(root, "data-v2", d.schema.slice("/v2/".length)), "utf8")); + assert.deepEqual(spec.components.schemas[d.name], asEmbedded(real, d.name), `${d.name} v2 schema embedded as written`); + } + }); + + for (const path of ["/v2/", "/v2"]) { + await test(`${path} lists every v2 dataset with full URLs`, async () => { + const r = await fetch(`${base}${path}`); + assert.equal(r.status, 200); + assert.equal(r.headers.get("access-control-allow-origin"), "*"); + const body = await r.json(); + assert.equal(body.apiVersion, "v2"); + assert.equal(body.datasets.length, 6); // v1's 5 plus Accommodation (v2 only) + assert.equal(body.openapi, `${base}/v2/openapi.json`); + assert.equal(body.docs, `${base}/docs/?version=v2`); + for (const d of body.datasets) { + assert.ok(d.data.startsWith(`${base}/v2/`) && d.schema.startsWith(`${base}/v2/`), `full v2 URLs for ${d.name}`); + const back = await fetch(d.data); + assert.equal(back.status, 200, `${d.data} loads`); + await back.arrayBuffer(); + } + }); + } + } + + await test("/docs/versions.json lists the versions the picker offers, and each spec loads", async () => { + const r = await fetch(`${base}/docs/versions.json`); + assert.equal(r.status, 200); + const versions = await r.json(); + assert.deepEqual(versions.map(v => v.id), hasV2 ? ["v1", "v2"] : ["v1"]); + for (const v of versions) { + const spec = await fetch(`${base}${v.spec}`); + assert.equal(spec.status, 200, `${v.spec} loads`); + await spec.arrayBuffer(); + } + }); + + await test("/docs/ has the version picker", async () => { + const html = await (await fetch(`${base}/docs/`)).text(); + assert.match(html, /id="api-version"/); + }); + await test("/docs/ serves Swagger UI with a strict CSP", async () => { const r = await fetch(`${base}/docs/`); assert.equal(r.status, 200);