Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d4af78d
Add v2 data (local review): new schemas, converter and checks
ProjectFuritsu Nov 13, 2026
ae84aa3
v2: simplify Z Benefits to one requirement and one step
ProjectFuritsu Nov 13, 2026
cd4481f
v2: add PCSO MAP and DOH MAIFIP, drop loans, official Facebook pages
ProjectFuritsu Nov 13, 2026
6c1a728
v2: eligibility as a list, split as written
ProjectFuritsu Nov 13, 2026
1c9cada
v2: show "Not available" for null values, add missing-data report
ProjectFuritsu Nov 13, 2026
57f9b17
v2: rewrite YAKAP from its official page
ProjectFuritsu Nov 13, 2026
5f2b6ed
v2: bring in the 14 Nov v1 updates (5 specialists, NowServing clinics…
ProjectFuritsu Nov 15, 2026
e88dfd2
v2: serve at /v2/ with its own spec, and a v1/v2 picker on /docs/
ProjectFuritsu Nov 15, 2026
f4fca9d
v2: one Z Benefits program, keeping every v1 detail labeled by cancer
ProjectFuritsu Nov 15, 2026
7d4e737
v2: SPMC cancer clinics and contacts; add Davao Doctors Hospital
ProjectFuritsu Nov 15, 2026
1a830fd
v2: SPMC fees from its official Rates and Fees PDF
ProjectFuritsu Nov 15, 2026
ef57ddc
v2: rename SPMC Cancer Institute to Southern Philippines Medical Center
ProjectFuritsu Nov 15, 2026
fdd69a1
v2: add 6 feeds from the Philippine Society of Medical Oncology
ProjectFuritsu Nov 15, 2026
671a758
v2: add 7 Davao City cancer news feeds
ProjectFuritsu Nov 15, 2026
1a728b6
v2: where to go for PhilHealth, PCSO and DOH; fix AMUMA's landline
ProjectFuritsu Nov 15, 2026
03ed754
v2: DOH MAIFIP online option, eMAIFIP in the eGovPH app
ProjectFuritsu Nov 15, 2026
0137a0d
v2: show "Not given" for null or empty values
ProjectFuritsu Nov 16, 2026
9f0da39
v2: DOH Cancer Assistance Fund and CSPMAP; Z Benefits facilities feed
ProjectFuritsu Nov 16, 2026
9aa517f
v2: one PCSO Davao City Branch and DOH Office Davao City (Fritz's names)
ProjectFuritsu Nov 16, 2026
82f890d
v2: feeds 17 and 18, PhilHealth cancer screening and YAKAP lists
ProjectFuritsu Nov 16, 2026
57ea5d8
v2: hospital coverage, linked to money-help programs
ProjectFuritsu Nov 19, 2026
0fec3dc
v2: Accommodation dataset, places to stay near the hospitals
ProjectFuritsu Nov 19, 2026
c4d628d
v2: landmark on every branch
ProjectFuritsu Nov 19, 2026
e30ee94
v2: accommodation landmarks and 9 paid places
ProjectFuritsu Nov 19, 2026
b65db7c
v2: remove hospitalIDs from Accommodation
ProjectFuritsu Nov 19, 2026
448402c
v2: Accommodation gets amenities; drops eligibility, requirements, pr…
ProjectFuritsu Nov 19, 2026
5e153bf
v2: Accommodation roomCapacity range; free places on hold
ProjectFuritsu Nov 19, 2026
33245f3
v2: meta block in every data file
ProjectFuritsu Nov 19, 2026
139ed47
v2: remove lastVerified from Accommodation records
ProjectFuritsu Nov 19, 2026
b8e6d74
v2: remove lastVerified from every dataset
ProjectFuritsu Nov 19, 2026
99cd1c5
Merge main into v2/local-review-20261113
ProjectFuritsu Nov 27, 2026
71f8804
v2: carry specialist #12 fixes over from v1
ProjectFuritsu Nov 27, 2026
bcc7405
v2: specialist #27 Online Clinic bookingType is not given
ProjectFuritsu Nov 27, 2026
11fb7dd
v2: online clinics' bookingType is not given
ProjectFuritsu Nov 27, 2026
2c582c2
v2: one name for program 606001 (MAIFIP)
ProjectFuritsu Nov 27, 2026
385c999
v2: camelCase keys everywhere, and one `sources` list per record
ProjectFuritsu Nov 27, 2026
d894a76
v2: official DOH sources for MAIFIP, CAF and CSPMAP
ProjectFuritsu Nov 27, 2026
4090d3c
v2: SPMC's CAF access site from DOH's 2025 list
ProjectFuritsu Nov 27, 2026
d748321
v2: remove SPMC's MAIFIP coverage item (news only)
ProjectFuritsu Nov 27, 2026
e19bc69
v2: SPMC's CAF service uses DOH's 2025 list (v2 only)
ProjectFuritsu Nov 27, 2026
7f1bb05
v2: MAIFIP requirements and steps from DOH's Malasakit Program Office
ProjectFuritsu Nov 27, 2026
830d074
v2: MAIFIP uses only DOH's two Malasakit Program Office pages
ProjectFuritsu Nov 27, 2026
ed5f458
v2: MAIFIP cancerTypes is not given
ProjectFuritsu Nov 27, 2026
42bbb70
v2: display rule for empty requirements and procedure
ProjectFuritsu Nov 27, 2026
c175bf6
v2: MAIP is written MAIFIP
ProjectFuritsu Nov 27, 2026
f63acae
v2: DOH points only to the Malasakit Center
ProjectFuritsu Nov 27, 2026
e48c447
v2: Malasakit Center (SPMC) contacts for PCSO and DOH
ProjectFuritsu Nov 27, 2026
3183a86
v2: help-desk display rule for empty money-help eligibility
ProjectFuritsu Nov 27, 2026
6e3c590
SPMC: add Chemotherapy service (no price)
ProjectFuritsu Nov 27, 2026
734a328
HealthInstitution: add Brokenshire Medical Center (id 3)
ProjectFuritsu Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main]
paths:
- "data/**"
- "data-v2/**"
- "images/**"
- "docs/**"
- "scripts/**"
Expand All @@ -15,6 +16,7 @@ on:
pull_request:
paths:
- "data/**"
- "data-v2/**"
- "images/**"
- "docs/**"
- "scripts/**"
Expand Down
27 changes: 25 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<Folder>/<File>.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.
Expand Down
1 change: 1 addition & 0 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion MILESTONES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading