From d4af78d68122796412206e2549788325389e77ed Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 11:39:23 +0800 Subject: [PATCH 01/49] Add v2 data (local review): new schemas, converter and checks Not for publishing yet: v2 is not served by the build or Worker. - data-v2/: the 5 datasets in the v2 shape (branches, sources lists, cancerTypes, bookingType, lastVerified, one fixed list of contact types). Unknown values are null or empty lists ("Not given"). Nothing guessed. - scripts/convert-v2.mjs: rebuilds data-v2/ from data/, then applies Fritz's review decisions of 2026-11-13 (Z Benefits PhilHealth ID step, PhilHealth hotline, benefit amounts split, SPMC's wrong contacts removed, placeholder photos cleared, short feed summaries). - scripts/validate.mjs: also checks data-v2/, plus a rule that every service's branchIDs exist in the same institution. Co-Authored-By: Claude Opus 5.5 --- data-v2/Feeds/FeedsData.json | 31 + data-v2/Feeds/FeedsData.schema.json | 87 ++ .../FinancialInstiData.json | 754 ++++++++++ .../FinancialInstiData.schema.json | 331 +++++ .../HealthInstitution/HealthInstiData.json | 87 ++ .../HealthInstiData.schema.json | 319 +++++ .../MedicalSpecialistData.json | 1263 +++++++++++++++++ .../MedicalSpecialistData.schema.json | 209 +++ data-v2/SupportGroups/SupportGroupsData.json | 66 + .../SupportGroupsData.schema.json | 188 +++ scripts/convert-v2.mjs | 264 ++++ scripts/validate.mjs | 48 +- 12 files changed, 3634 insertions(+), 13 deletions(-) create mode 100644 data-v2/Feeds/FeedsData.json create mode 100644 data-v2/Feeds/FeedsData.schema.json create mode 100644 data-v2/FinancialInstitution/FinancialInstiData.json create mode 100644 data-v2/FinancialInstitution/FinancialInstiData.schema.json create mode 100644 data-v2/HealthInstitution/HealthInstiData.json create mode 100644 data-v2/HealthInstitution/HealthInstiData.schema.json create mode 100644 data-v2/MedicalSpecialist/MedicalSpecialistData.json create mode 100644 data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json create mode 100644 data-v2/SupportGroups/SupportGroupsData.json create mode 100644 data-v2/SupportGroups/SupportGroupsData.schema.json create mode 100644 scripts/convert-v2.mjs diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json new file mode 100644 index 0000000..5ea50da --- /dev/null +++ b/data-v2/Feeds/FeedsData.json @@ -0,0 +1,31 @@ +{ + "$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", + "source": "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", + "source": "https://www.philcancer.org.ph/about-us/announcements/latest-news/123-dost-asti-convenes" + } + ] +} diff --git a/data-v2/Feeds/FeedsData.schema.json b/data-v2/Feeds/FeedsData.schema.json new file mode 100644 index 0000000..2f7a7b5 --- /dev/null +++ b/data-v2/Feeds/FeedsData.schema.json @@ -0,0 +1,87 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "FeedsData.schema.json", + "title": "FeedsData", + "description": "Cancer Open Data v2.", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "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'." + }, + "source": { + "type": "string", + "description": "Source URL.", + "format": "uri" + } + }, + "required": [ + "id", + "title", + "bgImageURL", + "category", + "tags", + "content", + "authors", + "publishDate", + "source" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Feed" + ], + "additionalProperties": false, + "$defs": {} +} diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json new file mode 100644 index 0000000..6d0004c --- /dev/null +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -0,0 +1,754 @@ +{ + "$schema": "./FinancialInstiData.schema.json", + "Financial_Insti": [ + { + "id": 1, + "name": "PhilHealth", + "bgImageURL": "https://newsfortph.com/upload/media/posts/2022-07/10/philhealth-davao-region-intensifies-konsulta-campaign_1657399553-b.jpg", + "source": "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", + "lastVerified": null, + "contacts": [ + { + "contact_id": 1, + "type": "Hotline", + "contact_details": "(02) 866-225-88" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Valgosons Building, Bolton Extension, Poblacion, Davao City", + "latitude": 7.0655, + "longitude": 125.6128, + "schedule": [ + { + "day": "Monday-Friday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 295-2133" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "publicaffairs.pro11@philhealth.gov.ph" + } + ] + } + ], + "programs": [ + { + "programID": 161213, + "program_name": "YAKAP (Konsulta) Program", + "eligibility": "All PhilHealth members", + "program_description": "A comprehensive outpatient benefits package that includes consultation, lab tests, and medicines.", + "cancerTypes": null, + "applicationURL": null, + "sources": [], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Primary Care Checkup", + "amount": null + }, + { + "benefit_id": 2, + "benefit_name": "Laboratory tests (CBC, Urinalysis, etc.)", + "amount": null + }, + { + "benefit_id": 3, + "benefit_name": "Free Maintenance Medicines", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Member must be registered to a chosen Konsulta/Yakap clinic." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Fill out the PhilHealth Member Registration Form (PMRF)." + }, + { + "step": 2, + "instruction": "Submit the form and valid ID to the PhilHealth office or accredited clinic." + }, + { + "step": 3, + "instruction": "Wait for confirmation of registration." + } + ] + }, + { + "programID": 101002, + "program_name": "Z Benefits: Breast Cancer (cStage 0 to IV)", + "eligibility": "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval, and who meet the selection criteria: 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): patient has not initiated any chemotherapy treatment from any HF; Targeted therapy; Hormonotherapy; Surveillance. 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).", + "program_description": "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.", + "cancerTypes": [ + "Breast Cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/circulars/2024/PC2024-0007.pdf" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Total package", + "amount": "Up to P1.4 million" + }, + { + "benefit_id": 2, + "benefit_name": "Diagnostic tests and prognostication", + "amount": "Php 1,000 to Php 10,000.00" + }, + { + "benefit_id": 3, + "benefit_name": "Surgical procedures (partial mastectomy to modified radical mastectomy)", + "amount": "Php 30,000 – Php 140,000.00" + }, + { + "benefit_id": 4, + "benefit_name": "Hormonotherapy", + "amount": "Php 2,700 or Php 18,000" + }, + { + "benefit_id": 5, + "benefit_name": "Cytotoxic chemotherapy", + "amount": "Php 43,000 to Php 185,010" + }, + { + "benefit_id": 6, + "benefit_name": "Targeted therapy", + "amount": "Php 333,336 for 18 maximum cycles" + }, + { + "benefit_id": 7, + "benefit_name": "Surveillance", + "amount": "Php 5,000 (basic) and Php 9,000 (specific)" + }, + { + "benefit_id": 8, + "benefit_name": "No co-payment for patients admitted in basic or ward-type accommodation", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "PhilHealth ID" + }, + { + "requirement_id": 2, + "requirement_description": "Pre-authorization Checklist and Request Form (Annex A.2), submitted by the contracted health facility" + }, + { + "requirement_id": 3, + "requirement_description": "Member Empowerment Form or ME Form (Annex B), accomplished together with the attending healthcare provider and signed jointly by the patient (or their guardian or representative) and the attending healthcare provider" + }, + { + "requirement_id": 4, + "requirement_description": "MDT plan (treatment plan from the contracted health facility's multidisciplinary team)" + }, + { + "requirement_id": 5, + "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"Yes\" response. If \"No\", register or apply for a PhilHealth Identification Number (PIN) before pre-authorization" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." + }, + { + "step": 2, + "instruction": "Have a consultation and clinical breast examination at a Z Benefits contracted health facility." + }, + { + "step": 3, + "instruction": "If you meet the criteria for diagnostic tests, the facility does not collect payment for them. Biopsy with histopathology is covered under All Case Rates." + }, + { + "step": 4, + "instruction": "The facility's multidisciplinary team (MDT) assesses you and decides your treatment plan." + }, + { + "step": 5, + "instruction": "Fill out the ME Form with your attending doctor. The facility explains any cost sharing; there is no co-payment in basic or ward accommodation." + }, + { + "step": 6, + "instruction": "The facility submits the pre-authorization request (Annex A.2) with the ME Form and MDT plan to PhilHealth. Approval is valid for 60 calendar days if treatment has not started." + }, + { + "step": 7, + "instruction": "Get treatment as prescribed by the MDT. The facility files the claims with PhilHealth." + } + ] + }, + { + "programID": 101003, + "program_name": "Z Benefits: Acute Lymphocytic / Lymphoblastic Leukemia (standard risk)", + "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: 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.", + "program_description": "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.", + "cancerTypes": [ + "Acute Lymphocytic / Lymphoblastic Leukemia" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/circulars/2017/circ2017-0016.pdf" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Total package", + "amount": "Php 500,000 for the complete course of treatment for three (3) years" + }, + { + "benefit_id": 2, + "benefit_name": "Tranche 1", + "amount": "Php 300,000 (after the 1st induction phase)" + }, + { + "benefit_id": 3, + "benefit_name": "Tranche 2", + "amount": "Php 125,000 (after the 3rd maintenance cycle)" + }, + { + "benefit_id": 4, + "benefit_name": "Tranche 3", + "amount": "Php 75,000 (after the 7th maintenance cycle)" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "PhilHealth ID" + }, + { + "requirement_id": 2, + "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" + }, + { + "requirement_id": 3, + "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient. For minors, the parent or guardian signs or puts a thumb print on behalf of the patient" + }, + { + "requirement_id": 4, + "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." + }, + { + "step": 2, + "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." + }, + { + "step": 3, + "instruction": "If you are not yet registered with PhilHealth, complete member registration first." + }, + { + "step": 4, + "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." + }, + { + "step": 5, + "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days. For leukemia, the request must be submitted before the end of the induction phase." + }, + { + "step": 6, + "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + } + ] + }, + { + "programID": 101004, + "program_name": "Z Benefits: Prostate Cancer (low to intermediate risk)", + "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: 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.", + "program_description": "PhilHealth's Z Benefit package for localized low- to intermediate-risk prostate cancer, at Z Benefits contracted health facilities.", + "cancerTypes": [ + "Prostate Cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/benefits/" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Total package", + "amount": "P100,000" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "PhilHealth ID" + }, + { + "requirement_id": 2, + "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" + }, + { + "requirement_id": 3, + "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient" + }, + { + "requirement_id": 4, + "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." + }, + { + "step": 2, + "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." + }, + { + "step": 3, + "instruction": "If you are not yet registered with PhilHealth, complete member registration first." + }, + { + "step": 4, + "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." + }, + { + "step": 5, + "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days." + }, + { + "step": 6, + "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + } + ] + }, + { + "programID": 101005, + "program_name": "Z Benefits: Cervical Cancer", + "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: No previous chemotherapy; No previous radiotherapy; No uncontrolled co-morbid conditions.", + "program_description": "PhilHealth's Z Benefit package for cervical cancer treatment (chemoradiation with brachytherapy, or primary surgery for early stages), at Z Benefits contracted health facilities.", + "cancerTypes": [ + "Cervical Cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/benefits/" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", + "amount": "P120,000" + }, + { + "benefit_id": 2, + "benefit_name": "Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", + "amount": "P175,000" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "PhilHealth ID" + }, + { + "requirement_id": 2, + "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" + }, + { + "requirement_id": 3, + "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient" + }, + { + "requirement_id": 4, + "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" + }, + { + "requirement_id": 5, + "requirement_description": "Treatment plan from gynecologic oncologist" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." + }, + { + "step": 2, + "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." + }, + { + "step": 3, + "instruction": "If you are not yet registered with PhilHealth, complete member registration first." + }, + { + "step": 4, + "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." + }, + { + "step": 5, + "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days." + }, + { + "step": 6, + "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + } + ] + }, + { + "programID": 101006, + "program_name": "Z Benefits: Colorectal Cancer", + "eligibility": "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval, with colon or rectal cancer stage I to III, who meet the selection criteria: 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.", + "program_description": "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": [ + "Colorectal Cancer" + ], + "applicationURL": null, + "sources": [ + "https://www.philhealth.gov.ph/circulars/2023/PC2023-0005.pdf" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Colon Cancer, Stage I to II (Low Risk)", + "amount": "Php 150,000" + }, + { + "benefit_id": 2, + "benefit_name": "Colon Cancer, Stage II to III (High Risk)", + "amount": "Php 300,000" + }, + { + "benefit_id": 3, + "benefit_name": "Rectal Cancer, Stage I to II (Low Risk)", + "amount": "Php 150,000" + }, + { + "benefit_id": 4, + "benefit_name": "Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", + "amount": "Php 400,000" + }, + { + "benefit_id": 5, + "benefit_name": "Rectal Cancer, Stage II to III", + "amount": "Php 400,000" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "PhilHealth ID" + }, + { + "requirement_id": 2, + "requirement_description": "For colon cancer: Annex A1: Pre-authorization Checklist and Request for Colon Cancer, submitted by the contracted health facility" + }, + { + "requirement_id": 3, + "requirement_description": "For rectal cancer: Annex A2: Pre-authorization Checklist and Request for Rectal Cancer, submitted by the contracted health facility" + }, + { + "requirement_id": 4, + "requirement_description": "Member Empowerment Form or ME Form (Annex B), accomplished together with the attending healthcare provider and signed jointly by the patient (or their guardian or representative) and the attending healthcare provider" + }, + { + "requirement_id": 5, + "requirement_description": "Photocopy of the MDT plan (treatment plan from the multidisciplinary team)" + }, + { + "requirement_id": 6, + "requirement_description": "Diagnostic results. Colon cancer: colonoscopy, biopsy with histopathology, chest CT or chest x-ray, and abdominal CT scan, preferably with contrast. Rectal cancer: chest CT scan and abdominal CT scan, preferably with contrast. Results of colonoscopy, chest x-ray, CT scan and abdominal ultrasound are valid up to 60 calendar days before the pre-authorization request is submitted" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." + }, + { + "step": 2, + "instruction": "Go to a Z Benefits contracted health facility for colon and rectal cancers." + }, + { + "step": 3, + "instruction": "Complete the required diagnostic tests. Results must not be older than 60 calendar days when the pre-authorization request is submitted." + }, + { + "step": 4, + "instruction": "The facility's multidisciplinary team (at least a colorectal surgeon and a medical oncologist; plus a radio-oncologist for rectal cancer) agrees on your treatment plan." + }, + { + "step": 5, + "instruction": "Fill out the ME Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." + }, + { + "step": 6, + "instruction": "The facility submits the pre-authorization request (Annex A) with the ME Form and MDT plan to PhilHealth. Approval is valid for 60 calendar days." + }, + { + "step": 7, + "instruction": "Get treatment as planned by the MDT. The facility files the claims with PhilHealth." + } + ] + } + ] + }, + { + "id": 2, + "name": "Social Security System (SSS)", + "bgImageURL": "https://www.sss.gov.ph/sss/images/SSS_Building.jpg", + "source": "https://www.sss.gov.ph/", + "description": "The SSS provides social security protection to workers in the private, professional, and informal sectors. It offers replacement income for contingencies like sickness, maternity, disability, retirement, and death.", + "type": "Public Institution", + "lastVerified": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "SSS Building, J.P. Laurel Avenue, Bajada, Davao City", + "latitude": 7.0935, + "longitude": 125.6154, + "schedule": [ + { + "day": "Monday-Friday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 221-2121" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "davao@sss.gov.ph" + } + ] + } + ], + "programs": [ + { + "programID": 202001, + "program_name": "Salary Loan", + "eligibility": "Members with at least 36 monthly contributions", + "program_description": "A cash loan designed to meet the member's short-term credit needs.", + "cancerTypes": null, + "applicationURL": null, + "sources": [], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Cash assistance equivalent to one or two months salary", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Digitized SSS ID or UMID Card." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Log in to your My.SSS account." + }, + { + "step": 2, + "instruction": "Go to 'Loans' and select 'Apply for Salary Loan'." + }, + { + "step": 3, + "instruction": "Submit and wait for employer certification." + } + ] + } + ] + }, + { + "id": 3, + "name": "Government Service Insurance System (GSIS)", + "bgImageURL": "https://www.gsis.gov.ph/wp-content/uploads/2021/01/GSIS-Davao.jpg", + "source": "https://www.gsis.gov.ph/", + "description": "GSIS manages the social insurance program for government employees in the Philippines. It provides life insurance, retirement, and disability benefits to those in public service.", + "type": "Public Institution", + "lastVerified": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "McArthur Highway, Matina, Davao City", + "latitude": 7.0583, + "longitude": 125.5947, + "schedule": [ + { + "day": "Monday-Friday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 299-0141" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "gsisdavao@gsis.gov.ph" + } + ] + } + ], + "programs": [ + { + "programID": 303001, + "program_name": "Multi-Purpose Loan (MPL)", + "eligibility": "Active government employees", + "program_description": "Consolidates all existing loans into one with lower interest and longer terms.", + "cancerTypes": null, + "applicationURL": null, + "sources": [], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Lower interest rate (6% per annum)", + "amount": null + }, + { + "benefit_id": 2, + "benefit_name": "Waived surcharges on previous loans", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Duly accomplished application form and GSIS eCard." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Apply through the GSIS Touch mobile app or GW@PS kiosk." + }, + { + "step": 2, + "instruction": "Wait for Agency Authorized Officer (AAO) approval." + }, + { + "step": 3, + "instruction": "Loan proceeds are credited to the eCard/UMID account." + } + ] + } + ] + }, + { + "id": 4, + "name": "Pag-IBIG Fund (HDMF)", + "bgImageURL": "https://www.pagibigfund.gov.ph/images/Davao_Branch.jpg", + "source": "https://www.pagibigfund.gov.ph/", + "description": "The Home Development Mutual Fund, known as Pag-IBIG, is a national savings program and affordable shelter financing for Filipino workers.", + "type": "Public Institution", + "lastVerified": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Pryce Tower, J.P. Laurel Ave, Bajada, Davao City", + "latitude": 7.0855, + "longitude": 125.6139, + "schedule": [ + { + "day": "Monday-Friday", + "timeIn": "8:00 am", + "timeOut": "5:00 pm" + } + ], + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 227-0463" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "contactus@pagibigfund.gov.ph" + } + ] + } + ], + "programs": [ + { + "programID": 404001, + "program_name": "Housing Loan", + "eligibility": "Members with 24 months of contributions", + "program_description": "Financing for house purchase, construction, or home improvement.", + "cancerTypes": null, + "applicationURL": null, + "sources": [], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Low interest rates", + "amount": null + }, + { + "benefit_id": 2, + "benefit_name": "Payment terms up to 30 years", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Income documents (ITR or Payslip) and TCT/CCT of the property." + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Attend the Housing Loan Counseling (online or onsite)." + }, + { + "step": 2, + "instruction": "Submit the Housing Loan Application (HLA) with requirements." + }, + { + "step": 3, + "instruction": "Receive the Notice of Approval (NOA) and sign loan documents." + } + ] + } + ] + } + ] +} diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json new file mode 100644 index 0000000..db197d1 --- /dev/null +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -0,0 +1,331 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "FinancialInstiData.schema.json", + "title": "FinancialInstiData", + "description": "Cancer Open Data v2.", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "Financial_Insti": { + "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" + }, + "source": { + "type": "string", + "description": "Main page of the institution.", + "format": "uri" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "lastVerified": { + "$ref": "#/$defs/lastVerified" + }, + "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" + }, + "program_name": { + "type": "string" + }, + "eligibility": { + "type": "string" + }, + "program_description": { + "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": { + "benefit_id": { + "type": "integer" + }, + "benefit_name": { + "type": "string" + }, + "amount": { + "type": [ + "null", + "string" + ], + "description": "Amount as written by the source, e.g. 'Up to ₱100,000'. null if not given." + } + }, + "required": [ + "benefit_id", + "benefit_name", + "amount" + ], + "additionalProperties": false + } + }, + "requirements": { + "$ref": "#/$defs/requirements" + }, + "procedure": { + "$ref": "#/$defs/procedure" + } + }, + "required": [ + "programID", + "program_name", + "eligibility", + "program_description", + "cancerTypes", + "applicationURL", + "sources", + "benefits", + "requirements", + "procedure" + ], + "additionalProperties": false + } + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "source", + "description", + "type", + "lastVerified", + "contacts", + "branches", + "programs" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Financial_Insti" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contact_id": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contact_details": { + "type": "string" + } + }, + "required": [ + "contact_id", + "type", + "contact_details" + ], + "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" + }, + "latitude": { + "type": "number", + "description": "Latitude (from Google Maps)." + }, + "longitude": { + "type": "number", + "description": "Longitude (from Google Maps)." + }, + "schedule": { + "$ref": "#/$defs/schedule" + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "branchID", + "branchName", + "location", + "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\")." + }, + "lastVerified": { + "type": [ + "null", + "string" + ], + "format": "date", + "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." + }, + "requirements": { + "type": "array", + "items": { + "type": "object", + "properties": { + "requirement_id": { + "type": "integer" + }, + "requirement_description": { + "type": "string" + } + }, + "required": [ + "requirement_id", + "requirement_description" + ], + "additionalProperties": false + } + }, + "procedure": { + "type": "array", + "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..4f71ea7 --- /dev/null +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -0,0 +1,87 @@ +{ + "$schema": "./HealthInstiData.schema.json", + "Health_Insti": [ + { + "id": 1, + "name": "SPMC Cancer Institute", + "bgImageURL": "https://media.assettype.com/sunstar%2F2025-09-20%2F08lzbtjf%2FUntitled-1.jpg", + "source": "https://www.facebook.com/SouthernPhilippinesMedicalCenter", + "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", + "lastVerified": null, + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "J.P. Laurel Ave, Bajada, Davao City", + "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 + ], + "service_name": "Adult Cancer Clinic and Infusion Unit", + "service_description": "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": null, + "sources": [ + "https://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "service_name": "Radiation Therapy (Linear Accelerator)", + "service_description": "The Cancer Institute's linear accelerator (Linac) for radiation therapy started operating with the adult cancer unit in 2018.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "service_name": "Cancer Assistance Fund (CAF)", + "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.", + "cancerTypes": null, + "fee": null, + "sources": [ + "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + } + ] + } + ] +} diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json new file mode 100644 index 0000000..ade6d9f --- /dev/null +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -0,0 +1,319 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "HealthInstiData.schema.json", + "title": "HealthInstiData", + "description": "Cancer Open Data v2.", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "Health_Insti": { + "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" + }, + "source": { + "type": "string", + "description": "Main page of the institution.", + "format": "uri" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + }, + "lastVerified": { + "$ref": "#/$defs/lastVerified" + }, + "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." + }, + "service_name": { + "type": "string" + }, + "service_description": { + "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" + }, + "service_schedule": { + "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", + "service_name", + "service_description", + "cancerTypes", + "fee", + "sources", + "service_schedule", + "requirements", + "procedure" + ], + "additionalProperties": false + } + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "source", + "description", + "type", + "lastVerified", + "contacts", + "branches", + "services" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Health_Insti" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contact_id": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contact_details": { + "type": "string" + } + }, + "required": [ + "contact_id", + "type", + "contact_details" + ], + "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" + }, + "latitude": { + "type": "number", + "description": "Latitude (from Google Maps)." + }, + "longitude": { + "type": "number", + "description": "Longitude (from Google Maps)." + }, + "schedule": { + "$ref": "#/$defs/schedule" + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "branchID", + "branchName", + "location", + "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\")." + }, + "lastVerified": { + "type": [ + "null", + "string" + ], + "format": "date", + "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." + }, + "requirements": { + "type": "array", + "items": { + "type": "object", + "properties": { + "requirement_id": { + "type": "integer" + }, + "requirement_description": { + "type": "string" + } + }, + "required": [ + "requirement_id", + "requirement_description" + ], + "additionalProperties": false + } + }, + "procedure": { + "type": "array", + "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..b80fa44 --- /dev/null +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -0,0 +1,1263 @@ +{ + "$schema": "./MedicalSpecialistData.schema.json", + "Medical_Specialist": [ + { + "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" + ], + "lastVerified": null, + "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": "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" + ], + "lastVerified": null, + "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 and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 am", + "timeOut": "05:00 am" + }, + { + "day": "Friday to Saturday", + "timeIn": "01:00 am", + "timeOut": "03: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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday to Tuesday, 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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday, Wednesday and Friday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + }, + { + "day": "Tuesday and Thursday", + "timeIn": "01:00 pm", + "timeOut": "04: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": "Monday to Friday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday and Thursday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + } + ] + } + ] + }, + { + "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" + ], + "lastVerified": null, + "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, Wednesday and 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 and 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/jpabrina?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26specializations%3DOncology%26page%3D1" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday, Wednesday and 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": "Walk-in and appointment", + "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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday to Friday", + "timeIn": "10:00 am", + "timeOut": "04:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Matunog Cancer Care Clinic", + "location": "Guzman Street", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday to 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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday and Tuesday, Thursday and Saturday", + "timeIn": "09:00 am", + "timeOut": "05:00 pm" + }, + { + "day": "Wednesday", + "timeIn": "01:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Friday", + "timeIn": "11:00 am", + "timeOut": "05:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "M300 Health Science Wellness Center", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Tuesday, Thursday and Saturday", + "timeIn": "09:00 am", + "timeOut": "12: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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Orthopedic Center", + "location": "118 E, Quirino Avenue, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday, Wednesday and 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/noel-rex-penaranda?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D1" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday to Sunday", + "timeIn": "10:00 am", + "timeOut": "10:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "Brokenshire Integrated Health Ministries, Inc", + "location": "Madapo Hill, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday to Friday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + } + ] + } + ] + }, + { + "id": 11, + "firstname": "Aaron Paul", + "lastname": "Punzalan", + "specialty": "Orthopedic Oncology", + "description": "", + "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" + ], + "lastVerified": null, + "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": "08:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Wednesday", + "timeIn": "03:00 pm", + "timeOut": "05:00 pm" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "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": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Wednesday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Saturday", + "timeIn": "09:00 am", + "timeOut": "11:30 pm" + } + ] + }, + { + "clinicID": 3, + "clinicName": "Davao Outpatient Surgery and Advanced Wound Care Center", + "location": "Km. 4 J.P. Laurel Avenue, Bajada", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "contacts": [], + "schedule": [ + { + "day": "Monday", + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" + }, + { + "day": "Friday", + "timeIn": "10:00 am", + "timeOut": "12: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": "https://seriousmd.com/doc/mlatayan?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D2", + "sources": [], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Appointment only", + "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": "Latayan Urology Clinic DMSF", + "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" + ], + "lastVerified": null, + "clinics": [ + { + "clinicID": 1, + "clinicName": "Online Clinic", + "location": "NowServing App", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [], + "schedule": [ + { + "day": "Monday to Saturday", + "timeIn": "06:00 pm", + "timeOut": "08:00 pm" + } + ] + }, + { + "clinicID": 2, + "clinicName": "ENT Head & Neck Reconstructive Microsurgery Clinic", + "location": "Bajada, Davao City", + "latitude": null, + "longitude": null, + "bookingType": "Walk-in and appointment", + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "0918 426 3266" + } + ], + "schedule": [ + { + "day": "Tuesday, Thursday and Saturday", + "timeIn": "09:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Friday", + "timeIn": "09:30 am", + "timeOut": "12:00 pm" + }, + { + "day": "Friday", + "timeIn": "04:00 pm", + "timeOut": "06:00 pm" + } + ] + }, + { + "clinicID": 3, + "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": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "(082) 227 7343" + } + ], + "schedule": [ + { + "day": "Friday", + "timeIn": "01:00 pm", + "timeOut": "04: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/" + ], + "lastVerified": "2026-11-10", + "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": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "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": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "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": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 805)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 903)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 215)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (RM. 407)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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/" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Davao Doctors Hospital (Room 601)", + "location": "118 E. Quirino Avenue Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "0943-707-8266" + }, + { + "contact_id": 2, + "type": "Mobile", + "contact_details": "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" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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" + ], + "lastVerified": "2026-11-10", + "clinics": [ + { + "clinicID": 1, + "clinicName": "Brokenshire Medical Center", + "location": "Brokenshire Heights, Madapo, Brgy. 8-A, Davao City, Philippines", + "latitude": null, + "longitude": null, + "bookingType": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "0963-124-3548" + }, + { + "contact_id": 2, + "type": "Mobile", + "contact_details": "0917-319-5140" + } + ], + "schedule": [] + } + ] + } + ] +} diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json new file mode 100644 index 0000000..703fde1 --- /dev/null +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -0,0 +1,209 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "MedicalSpecialistData.schema.json", + "title": "MedicalSpecialistData", + "description": "Cancer Open Data v2.", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "Medical_Specialist": { + "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" + }, + "lastVerified": { + "$ref": "#/$defs/lastVerified" + }, + "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", + "lastVerified", + "clinics" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Medical_Specialist" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contact_id": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contact_details": { + "type": "string" + } + }, + "required": [ + "contact_id", + "type", + "contact_details" + ], + "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\")." + }, + "lastVerified": { + "type": [ + "null", + "string" + ], + "format": "date", + "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." + } + } +} diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json new file mode 100644 index 0000000..f1abdc2 --- /dev/null +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -0,0 +1,66 @@ +{ + "$schema": "./SupportGroupsData.schema.json", + "Support_Group": [ + { + "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/groups/150208365000436", + "bgImageURL": "/images/SupportGroups/amuma.jpg", + "location": "Davao City", + "latitude": null, + "longitude": null, + "founders": [ + "Dr. Jose Beltran" + ], + "meetingSchedule": null, + "sources": [], + "lastVerified": null, + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "09384376090" + }, + { + "contact_id": 2, + "type": "Landline", + "contact_details": "(082) 295-2133" + } + ] + }, + { + "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": null, + "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" + ], + "lastVerified": "2026-11-10", + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "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..a8095a7 --- /dev/null +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -0,0 +1,188 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "SupportGroupsData.schema.json", + "title": "SupportGroupsData", + "description": "Cancer Open Data v2.", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "Path to this file's JSON Schema." + }, + "Support_Group": { + "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" + }, + "lastVerified": { + "$ref": "#/$defs/lastVerified" + }, + "contacts": { + "$ref": "#/$defs/contacts" + } + }, + "required": [ + "id", + "name", + "description", + "type", + "cancerTypes", + "socmedURL", + "bgImageURL", + "location", + "latitude", + "longitude", + "founders", + "meetingSchedule", + "sources", + "lastVerified", + "contacts" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Support_Group" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contact_id": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contact_details": { + "type": "string" + } + }, + "required": [ + "contact_id", + "type", + "contact_details" + ], + "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\")." + }, + "lastVerified": { + "type": [ + "null", + "string" + ], + "format": "date", + "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." + } + } +} diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs new file mode 100644 index 0000000..161613f --- /dev/null +++ b/scripts/convert-v2.mjs @@ -0,0 +1,264 @@ +// 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"). +// +// Usage (from the repo root): +// node scripts/convert-v2.mjs [--provenance /provenance] +// --provenance is optional. When given, it adds two things that were +// reviewed at import time: lastVerified = the "retrieved" date of records +// that were added from a source, and support group sources. +// --no-review skips Fritz's review decisions (to see the plain conversion). +import { readFileSync, writeFileSync, existsSync } from "node:fs"; +import { join } from "node:path"; + +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 lastVerified = (p, id) => (p[id]?.action === "added" && p[id]?.retrieved) || null; +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: from Fritz's phone call with a PhilHealth officer (2026-11-13), recorded in provenance. + zBenefitsRequirement: "PhilHealth ID", + zBenefitsStep1: "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance.", + // 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 }], +}; + +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 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.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")) { + p.requirements = renumber([{ requirement_id: 0, requirement_description: REVIEW.zBenefitsRequirement }, ...p.requirements], "requirement_id"); + p.procedure = renumber([{ step: 0, instruction: REVIEW.zBenefitsStep1 }, ...p.procedure], "step"); + log(`program ${p.programID}: + requirement "${REVIEW.zBenefitsRequirement}", + step 1`); + } + } + if (split || total) log(`${r.name}: benefits split ${split}, "Total package" ${total}`); + } + } + 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 = []; } + } + } + } + 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 8: branch names stay null until the next source check (no change). + return records; +} + +function write(folder, file, key, records) { + if (!args.includes("--no-review")) applyReview(folder, records); + const out = { $schema: `./${file}.schema.json`, [key]: records }; + writeFileSync(join("data-v2", folder, `${file}.json`), JSON.stringify(out, null, 2) + "\n"); + console.log(`wrote data-v2/${folder}/${file}.json (${records.length} records)`); +} + +// ---- 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, + lastVerified: lastVerified(p, r.id), + // 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: 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, + })), + }))); +} + +// ---- 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), + lastVerified: lastVerified(p, r.id), + 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))], + lastVerified: lastVerified(p, r.id), + contacts: r.contacts, + }))); +} diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 9cee27d..54e4970 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,29 @@ 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?.Health_Insti ?? []) { + 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.service_name}" uses branchID ${id}, which this institution doesn't have`); + failed++; + } + } + } + } +} + // ---- Images ---- const kb = n => `${Math.round(n / 1024)} KB`; const images = new Set(); @@ -103,11 +126,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)) { From ae84aa323c765910b10735b3bd96f9afa3b5245a Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 11:49:57 +0800 Subject: [PATCH 02/49] v2: simplify Z Benefits to one requirement and one step Fritz's decision (2026-11-13), from his phone call with a PhilHealth officer: every Z Benefits program now lists only "PhilHealth ID" and one step, to bring it to the hospital's Z Benefits coordinator for the list of requirements and further steps. The official forms and steps stay in each program's sources (PhilHealth pages and circulars) and in the v1 data. Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 194 +----------------- scripts/convert-v2.mjs | 16 +- 2 files changed, 15 insertions(+), 195 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 6d0004c..17aadb7 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -149,52 +149,12 @@ { "requirement_id": 1, "requirement_description": "PhilHealth ID" - }, - { - "requirement_id": 2, - "requirement_description": "Pre-authorization Checklist and Request Form (Annex A.2), submitted by the contracted health facility" - }, - { - "requirement_id": 3, - "requirement_description": "Member Empowerment Form or ME Form (Annex B), accomplished together with the attending healthcare provider and signed jointly by the patient (or their guardian or representative) and the attending healthcare provider" - }, - { - "requirement_id": 4, - "requirement_description": "MDT plan (treatment plan from the contracted health facility's multidisciplinary team)" - }, - { - "requirement_id": 5, - "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"Yes\" response. If \"No\", register or apply for a PhilHealth Identification Number (PIN) before pre-authorization" } ], "procedure": [ { "step": 1, - "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." - }, - { - "step": 2, - "instruction": "Have a consultation and clinical breast examination at a Z Benefits contracted health facility." - }, - { - "step": 3, - "instruction": "If you meet the criteria for diagnostic tests, the facility does not collect payment for them. Biopsy with histopathology is covered under All Case Rates." - }, - { - "step": 4, - "instruction": "The facility's multidisciplinary team (MDT) assesses you and decides your treatment plan." - }, - { - "step": 5, - "instruction": "Fill out the ME Form with your attending doctor. The facility explains any cost sharing; there is no co-payment in basic or ward accommodation." - }, - { - "step": 6, - "instruction": "The facility submits the pre-authorization request (Annex A.2) with the ME Form and MDT plan to PhilHealth. Approval is valid for 60 calendar days if treatment has not started." - }, - { - "step": 7, - "instruction": "Get treatment as prescribed by the MDT. The facility files the claims with PhilHealth." + "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." } ] }, @@ -236,44 +196,12 @@ { "requirement_id": 1, "requirement_description": "PhilHealth ID" - }, - { - "requirement_id": 2, - "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" - }, - { - "requirement_id": 3, - "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient. For minors, the parent or guardian signs or puts a thumb print on behalf of the patient" - }, - { - "requirement_id": 4, - "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" } ], "procedure": [ { "step": 1, - "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." - }, - { - "step": 2, - "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." - }, - { - "step": 3, - "instruction": "If you are not yet registered with PhilHealth, complete member registration first." - }, - { - "step": 4, - "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." - }, - { - "step": 5, - "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days. For leukemia, the request must be submitted before the end of the induction phase." - }, - { - "step": 6, - "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + "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." } ] }, @@ -300,44 +228,12 @@ { "requirement_id": 1, "requirement_description": "PhilHealth ID" - }, - { - "requirement_id": 2, - "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" - }, - { - "requirement_id": 3, - "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient" - }, - { - "requirement_id": 4, - "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" } ], "procedure": [ { "step": 1, - "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." - }, - { - "step": 2, - "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." - }, - { - "step": 3, - "instruction": "If you are not yet registered with PhilHealth, complete member registration first." - }, - { - "step": 4, - "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." - }, - { - "step": 5, - "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days." - }, - { - "step": 6, - "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + "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." } ] }, @@ -369,48 +265,12 @@ { "requirement_id": 1, "requirement_description": "PhilHealth ID" - }, - { - "requirement_id": 2, - "requirement_description": "Pre-authorization Checklist and Request (Annex A), filled out by the contracted health facility and signed by the patient (or parent or guardian) and the healthcare providers" - }, - { - "requirement_id": 3, - "requirement_description": "Member Empowerment (ME) Form (Annex B), properly accomplished and signed. It is made in duplicate; one original copy is given to the patient" - }, - { - "requirement_id": 4, - "requirement_description": "PhilHealth Benefit Eligibility Form (PBEF) with a \"YES\". If \"NO\", present the Member Data Record (MDR), Proof of Contributions, or a duly accomplished PhilHealth Claim Form 1 (CF1)" - }, - { - "requirement_id": 5, - "requirement_description": "Treatment plan from gynecologic oncologist" } ], "procedure": [ { "step": 1, - "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." - }, - { - "step": 2, - "instruction": "Go to a Z Benefits contracted health facility and ask for its Z Benefits Coordinator, who guides you and checks your eligibility before pre-authorization." - }, - { - "step": 3, - "instruction": "If you are not yet registered with PhilHealth, complete member registration first." - }, - { - "step": 4, - "instruction": "Fill out the Member Empowerment (ME) Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." - }, - { - "step": 5, - "instruction": "The facility submits the Pre-authorization Checklist and Request with the ME Form to PhilHealth. PhilHealth releases the decision within seven (7) working days." - }, - { - "step": 6, - "instruction": "Once approved, get treatment from the facility's multidisciplinary team. The facility files the claims with PhilHealth." + "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." } ] }, @@ -457,56 +317,12 @@ { "requirement_id": 1, "requirement_description": "PhilHealth ID" - }, - { - "requirement_id": 2, - "requirement_description": "For colon cancer: Annex A1: Pre-authorization Checklist and Request for Colon Cancer, submitted by the contracted health facility" - }, - { - "requirement_id": 3, - "requirement_description": "For rectal cancer: Annex A2: Pre-authorization Checklist and Request for Rectal Cancer, submitted by the contracted health facility" - }, - { - "requirement_id": 4, - "requirement_description": "Member Empowerment Form or ME Form (Annex B), accomplished together with the attending healthcare provider and signed jointly by the patient (or their guardian or representative) and the attending healthcare provider" - }, - { - "requirement_id": 5, - "requirement_description": "Photocopy of the MDT plan (treatment plan from the multidisciplinary team)" - }, - { - "requirement_id": 6, - "requirement_description": "Diagnostic results. Colon cancer: colonoscopy, biopsy with histopathology, chest CT or chest x-ray, and abdominal CT scan, preferably with contrast. Rectal cancer: chest CT scan and abdominal CT scan, preferably with contrast. Results of colonoscopy, chest x-ray, CT scan and abdominal ultrasound are valid up to 60 calendar days before the pre-authorization request is submitted" } ], "procedure": [ { "step": 1, - "instruction": "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance." - }, - { - "step": 2, - "instruction": "Go to a Z Benefits contracted health facility for colon and rectal cancers." - }, - { - "step": 3, - "instruction": "Complete the required diagnostic tests. Results must not be older than 60 calendar days when the pre-authorization request is submitted." - }, - { - "step": 4, - "instruction": "The facility's multidisciplinary team (at least a colorectal surgeon and a medical oncologist; plus a radio-oncologist for rectal cancer) agrees on your treatment plan." - }, - { - "step": 5, - "instruction": "Fill out the ME Form with your attending doctor. The facility explains any co-payment for amenities or upgrades not covered by the package." - }, - { - "step": 6, - "instruction": "The facility submits the pre-authorization request (Annex A) with the ME Form and MDT plan to PhilHealth. Approval is valid for 60 calendar days." - }, - { - "step": 7, - "instruction": "Get treatment as planned by the MDT. The facility files the claims with PhilHealth." + "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." } ] } diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 161613f..7e6b587 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -32,9 +32,12 @@ const REVIEW = { 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: from Fritz's phone call with a PhilHealth officer (2026-11-13), recorded in provenance. - zBenefitsRequirement: "PhilHealth ID", - zBenefitsStep1: "Regardless of the type of cancer, bring your PhilHealth ID and approach the hospital's Z Benefits coordinator for further assistance.", + // 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 5: cancer types as named in each Z Benefits program name. cancerTypesByProgram: { 101002: ["Breast Cancer"], @@ -92,9 +95,10 @@ function applyReview(folder, records) { log(`program ${p.programID}: cancerTypes ${JSON.stringify(p.cancerTypes)}`); } if (p.program_name.startsWith("Z Benefits")) { - p.requirements = renumber([{ requirement_id: 0, requirement_description: REVIEW.zBenefitsRequirement }, ...p.requirements], "requirement_id"); - p.procedure = renumber([{ step: 0, instruction: REVIEW.zBenefitsStep1 }, ...p.procedure], "step"); - log(`program ${p.programID}: + requirement "${REVIEW.zBenefitsRequirement}", + step 1`); + 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}`); From cd4481ffc6750b8db1f927462bd8fc159c79d86d Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 12:07:00 +0800 Subject: [PATCH 03/49] v2: add PCSO MAP and DOH MAIFIP, drop loans, official Facebook pages Fritz's decisions (2026-11-13): - Add PCSO (id 5, Medical Assistance Program, programID 505001) and DOH (id 6, MAIFIP, programID 606001) as v2-only records, kept in scripts/v2-additions/FinancialInstitution.json. Sources: pcso.gov.ph MAP page; PIA/SunStar Davao quoting DOH-XI; Davao Doctors Hospital list. - No loans, to avoid adding financial burden: SSS (Salary Loan), GSIS (MPL) and Pag-IBIG (Housing Loan) are left out of v2. Ids are not reused. - Support groups: official Facebook pages for AMUMA and House of Hope. - Schema: a branch's map point and hours can be null ("Not given"). Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 255 +++++++----------- .../FinancialInstiData.schema.json | 24 +- .../HealthInstiData.schema.json | 24 +- data-v2/SupportGroups/SupportGroupsData.json | 4 +- scripts/convert-v2.mjs | 34 ++- .../v2-additions/FinancialInstitution.json | 180 +++++++++++++ 6 files changed, 349 insertions(+), 172 deletions(-) create mode 100644 scripts/v2-additions/FinancialInstitution.json diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 17aadb7..42ea348 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -329,238 +329,175 @@ ] }, { - "id": 2, - "name": "Social Security System (SSS)", - "bgImageURL": "https://www.sss.gov.ph/sss/images/SSS_Building.jpg", - "source": "https://www.sss.gov.ph/", - "description": "The SSS provides social security protection to workers in the private, professional, and informal sectors. It offers replacement income for contingencies like sickness, maternity, disability, retirement, and death.", + "id": 5, + "name": "Philippine Charity Sweepstakes Office (PCSO)", + "bgImageURL": "", + "source": "https://www.pcso.gov.ph/", + "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", - "lastVerified": null, + "lastVerified": "2026-11-13", "contacts": [], "branches": [ { "branchID": 1, "branchName": null, - "location": "SSS Building, J.P. Laurel Avenue, Bajada, Davao City", - "latitude": 7.0935, - "longitude": 125.6154, - "schedule": [ - { - "day": "Monday-Friday", - "timeIn": "8:00 am", - "timeOut": "5:00 pm" - } - ], - "contacts": [ - { - "contact_id": 1, - "type": "Landline", - "contact_details": "(082) 221-2121" - }, - { - "contact_id": 2, - "type": "Email", - "contact_details": "davao@sss.gov.ph" - } - ] + "location": "Cabaguio Davao City (near NSO Office)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] } ], "programs": [ { - "programID": 202001, - "program_name": "Salary Loan", - "eligibility": "Members with at least 36 monthly contributions", - "program_description": "A cash loan designed to meet the member's short-term credit needs.", - "cancerTypes": null, + "programID": 505001, + "program_name": "Medical Assistance Program (MAP)", + "eligibility": "Individuals with health-related problems seeking financial help", + "program_description": "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": null, - "sources": [], + "sources": [ + "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx" + ], "benefits": [ { "benefit_id": 1, - "benefit_name": "Cash assistance equivalent to one or two months salary", + "benefit_name": "Cancer treatment: chemotherapeutic drugs and immunotherapy", "amount": null - } - ], - "requirements": [ - { - "requirement_id": 1, - "requirement_description": "Digitized SSS ID or UMID Card." - } - ], - "procedure": [ - { - "step": 1, - "instruction": "Log in to your My.SSS account." }, { - "step": 2, - "instruction": "Go to 'Loans' and select 'Apply for Salary Loan'." + "benefit_id": 2, + "benefit_name": "Radiation therapy", + "amount": null }, { - "step": 3, - "instruction": "Submit and wait for employer certification." - } - ] - } - ] - }, - { - "id": 3, - "name": "Government Service Insurance System (GSIS)", - "bgImageURL": "https://www.gsis.gov.ph/wp-content/uploads/2021/01/GSIS-Davao.jpg", - "source": "https://www.gsis.gov.ph/", - "description": "GSIS manages the social insurance program for government employees in the Philippines. It provides life insurance, retirement, and disability benefits to those in public service.", - "type": "Public Institution", - "lastVerified": null, - "contacts": [], - "branches": [ - { - "branchID": 1, - "branchName": null, - "location": "McArthur Highway, Matina, Davao City", - "latitude": 7.0583, - "longitude": 125.5947, - "schedule": [ + "benefit_id": 3, + "benefit_name": "Confinement assistance", + "amount": null + }, { - "day": "Monday-Friday", - "timeIn": "8:00 am", - "timeOut": "5:00 pm" + "benefit_id": 4, + "benefit_name": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "amount": null } ], - "contacts": [ + "requirements": [ { - "contact_id": 1, - "type": "Landline", - "contact_details": "(082) 299-0141" + "requirement_id": 1, + "requirement_description": "Duly Accomplished MAP Application Form" }, { - "contact_id": 2, - "type": "Email", - "contact_details": "gsisdavao@gsis.gov.ph" - } - ] - } - ], - "programs": [ - { - "programID": 303001, - "program_name": "Multi-Purpose Loan (MPL)", - "eligibility": "Active government employees", - "program_description": "Consolidates all existing loans into one with lower interest and longer terms.", - "cancerTypes": null, - "applicationURL": null, - "sources": [], - "benefits": [ + "requirement_id": 2, + "requirement_description": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + }, { - "benefit_id": 1, - "benefit_name": "Lower interest rate (6% per annum)", - "amount": null + "requirement_id": 3, + "requirement_description": "Valid ID of the patient's next of kin, if applicable" }, { - "benefit_id": 2, - "benefit_name": "Waived surcharges on previous loans", - "amount": null - } - ], - "requirements": [ + "requirement_id": 4, + "requirement_description": "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" + }, { - "requirement_id": 1, - "requirement_description": "Duly accomplished application form and GSIS eCard." + "requirement_id": 5, + "requirement_description": "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 through the GSIS Touch mobile app or GW@PS kiosk." + "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." }, { "step": 2, - "instruction": "Wait for Agency Authorized Officer (AAO) approval." + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." }, { "step": 3, - "instruction": "Loan proceeds are credited to the eCard/UMID account." + "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + }, + { + "step": 4, + "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + }, + { + "step": 5, + "instruction": "Wait for the result in your email or in your online account." } ] } ] }, { - "id": 4, - "name": "Pag-IBIG Fund (HDMF)", - "bgImageURL": "https://www.pagibigfund.gov.ph/images/Davao_Branch.jpg", - "source": "https://www.pagibigfund.gov.ph/", - "description": "The Home Development Mutual Fund, known as Pag-IBIG, is a national savings program and affordable shelter financing for Filipino workers.", + "id": 6, + "name": "Department of Health (DOH)", + "bgImageURL": "", + "source": "https://doh.gov.ph/", + "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", "type": "Public Institution", - "lastVerified": null, + "lastVerified": "2026-11-13", "contacts": [], "branches": [ { "branchID": 1, "branchName": null, - "location": "Pryce Tower, J.P. Laurel Ave, Bajada, Davao City", - "latitude": 7.0855, - "longitude": 125.6139, - "schedule": [ - { - "day": "Monday-Friday", - "timeIn": "8:00 am", - "timeOut": "5:00 pm" - } - ], - "contacts": [ - { - "contact_id": 1, - "type": "Landline", - "contact_details": "(082) 227-0463" - }, - { - "contact_id": 2, - "type": "Email", - "contact_details": "contactus@pagibigfund.gov.ph" - } - ] + "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] } ], "programs": [ { - "programID": 404001, - "program_name": "Housing Loan", - "eligibility": "Members with 24 months of contributions", - "program_description": "Financing for house purchase, construction, or home improvement.", - "cancerTypes": null, + "programID": 606001, + "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "eligibility": "Indigent and financially incapacitated patients who cannot afford their medical expenses, including PhilHealth members whose remaining bill is still too big", + "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "cancerTypes": [ + "All cancers" + ], "applicationURL": null, - "sources": [], + "sources": [ + "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", + "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/" + ], "benefits": [ { "benefit_id": 1, - "benefit_name": "Low interest rates", - "amount": null - }, - { - "benefit_id": 2, - "benefit_name": "Payment terms up to 30 years", - "amount": null + "benefit_name": "Remaining medical bill after PhilHealth and other discounts", + "amount": "No fixed cap" } ], "requirements": [ { "requirement_id": 1, - "requirement_description": "Income documents (ITR or Payslip) and TCT/CCT of the property." + "requirement_description": "Unified Intake Sheet (evaluated by a social worker)" + }, + { + "requirement_id": 2, + "requirement_description": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + }, + { + "requirement_id": 3, + "requirement_description": "Medical certificate or patient's clinical summary / medical abstract" + }, + { + "requirement_id": 4, + "requirement_description": "Copy of IDs (patient and/or patient's representative)" } ], "procedure": [ { "step": 1, - "instruction": "Attend the Housing Loan Counseling (online or onsite)." + "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." }, { "step": 2, - "instruction": "Submit the Housing Loan Application (HLA) with requirements." - }, - { - "step": 3, - "instruction": "Receive the Notice of Approval (NOA) and sign loan documents." + "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." } ] } diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index db197d1..f1350d9 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -235,15 +235,29 @@ "type": "string" }, "latitude": { - "type": "number", - "description": "Latitude (from Google Maps)." + "type": [ + "null", + "number" + ], + "description": "Latitude (from Google Maps). null if not known." }, "longitude": { - "type": "number", - "description": "Longitude (from Google Maps)." + "type": [ + "null", + "number" + ], + "description": "Longitude (from Google Maps). null if not known." }, "schedule": { - "$ref": "#/$defs/schedule" + "anyOf": [ + { + "$ref": "#/$defs/schedule" + }, + { + "type": "null" + } + ], + "description": "Open days and hours. null if not known (show \"Not given\")." }, "contacts": { "$ref": "#/$defs/contacts" diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index ade6d9f..8add414 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -223,15 +223,29 @@ "type": "string" }, "latitude": { - "type": "number", - "description": "Latitude (from Google Maps)." + "type": [ + "null", + "number" + ], + "description": "Latitude (from Google Maps). null if not known." }, "longitude": { - "type": "number", - "description": "Longitude (from Google Maps)." + "type": [ + "null", + "number" + ], + "description": "Longitude (from Google Maps). null if not known." }, "schedule": { - "$ref": "#/$defs/schedule" + "anyOf": [ + { + "$ref": "#/$defs/schedule" + }, + { + "type": "null" + } + ], + "description": "Open days and hours. null if not known (show \"Not given\")." }, "contacts": { "$ref": "#/$defs/contacts" diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index f1abdc2..d197478 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -7,7 +7,7 @@ "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/groups/150208365000436", + "socmedURL": "https://www.facebook.com/amumasupport", "bgImageURL": "/images/SupportGroups/amuma.jpg", "location": "Davao City", "latitude": null, @@ -37,7 +37,7 @@ "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": 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, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 7e6b587..451f17e 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -50,6 +50,15 @@ const REVIEW = { 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 }], + // 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", + }, }; const renumber = (items, key) => items.map((x, i) => ({ ...x, [key]: i + 1 })); @@ -76,6 +85,10 @@ function applyReview(folder, records) { } } 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]; @@ -117,12 +130,31 @@ function applyReview(folder, records) { 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(", ")}`); } + 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 8: branch names stay null until the next source check (no change). return records; } +// Records that exist only in v2 live in scripts/v2-additions/.json (same records key). +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)); + for (const r of read(p)[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); +} + function write(folder, file, key, records) { - if (!args.includes("--no-review")) applyReview(folder, records); + if (!args.includes("--no-review")) { applyReview(folder, records); addV2Only(folder, key, records); } const out = { $schema: `./${file}.schema.json`, [key]: records }; writeFileSync(join("data-v2", folder, `${file}.json`), JSON.stringify(out, null, 2) + "\n"); console.log(`wrote data-v2/${folder}/${file}.json (${records.length} records)`); diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json new file mode 100644 index 0000000..f5f0fb0 --- /dev/null +++ b/scripts/v2-additions/FinancialInstitution.json @@ -0,0 +1,180 @@ +{ + "_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.", + "Financial_Insti": [ + { + "id": 5, + "name": "Philippine Charity Sweepstakes Office (PCSO)", + "bgImageURL": "", + "source": "https://www.pcso.gov.ph/", + "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", + "lastVerified": "2026-11-13", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "Cabaguio Davao City (near NSO Office)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "programs": [ + { + "programID": 505001, + "program_name": "Medical Assistance Program (MAP)", + "eligibility": "Individuals with health-related problems seeking financial help", + "program_description": "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": null, + "sources": [ + "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Cancer treatment: chemotherapeutic drugs and immunotherapy", + "amount": null + }, + { + "benefit_id": 2, + "benefit_name": "Radiation therapy", + "amount": null + }, + { + "benefit_id": 3, + "benefit_name": "Confinement assistance", + "amount": null + }, + { + "benefit_id": 4, + "benefit_name": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "amount": null + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Duly Accomplished MAP Application Form" + }, + { + "requirement_id": 2, + "requirement_description": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + }, + { + "requirement_id": 3, + "requirement_description": "Valid ID of the patient's next of kin, if applicable" + }, + { + "requirement_id": 4, + "requirement_description": "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" + }, + { + "requirement_id": 5, + "requirement_description": "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": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." + }, + { + "step": 2, + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." + }, + { + "step": 3, + "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + }, + { + "step": 4, + "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + }, + { + "step": 5, + "instruction": "Wait for the result in your email or in your online account." + } + ] + } + ] + }, + { + "id": 6, + "name": "Department of Health (DOH)", + "bgImageURL": "", + "source": "https://doh.gov.ph/", + "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", + "type": "Public Institution", + "lastVerified": "2026-11-13", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": null, + "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "programs": [ + { + "programID": 606001, + "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "eligibility": "Indigent and financially incapacitated patients who cannot afford their medical expenses, including PhilHealth members whose remaining bill is still too big", + "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "cancerTypes": [ + "All cancers" + ], + "applicationURL": null, + "sources": [ + "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", + "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", + "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Remaining medical bill after PhilHealth and other discounts", + "amount": "No fixed cap" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Unified Intake Sheet (evaluated by a social worker)" + }, + { + "requirement_id": 2, + "requirement_description": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + }, + { + "requirement_id": 3, + "requirement_description": "Medical certificate or patient's clinical summary / medical abstract" + }, + { + "requirement_id": 4, + "requirement_description": "Copy of IDs (patient and/or patient's representative)" + } + ], + "procedure": [ + { + "step": 1, + "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + }, + { + "step": 2, + "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." + } + ] + } + ] + } + ] +} From 6c1a728cebdb3db3a3e42cdb2518c85dad40fcc9 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 12:14:31 +0800 Subject: [PATCH 04/49] v2: eligibility as a list, split as written Fritz's decision 9 (2026-11-13): each program's eligibility is an array of strings, one rule per item, split as written (no rule removed or reworded; split only where the source already separates parts). All 8 lists were approved by Fritz. An empty array means "Not given". Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 59 ++++++++++++++++--- .../FinancialInstiData.schema.json | 7 ++- scripts/convert-v2.mjs | 52 +++++++++++++++- .../v2-additions/FinancialInstitution.json | 9 ++- 4 files changed, 115 insertions(+), 12 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 42ea348..6090157 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -48,7 +48,9 @@ { "programID": 161213, "program_name": "YAKAP (Konsulta) Program", - "eligibility": "All PhilHealth members", + "eligibility": [ + "All PhilHealth members" + ], "program_description": "A comprehensive outpatient benefits package that includes consultation, lab tests, and medicines.", "cancerTypes": null, "applicationURL": null, @@ -94,7 +96,12 @@ { "programID": 101002, "program_name": "Z Benefits: Breast Cancer (cStage 0 to IV)", - "eligibility": "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval, and who meet the selection criteria: 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): patient has not initiated any chemotherapy treatment from any HF; Targeted therapy; Hormonotherapy; Surveillance. 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).", + "eligibility": [ + "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)" + ], "program_description": "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.", "cancerTypes": [ "Breast Cancer" @@ -161,7 +168,17 @@ { "programID": 101003, "program_name": "Z Benefits: Acute Lymphocytic / Lymphoblastic Leukemia (standard risk)", - "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: 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.", + "eligibility": [ + "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" + ], "program_description": "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.", "cancerTypes": [ "Acute Lymphocytic / Lymphoblastic Leukemia" @@ -208,7 +225,15 @@ { "programID": 101004, "program_name": "Z Benefits: Prostate Cancer (low to intermediate risk)", - "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: 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.", + "eligibility": [ + "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" + ], "program_description": "PhilHealth's Z Benefit package for localized low- to intermediate-risk prostate cancer, at Z Benefits contracted health facilities.", "cancerTypes": [ "Prostate Cancer" @@ -240,7 +265,14 @@ { "programID": 101005, "program_name": "Z Benefits: Cervical Cancer", - "eligibility": "PhilHealth members and their qualified dependents, eligible upon application for pre-authorization (patients not yet registered in PhilHealth must complete member registration first), with a newly diagnosed case (a first-time diagnosis, not previously treated for the same condition under this Z Benefit package), who meet the selection criteria: No previous chemotherapy; No previous radiotherapy; No uncontrolled co-morbid conditions.", + "eligibility": [ + "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" + ], "program_description": "PhilHealth's Z Benefit package for cervical cancer treatment (chemoradiation with brachytherapy, or primary surgery for early stages), at Z Benefits contracted health facilities.", "cancerTypes": [ "Cervical Cancer" @@ -277,7 +309,13 @@ { "programID": 101006, "program_name": "Z Benefits: Colorectal Cancer", - "eligibility": "PhilHealth members and their qualified dependents who are eligible to avail of PhilHealth benefits at the time of pre-authorization approval, with colon or rectal cancer stage I to III, who meet the selection criteria: 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.", + "eligibility": [ + "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." + ], "program_description": "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": [ "Colorectal Cancer" @@ -352,7 +390,9 @@ { "programID": 505001, "program_name": "Medical Assistance Program (MAP)", - "eligibility": "Individuals with health-related problems seeking financial help", + "eligibility": [ + "Individuals with health-related problems seeking financial help" + ], "program_description": "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" @@ -454,7 +494,10 @@ { "programID": 606001, "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", - "eligibility": "Indigent and financially incapacitated patients who cannot afford their medical expenses, including PhilHealth members whose remaining bill is still too big", + "eligibility": [ + "Indigent and financially incapacitated patients who cannot afford their medical expenses", + "Including PhilHealth members whose remaining bill is still too big" + ], "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", "cancerTypes": [ "All cancers" diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index f1350d9..97c61ad 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -62,7 +62,12 @@ "type": "string" }, "eligibility": { - "type": "string" + "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 (show \"Not given\")." }, "program_description": { "type": "string" diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 451f17e..00eff2c 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -50,6 +50,52 @@ const REVIEW = { 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. @@ -103,6 +149,10 @@ function applyReview(folder, records) { 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.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)}`); @@ -212,7 +262,7 @@ function instiTop(r, p) { programs: r.programs.map((g) => ({ programID: g.programID, program_name: g.program_name, - eligibility: g.eligibility, + eligibility: list(g.eligibility), program_description: g.program_description, cancerTypes: null, applicationURL: null, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index f5f0fb0..1ecee8f 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -25,7 +25,9 @@ { "programID": 505001, "program_name": "Medical Assistance Program (MAP)", - "eligibility": "Individuals with health-related problems seeking financial help", + "eligibility": [ + "Individuals with health-related problems seeking financial help" + ], "program_description": "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" @@ -127,7 +129,10 @@ { "programID": 606001, "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", - "eligibility": "Indigent and financially incapacitated patients who cannot afford their medical expenses, including PhilHealth members whose remaining bill is still too big", + "eligibility": [ + "Indigent and financially incapacitated patients who cannot afford their medical expenses", + "Including PhilHealth members whose remaining bill is still too big" + ], "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", "cancerTypes": [ "All cancers" From 1c9cadaa881db39ce28df047c0efac02e6b04ef0 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 12:26:49 +0800 Subject: [PATCH 05/49] v2: show "Not available" for null values, add missing-data report Fritz's decision (2026-11-13): keep null or empty lists in the data; apps show "Not available". Each v2 schema now states this rule, and the field notes say "Not available" instead of "Not given". scripts/missing-v2.mjs prints a Markdown checklist of every value that is not available yet, record by record, with where to look for it. Co-Authored-By: Claude Opus 5.5 --- data-v2/Feeds/FeedsData.schema.json | 2 +- .../FinancialInstiData.schema.json | 10 +- .../HealthInstiData.schema.json | 8 +- .../MedicalSpecialistData.schema.json | 6 +- .../SupportGroupsData.schema.json | 6 +- scripts/convert-v2.mjs | 2 +- scripts/missing-v2.mjs | 101 ++++++++++++++++++ 7 files changed, 118 insertions(+), 17 deletions(-) create mode 100644 scripts/missing-v2.mjs diff --git a/data-v2/Feeds/FeedsData.schema.json b/data-v2/Feeds/FeedsData.schema.json index 2f7a7b5..4b45a11 100644 --- a/data-v2/Feeds/FeedsData.schema.json +++ b/data-v2/Feeds/FeedsData.schema.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "FeedsData.schema.json", "title": "FeedsData", - "description": "Cancer Open Data v2.", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not available yet: apps should show \"Not available\".", "type": "object", "properties": { "$schema": { diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 97c61ad..2a90642 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "FinancialInstiData.schema.json", "title": "FinancialInstiData", - "description": "Cancer Open Data v2.", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not available yet: apps should show \"Not available\".", "type": "object", "properties": { "$schema": { @@ -67,7 +67,7 @@ "type": "string" }, "uniqueItems": true, - "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not given\")." + "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not available\")." }, "program_description": { "type": "string" @@ -262,7 +262,7 @@ "type": "null" } ], - "description": "Open days and hours. null if not known (show \"Not given\")." + "description": "Open days and hours. null if not known (show \"Not available\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -286,7 +286,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." }, "cancerTypes": { "type": [ @@ -298,7 +298,7 @@ }, "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\")." + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not available\")." }, "lastVerified": { "type": [ diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index 8add414..c49a2dc 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "HealthInstiData.schema.json", "title": "HealthInstiData", - "description": "Cancer Open Data v2.", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not available yet: apps should show \"Not available\".", "type": "object", "properties": { "$schema": { @@ -245,7 +245,7 @@ "type": "null" } ], - "description": "Open days and hours. null if not known (show \"Not given\")." + "description": "Open days and hours. null if not known (show \"Not available\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -269,7 +269,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." }, "cancerTypes": { "type": [ @@ -281,7 +281,7 @@ }, "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\")." + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not available\")." }, "lastVerified": { "type": [ diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json index 703fde1..11f96d1 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "MedicalSpecialistData.schema.json", "title": "MedicalSpecialistData", - "description": "Cancer Open Data v2.", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not available yet: apps should show \"Not available\".", "type": "object", "properties": { "$schema": { @@ -79,7 +79,7 @@ "Appointment only", "Walk-in and appointment" ], - "description": "How patients are seen. null if not known (show \"Not given\")." + "description": "How patients are seen. null if not known (show \"Not available\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -195,7 +195,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." }, "lastVerified": { "type": [ diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json index a8095a7..0604e07 100644 --- a/data-v2/SupportGroups/SupportGroupsData.schema.json +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "SupportGroupsData.schema.json", "title": "SupportGroupsData", - "description": "Cancer Open Data v2.", + "description": "Cancer Open Data v2. A null value or an empty list means the information is not available yet: apps should show \"Not available\".", "type": "object", "properties": { "$schema": { @@ -162,7 +162,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." }, "cancerTypes": { "type": [ @@ -174,7 +174,7 @@ }, "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\")." + "description": "Cancers this covers, e.g. ['Breast Cancer']. ['All cancers'] if it covers every cancer. null if the source doesn't say (show \"Not available\")." }, "lastVerified": { "type": [ diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 00eff2c..4e63df3 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -1,6 +1,6 @@ // 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"). +// doesn't have becomes null or an empty list ("Not available" in apps). // // Usage (from the repo root): // node scripts/convert-v2.mjs [--provenance /provenance] diff --git a/scripts/missing-v2.mjs b/scripts/missing-v2.mjs new file mode 100644 index 0000000..4068517 --- /dev/null +++ b/scripts/missing-v2.mjs @@ -0,0 +1,101 @@ +// Lists every value in data-v2/ that is not available 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", + lastVerified: "set the date when someone checks the record against its sources", + 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", + service_schedule: "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", "lastVerified", "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").Financial_Insti; +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.program_name} › `), + ...p.benefits.flatMap((b) => check("Financial", r.name, b, ["amount"], `${p.program_name} › benefit "${b.benefit_name}" › `)), + ]))); + +const H = read("data-v2/HealthInstitution/HealthInstiData.json").Health_Insti; +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", "service_schedule", "requirements", "procedure"], `${s.service_name} › `)))); + +const M = read("data-v2/MedicalSpecialist/MedicalSpecialistData.json").Medical_Specialist; +section("Medical specialists", M.map((r) => ({ ...r, label: `#${r.id} ${r.firstname} ${r.lastname}` })), (r) => [ + ...check("Specialist", r.lastname, r, ["description", "imageURL", "sources", "lastVerified"]), + ...r.clinics.flatMap((c) => check("Specialist", r.lastname, c, ["latitude", "longitude", "bookingType", "contacts", "schedule"], `${c.clinicName} › `)), +]); + +const S = read("data-v2/SupportGroups/SupportGroupsData.json").Support_Group; +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", "lastVerified", "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", "source"])); + +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 available yet) + +${total} values are not available yet. In the data they are \`null\` or empty; apps show "Not available". +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")}`); From 57f9b17eccf63ebf2be0410f40082365f49a706e Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 13 Nov 2026 12:33:20 +0800 Subject: [PATCH 06/49] v2: rewrite YAKAP from its official page Fritz's decision 10 (2026-11-13): YAKAP (programID 161213) now follows https://www.philhealth.gov.ph/yakap/ (read 2026-11-13): name, 11 member groups as eligibility, description, cancer types (breast, liver, colorectal, lung screening), 7 benefits, requirement (PIN with updated membership) and 5 steps. The page is mostly images in Filipino; description, requirement, steps and "Free" are translations, member groups and test names are as written. Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 69 +++++++++++++++---- scripts/convert-v2.mjs | 48 +++++++++++++ 2 files changed, 105 insertions(+), 12 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 6090157..0b4bd8a 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -47,49 +47,94 @@ "programs": [ { "programID": 161213, - "program_name": "YAKAP (Konsulta) Program", + "program_name": "PhilHealth YAKAP: Yaman ng Kalusugan Program", "eligibility": [ - "All PhilHealth members" + "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" ], - "program_description": "A comprehensive outpatient benefits package that includes consultation, lab tests, and medicines.", - "cancerTypes": null, "applicationURL": null, - "sources": [], + "sources": [ + "https://www.philhealth.gov.ph/yakap/" + ], "benefits": [ { "benefit_id": 1, "benefit_name": "Primary Care Checkup", - "amount": null + "amount": "Free" }, { "benefit_id": 2, - "benefit_name": "Laboratory tests (CBC, Urinalysis, etc.)", + "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": "Free Maintenance Medicines", + "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": "Member must be registered to a chosen Konsulta/Yakap clinic." + "requirement_description": "PhilHealth Identification Number (PIN) with updated membership" } ], "procedure": [ { "step": 1, - "instruction": "Fill out the PhilHealth Member Registration Form (PMRF)." + "instruction": "Register: make sure you have a PhilHealth Identification Number (PIN) and your membership is updated." }, { "step": 2, - "instruction": "Submit the form and valid ID to the PhilHealth office or accredited clinic." + "instruction": "Choose a YAKAP Clinic using the eGovPH Super App, the PhilHealth Member Portal, or the nearest PhilHealth office." }, { "step": 3, - "instruction": "Wait for confirmation of registration." + "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." } ] }, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 4e63df3..984e27a 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -105,6 +105,50 @@ const REVIEW = { 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 })); @@ -149,6 +193,10 @@ function applyReview(folder, records) { 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`); From 5f2b6ed97c545533443dc392fb04703c10481a06 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 10:11:27 +0800 Subject: [PATCH 07/49] v2: bring in the 14 Nov v1 updates (5 specialists, NowServing clinics and schedules, source fixes, hosted images) Re-ran scripts/convert-v2.mjs on the current v1 data after rebasing v2 on main. All review decisions are kept; only these records changed: - Medical specialists: added #25-29; clinics and schedules of #1-#11 and #13 from NowServing; fixed sources of #6, #10 and #11. - PhilHealth, SPMC Cancer Institute and AMUMA use the hosted WebP images. - PCSO and DOH use their prepared images (pcso.webp, doh.webp). Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 6 +- .../HealthInstitution/HealthInstiData.json | 2 +- .../MedicalSpecialistData.json | 1078 +++++++++++++++-- data-v2/SupportGroups/SupportGroupsData.json | 2 +- .../v2-additions/FinancialInstitution.json | 4 +- 5 files changed, 963 insertions(+), 129 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 0b4bd8a..5df6c1b 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -4,7 +4,7 @@ { "id": 1, "name": "PhilHealth", - "bgImageURL": "https://newsfortph.com/upload/media/posts/2022-07/10/philhealth-davao-region-intensifies-konsulta-campaign_1657399553-b.jpg", + "bgImageURL": "/images/FinancialInstitution/philhealth.webp", "source": "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", @@ -414,7 +414,7 @@ { "id": 5, "name": "Philippine Charity Sweepstakes Office (PCSO)", - "bgImageURL": "", + "bgImageURL": "/images/FinancialInstitution/pcso.webp", "source": "https://www.pcso.gov.ph/", "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", @@ -518,7 +518,7 @@ { "id": 6, "name": "Department of Health (DOH)", - "bgImageURL": "", + "bgImageURL": "/images/FinancialInstitution/doh.webp", "source": "https://doh.gov.ph/", "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", "type": "Public Institution", diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 4f71ea7..57b025b 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -4,7 +4,7 @@ { "id": 1, "name": "SPMC Cancer Institute", - "bgImageURL": "https://media.assettype.com/sunstar%2F2025-09-20%2F08lzbtjf%2FUntitled-1.jpg", + "bgImageURL": "/images/HealthInstitution/spmc-cancer-institute.webp", "source": "https://www.facebook.com/SouthernPhilippinesMedicalCenter", "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", diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index b80fa44..254cacf 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -22,6 +22,21 @@ "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", @@ -49,7 +64,7 @@ "location": "Ground Floor, SM Lanang, J.P. Laurel Ave, Agdao, Davao City, 8000 Davao del Sur", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": "Walk-in only", "contacts": [], "schedule": [ { @@ -63,9 +78,55 @@ "timeOut": "05:00 am" }, { - "day": "Friday to Saturday", + "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" } ] } @@ -85,15 +146,51 @@ "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": "Walk-in and appointment", + "bookingType": "Appointment only", "contacts": [], "schedule": [ { - "day": "Monday to Tuesday, Friday", + "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" } @@ -115,54 +212,94 @@ "clinics": [ { "clinicID": 1, - "clinicName": "Online Clinic", - "location": "NowServing App", + "clinicName": "Brokenshire Integrated Health Ministries, Inc.", + "location": "Madapo Hill, Davao City", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Monday, Wednesday and Friday", - "timeIn": "10:00 am", - "timeOut": "04:00 pm" + "day": "Monday", + "timeIn": "12:00 pm", + "timeOut": "02:00 pm" }, { - "day": "Tuesday and Thursday", - "timeIn": "01:00 pm", - "timeOut": "04: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": "Brokenshire Integrated Health Ministries, Inc.", - "location": "Madapo Hill, Davao City", + "clinicName": "Metro Davao Medical and Research Center", + "location": "Bajada, Davao City", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Monday to Friday", - "timeIn": "12:00 pm", - "timeOut": "02:00 pm" + "day": "Tuesday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" + }, + { + "day": "Thursday", + "timeIn": "09:00 am", + "timeOut": "11:00 am" } ] }, { "clinicID": 3, - "clinicName": "Metro Davao Medical and Research Center", - "location": "Bajada, Davao City", + "clinicName": "Online Clinic", + "location": "NowServing App", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Tuesday and Thursday", - "timeIn": "09:00 am", - "timeOut": "11:00 am" + "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" } ] } @@ -190,7 +327,17 @@ "contacts": [], "schedule": [ { - "day": "Monday, Wednesday and Friday", + "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" } @@ -199,14 +346,19 @@ { "clinicID": 2, "clinicName": "Tagum Global Medical Center", - "location": "Daang Maharlika Hwy", + "location": "Daang Maharlika Hwy,", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Tuesday and Thursday", + "day": "Tuesday", + "timeIn": "10:00 am", + "timeOut": "12:00 pm" + }, + { + "day": "Thursday", "timeIn": "10:00 am", "timeOut": "12:00 pm" } @@ -222,21 +374,31 @@ "description": "Treats and manages Adrenal, Kidney, Ureter, Bladder, Prostate, Testicular and Penile Cancers and Genitourinary Stones", "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" + "https://seriousmd.com/doc/jay-r-enojo" ], "lastVerified": null, "clinics": [ { "clinicID": 1, - "clinicName": "Brokenshire Medical Center", + "clinicName": "BROKENSHIRE MEDICAL CENTER", "location": "Madapo Hill, Davao City", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": "Appointment only", "contacts": [], "schedule": [ { - "day": "Monday, Wednesday and Friday", + "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" } @@ -248,7 +410,7 @@ "location": "Bajada, Davao City", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": "Appointment only", "contacts": [], "schedule": [ { @@ -274,15 +436,35 @@ "clinics": [ { "clinicID": 1, - "clinicName": "Online Clinic", - "location": "NowServing App", + "clinicName": "Matunog Cancer Care Clinic", + "location": "Guzman Street", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": "Appointment only", "contacts": [], "schedule": [ { - "day": "Monday to Friday", + "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" } @@ -290,73 +472,113 @@ }, { "clinicID": 2, - "clinicName": "Matunog Cancer Care Clinic", - "location": "Guzman Street", + "clinicName": "Online Clinic", + "location": "NowServing App", "latitude": null, "longitude": null, "bookingType": "Appointment only", "contacts": [], "schedule": [ { - "day": "Monday to Friday", + "day": "Monday", "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" - ], - "lastVerified": null, - "clinics": [ - { + }, + { + "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" + ], + "lastVerified": null, + "clinics": [ + { "clinicID": 1, - "clinicName": "Online Clinic", - "location": "NowServing App", + "clinicName": "M300 Health Science Wellness Center", + "location": "Bajada, Davao City", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Monday and Tuesday, Thursday and Saturday", - "timeIn": "09:00 am", - "timeOut": "05:00 pm" - }, - { - "day": "Wednesday", + "day": "Thursday", "timeIn": "01:00 pm", - "timeOut": "05:00 pm" + "timeOut": "04:00 pm" }, { - "day": "Friday", - "timeIn": "11:00 am", - "timeOut": "05:00 pm" + "day": "Saturday", + "timeIn": "01:00 pm", + "timeOut": "03:00 pm" } ] }, { "clinicID": 2, - "clinicName": "M300 Health Science Wellness Center", - "location": "Bajada, Davao City", + "clinicName": "Online Clinic", + "location": "NowServing App", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Tuesday, Thursday and Saturday", + "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": "12:00 pm" + "timeOut": "05:00 pm" } ] } @@ -384,7 +606,17 @@ "contacts": [], "schedule": [ { - "day": "Monday, Wednesday and Friday", + "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" } @@ -400,39 +632,89 @@ "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" + "https://seriousmd.com/doc/charmaine-catherine-valdez" ], "lastVerified": null, "clinics": [ { "clinicID": 1, - "clinicName": "Online Clinic", - "location": "NowServing App", + "clinicName": "Brokenshire Integrated Health Ministries, Inc.", + "location": "Madapo Hill, Davao City", "latitude": null, "longitude": null, "bookingType": "Appointment only", "contacts": [], "schedule": [ { - "day": "Monday to Sunday", + "day": "Monday", "timeIn": "10:00 am", - "timeOut": "10:00 pm" + "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": "Brokenshire Integrated Health Ministries, Inc", - "location": "Madapo Hill, Davao City", + "clinicName": "Online Clinic", + "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Monday to Friday", + "day": "Monday", "timeIn": "10:00 am", - "timeOut": "12:00 pm" + "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" } ] } @@ -446,7 +728,7 @@ "description": "", "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" + "https://seriousmd.com/doc/aaron-paul-punzalan" ], "lastVerified": null, "clinics": [ @@ -461,8 +743,8 @@ "schedule": [ { "day": "Tuesday", - "timeIn": "08:00 am", - "timeOut": "11:00 am" + "timeIn": "02:00 pm", + "timeOut": "04:00 pm" }, { "day": "Wednesday", @@ -471,7 +753,7 @@ }, { "day": "Thursday", - "timeIn": "09:00 am", + "timeIn": "01:00 pm", "timeOut": "03:00 pm" }, { @@ -487,18 +769,18 @@ "location": "Km. 31 National Highway, New Pandan, Panabo, Philippines", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": "Walk-in and appointment", "contacts": [], "schedule": [ { - "day": "Wednesday", + "day": "Monday", "timeIn": "09:00 am", - "timeOut": "12:00 pm" + "timeOut": "11:00 am" }, { "day": "Saturday", "timeIn": "09:00 am", - "timeOut": "11:30 pm" + "timeOut": "11:30 am" } ] }, @@ -508,18 +790,86 @@ "location": "Km. 4 J.P. Laurel Avenue, Bajada", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "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": "Walk-in and appointment", + "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": "12:00 pm" + "timeOut": "03:00 pm" } ] } @@ -609,54 +959,48 @@ "clinics": [ { "clinicID": 1, - "clinicName": "Online Clinic", - "location": "NowServing App", + "clinicName": "ENT Head & Neck Reconstructive Microsurgery Clinic", + "location": "Bajada, Davao City", "latitude": null, "longitude": null, "bookingType": "Walk-in and appointment", - "contacts": [], - "schedule": [ + "contacts": [ { - "day": "Monday to Saturday", - "timeIn": "06:00 pm", - "timeOut": "08:00 pm" - } - ] - }, - { - "clinicID": 2, - "clinicName": "ENT Head & Neck Reconstructive Microsurgery Clinic", - "location": "Bajada, Davao City", - "latitude": null, - "longitude": null, - "bookingType": "Walk-in and appointment", - "contacts": [ - { - "contact_id": 1, - "type": "Mobile", - "contact_details": "0918 426 3266" + "contact_id": 1, + "type": "Mobile", + "contact_details": "0918 426 3266" } ], "schedule": [ { - "day": "Tuesday, Thursday and Saturday", - "timeIn": "09:00 am", - "timeOut": "12:00 pm" + "day": "Monday", + "timeIn": "04:00 pm", + "timeOut": "06:00 pm" }, { - "day": "Friday", + "day": "Tuesday", "timeIn": "09:30 am", - "timeOut": "12:00 pm" + "timeOut": "04:00 pm" }, { - "day": "Friday", + "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": 3, + "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, @@ -676,6 +1020,73 @@ "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": "Walk-in and appointment", + "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" + } + ] } ] }, @@ -1258,6 +1669,429 @@ "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" + ], + "lastVerified": "2026-11-14", + "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" + ], + "lastVerified": "2026-11-14", + "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" + ], + "lastVerified": "2026-11-14", + "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": "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" + } + ] + } + ] + }, + { + "id": 28, + "firstname": "Kristine Kamille", + "lastname": "Nieto-Lorenzo", + "specialty": "General Surgery, Surgical Oncology", + "description": "", + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/kristine-kamille-nietolorenzo" + ], + "lastVerified": "2026-11-14", + "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" + ], + "lastVerified": "2026-11-14", + "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/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index d197478..b8eb982 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -8,7 +8,7 @@ "type": "General Support Groups", "cancerTypes": null, "socmedURL": "https://www.facebook.com/amumasupport", - "bgImageURL": "/images/SupportGroups/amuma.jpg", + "bgImageURL": "/images/SupportGroups/amuma.webp", "location": "Davao City", "latitude": null, "longitude": null, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 1ecee8f..8e97d5f 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -4,7 +4,7 @@ { "id": 5, "name": "Philippine Charity Sweepstakes Office (PCSO)", - "bgImageURL": "", + "bgImageURL": "/images/FinancialInstitution/pcso.webp", "source": "https://www.pcso.gov.ph/", "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", @@ -108,7 +108,7 @@ { "id": 6, "name": "Department of Health (DOH)", - "bgImageURL": "", + "bgImageURL": "/images/FinancialInstitution/doh.webp", "source": "https://doh.gov.ph/", "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", "type": "Public Institution", From e88dfd22133306e9a15943dd54441b5c85a28c29 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 10:26:58 +0800 Subject: [PATCH 08/49] v2: serve at /v2/ with its own spec, and a v1/v2 picker on /docs/ - Build: data-v2/ is served at /v2//.json with its own dataset list (/v2/index.json) and spec (/v2/openapi.json). v1 paths don't change. docs/versions.json lists the versions for the picker. - Docs: a Version menu on /docs/ (v1 current, v2 preview); /docs/?version=v2 opens v2. - Worker: GET /v2/ lists the v2 datasets with full URLs (404 if v2 isn't built). - Spec: local $refs in embedded schemas ("#/$defs/...", used by v2) now point into components.schemas., so the v2 spec is valid. - Tests and smoke test cover v2; the deploy workflow also watches data-v2/. - Small v1 doc fixes: "Not available" instead of "Not given", image example amuma.webp. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/deploy-data.yml | 2 + CHANGELOG.md | 2 + MAINTAINING.md | 1 + docs/docs.css | 7 ++ docs/index.html | 7 ++ docs/init.js | 53 +++++++++--- scripts/build-openapi.mjs | 71 +++++++++++----- scripts/build-site.mjs | 130 +++++++++++++++++++----------- scripts/smoke-test.sh | 28 +++++-- worker/src/index.js | 23 ++++-- worker/test/worker.test.mjs | 93 ++++++++++++++++++++- 11 files changed, 323 insertions(+), 94 deletions(-) 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 46a159d..bc191b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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". +- 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. ### 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 dffc3b2..784bf00 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/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..5c29d86 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 available\").", + 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`, `cancerTypes`, `lastVerified`, 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 available\".**", + "", + ], + }, }; 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/lastVerified", 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..30eadca 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 available\".", + 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/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/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..7094262 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, 5); + 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); From f4fca9d5f99404feaa5d221105e6c797006d84b1 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 10:37:12 +0800 Subject: [PATCH 09/49] v2: one Z Benefits program, keeping every v1 detail labeled by cancer The five Z Benefits programs (breast, ALL, prostate, cervical, colorectal) become one "Z Benefits" program (review decision 11, Fritz 2026-11-15): - 20 benefits with their amounts, as written, each labeled ": ...". - 30 eligibility rules: the general membership rule first, then each cancer's criteria, labeled. - The description keeps each cancer's paragraph; all 5 cancer types and 4 sources are kept. Requirement and step are unchanged. Done in scripts/convert-v2.mjs, so a re-run keeps it. v1 is unchanged. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../FinancialInstiData.json | 260 ++++++------------ scripts/convert-v2.mjs | 40 +++ 3 files changed, 118 insertions(+), 183 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc191b5..af29075 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - Lists of `sources`, `cancerTypes`, `lastVerified`, and one fixed list of contact types. - 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). +- 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 available". - 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. diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 5df6c1b..5a9938f 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -140,259 +140,153 @@ }, { "programID": 101002, - "program_name": "Z Benefits: Breast Cancer (cStage 0 to IV)", + "program_name": "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 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)" - ], - "program_description": "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.", + "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." + ], + "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.\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" + "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/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": [ { "benefit_id": 1, - "benefit_name": "Total package", + "benefit_name": "Breast Cancer (cStage 0 to IV): Total package", "amount": "Up to P1.4 million" }, { "benefit_id": 2, - "benefit_name": "Diagnostic tests and prognostication", + "benefit_name": "Breast Cancer (cStage 0 to IV): Diagnostic tests and prognostication", "amount": "Php 1,000 to Php 10,000.00" }, { "benefit_id": 3, - "benefit_name": "Surgical procedures (partial mastectomy to modified radical mastectomy)", + "benefit_name": "Breast Cancer (cStage 0 to IV): Surgical procedures (partial mastectomy to modified radical mastectomy)", "amount": "Php 30,000 – Php 140,000.00" }, { "benefit_id": 4, - "benefit_name": "Hormonotherapy", + "benefit_name": "Breast Cancer (cStage 0 to IV): Hormonotherapy", "amount": "Php 2,700 or Php 18,000" }, { "benefit_id": 5, - "benefit_name": "Cytotoxic chemotherapy", + "benefit_name": "Breast Cancer (cStage 0 to IV): Cytotoxic chemotherapy", "amount": "Php 43,000 to Php 185,010" }, { "benefit_id": 6, - "benefit_name": "Targeted therapy", + "benefit_name": "Breast Cancer (cStage 0 to IV): Targeted therapy", "amount": "Php 333,336 for 18 maximum cycles" }, { "benefit_id": 7, - "benefit_name": "Surveillance", + "benefit_name": "Breast Cancer (cStage 0 to IV): Surveillance", "amount": "Php 5,000 (basic) and Php 9,000 (specific)" }, { "benefit_id": 8, - "benefit_name": "No co-payment for patients admitted in basic or ward-type accommodation", + "benefit_name": "Breast Cancer (cStage 0 to IV): No co-payment for patients admitted in basic or ward-type accommodation", "amount": null - } - ], - "requirements": [ - { - "requirement_id": 1, - "requirement_description": "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." - } - ] - }, - { - "programID": 101003, - "program_name": "Z Benefits: Acute Lymphocytic / Lymphoblastic Leukemia (standard risk)", - "eligibility": [ - "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" - ], - "program_description": "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.", - "cancerTypes": [ - "Acute Lymphocytic / Lymphoblastic Leukemia" - ], - "applicationURL": null, - "sources": [ - "https://www.philhealth.gov.ph/circulars/2017/circ2017-0016.pdf" - ], - "benefits": [ + }, { - "benefit_id": 1, - "benefit_name": "Total package", + "benefit_id": 9, + "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Total package", "amount": "Php 500,000 for the complete course of treatment for three (3) years" }, { - "benefit_id": 2, - "benefit_name": "Tranche 1", + "benefit_id": 10, + "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 1", "amount": "Php 300,000 (after the 1st induction phase)" }, { - "benefit_id": 3, - "benefit_name": "Tranche 2", + "benefit_id": 11, + "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 2", "amount": "Php 125,000 (after the 3rd maintenance cycle)" }, { - "benefit_id": 4, - "benefit_name": "Tranche 3", + "benefit_id": 12, + "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 3", "amount": "Php 75,000 (after the 7th maintenance cycle)" - } - ], - "requirements": [ - { - "requirement_id": 1, - "requirement_description": "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." - } - ] - }, - { - "programID": 101004, - "program_name": "Z Benefits: Prostate Cancer (low to intermediate risk)", - "eligibility": [ - "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" - ], - "program_description": "PhilHealth's Z Benefit package for localized low- to intermediate-risk prostate cancer, at Z Benefits contracted health facilities.", - "cancerTypes": [ - "Prostate Cancer" - ], - "applicationURL": null, - "sources": [ - "https://www.philhealth.gov.ph/benefits/" - ], - "benefits": [ + }, { - "benefit_id": 1, - "benefit_name": "Total package", + "benefit_id": 13, + "benefit_name": "Prostate Cancer (low to intermediate risk): Total package", "amount": "P100,000" - } - ], - "requirements": [ - { - "requirement_id": 1, - "requirement_description": "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." - } - ] - }, - { - "programID": 101005, - "program_name": "Z Benefits: Cervical Cancer", - "eligibility": [ - "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" - ], - "program_description": "PhilHealth's Z Benefit package for cervical cancer treatment (chemoradiation with brachytherapy, or primary surgery for early stages), at Z Benefits contracted health facilities.", - "cancerTypes": [ - "Cervical Cancer" - ], - "applicationURL": null, - "sources": [ - "https://www.philhealth.gov.ph/benefits/" - ], - "benefits": [ + }, { - "benefit_id": 1, - "benefit_name": "Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", + "benefit_id": 14, + "benefit_name": "Cervical Cancer: Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", "amount": "P120,000" }, { - "benefit_id": 2, - "benefit_name": "Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", + "benefit_id": 15, + "benefit_name": "Cervical Cancer: Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", "amount": "P175,000" - } - ], - "requirements": [ - { - "requirement_id": 1, - "requirement_description": "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." - } - ] - }, - { - "programID": 101006, - "program_name": "Z Benefits: Colorectal Cancer", - "eligibility": [ - "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." - ], - "program_description": "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": [ - "Colorectal Cancer" - ], - "applicationURL": null, - "sources": [ - "https://www.philhealth.gov.ph/circulars/2023/PC2023-0005.pdf" - ], - "benefits": [ + }, { - "benefit_id": 1, - "benefit_name": "Colon Cancer, Stage I to II (Low Risk)", + "benefit_id": 16, + "benefit_name": "Colorectal Cancer: Colon Cancer, Stage I to II (Low Risk)", "amount": "Php 150,000" }, { - "benefit_id": 2, - "benefit_name": "Colon Cancer, Stage II to III (High Risk)", + "benefit_id": 17, + "benefit_name": "Colorectal Cancer: Colon Cancer, Stage II to III (High Risk)", "amount": "Php 300,000" }, { - "benefit_id": 3, - "benefit_name": "Rectal Cancer, Stage I to II (Low Risk)", + "benefit_id": 18, + "benefit_name": "Colorectal Cancer: Rectal Cancer, Stage I to II (Low Risk)", "amount": "Php 150,000" }, { - "benefit_id": 4, - "benefit_name": "Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", + "benefit_id": 19, + "benefit_name": "Colorectal Cancer: Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", "amount": "Php 400,000" }, { - "benefit_id": 5, - "benefit_name": "Rectal Cancer, Stage II to III", + "benefit_id": 20, + "benefit_name": "Colorectal Cancer: Rectal Cancer, Stage II to III", "amount": "Php 400,000" } ], diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 984e27a..7d863ae 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -38,6 +38,18 @@ const REVIEW = { // 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 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"], @@ -213,6 +225,34 @@ function applyReview(folder, records) { } } 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)`); + } } } if (folder === "HealthInstitution") { From 7d4e73793a563c5e9238cc9a8836d25ac7e20ac0 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 10:52:05 +0800 Subject: [PATCH 10/49] v2: SPMC cancer clinics and contacts; add Davao Doctors Hospital Hospitals review, approved by Fritz 2026-11-15 ("Accept all"): - SPMC Cancer Institute (review decision 12 in convert-v2.mjs): official site as source, main contacts (Contact Us page), and 8 department cancer clinics with schedules as written: Oncology and Hematology Clinics (Internal Medicine), Surgical Oncology, Gynecologic Oncology, Trophoblastic Service Clinic, Colposcopy / Pap's Smear, Oncology Clinic (Pediatrics), Breast Imaging. Services 3 -> 11. - Davao Doctors Hospital (new, v2 only, scripts/v2-additions): 6 cancer services from ddh.com.ph (radiation oncology with its requirements, external beam radiation, brachytherapy, in-patient chemotherapy, radioactive iodine therapy, long-term radiotherapy), address, phones, email. Sources: spmc.doh.gov.ph and ddh.com.ph pages, listed in each service. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../HealthInstitution/HealthInstiData.json | 426 +++++++++++++++++- scripts/convert-v2.mjs | 186 ++++++++ scripts/v2-additions/HealthInstitution.json | 226 ++++++++++ 4 files changed, 837 insertions(+), 2 deletions(-) create mode 100644 scripts/v2-additions/HealthInstitution.json diff --git a/CHANGELOG.md b/CHANGELOG.md index af29075..633aafc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - Lists of `sources`, `cancerTypes`, `lastVerified`, and one fixed list of contact types. - 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). +- Health institutions: SPMC 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. - 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 available". - 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. diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 57b025b..6fc684a 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -5,11 +5,27 @@ "id": 1, "name": "SPMC Cancer Institute", "bgImageURL": "/images/HealthInstitution/spmc-cancer-institute.webp", - "source": "https://www.facebook.com/SouthernPhilippinesMedicalCenter", + "source": "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", "lastVerified": null, - "contacts": [], + "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" + } + ], "branches": [ { "branchID": 1, @@ -80,6 +96,412 @@ "service_schedule": null, "requirements": [], "procedure": [] + }, + { + "serviceID": 4, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 6, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 7, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 8, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 9, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 10, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 11, + "branchIDs": [ + 1 + ], + "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" + } + ], + "requirements": [], + "procedure": [] + } + ] + }, + { + "id": 2, + "name": "Davao Doctors Hospital", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-15", + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(+6382) 222-8000" + }, + { + "contact_id": 2, + "type": "Landline", + "contact_details": "(+6382) 222 - 7948" + }, + { + "contact_id": 3, + "type": "Email", + "contact_details": "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 + ], + "service_name": "Radiation Oncology Department", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Referral letter and a short clinical abstract." + }, + { + "requirement_id": 2, + "requirement_description": "Histopathologic report." + }, + { + "requirement_id": 3, + "requirement_description": "Laboratory and Imaging work-ups with results and radiographs." + }, + { + "requirement_id": 4, + "requirement_description": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + }, + { + "requirement_id": 5, + "requirement_description": "Dental clearance for head and neck tumors." + }, + { + "requirement_id": 6, + "requirement_description": "Steroid coverage for brain and spinal cord irradiation." + } + ], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "service_name": "External Beam Radiation Therapy", + "service_description": "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/" + ], + "service_schedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "6:00am", + "timeOut": "6:00pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "service_name": "Brachytherapy", + "service_description": "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/" + ], + "service_schedule": 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 + ], + "service_name": "In-patient Chemotherapy", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "service_name": "Radioactive Iodine Therapy (RAI)", + "service_description": "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/" + ], + "service_schedule": [ + { + "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 + ], + "service_name": "Long Term Radiotherapy", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] } ] } diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 7d863ae..eec8f1d 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -38,6 +38,171 @@ const REVIEW = { // 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": { + "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 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 @@ -262,6 +427,27 @@ function applyReview(folder, records) { 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.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}`); + } } if (folder === "MedicalSpecialist") { // Decision 6: placeholder faces look like real doctors; no photo until there is a consented one. diff --git a/scripts/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json new file mode 100644 index 0000000..94c8050 --- /dev/null +++ b/scripts/v2-additions/HealthInstitution.json @@ -0,0 +1,226 @@ +{ + "_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.", + "Health_Insti": [ + { + "id": 2, + "name": "Davao Doctors Hospital", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-15", + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(+6382) 222-8000" + }, + { + "contact_id": 2, + "type": "Landline", + "contact_details": "(+6382) 222 - 7948" + }, + { + "contact_id": 3, + "type": "Email", + "contact_details": "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 + ], + "service_name": "Radiation Oncology Department", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "Referral letter and a short clinical abstract." + }, + { + "requirement_id": 2, + "requirement_description": "Histopathologic report." + }, + { + "requirement_id": 3, + "requirement_description": "Laboratory and Imaging work-ups with results and radiographs." + }, + { + "requirement_id": 4, + "requirement_description": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + }, + { + "requirement_id": 5, + "requirement_description": "Dental clearance for head and neck tumors." + }, + { + "requirement_id": 6, + "requirement_description": "Steroid coverage for brain and spinal cord irradiation." + } + ], + "procedure": [] + }, + { + "serviceID": 2, + "branchIDs": [ + 1 + ], + "service_name": "External Beam Radiation Therapy", + "service_description": "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/" + ], + "service_schedule": [ + { + "day": "Mondays - Fridays", + "timeIn": "6:00am", + "timeOut": "6:00pm" + } + ], + "requirements": [], + "procedure": [] + }, + { + "serviceID": 3, + "branchIDs": [ + 1 + ], + "service_name": "Brachytherapy", + "service_description": "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/" + ], + "service_schedule": 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 + ], + "service_name": "In-patient Chemotherapy", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + }, + { + "serviceID": 5, + "branchIDs": [ + 1 + ], + "service_name": "Radioactive Iodine Therapy (RAI)", + "service_description": "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/" + ], + "service_schedule": [ + { + "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 + ], + "service_name": "Long Term Radiotherapy", + "service_description": "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/" + ], + "service_schedule": null, + "requirements": [], + "procedure": [] + } + ] + } + ] +} From 1a830fd7eee015148bf3cb480bdee4c009118816 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 11:07:53 +0800 Subject: [PATCH 11/49] v2: SPMC fees from its official Rates and Fees PDF Review decision 13 (Fritz, 2026-11-15, "Accept all"), values as written from https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf (tables "As of August 31, 2022"): - Radiation Therapy (Linear Accelerator): 6 radiation oncology lines with their professional fee ranges (p. 19). - Adult Cancer Clinic and Infusion Unit: Adult Onco Unit room and board (p. 31) and CHEMOTHERAPY (AVERAGE HCI FEES) (p. 88). - Breast Imaging: screening and diagnostic mammogram (p. 57). The PDF link is added to each service's sources. Fees are matched by service name; a renamed service stops the build instead of being skipped. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../HealthInstitution/HealthInstiData.json | 15 +++++---- scripts/convert-v2.mjs | 32 +++++++++++++++++++ 3 files changed, 42 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 633aafc..20c318e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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). - Health institutions: SPMC 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. - 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 available". - 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. diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 6fc684a..f643f14 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -57,9 +57,10 @@ "service_name": "Adult Cancer Clinic and Infusion Unit", "service_description": "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": 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://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" ], "service_schedule": null, "requirements": [], @@ -73,9 +74,10 @@ "service_name": "Radiation Therapy (Linear Accelerator)", "service_description": "The Cancer Institute's linear accelerator (Linac) for radiation therapy started operating with the adult cancer unit in 2018.", "cancerTypes": null, - "fee": 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://www.sunstar.com.ph/more-articles/spmc-inaugurates-adult-cancer-unit", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" ], "service_schedule": null, "requirements": [], @@ -268,9 +270,10 @@ "cancerTypes": [ "Breast Cancer" ], - "fee": null, + "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/radiological-and-imaging-sciences/", + "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" ], "service_schedule": [ { diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index eec8f1d..615869b 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -203,6 +203,26 @@ const REVIEW = { ] } }, + // 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 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 @@ -448,6 +468,18 @@ function applyReview(folder, records) { }))); 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`); + } } if (folder === "MedicalSpecialist") { // Decision 6: placeholder faces look like real doctors; no photo until there is a consented one. From ef57ddc38b0e9780b6bf8e9121979588abc59488 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 11:09:44 +0800 Subject: [PATCH 12/49] v2: rename SPMC Cancer Institute to Southern Philippines Medical Center Review decision 14 (Fritz, 2026-11-15): the record's cancer clinics are in several SPMC departments (Internal Medicine, Surgery, OB-GYN, Pediatrics, Radiology), not only the Cancer Institute. Its description already speaks of the Southern Philippines Medical Center. v1 keeps the old name. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/HealthInstitution/HealthInstiData.json | 2 +- scripts/convert-v2.mjs | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c318e..77f7b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - Lists of `sources`, `cancerTypes`, `lastVerified`, and one fixed list of contact types. - 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). -- Health institutions: SPMC 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. +- 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. - 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 available". diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index f643f14..8dd40bc 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -3,7 +3,7 @@ "Health_Insti": [ { "id": 1, - "name": "SPMC Cancer Institute", + "name": "Southern Philippines Medical Center", "bgImageURL": "/images/HealthInstitution/spmc-cancer-institute.webp", "source": "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.", diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 615869b..e8c35a6 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -44,6 +44,9 @@ const REVIEW = { // 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": [ { @@ -451,6 +454,7 @@ function applyReview(folder, records) { 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; From fdd69a1733560858964f972cd0cb8f93d93b2970 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 11:16:43 +0800 Subject: [PATCH 13/49] v2: add 6 feeds from the Philippine Society of Medical Oncology Feeds review, approved by Fritz 2026-11-15 ("Accept all"). v2-only records (ids 3-8) in scripts/v2-additions/Feeds.json, from https://www.psmo.ph/blog: - NCCN Partners with Philippine Cancer Organizations to Develop Locally Adapted Cancer Treatment Guidelines (19 October 2026) - PANAG-ISTORYA: Conversations that matter in Cancer Care. (Davao City) - A Unified Front in Systemic Care: PSMO Reinforces the National Cancer Alliance - BARANGAYAN GOES TO GINGOOG CITY! - Ano ang Sarcoma? - A Vital Presence at the 1st National Patient Navigation Conference Titles, authors and dates as written (dates in the v2 "DD Month YYYY" format); summaries in our own words; each links to its post. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/Feeds/FeedsData.json | 93 +++++++++++++++++++++++++++++++ scripts/v2-additions/Feeds.json | 98 +++++++++++++++++++++++++++++++++ 3 files changed, 192 insertions(+) create mode 100644 scripts/v2-additions/Feeds.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 77f7b02..fba9972 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - Lists of `sources`, `cancerTypes`, `lastVerified`, and one fixed list of contact types. - 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). +- 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. - 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. - 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"). diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 5ea50da..98df9c9 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -26,6 +26,99 @@ ], "publishDate": "20 November 2025", "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" } ] } diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json new file mode 100644 index 0000000..992ab1a --- /dev/null +++ b/scripts/v2-additions/Feeds.json @@ -0,0 +1,98 @@ +{ + "_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.", + "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" + } + ] +} From 671a75805c4bdd745196a7201c06095c40678a07 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 11:21:47 +0800 Subject: [PATCH 14/49] v2: add 7 Davao City cancer news feeds Feeds review part 2, approved by Fritz 2026-11-15 ("Accept all"). v2-only records (ids 9-15) in scripts/v2-additions/Feeds.json: - Davao City boosts anti cervical cancer drive (davaocity.gov.ph, 4 May 2026) - Free breast cancer-screening available all-year-roundin health centers (davaocity.gov.ph, 23 October 2025) - Davao City logs 197 breast cancer deaths in 2024 (SunStar Davao) - Cervical cancer deaths, screening rates decline (SunStar Davao) - SPMC says child cancer patients skipping treatment down to 2% (davaocity.gov.ph) - Davao City's SPMC now performing non-surgical procedure to remove brain tumors (MindaNews, 10 February 2026) - Malasakit Center eases cancer treatment burden for North Cotabato midwife (Daily Tribune, 26 August 2026) Titles, authors and dates as written; summaries in our own words; each links to its article. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/Feeds/FeedsData.json | 117 +++++++++++++++++++++++++++++++ scripts/v2-additions/Feeds.json | 119 +++++++++++++++++++++++++++++++- 3 files changed, 236 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fba9972..1d1b03e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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). - 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. - 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"). diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 98df9c9..7952e69 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -119,6 +119,123 @@ ], "publishDate": "30 June 2025", "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" } ] } diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json index 992ab1a..410d668 100644 --- a/scripts/v2-additions/Feeds.json +++ b/scripts/v2-additions/Feeds.json @@ -1,5 +1,5 @@ { - "_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.", + "_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, @@ -93,6 +93,123 @@ ], "publishDate": "30 June 2025", "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "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", + "source": "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" } ] } From 1a728b6cbe9441aa7e48a573764ba355c21e2a18 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 15:28:04 +0800 Subject: [PATCH 15/49] v2: where to go for PhilHealth, PCSO and DOH; fix AMUMA's landline Money-help offices review, approved by Fritz 2026-11-15 ("Accept all"): - PhilHealth (review decision 15 in convert-v2.mjs): LHIO Davao City, PhilHealth Express Calinan and Toril, and OSSCO Gaisano Mall Davao, as written in https://www.philhealth.gov.ph/about_us/directory (PRO XI); eGovPH Super App (https://e.gov.ph/) as a main contact and as YAKAP's applicationURL. - PCSO (scripts/v2-additions): Davao del Sur Branch and Mindanao Department from PCSO's Mindanao directory; applicationURL https://onlinemap.pcso.gov.ph/; a first step listing the online, PCSO office and hospital PCSO/Malasakit options, with PCSO's advisory that MAP in some areas is only through hospitals with a Malasakit Center. - DOH MAIFIP (scripts/v2-additions): branches named DOH MAIP and Malasakit Center; first step: the hospital's Malasakit Center or Medical Social Work Unit. Online via eGovPH not added (no official source yet). - AMUMA: removed (082) 295-2133, which PhilHealth's directory lists as PhilHealth Regional Office XI's trunkline. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 + .../FinancialInstiData.json | 129 ++++++++++++++++-- data-v2/SupportGroups/SupportGroupsData.json | 5 - scripts/convert-v2.mjs | 53 +++++++ .../v2-additions/FinancialInstitution.json | 61 +++++++-- 5 files changed, 219 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d1b03e..e5efaaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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 del Sur Branch and Mindanao Department, 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. +- 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 available". - 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. diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 5a9938f..cf22f19 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -14,13 +14,18 @@ "contact_id": 1, "type": "Hotline", "contact_details": "(02) 866-225-88" + }, + { + "contact_id": 2, + "type": "Website", + "contact_details": "https://e.gov.ph/" } ], "branches": [ { "branchID": 1, - "branchName": null, - "location": "Valgosons Building, Bolton Extension, Poblacion, Davao City", + "branchName": "Local Health Insurance Office (LHIO) Davao City", + "location": "Valgosons Bldg., Bolton Ext., Poblacion District, Davao City, Davao del Sur", "latitude": 7.0655, "longitude": 125.6128, "schedule": [ @@ -34,12 +39,67 @@ { "contact_id": 1, "type": "Landline", - "contact_details": "(082) 295-2133" + "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" + } + ] + }, + { + "branchID": 2, + "branchName": "PhilHealth Express Calinan", + "location": "Old Barangay Hall beside Police Station, Aurora-Quezon St., Calinan, Davao City", + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contact_id": 1, + "type": "Email", + "contact_details": "pro11.fod.ossco@gmail.com" + } + ] + }, + { + "branchID": 3, + "branchName": "PhilHealth Express Toril", + "location": "Urban Health Center A, Agton St., Toril, Davao City, Davao del Sur", + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contact_id": 1, + "type": "Mobile", + "contact_details": "0955 986 0938" }, { "contact_id": 2, "type": "Email", - "contact_details": "publicaffairs.pro11@philhealth.gov.ph" + "contact_details": "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", + "latitude": null, + "longitude": null, + "schedule": [], + "contacts": [ + { + "contact_id": 1, + "type": "Email", + "contact_details": "pro11.fod.ossco@gmail.com" } ] } @@ -68,7 +128,7 @@ "Colorectal Cancer", "Lung Cancer" ], - "applicationURL": null, + "applicationURL": "https://e.gov.ph/", "sources": [ "https://www.philhealth.gov.ph/yakap/" ], @@ -317,12 +377,32 @@ "branches": [ { "branchID": 1, - "branchName": null, - "location": "Cabaguio Davao City (near NSO Office)", + "branchName": "Davao del Sur Branch", + "location": "G/F Maharlika Bldg., JP Cabaguio Ave., Davao City", "latitude": null, "longitude": null, "schedule": null, "contacts": [] + }, + { + "branchID": 2, + "branchName": "Mindanao Department", + "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 282-0305" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "mindanao@pcso.gov.ph" + } + ] } ], "programs": [ @@ -336,9 +416,11 @@ "cancerTypes": [ "All cancers" ], - "applicationURL": null, + "applicationURL": "https://onlinemap.pcso.gov.ph/", "sources": [ - "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx" + "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": [ { @@ -387,22 +469,26 @@ "procedure": [ { "step": 1, - "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." + "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to a PCSO office (the Davao del Sur Branch or the Mindanao Department in Davao City), 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": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." + "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." }, { "step": 3, - "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." }, { "step": 4, - "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + "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." } ] @@ -421,12 +507,21 @@ "branches": [ { "branchID": 1, - "branchName": null, + "branchName": "DOH MAIP", "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", "latitude": null, "longitude": null, "schedule": null, "contacts": [] + }, + { + "branchID": 2, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] } ], "programs": [ @@ -475,10 +570,14 @@ "procedure": [ { "step": 1, - "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." }, { "step": 2, + "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + }, + { + "step": 3, "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." } ] diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index b8eb982..4d4ee48 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -23,11 +23,6 @@ "contact_id": 1, "type": "Mobile", "contact_details": "09384376090" - }, - { - "contact_id": 2, - "type": "Landline", - "contact_details": "(082) 295-2133" } ] }, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index e8c35a6..3f113a8 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -206,6 +206,35 @@ const REVIEW = { ] } }, + // 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). @@ -441,6 +470,25 @@ function applyReview(folder, records) { 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") { @@ -494,6 +542,11 @@ function applyReview(folder, records) { 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). diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 8e97d5f..e02e123 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -1,5 +1,5 @@ { - "_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.", + "_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).", "Financial_Insti": [ { "id": 5, @@ -13,12 +13,32 @@ "branches": [ { "branchID": 1, - "branchName": null, - "location": "Cabaguio Davao City (near NSO Office)", + "branchName": "Davao del Sur Branch", + "location": "G/F Maharlika Bldg., JP Cabaguio Ave., Davao City", "latitude": null, "longitude": null, "schedule": null, "contacts": [] + }, + { + "branchID": 2, + "branchName": "Mindanao Department", + "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "(082) 282-0305" + }, + { + "contact_id": 2, + "type": "Email", + "contact_details": "mindanao@pcso.gov.ph" + } + ] } ], "programs": [ @@ -32,9 +52,11 @@ "cancerTypes": [ "All cancers" ], - "applicationURL": null, + "applicationURL": "https://onlinemap.pcso.gov.ph/", "sources": [ - "https://www.pcso.gov.ph/ProgramsAndServices/CAD/MedicalAccessProgram.aspx" + "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": [ { @@ -83,22 +105,26 @@ "procedure": [ { "step": 1, - "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." + "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to a PCSO office (the Davao del Sur Branch or the Mindanao Department in Davao City), 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": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." + "instruction": "Go to www.pcso.gov.ph, select \"E-Services\", then \"Online MAP Application\", and create an account." }, { "step": 3, - "instruction": "Click \"Apply Now\", choose the partner health facility, its city and the type of request, then get a queuing number." + "instruction": "Log in with your name, date of birth and email, and enter the one-time code sent to your email." }, { "step": 4, - "instruction": "Upload all required documents as PDF files (not more than 2MB each) and submit the application." + "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." } ] @@ -117,12 +143,21 @@ "branches": [ { "branchID": 1, - "branchName": null, + "branchName": "DOH MAIP", "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", "latitude": null, "longitude": null, "schedule": null, "contacts": [] + }, + { + "branchID": 2, + "branchName": "Malasakit Center", + "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] } ], "programs": [ @@ -171,10 +206,14 @@ "procedure": [ { "step": 1, - "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." }, { "step": 2, + "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + }, + { + "step": 3, "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." } ] From 03ed75419784ed0c88e91261f5d833a335c47971 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Sun, 15 Nov 2026 15:32:17 +0800 Subject: [PATCH 16/49] v2: DOH MAIFIP online option, eMAIFIP in the eGovPH app Approved by Fritz 2026-11-15 (money-help offices review, part 2): - applicationURL https://e.gov.ph/ (eGovPH) - Step 1: the hospital's Malasakit Center or Medical Social Work Unit, or eMAIFIP in the eGovPH app (started in DOH hospitals, being extended to LGU hospitals). - Sources added: PTV News, 21 August 2026 (DBM: funding supports eMAIFIP through the eGovPH superapp) and SunStar/PNA, 4 September 2026 (eMAIFIP rolled out in DOH hospitals, now extended to LGU-run facilities). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/FinancialInstitution/FinancialInstiData.json | 8 +++++--- scripts/v2-additions/FinancialInstitution.json | 8 +++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5efaaf..ed5d6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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 del Sur Branch and Mindanao Department, 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. +- 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 del Sur Branch and Mindanao Department, 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 available". diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index cf22f19..2347675 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -536,11 +536,13 @@ "cancerTypes": [ "All cancers" ], - "applicationURL": null, + "applicationURL": "https://e.gov.ph/", "sources": [ "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", - "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/" + "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", + "https://ptvnews.ph/?p=251764", + "https://www.sunstar.com.ph/manila/doh-expands-emaifip-to-lgu-hospitals-32k-patients-served-in-1-month" ], "benefits": [ { @@ -570,7 +572,7 @@ "procedure": [ { "step": 1, - "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital, or apply online through eMAIFIP in the eGovPH app. eMAIFIP started in DOH hospitals and is being extended to LGU hospitals." }, { "step": 2, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index e02e123..64f23f2 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -172,11 +172,13 @@ "cancerTypes": [ "All cancers" ], - "applicationURL": null, + "applicationURL": "https://e.gov.ph/", "sources": [ "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", - "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/" + "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", + "https://ptvnews.ph/?p=251764", + "https://www.sunstar.com.ph/manila/doh-expands-emaifip-to-lgu-hospitals-32k-patients-served-in-1-month" ], "benefits": [ { @@ -206,7 +208,7 @@ "procedure": [ { "step": 1, - "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital, or apply online through eMAIFIP in the eGovPH app. eMAIFIP started in DOH hospitals and is being extended to LGU hospitals." }, { "step": 2, From 0137a0d1c055b0085f1f8d0f3830f45b9fa3b986 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Mon, 16 Nov 2026 08:25:07 +0800 Subject: [PATCH 17/49] v2: show "Not given" for null or empty values "Not given" is friendlier for a health app and matches what CancerLine already shows. Chosen on 16 Nov 2026. Changes the v2 schemas, the v2 spec and docs text, v2 scripts, and the v2 lines in CHANGELOG and MILESTONES. v1 docs are not changed. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- MILESTONES.md | 2 +- data-v2/Feeds/FeedsData.schema.json | 2 +- .../FinancialInstiData.schema.json | 10 +++++----- data-v2/HealthInstitution/HealthInstiData.schema.json | 8 ++++---- .../MedicalSpecialistData.schema.json | 6 +++--- data-v2/SupportGroups/SupportGroupsData.schema.json | 6 +++--- scripts/build-openapi.mjs | 4 ++-- scripts/build-site.mjs | 2 +- scripts/convert-v2.mjs | 2 +- scripts/missing-v2.mjs | 6 +++--- 11 files changed, 25 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5d6ac..e41344f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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 del Sur Branch and Mindanao Department, 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 available". +- 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. 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/Feeds/FeedsData.schema.json b/data-v2/Feeds/FeedsData.schema.json index 4b45a11..55fbc6a 100644 --- a/data-v2/Feeds/FeedsData.schema.json +++ b/data-v2/Feeds/FeedsData.schema.json @@ -2,7 +2,7 @@ "$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 available yet: apps should show \"Not available\".", + "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": { diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 2a90642..707b66f 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -2,7 +2,7 @@ "$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 available yet: apps should show \"Not available\".", + "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": { @@ -67,7 +67,7 @@ "type": "string" }, "uniqueItems": true, - "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not available\")." + "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not given\")." }, "program_description": { "type": "string" @@ -262,7 +262,7 @@ "type": "null" } ], - "description": "Open days and hours. null if not known (show \"Not available\")." + "description": "Open days and hours. null if not known (show \"Not given\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -286,7 +286,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." }, "cancerTypes": { "type": [ @@ -298,7 +298,7 @@ }, "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 available\")." + "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\")." }, "lastVerified": { "type": [ diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index c49a2dc..288c4ed 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -2,7 +2,7 @@ "$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 available yet: apps should show \"Not available\".", + "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": { @@ -245,7 +245,7 @@ "type": "null" } ], - "description": "Open days and hours. null if not known (show \"Not available\")." + "description": "Open days and hours. null if not known (show \"Not given\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -269,7 +269,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." }, "cancerTypes": { "type": [ @@ -281,7 +281,7 @@ }, "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 available\")." + "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\")." }, "lastVerified": { "type": [ diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json index 11f96d1..40e7d8a 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -2,7 +2,7 @@ "$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 available yet: apps should show \"Not available\".", + "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": { @@ -79,7 +79,7 @@ "Appointment only", "Walk-in and appointment" ], - "description": "How patients are seen. null if not known (show \"Not available\")." + "description": "How patients are seen. null if not known (show \"Not given\")." }, "contacts": { "$ref": "#/$defs/contacts" @@ -195,7 +195,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." }, "lastVerified": { "type": [ diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json index 0604e07..ef392e8 100644 --- a/data-v2/SupportGroups/SupportGroupsData.schema.json +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -2,7 +2,7 @@ "$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 available yet: apps should show \"Not available\".", + "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": { @@ -162,7 +162,7 @@ "format": "uri" }, "uniqueItems": true, - "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not available\")." + "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." }, "cancerTypes": { "type": [ @@ -174,7 +174,7 @@ }, "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 available\")." + "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\")." }, "lastVerified": { "type": [ diff --git a/scripts/build-openapi.mjs b/scripts/build-openapi.mjs index 5c29d86..af22d4a 100644 --- a/scripts/build-openapi.mjs +++ b/scripts/build-openapi.mjs @@ -17,7 +17,7 @@ const DESCRIPTIONS = { 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 available\").", + 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.", }, }; @@ -29,7 +29,7 @@ const INTRO = { 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`, `cancerTypes`, `lastVerified`, 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 available\".**", + "- **A `null`, empty text or empty list means \"Not given\".**", "", ], }, diff --git a/scripts/build-site.mjs b/scripts/build-site.mjs index 30eadca..e781786 100644 --- a/scripts/build-site.mjs +++ b/scripts/build-site.mjs @@ -101,7 +101,7 @@ if (existsSync(DATA_V2)) { 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 available\".", + 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", diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 3f113a8..035224d 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -1,6 +1,6 @@ // 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 available" in apps). +// 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] diff --git a/scripts/missing-v2.mjs b/scripts/missing-v2.mjs index 4068517..0eedc08 100644 --- a/scripts/missing-v2.mjs +++ b/scripts/missing-v2.mjs @@ -1,4 +1,4 @@ -// Lists every value in data-v2/ that is not available yet (null or an empty list/text), +// 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"; @@ -90,9 +90,9 @@ section("Feeds", FD.map((r) => ({ ...r, label: `#${r.id} ${r.title}` })), (r) => check("Feed", r.title, r, ["bgImageURL", "tags", "content", "authors", "source"])); 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 available yet) +console.log(`# Missing data in v2 (not given yet) -${total} values are not available yet. In the data they are \`null\` or empty; apps show "Not available". +${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 | From 9f0da39f3885e9dfef97ee782ec3be67622cc6b1 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Mon, 16 Nov 2026 09:09:13 +0800 Subject: [PATCH 18/49] v2: DOH Cancer Assistance Fund and CSPMAP; Z Benefits facilities feed - DOH (id 6): add Cancer Assistance Fund (CAF, 606002) and the Cancer and Supportive-Palliative Medicines Access Program (CSPMAP, 606003), and name both in the DOH description. CAF: 8 priority cancer types and who it is for, as written in DOH-DBM JMC 2023-001; up to P150,000 (Daily Tribune, 6 July 2026; PTV, 24 May 2025); documents shown to the hospital social worker (PTV; Philstar, 14 November 2022); Southern Philippines Medical Center is the Davao City access site (Tribune). CSPMAP: free medicines not yet covered by PhilHealth (JMC 2023-001); 35 sites and 61 medicines (DOH-WHO release, 14 February 2024). Eligibility, requirements and steps are not given by an official source. - Feeds: add id 16, PhilHealth's "Contracted Health facilities for Z Benefit Packages as of Septemeber 30, 2026" (title as written). In Davao City: SPMC for all 6 cancer packages, Davao Doctors Hospital for breast cancer. Approved by Fritz on 2026-11-16 ("Accept all"). Co-Authored-By: Claude Opus 5.5 --- data-v2/Feeds/FeedsData.json | 18 +++++ .../FinancialInstiData.json | 76 ++++++++++++++++++- scripts/v2-additions/Feeds.json | 18 +++++ .../v2-additions/FinancialInstitution.json | 76 ++++++++++++++++++- 4 files changed, 186 insertions(+), 2 deletions(-) diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 7952e69..2d205cf 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -236,6 +236,24 @@ ], "publishDate": "26 August 2026", "source": "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", + "source": "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" } ] } diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 2347675..5c63388 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -500,7 +500,7 @@ "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", "source": "https://doh.gov.ph/", - "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", + "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", "lastVerified": "2026-11-13", "contacts": [], @@ -583,6 +583,80 @@ "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." } ] + }, + { + "programID": 606002, + "program_name": "Cancer Assistance Fund (CAF)", + "eligibility": [ + "Persons with cancer, cancer survivors and high-risk individuals", + "For the eight priority cancer types" + ], + "program_description": "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide", + "https://ptvnews.ph/pbbm-to-doh-expedite-cancer-fund-request/", + "https://www.philstar.com/headlines/2022/11/14/2223750/how-cancer-patients-survivors-can-access-assistance-fund" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Diagnostic procedures, medicines and treatment", + "amount": "Up to P150,000" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "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, + "program_name": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "eligibility": [], + "program_description": "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://www.who.int/philippines/news/detail/14-02-2024-doh--who-launch-2024-2028-national-integrated-cancer-control-program-(niccp)-strategic-framework" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Free medicines not yet covered by PhilHealth", + "amount": "Free" + } + ], + "requirements": [], + "procedure": [] } ] } diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json index 410d668..00ec923 100644 --- a/scripts/v2-additions/Feeds.json +++ b/scripts/v2-additions/Feeds.json @@ -210,6 +210,24 @@ ], "publishDate": "26 August 2026", "source": "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", + "source": "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" } ] } diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 64f23f2..2503acd 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -136,7 +136,7 @@ "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", "source": "https://doh.gov.ph/", - "description": "National government department for health. Its MAIFIP program helps pay the medical bills of patients who cannot afford them.", + "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", "lastVerified": "2026-11-13", "contacts": [], @@ -219,6 +219,80 @@ "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." } ] + }, + { + "programID": 606002, + "program_name": "Cancer Assistance Fund (CAF)", + "eligibility": [ + "Persons with cancer, cancer survivors and high-risk individuals", + "For the eight priority cancer types" + ], + "program_description": "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide", + "https://ptvnews.ph/pbbm-to-doh-expedite-cancer-fund-request/", + "https://www.philstar.com/headlines/2022/11/14/2223750/how-cancer-patients-survivors-can-access-assistance-fund" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Diagnostic procedures, medicines and treatment", + "amount": "Up to P150,000" + } + ], + "requirements": [ + { + "requirement_id": 1, + "requirement_description": "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, + "program_name": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "eligibility": [], + "program_description": "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://www.who.int/philippines/news/detail/14-02-2024-doh--who-launch-2024-2028-national-integrated-cancer-control-program-(niccp)-strategic-framework" + ], + "benefits": [ + { + "benefit_id": 1, + "benefit_name": "Free medicines not yet covered by PhilHealth", + "amount": "Free" + } + ], + "requirements": [], + "procedure": [] } ] } From 9aa517f88f671cc9fa7c3e3155f4a5e08ea3f010 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Mon, 16 Nov 2026 09:12:16 +0800 Subject: [PATCH 19/49] v2: one PCSO Davao City Branch and DOH Office Davao City (Fritz's names) - PCSO (id 5): "Mindanao Department" renamed "Davao City Branch" (same address and contacts); "Davao del Sur Branch" removed. Step 1 now says "go to the PCSO Davao City Branch". - DOH (id 6): branch 1 "DOH MAIP" renamed "DOH Office Davao City". Fritz's own edit, moved from data-v2 into scripts/v2-additions so a rebuild keeps it. Note: the PCSO directory writes "Mindanao Department", and the Davao Doctors page writes "DOH MAIP". Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstitution/FinancialInstiData.json | 15 +++------------ scripts/v2-additions/FinancialInstitution.json | 15 +++------------ 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 5c63388..d14cbd1 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -377,16 +377,7 @@ "branches": [ { "branchID": 1, - "branchName": "Davao del Sur Branch", - "location": "G/F Maharlika Bldg., JP Cabaguio Ave., Davao City", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, - "branchName": "Mindanao Department", + "branchName": "Davao City Branch", "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", "latitude": null, "longitude": null, @@ -469,7 +460,7 @@ "procedure": [ { "step": 1, - "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to a PCSO office (the Davao del Sur Branch or the Mindanao Department in Davao City), 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." + "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, @@ -507,7 +498,7 @@ "branches": [ { "branchID": 1, - "branchName": "DOH MAIP", + "branchName": "DOH Office Davao City", "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", "latitude": null, "longitude": null, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 2503acd..33b56fa 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -13,16 +13,7 @@ "branches": [ { "branchID": 1, - "branchName": "Davao del Sur Branch", - "location": "G/F Maharlika Bldg., JP Cabaguio Ave., Davao City", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, - "branchName": "Mindanao Department", + "branchName": "Davao City Branch", "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", "latitude": null, "longitude": null, @@ -105,7 +96,7 @@ "procedure": [ { "step": 1, - "instruction": "Apply online through the Online MAP Application (steps 2 to 6), or go to a PCSO office (the Davao del Sur Branch or the Mindanao Department in Davao City), 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." + "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, @@ -143,7 +134,7 @@ "branches": [ { "branchID": 1, - "branchName": "DOH MAIP", + "branchName": "DOH Office Davao City", "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", "latitude": null, "longitude": null, From 82f890d8034b7d36a9521a0cbc3c93aa3c4205fe Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Mon, 16 Nov 2026 09:22:02 +0800 Subject: [PATCH 20/49] v2: feeds 17 and 18, PhilHealth cancer screening and YAKAP lists - Feed 17: "List of Accredited Providers for Selected Outpatient Cancer Screening Tests for CY 2026 Updated as of September 30, 2026" (PhilHealth). 415 providers; 6 in Davao City; Southern Philippines Medical Center is accredited for all six tests. - Feed 18: "List of Accredited YAKAP Clinics for CY 2026 Updated as of September 30, 2026" (PhilHealth). 4,138 clinics; 56 in Davao City (22 government, 34 private). Titles as written; publishDate is each list's "as of" date. Summaries in our own words. Approved by Fritz on 2026-11-16 ("Accept both"). Co-Authored-By: Claude Opus 5.5 --- data-v2/Feeds/FeedsData.json | 34 +++++++++++++++++++++++++++++++++ scripts/v2-additions/Feeds.json | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 2d205cf..5dd6faa 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -254,6 +254,40 @@ ], "publishDate": "30 September 2026", "source": "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", + "source": "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", + "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" } ] } diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json index 00ec923..d8ef4e6 100644 --- a/scripts/v2-additions/Feeds.json +++ b/scripts/v2-additions/Feeds.json @@ -228,6 +228,40 @@ ], "publishDate": "30 September 2026", "source": "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", + "source": "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", + "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" } ] } From 57ea5d86ba17579656a0d49e335fabc43c14cc74 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 09:51:14 +0800 Subject: [PATCH 21/49] v2: hospital coverage, linked to money-help programs - Schema: new required "coverage" list on each health institution: programID (a money-help programs[].programID, or null when that program is not in the API), name (as written), details, sources. - Southern Philippines Medical Center (decision 16 in convert-v2.mjs): Z Benefits (6 cancer packages, PhilHealth contracted list, 30 Sept 2026), selected outpatient cancer screening tests and YAKAP (PhilHealth accredited lists, 30 Sept 2026), Cancer Assistance Fund (Daily Tribune, 6 July 2026), MAIFIP (SunStar/PIA Davao, 2026). - Davao Doctors Hospital (v2-additions): Z Benefits for breast cancer (PhilHealth contracted list); LINGAP, DSWD, PCSO and DOH MAIP from the hospital's accredited assistance page (as of November 2024). DOH MAIP links to MAIFIP (older name). Approved by Fritz on 2026-11-19 (shape "A: linked", "Accept all"). Co-Authored-By: Claude Opus 5.5 --- .../HealthInstitution/HealthInstiData.json | 84 +++++++++++++++++++ .../HealthInstiData.schema.json | 40 ++++++++- scripts/convert-v2.mjs | 46 ++++++++++ scripts/v2-additions/HealthInstitution.json | 42 ++++++++++ 4 files changed, 211 insertions(+), 1 deletion(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 8dd40bc..eba2fcd 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -285,6 +285,48 @@ "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 36 DOH Cancer Assistance Fund access sites (July 2026).", + "sources": [ + "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + ] + }, + { + "programID": 606001, + "name": "MAIFIP", + "details": "Cancer patients at SPMC have used MAIFIP for laboratories, CT scans, procedures and medicines (2026).", + "sources": [ + "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families" + ] + } ] }, { @@ -506,6 +548,48 @@ "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": "DOH MAIP – Department of Health", + "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/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index 288c4ed..2df50f5 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -117,6 +117,43 @@ ], "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": [ @@ -129,7 +166,8 @@ "lastVerified", "contacts", "branches", - "services" + "services", + "coverage" ], "additionalProperties": false } diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 035224d..773d0a2 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -255,6 +255,44 @@ const REVIEW = { }, }, }, + // 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 36 DOH Cancer Assistance Fund access sites (July 2026).", + sources: ["https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide"], + }, + { + programID: 606001, + name: "MAIFIP", + details: "Cancer patients at SPMC have used MAIFIP for laboratories, CT scans, procedures and medicines (2026).", + sources: ["https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families"], + }, + ], + }, // 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 @@ -532,6 +570,13 @@ function applyReview(folder, records) { } log(`${r.name}: fees for ${Object.keys(byName).length} services`); } + // 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. @@ -654,6 +699,7 @@ function instiTop(r, p) { requirements: s.requirements, procedure: s.procedure, })), + coverage: [], }))); } diff --git a/scripts/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json index 94c8050..df80847 100644 --- a/scripts/v2-additions/HealthInstitution.json +++ b/scripts/v2-additions/HealthInstitution.json @@ -220,6 +220,48 @@ "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": "DOH MAIP – Department of Health", + "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/" + ] + } ] } ] From 0fec3dc0be4eb7dbbeddb2386426eaf7d9faa6eb Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:17:34 +0800 Subject: [PATCH 22/49] v2: Accommodation dataset, places to stay near the hospitals - New v2 dataset /v2/Accommodation/AccommodationData.json with its schema: places where cancer patients and companions can stay, with branches, contacts, eligibility, cost, provides, capacity, sources, and hospitalIDs linking each place to the hospitals it serves. - Records (scripts/v2-additions/Accommodation.json, decision 17): House of Hope (kidsofhope.org; SunStar 2019; St. Jude 2023), Balay Dalangpan (South Cotabato provincial site, 17 March 2025), SPMC's Capernaum (SunStar, 16 October 2023), and Red Planet Davao (its official page). Paid places only with an official page giving the address and a nearby hospital. - validate.mjs: hospital coverage programIDs and accommodation hospitalIDs must point to records that exist. - CHANGELOG: v2 section brought up to date (CAF and CSPMAP, branch names, feeds 16 to 18, coverage, Accommodation). - Test: the v2 list has 6 datasets. Approved by Fritz on 2026-11-19 ("A: new dataset", "Add paid places too", "Accept all"). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +- data-v2/Accommodation/AccommodationData.json | 179 ++++++++++ .../AccommodationData.schema.json | 318 ++++++++++++++++++ scripts/convert-v2.mjs | 6 + scripts/v2-additions/Accommodation.json | 178 ++++++++++ scripts/validate.mjs | 26 ++ worker/test/worker.test.mjs | 2 +- 7 files changed, 714 insertions(+), 2 deletions(-) create mode 100644 data-v2/Accommodation/AccommodationData.json create mode 100644 data-v2/Accommodation/AccommodationData.schema.json create mode 100644 scripts/v2-additions/Accommodation.json diff --git a/CHANGELOG.md b/CHANGELOG.md index e41344f..b358f7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,12 +16,17 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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 del Sur Branch and Mindanao Department, 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). +- 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, linked by `hospitalIDs`. Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: Red Planet Davao. Paid places are added only with an official page that gives the address and a nearby hospital. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json new file mode 100644 index 0000000..1f790a7 --- /dev/null +++ b/data-v2/Accommodation/AccommodationData.json @@ -0,0 +1,179 @@ +{ + "$schema": "./AccommodationData.schema.json", + "Accommodation": [ + { + "id": 1, + "name": "House of Hope", + "bgImageURL": "", + "source": "https://www.kidsofhope.org", + "description": "Temporary lodging for young cancer patients treated at Southern Philippines Medical Center, and their families. Over 200 pediatric cancer patients come to the SPMC Cancer Institute each year, from Mindanao and also Central Visayas and Bicol.", + "type": "Halfway house", + "operator": "House of Hope Foundation for Kids with Cancer Inc.", + "lastVerified": "2026-11-19", + "contacts": [ + { + "contact_id": 1, + "type": "Email", + "contact_details": "contact@kidsofhope.org" + }, + { + "contact_id": 2, + "type": "Mobile", + "contact_details": "0977 329 8496" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": "House of Hope (SPMC compound)", + "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + }, + { + "branchID": 2, + "branchName": "Margarita Village halfway house", + "location": "Margarita Village along J.P. Laurel Avenue, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "young cancer patients seeking medical treatment inside the SPMC" + ], + "cost": null, + "provides": [], + "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", + "requirements": [], + "procedure": [], + "sources": [ + "https://www.kidsofhope.org/contactus", + "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", + "https://www.sunstar.com.ph/davao/local-news/duterte-donates-house-to-house-of-hope", + "https://www.stjude.org/inspire/series/around-the-world/philippines-dr-mae-dolendo-mindanao-house-of-hope-foundation.html" + ] + }, + { + "id": 2, + "name": "Balay Dalangpan", + "bgImageURL": "", + "source": "https://southcotabato.gov.ph/?p=134350", + "description": "Free temporary shelter in Davao City for South Cotabato patients receiving care at Southern Philippines Medical Center, and their caregivers, for those who cannot afford to rent a boarding house.", + "type": "Shelter", + "operator": "An ancestral home of the Tamayo family, kept open by South Cotabato Governor Reynaldo S. Tamayo, Jr.", + "lastVerified": "2026-11-19", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Balay Dalangpan", + "location": "Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", + "Patients from South Cotabato" + ], + "cost": "Free", + "provides": [ + "Free water, electricity, and ambulance services for patient transport between South Cotabato and Davao City" + ], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://southcotabato.gov.ph/?p=134350" + ] + }, + { + "id": 3, + "name": "Capernaum", + "bgImageURL": "", + "source": "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series", + "description": "Care facility inside the SPMC compound. Cancer patients coming from far away are offered free board and lodging.", + "type": "Care facility", + "operator": "Southern Philippines Medical Center", + "lastVerified": "2026-11-19", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Capernaum", + "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "Cancer patients coming from afar" + ], + "cost": "Free board and lodging", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" + ] + }, + { + "id": 4, + "name": "Red Planet Davao", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-19", + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "+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", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.redplanethotels.com/hotel/red-planet-davao" + ] + } + ] +} diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json new file mode 100644 index 0000000..54d476c --- /dev/null +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -0,0 +1,318 @@ +{ + "$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 places with an official page. 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." + }, + "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" + }, + "source": { + "type": "string", + "description": "Main page of the place, or the best page about it.", + "format": "uri" + }, + "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." + }, + "lastVerified": { + "$ref": "#/$defs/lastVerified" + }, + "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." + }, + "hospitalIDs": { + "type": "array", + "items": { + "type": "integer" + }, + "uniqueItems": true, + "minItems": 1, + "description": "The hospitals it serves or is near: ids in HealthInstiData (Health_Insti[].id)." + }, + "eligibility": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "Who can stay, one rule per item, as written by the source. Empty if not given (show \"Not given\"), or if it is open to the public." + }, + "cost": { + "type": [ + "string", + "null" + ], + "description": "Cost as written, e.g. 'Free'. null if not given." + }, + "provides": { + "type": "array", + "items": { + "type": "string" + }, + "uniqueItems": true, + "description": "What is given besides the room, e.g. water, electricity, transport, as written. Empty if not given." + }, + "capacity": { + "type": [ + "string", + "null" + ], + "description": "Rooms, beds or families, as written. null if not given." + }, + "requirements": { + "$ref": "#/$defs/requirements" + }, + "procedure": { + "$ref": "#/$defs/procedure" + }, + "sources": { + "$ref": "#/$defs/sources" + } + }, + "required": [ + "id", + "name", + "bgImageURL", + "source", + "description", + "type", + "operator", + "lastVerified", + "contacts", + "branches", + "hospitalIDs", + "eligibility", + "cost", + "provides", + "capacity", + "requirements", + "procedure", + "sources" + ], + "additionalProperties": false + } + } + }, + "required": [ + "Accommodation" + ], + "additionalProperties": false, + "$defs": { + "contact": { + "type": "object", + "properties": { + "contact_id": { + "type": "integer" + }, + "type": { + "type": "string", + "enum": [ + "Hotline", + "Landline", + "Mobile", + "Email", + "Website", + "Facebook", + "Other" + ], + "description": "Kind of contact. One fixed list for all datasets." + }, + "contact_details": { + "type": "string" + } + }, + "required": [ + "contact_id", + "type", + "contact_details" + ], + "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" + }, + "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." + }, + "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", + "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\")." + }, + "lastVerified": { + "type": [ + "null", + "string" + ], + "format": "date", + "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." + }, + "requirements": { + "type": "array", + "items": { + "type": "object", + "properties": { + "requirement_id": { + "type": "integer" + }, + "requirement_description": { + "type": "string" + } + }, + "required": [ + "requirement_id", + "requirement_description" + ], + "additionalProperties": false + } + }, + "procedure": { + "type": "array", + "items": { + "type": "object", + "properties": { + "step": { + "type": "integer" + }, + "instruction": { + "type": "string" + } + }, + "required": [ + "step", + "instruction" + ], + "additionalProperties": false + } + } + } +} diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 773d0a2..bba39c8 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -757,3 +757,9 @@ const bookingType = (c) => 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/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json new file mode 100644 index 0000000..28b5a4d --- /dev/null +++ b/scripts/v2-additions/Accommodation.json @@ -0,0 +1,178 @@ +{ + "Accommodation": [ + { + "id": 1, + "name": "House of Hope", + "bgImageURL": "", + "source": "https://www.kidsofhope.org", + "description": "Temporary lodging for young cancer patients treated at Southern Philippines Medical Center, and their families. Over 200 pediatric cancer patients come to the SPMC Cancer Institute each year, from Mindanao and also Central Visayas and Bicol.", + "type": "Halfway house", + "operator": "House of Hope Foundation for Kids with Cancer Inc.", + "lastVerified": "2026-11-19", + "contacts": [ + { + "contact_id": 1, + "type": "Email", + "contact_details": "contact@kidsofhope.org" + }, + { + "contact_id": 2, + "type": "Mobile", + "contact_details": "0977 329 8496" + } + ], + "branches": [ + { + "branchID": 1, + "branchName": "House of Hope (SPMC compound)", + "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + }, + { + "branchID": 2, + "branchName": "Margarita Village halfway house", + "location": "Margarita Village along J.P. Laurel Avenue, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "young cancer patients seeking medical treatment inside the SPMC" + ], + "cost": null, + "provides": [], + "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", + "requirements": [], + "procedure": [], + "sources": [ + "https://www.kidsofhope.org/contactus", + "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", + "https://www.sunstar.com.ph/davao/local-news/duterte-donates-house-to-house-of-hope", + "https://www.stjude.org/inspire/series/around-the-world/philippines-dr-mae-dolendo-mindanao-house-of-hope-foundation.html" + ] + }, + { + "id": 2, + "name": "Balay Dalangpan", + "bgImageURL": "", + "source": "https://southcotabato.gov.ph/?p=134350", + "description": "Free temporary shelter in Davao City for South Cotabato patients receiving care at Southern Philippines Medical Center, and their caregivers, for those who cannot afford to rent a boarding house.", + "type": "Shelter", + "operator": "An ancestral home of the Tamayo family, kept open by South Cotabato Governor Reynaldo S. Tamayo, Jr.", + "lastVerified": "2026-11-19", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Balay Dalangpan", + "location": "Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", + "Patients from South Cotabato" + ], + "cost": "Free", + "provides": [ + "Free water, electricity, and ambulance services for patient transport between South Cotabato and Davao City" + ], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://southcotabato.gov.ph/?p=134350" + ] + }, + { + "id": 3, + "name": "Capernaum", + "bgImageURL": "", + "source": "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series", + "description": "Care facility inside the SPMC compound. Cancer patients coming from far away are offered free board and lodging.", + "type": "Care facility", + "operator": "Southern Philippines Medical Center", + "lastVerified": "2026-11-19", + "contacts": [], + "branches": [ + { + "branchID": 1, + "branchName": "Capernaum", + "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [ + "Cancer patients coming from afar" + ], + "cost": "Free board and lodging", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" + ] + }, + { + "id": 4, + "name": "Red Planet Davao", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-19", + "contacts": [ + { + "contact_id": 1, + "type": "Landline", + "contact_details": "+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", + "latitude": null, + "longitude": null, + "schedule": null, + "contacts": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.redplanethotels.com/hotel/red-planet-davao" + ] + } + ] +} diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 54e4970..2c6fc79 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -107,6 +107,32 @@ if (existsSync(v2Health)) { } } +// ---- v2: links between datasets must point to records that exist ---- +// Hospital coverage -> financial programs (programID, unless null), accommodation -> hospitals (hospitalIDs). +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); +const v2Acc = join("data-v2", "Accommodation", "AccommodationData.json"); +if (v2Fin && v2Hos) { + const programIDs = new Set(v2Fin.Financial_Insti.flatMap(r => (r.programs ?? []).map(p => p.programID))); + for (const h of v2Hos.Health_Insti) { + 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++; + } + } + } +} +const accData = v2Read(v2Acc); +if (accData && v2Hos) { + const hospitalIDs = new Set(v2Hos.Health_Insti.map(h => h.id)); + for (const a of accData.Accommodation) { + for (const id of a.hospitalIDs ?? []) { + if (!hospitalIDs.has(id)) { console.error(`FAIL ${v2Acc}: ${a.name} uses hospitalID ${id}, which no health institution has`); failed++; } + } + } +} + // ---- Images ---- const kb = n => `${Math.round(n / 1024)} KB`; const images = new Set(); diff --git a/worker/test/worker.test.mjs b/worker/test/worker.test.mjs index 7094262..ffe71fa 100644 --- a/worker/test/worker.test.mjs +++ b/worker/test/worker.test.mjs @@ -190,7 +190,7 @@ try { assert.equal(r.headers.get("access-control-allow-origin"), "*"); const body = await r.json(); assert.equal(body.apiVersion, "v2"); - assert.equal(body.datasets.length, 5); + 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) { From c4d628d9c3561991bb9868e0b53465ba13dd9efb Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:36:36 +0800 Subject: [PATCH 23/49] v2: landmark on every branch - The shared branch shape (financial offices, hospitals, places to stay) gets "landmark": a landmark that helps people find the place, as written by a source, or null. Required, right after "location". - convert-v2.mjs (decision 18): every branch gets a landmark (null for now) and the same key order, whether it comes from v1, the review or v2-additions. 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 (was "from Google Maps"). - CHANGELOG: v2 bullet. Approved by Fritz on 2026-11-19 ("A: every v2 branch"). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/Accommodation/AccommodationData.json | 5 +++++ data-v2/Accommodation/AccommodationData.schema.json | 12 ++++++++++-- data-v2/FinancialInstitution/FinancialInstiData.json | 7 +++++++ .../FinancialInstiData.schema.json | 12 ++++++++++-- data-v2/HealthInstitution/HealthInstiData.json | 2 ++ .../HealthInstitution/HealthInstiData.schema.json | 12 ++++++++++-- scripts/convert-v2.mjs | 11 +++++++++++ 8 files changed, 56 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b358f7b..ab6ba36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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, linked by `hospitalIDs`. Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: Red Planet Davao. Paid places are added only with an official page that gives the address and a nearby hospital. +- 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. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index 1f790a7..d465c74 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -27,6 +27,7 @@ "branchID": 1, "branchName": "House of Hope (SPMC compound)", "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -36,6 +37,7 @@ "branchID": 2, "branchName": "Margarita Village halfway house", "location": "Margarita Village along J.P. Laurel Avenue, Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -75,6 +77,7 @@ "branchID": 1, "branchName": "Balay Dalangpan", "location": "Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -114,6 +117,7 @@ "branchID": 1, "branchName": "Capernaum", "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -156,6 +160,7 @@ "branchID": 1, "branchName": "Red Planet Davao", "location": "JP LAUREL AVE., BUHANGIN (POB), BUHANGIN DISTRICT 8000 DAVAO CITY DAVAO DEL SUR PHILIPPINES", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index 54d476c..c7800de 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -219,19 +219,26 @@ "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 (from Google Maps). null if not known." + "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 (from Google Maps). null if not known." + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." }, "schedule": { "anyOf": [ @@ -252,6 +259,7 @@ "branchID", "branchName", "location", + "landmark", "latitude", "longitude", "schedule", diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index d14cbd1..823e44b 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -26,6 +26,7 @@ "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": [ @@ -57,6 +58,7 @@ "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": [], @@ -72,6 +74,7 @@ "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": [], @@ -92,6 +95,7 @@ "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": [], @@ -379,6 +383,7 @@ "branchID": 1, "branchName": "Davao City Branch", "location": "Maharlika Center, J.P Cabagui Avenue, Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -500,6 +505,7 @@ "branchID": 1, "branchName": "DOH Office Davao City", "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -509,6 +515,7 @@ "branchID": 2, "branchName": "Malasakit Center", "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 707b66f..955ef9d 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -239,19 +239,26 @@ "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 (from Google Maps). null if not known." + "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 (from Google Maps). null if not known." + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." }, "schedule": { "anyOf": [ @@ -272,6 +279,7 @@ "branchID", "branchName", "location", + "landmark", "latitude", "longitude", "schedule", diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index eba2fcd..36abdd7 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -31,6 +31,7 @@ "branchID": 1, "branchName": null, "location": "J.P. Laurel Ave, Bajada, Davao City", + "landmark": null, "latitude": 7.099167, "longitude": 125.619722, "schedule": [ @@ -359,6 +360,7 @@ "branchID": 1, "branchName": null, "location": "118 E. Quirino Avenue, Davao City Philippines 8000", + "landmark": null, "latitude": null, "longitude": null, "schedule": [], diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index 2df50f5..d85f71f 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -260,19 +260,26 @@ "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 (from Google Maps). null if not known." + "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 (from Google Maps). null if not known." + "description": "Longitude in decimal degrees (WGS 84), from an official source or an on-site GPS reading. null if not known." }, "schedule": { "anyOf": [ @@ -293,6 +300,7 @@ "branchID", "branchName", "location", + "landmark", "latitude", "longitude", "schedule", diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index bba39c8..7d35760 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -611,8 +611,19 @@ function addV2Only(folder, key, records) { 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]]))); + } +} + function write(folder, file, key, records) { if (!args.includes("--no-review")) { applyReview(folder, records); addV2Only(folder, key, records); } + withLandmarks(records); const out = { $schema: `./${file}.schema.json`, [key]: records }; writeFileSync(join("data-v2", folder, `${file}.json`), JSON.stringify(out, null, 2) + "\n"); console.log(`wrote data-v2/${folder}/${file}.json (${records.length} records)`); From e30ee94521d7c375fb0e4dbb1e02b2b3979e3df2 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:43:49 +0800 Subject: [PATCH 24/49] v2: accommodation landmarks and 9 paid places - Landmarks, as written by the sources: House of Hope (SPMC compound), Capernaum, Red Planet Davao and Park Inn by Radisson Davao. - Paid places (ids 5 to 13): near Southern Philippines Medical Center: Hop Inn Hotel Davao, Seda Abreeza, Park Inn by Radisson Davao, Acacia Hotel Davao; near Davao Doctors Hospital: RedDoorz near Davao Doctors Hospital, Rogen Inn, D'Morvie Suites - Davao, The Bourke Hotel, Apo View Hotel. Addresses as written; no prices or ratings. - Schema: "source" may be null when a place has no website (6 of the 9). - CHANGELOG: Accommodation bullet updated. Approved by Fritz on 2026-11-19 ("Yes, add them", "add also the paid candidates", "A: null, no link"). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/Accommodation/AccommodationData.json | 307 +++++++++++++++++- .../AccommodationData.schema.json | 7 +- scripts/v2-additions/Accommodation.json | 306 +++++++++++++++++ 4 files changed, 616 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab6ba36..bc4dadd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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, linked by `hospitalIDs`. Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: Red Planet Davao. Paid places are added only with an official page that gives the address and a nearby hospital. +- New dataset `Accommodation` (`/v2/Accommodation/AccommodationData.json`): places where patients and companions can stay near the hospitals, linked by `hospitalIDs`. Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. - 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. ### Repo diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index d465c74..1fdccc9 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -27,7 +27,7 @@ "branchID": 1, "branchName": "House of Hope (SPMC compound)", "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", - "landmark": null, + "landmark": "inside the Southern Philippines Medical Center (SPMC)", "latitude": null, "longitude": null, "schedule": null, @@ -117,7 +117,7 @@ "branchID": 1, "branchName": "Capernaum", "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", - "landmark": null, + "landmark": "inside the hospital compound", "latitude": null, "longitude": null, "schedule": null, @@ -160,7 +160,7 @@ "branchID": 1, "branchName": "Red Planet Davao", "location": "JP LAUREL AVE., BUHANGIN (POB), BUHANGIN DISTRICT 8000 DAVAO CITY DAVAO DEL SUR PHILIPPINES", - "landmark": null, + "landmark": "just 2 minutes from SM Lanang Premier", "latitude": null, "longitude": null, "schedule": null, @@ -179,6 +179,307 @@ "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] + }, + { + "id": 5, + "name": "Hop Inn Hotel Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 6, + "name": "Seda Abreeza", + "bgImageURL": "", + "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": "Seda Hotels", + "lastVerified": "2026-11-19", + "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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": "181 refreshed rooms", + "requirements": [], + "procedure": [], + "sources": [ + "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" + ] + }, + { + "id": 7, + "name": "Park Inn by Radisson Davao", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-19", + "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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" + ] + }, + { + "id": 8, + "name": "Acacia Hotel Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 9, + "name": "RedDoorz near Davao Doctors Hospital", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 10, + "name": "Rogen Inn", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Inn", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 11, + "name": "D'Morvie Suites - Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 12, + "name": "The Bourke Hotel", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 13, + "name": "Apo View Hotel", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] } ] } diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index c7800de..da56a74 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -26,8 +26,11 @@ "format": "uri-reference" }, "source": { - "type": "string", - "description": "Main page of the place, or the best page about it.", + "type": [ + "string", + "null" + ], + "description": "The place's own website, or the best page about it. null if it has no website.", "format": "uri" }, "description": { diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index 28b5a4d..06f5c84 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -26,6 +26,7 @@ "branchID": 1, "branchName": "House of Hope (SPMC compound)", "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", + "landmark": "inside the Southern Philippines Medical Center (SPMC)", "latitude": null, "longitude": null, "schedule": null, @@ -35,6 +36,7 @@ "branchID": 2, "branchName": "Margarita Village halfway house", "location": "Margarita Village along J.P. Laurel Avenue, Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -74,6 +76,7 @@ "branchID": 1, "branchName": "Balay Dalangpan", "location": "Davao City", + "landmark": null, "latitude": null, "longitude": null, "schedule": null, @@ -113,6 +116,7 @@ "branchID": 1, "branchName": "Capernaum", "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", + "landmark": "inside the hospital compound", "latitude": null, "longitude": null, "schedule": null, @@ -155,6 +159,7 @@ "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, @@ -173,6 +178,307 @@ "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] + }, + { + "id": 5, + "name": "Hop Inn Hotel Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 6, + "name": "Seda Abreeza", + "bgImageURL": "", + "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": "Seda Hotels", + "lastVerified": "2026-11-19", + "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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": "181 refreshed rooms", + "requirements": [], + "procedure": [], + "sources": [ + "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" + ] + }, + { + "id": 7, + "name": "Park Inn by Radisson Davao", + "bgImageURL": "", + "source": "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", + "lastVerified": "2026-11-19", + "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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid. Rates on the hotel's website.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [ + "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" + ] + }, + { + "id": 8, + "name": "Acacia Hotel Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Southern Philippines Medical Center.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 1 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 9, + "name": "RedDoorz near Davao Doctors Hospital", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 10, + "name": "Rogen Inn", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Inn", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 11, + "name": "D'Morvie Suites - Davao", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 12, + "name": "The Bourke Hotel", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] + }, + { + "id": 13, + "name": "Apo View Hotel", + "bgImageURL": "", + "source": null, + "description": "Paid place to stay near Davao Doctors Hospital.", + "type": "Hotel", + "operator": null, + "lastVerified": 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": [] + } + ], + "hospitalIDs": [ + 2 + ], + "eligibility": [], + "cost": "Paid.", + "provides": [], + "capacity": null, + "requirements": [], + "procedure": [], + "sources": [] } ] } From b65db7c67038d96ec918b94f12a253753be96171 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:46:26 +0800 Subject: [PATCH 25/49] v2: remove hospitalIDs from Accommodation - Schema and all 13 records: "hospitalIDs" removed. "Near a hospital" will come from the distance between branch map points (latitude and longitude), once on-site GPS readings are in. Facts such as "for SPMC patients" stay in "eligibility". - validate.mjs: the accommodation -> hospital link check is removed (the coverage -> program check stays). - CHANGELOG: Accommodation bullet updated. Approved by Fritz on 2026-11-19 ("Remove now"). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/Accommodation/AccommodationData.json | 39 ------------------- .../AccommodationData.schema.json | 10 ----- scripts/v2-additions/Accommodation.json | 39 ------------------- scripts/validate.mjs | 12 +----- 5 files changed, 2 insertions(+), 100 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc4dadd..857ae19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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, linked by `hospitalIDs`. Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. +- New dataset `Accommodation` (`/v2/Accommodation/AccommodationData.json`): places where patients and companions can stay near the hospitals. Apps can sort them by distance from a hospital using the branches' `latitude` and `longitude` (filled in as GPS readings come in). Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. - 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. ### Repo diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index 1fdccc9..c915523 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -44,9 +44,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "young cancer patients seeking medical treatment inside the SPMC" ], @@ -84,9 +81,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", "Patients from South Cotabato" @@ -124,9 +118,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "Cancer patients coming from afar" ], @@ -167,9 +158,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -202,9 +190,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -235,9 +220,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -270,9 +252,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -305,9 +284,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -338,9 +314,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -371,9 +344,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -404,9 +374,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -437,9 +404,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -470,9 +434,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index da56a74..1720177 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -62,15 +62,6 @@ "minItems": 1, "description": "Each house or building where people stay." }, - "hospitalIDs": { - "type": "array", - "items": { - "type": "integer" - }, - "uniqueItems": true, - "minItems": 1, - "description": "The hospitals it serves or is near: ids in HealthInstiData (Health_Insti[].id)." - }, "eligibility": { "type": "array", "items": { @@ -122,7 +113,6 @@ "lastVerified", "contacts", "branches", - "hospitalIDs", "eligibility", "cost", "provides", diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index 06f5c84..ba65578 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -43,9 +43,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "young cancer patients seeking medical treatment inside the SPMC" ], @@ -83,9 +80,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", "Patients from South Cotabato" @@ -123,9 +117,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [ "Cancer patients coming from afar" ], @@ -166,9 +157,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -201,9 +189,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -234,9 +219,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -269,9 +251,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid. Rates on the hotel's website.", "provides": [], @@ -304,9 +283,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 1 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -337,9 +313,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -370,9 +343,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -403,9 +373,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -436,9 +403,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], @@ -469,9 +433,6 @@ "contacts": [] } ], - "hospitalIDs": [ - 2 - ], "eligibility": [], "cost": "Paid.", "provides": [], diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 2c6fc79..42703ba 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -108,11 +108,10 @@ if (existsSync(v2Health)) { } // ---- v2: links between datasets must point to records that exist ---- -// Hospital coverage -> financial programs (programID, unless null), accommodation -> hospitals (hospitalIDs). +// 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); -const v2Acc = join("data-v2", "Accommodation", "AccommodationData.json"); if (v2Fin && v2Hos) { const programIDs = new Set(v2Fin.Financial_Insti.flatMap(r => (r.programs ?? []).map(p => p.programID))); for (const h of v2Hos.Health_Insti) { @@ -123,15 +122,6 @@ if (v2Fin && v2Hos) { } } } -const accData = v2Read(v2Acc); -if (accData && v2Hos) { - const hospitalIDs = new Set(v2Hos.Health_Insti.map(h => h.id)); - for (const a of accData.Accommodation) { - for (const id of a.hospitalIDs ?? []) { - if (!hospitalIDs.has(id)) { console.error(`FAIL ${v2Acc}: ${a.name} uses hospitalID ${id}, which no health institution has`); failed++; } - } - } -} // ---- Images ---- const kb = n => `${Math.round(n / 1024)} KB`; From 448402c06f91c2469c98725d48e86faece1bba19 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:50:32 +0800 Subject: [PATCH 26/49] v2: Accommodation gets amenities; drops eligibility, requirements, provides, procedure - Schema: "eligibility", "requirements", "provides" and "procedure" removed (and the unused requirements/procedure definitions). New "amenities": what the place has or gives, one item each, as written. - Records: who can stay stays in each description. Amenities from the sources: House of Hope (kitchen, common area, play area; SunStar 2019), Balay Dalangpan (free water, free electricity, free ambulance between South Cotabato and Davao City; provincial page, moved from "provides"), Park Inn by Radisson Davao (7 items from its own page). The other 10 places: empty for now. - CHANGELOG: Accommodation bullet updated. Approved by Fritz on 2026-11-19. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/Accommodation/AccommodationData.json | 88 ++++++------------- .../AccommodationData.schema.json | 61 +------------ scripts/v2-additions/Accommodation.json | 88 ++++++------------- 4 files changed, 60 insertions(+), 179 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 857ae19..8b17512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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. Apps can sort them by distance from a hospital using the branches' `latitude` and `longitude` (filled in as GPS readings come in). Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. +- 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), capacity, 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). Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. - 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. ### Repo diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index c915523..8f7ce3d 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -44,14 +44,13 @@ "contacts": [] } ], - "eligibility": [ - "young cancer patients seeking medical treatment inside the SPMC" - ], "cost": null, - "provides": [], + "amenities": [ + "kitchen", + "common area", + "play area" + ], "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", - "requirements": [], - "procedure": [], "sources": [ "https://www.kidsofhope.org/contactus", "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", @@ -81,17 +80,13 @@ "contacts": [] } ], - "eligibility": [ - "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", - "Patients from South Cotabato" - ], "cost": "Free", - "provides": [ - "Free water, electricity, and ambulance services for patient transport between South Cotabato and Davao City" + "amenities": [ + "Free water", + "Free electricity", + "Free ambulance services for patient transport between South Cotabato and Davao City" ], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://southcotabato.gov.ph/?p=134350" ] @@ -118,14 +113,9 @@ "contacts": [] } ], - "eligibility": [ - "Cancer patients coming from afar" - ], "cost": "Free board and lodging", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" ] @@ -158,12 +148,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] @@ -190,12 +177,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -220,12 +204,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "amenities": [], "capacity": "181 refreshed rooms", - "requirements": [], - "procedure": [], "sources": [ "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" ] @@ -252,12 +233,17 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "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" + ], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" ] @@ -284,12 +270,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -314,12 +297,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -344,12 +324,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -374,12 +351,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -404,12 +378,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -434,12 +405,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] } ] diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index 1720177..3501a2d 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -62,14 +62,6 @@ "minItems": 1, "description": "Each house or building where people stay." }, - "eligibility": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true, - "description": "Who can stay, one rule per item, as written by the source. Empty if not given (show \"Not given\"), or if it is open to the public." - }, "cost": { "type": [ "string", @@ -77,13 +69,13 @@ ], "description": "Cost as written, e.g. 'Free'. null if not given." }, - "provides": { + "amenities": { "type": "array", "items": { "type": "string" }, "uniqueItems": true, - "description": "What is given besides the room, e.g. water, electricity, transport, as written. Empty if not given." + "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." }, "capacity": { "type": [ @@ -92,12 +84,6 @@ ], "description": "Rooms, beds or families, as written. null if not given." }, - "requirements": { - "$ref": "#/$defs/requirements" - }, - "procedure": { - "$ref": "#/$defs/procedure" - }, "sources": { "$ref": "#/$defs/sources" } @@ -113,12 +99,9 @@ "lastVerified", "contacts", "branches", - "eligibility", "cost", - "provides", + "amenities", "capacity", - "requirements", - "procedure", "sources" ], "additionalProperties": false @@ -276,44 +259,6 @@ ], "format": "date", "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." - }, - "requirements": { - "type": "array", - "items": { - "type": "object", - "properties": { - "requirement_id": { - "type": "integer" - }, - "requirement_description": { - "type": "string" - } - }, - "required": [ - "requirement_id", - "requirement_description" - ], - "additionalProperties": false - } - }, - "procedure": { - "type": "array", - "items": { - "type": "object", - "properties": { - "step": { - "type": "integer" - }, - "instruction": { - "type": "string" - } - }, - "required": [ - "step", - "instruction" - ], - "additionalProperties": false - } } } } diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index ba65578..6cfc1eb 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -43,14 +43,13 @@ "contacts": [] } ], - "eligibility": [ - "young cancer patients seeking medical treatment inside the SPMC" - ], "cost": null, - "provides": [], + "amenities": [ + "kitchen", + "common area", + "play area" + ], "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", - "requirements": [], - "procedure": [], "sources": [ "https://www.kidsofhope.org/contactus", "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", @@ -80,17 +79,13 @@ "contacts": [] } ], - "eligibility": [ - "Patients and their caregivers who are receiving care at the Southern Philippine Medical Center", - "Patients from South Cotabato" - ], "cost": "Free", - "provides": [ - "Free water, electricity, and ambulance services for patient transport between South Cotabato and Davao City" + "amenities": [ + "Free water", + "Free electricity", + "Free ambulance services for patient transport between South Cotabato and Davao City" ], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://southcotabato.gov.ph/?p=134350" ] @@ -117,14 +112,9 @@ "contacts": [] } ], - "eligibility": [ - "Cancer patients coming from afar" - ], "cost": "Free board and lodging", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" ] @@ -157,12 +147,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] @@ -189,12 +176,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -219,12 +203,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "amenities": [], "capacity": "181 refreshed rooms", - "requirements": [], - "procedure": [], "sources": [ "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" ] @@ -251,12 +232,17 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid. Rates on the hotel's website.", - "provides": [], + "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" + ], "capacity": null, - "requirements": [], - "procedure": [], "sources": [ "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" ] @@ -283,12 +269,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -313,12 +296,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -343,12 +323,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -373,12 +350,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -403,12 +377,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] }, { @@ -433,12 +404,9 @@ "contacts": [] } ], - "eligibility": [], "cost": "Paid.", - "provides": [], + "amenities": [], "capacity": null, - "requirements": [], - "procedure": [], "sources": [] } ] From 5e153bfcb2fbda6b64de4854848557c58e9f8cde Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 15:56:07 +0800 Subject: [PATCH 27/49] v2: Accommodation roomCapacity range; free places on hold - Schema: "capacity" (text) replaced by "roomCapacity" {min, max}: people per room, whole numbers or null. Park Inn by Radisson Davao: max 4 (its page lists "3 adults, 1 child (0-12)" per room). Seda Abreeza's "181 refreshed rooms" moved to its description. - validate.mjs: roomCapacity min can't be above max. - Removed House of Hope (id 1), Balay Dalangpan (id 2) and Capernaum (id 3) until the maintainer talks with them personally. Their records are in git history (448402c and earlier); ids 1 to 3 stay reserved. Accommodation has the 10 paid places (ids 4 to 13). - Schema description and CHANGELOG updated. Approved by Fritz on 2026-11-19 ("A: replace it", removal of the three free places). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- data-v2/Accommodation/AccommodationData.json | 171 +++++------------- .../AccommodationData.schema.json | 34 +++- scripts/v2-additions/Accommodation.json | 171 +++++------------- scripts/validate.mjs | 9 + 5 files changed, 119 insertions(+), 268 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b17512..83a5c5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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), capacity, 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). Free: House of Hope, Balay Dalangpan, SPMC's Capernaum. Paid: 10 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). `source` is `null` when a place has no website. Landmarks for House of Hope (SPMC compound), Capernaum, Red Planet and Park Inn, as written by their sources. +- 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. `source` is `null` 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. ### Repo diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index 8f7ce3d..ec5dd48 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -1,125 +1,6 @@ { "$schema": "./AccommodationData.schema.json", "Accommodation": [ - { - "id": 1, - "name": "House of Hope", - "bgImageURL": "", - "source": "https://www.kidsofhope.org", - "description": "Temporary lodging for young cancer patients treated at Southern Philippines Medical Center, and their families. Over 200 pediatric cancer patients come to the SPMC Cancer Institute each year, from Mindanao and also Central Visayas and Bicol.", - "type": "Halfway house", - "operator": "House of Hope Foundation for Kids with Cancer Inc.", - "lastVerified": "2026-11-19", - "contacts": [ - { - "contact_id": 1, - "type": "Email", - "contact_details": "contact@kidsofhope.org" - }, - { - "contact_id": 2, - "type": "Mobile", - "contact_details": "0977 329 8496" - } - ], - "branches": [ - { - "branchID": 1, - "branchName": "House of Hope (SPMC compound)", - "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", - "landmark": "inside the Southern Philippines Medical Center (SPMC)", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, - "branchName": "Margarita Village halfway house", - "location": "Margarita Village along J.P. Laurel Avenue, Davao City", - "landmark": null, - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": null, - "amenities": [ - "kitchen", - "common area", - "play area" - ], - "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", - "sources": [ - "https://www.kidsofhope.org/contactus", - "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", - "https://www.sunstar.com.ph/davao/local-news/duterte-donates-house-to-house-of-hope", - "https://www.stjude.org/inspire/series/around-the-world/philippines-dr-mae-dolendo-mindanao-house-of-hope-foundation.html" - ] - }, - { - "id": 2, - "name": "Balay Dalangpan", - "bgImageURL": "", - "source": "https://southcotabato.gov.ph/?p=134350", - "description": "Free temporary shelter in Davao City for South Cotabato patients receiving care at Southern Philippines Medical Center, and their caregivers, for those who cannot afford to rent a boarding house.", - "type": "Shelter", - "operator": "An ancestral home of the Tamayo family, kept open by South Cotabato Governor Reynaldo S. Tamayo, Jr.", - "lastVerified": "2026-11-19", - "contacts": [], - "branches": [ - { - "branchID": 1, - "branchName": "Balay Dalangpan", - "location": "Davao City", - "landmark": null, - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": "Free", - "amenities": [ - "Free water", - "Free electricity", - "Free ambulance services for patient transport between South Cotabato and Davao City" - ], - "capacity": null, - "sources": [ - "https://southcotabato.gov.ph/?p=134350" - ] - }, - { - "id": 3, - "name": "Capernaum", - "bgImageURL": "", - "source": "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series", - "description": "Care facility inside the SPMC compound. Cancer patients coming from far away are offered free board and lodging.", - "type": "Care facility", - "operator": "Southern Philippines Medical Center", - "lastVerified": "2026-11-19", - "contacts": [], - "branches": [ - { - "branchID": 1, - "branchName": "Capernaum", - "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", - "landmark": "inside the hospital compound", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": "Free board and lodging", - "amenities": [], - "capacity": null, - "sources": [ - "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" - ] - }, { "id": 4, "name": "Red Planet Davao", @@ -150,7 +31,10 @@ ], "cost": "Paid. Rates on the hotel's website.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] @@ -179,7 +63,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -187,7 +74,7 @@ "name": "Seda Abreeza", "bgImageURL": "", "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", - "description": "Paid place to stay near Southern Philippines Medical Center.", + "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", "type": "Hotel", "operator": "Seda Hotels", "lastVerified": "2026-11-19", @@ -206,7 +93,10 @@ ], "cost": "Paid. Rates on the hotel's website.", "amenities": [], - "capacity": "181 refreshed rooms", + "roomCapacity": { + "min": null, + "max": null + }, "sources": [ "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" ] @@ -243,7 +133,10 @@ "VANDA restaurant", "24/7 DASH self-service counter" ], - "capacity": null, + "roomCapacity": { + "min": null, + "max": 4 + }, "sources": [ "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" ] @@ -272,7 +165,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -299,7 +195,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -326,7 +225,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -353,7 +255,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -380,7 +285,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -407,7 +315,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] } ] diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index 3501a2d..ea79d62 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -2,7 +2,7 @@ "$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 places with an official page. A null value or an empty list means the information is not given yet: apps should show \"Not given\".", + "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": { @@ -77,12 +77,32 @@ "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." }, - "capacity": { - "type": [ - "string", - "null" + "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" ], - "description": "Rooms, beds or families, as written. null if not given." + "additionalProperties": false }, "sources": { "$ref": "#/$defs/sources" @@ -101,7 +121,7 @@ "branches", "cost", "amenities", - "capacity", + "roomCapacity", "sources" ], "additionalProperties": false diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index 6cfc1eb..7ec291c 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -1,124 +1,5 @@ { "Accommodation": [ - { - "id": 1, - "name": "House of Hope", - "bgImageURL": "", - "source": "https://www.kidsofhope.org", - "description": "Temporary lodging for young cancer patients treated at Southern Philippines Medical Center, and their families. Over 200 pediatric cancer patients come to the SPMC Cancer Institute each year, from Mindanao and also Central Visayas and Bicol.", - "type": "Halfway house", - "operator": "House of Hope Foundation for Kids with Cancer Inc.", - "lastVerified": "2026-11-19", - "contacts": [ - { - "contact_id": 1, - "type": "Email", - "contact_details": "contact@kidsofhope.org" - }, - { - "contact_id": 2, - "type": "Mobile", - "contact_details": "0977 329 8496" - } - ], - "branches": [ - { - "branchID": 1, - "branchName": "House of Hope (SPMC compound)", - "location": "Southern Philippines Medical Center Compound, J. P. Laurel Avenue, Poblacion Buhangin, Davao City, Davao del Sur 8000", - "landmark": "inside the Southern Philippines Medical Center (SPMC)", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, - "branchName": "Margarita Village halfway house", - "location": "Margarita Village along J.P. Laurel Avenue, Davao City", - "landmark": null, - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": null, - "amenities": [ - "kitchen", - "common area", - "play area" - ], - "capacity": "SPMC house: four bedrooms, three bathrooms, a kitchen, a common area, and a play area (2019). Up to three families share one room (2023).", - "sources": [ - "https://www.kidsofhope.org/contactus", - "https://www.sunstar.com.ph/davao/local-news/newly-refurbished-house-of-hope-opened", - "https://www.sunstar.com.ph/davao/local-news/duterte-donates-house-to-house-of-hope", - "https://www.stjude.org/inspire/series/around-the-world/philippines-dr-mae-dolendo-mindanao-house-of-hope-foundation.html" - ] - }, - { - "id": 2, - "name": "Balay Dalangpan", - "bgImageURL": "", - "source": "https://southcotabato.gov.ph/?p=134350", - "description": "Free temporary shelter in Davao City for South Cotabato patients receiving care at Southern Philippines Medical Center, and their caregivers, for those who cannot afford to rent a boarding house.", - "type": "Shelter", - "operator": "An ancestral home of the Tamayo family, kept open by South Cotabato Governor Reynaldo S. Tamayo, Jr.", - "lastVerified": "2026-11-19", - "contacts": [], - "branches": [ - { - "branchID": 1, - "branchName": "Balay Dalangpan", - "location": "Davao City", - "landmark": null, - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": "Free", - "amenities": [ - "Free water", - "Free electricity", - "Free ambulance services for patient transport between South Cotabato and Davao City" - ], - "capacity": null, - "sources": [ - "https://southcotabato.gov.ph/?p=134350" - ] - }, - { - "id": 3, - "name": "Capernaum", - "bgImageURL": "", - "source": "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series", - "description": "Care facility inside the SPMC compound. Cancer patients coming from far away are offered free board and lodging.", - "type": "Care facility", - "operator": "Southern Philippines Medical Center", - "lastVerified": "2026-11-19", - "contacts": [], - "branches": [ - { - "branchID": 1, - "branchName": "Capernaum", - "location": "Inside the Southern Philippines Medical Center compound, J.P. Laurel Ave., Bajada, Davao City", - "landmark": "inside the hospital compound", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - } - ], - "cost": "Free board and lodging", - "amenities": [], - "capacity": null, - "sources": [ - "https://www.sunstar.com.ph/davao/breast-cancer-patients-journey-2nd-of-two-part-series" - ] - }, { "id": 4, "name": "Red Planet Davao", @@ -149,7 +30,10 @@ ], "cost": "Paid. Rates on the hotel's website.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [ "https://www.redplanethotels.com/hotel/red-planet-davao" ] @@ -178,7 +62,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -186,7 +73,7 @@ "name": "Seda Abreeza", "bgImageURL": "", "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", - "description": "Paid place to stay near Southern Philippines Medical Center.", + "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", "type": "Hotel", "operator": "Seda Hotels", "lastVerified": "2026-11-19", @@ -205,7 +92,10 @@ ], "cost": "Paid. Rates on the hotel's website.", "amenities": [], - "capacity": "181 refreshed rooms", + "roomCapacity": { + "min": null, + "max": null + }, "sources": [ "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" ] @@ -242,7 +132,10 @@ "VANDA restaurant", "24/7 DASH self-service counter" ], - "capacity": null, + "roomCapacity": { + "min": null, + "max": 4 + }, "sources": [ "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" ] @@ -271,7 +164,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -298,7 +194,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -325,7 +224,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -352,7 +254,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -379,7 +284,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] }, { @@ -406,7 +314,10 @@ ], "cost": "Paid.", "amenities": [], - "capacity": null, + "roomCapacity": { + "min": null, + "max": null + }, "sources": [] } ] diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 42703ba..78b20bb 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -123,6 +123,15 @@ if (v2Fin && v2Hos) { } } +// ---- 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++; + } +} + // ---- Images ---- const kb = n => `${Math.round(n / 1024)} KB`; const images = new Set(); From 33245f32f7be67f9f19c9239c6a12351c4b9a3c9 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 16:01:21 +0800 Subject: [PATCH 28/49] v2: meta block in every data file - All 6 v2 data files start with "meta": title, description, apiVersion, lastUpdated, recordCount, coverage, language, license (CC0-1.0) and its link, publisher, contact (GitHub issues) and the schema path. The records key stays where it was. - convert-v2.mjs (decision 19): writes meta. lastUpdated changes only when the records change (Philippine time); a file without meta yet takes the date of its last Git commit. - Schemas: meta required, with its own rules. - validate.mjs: meta.recordCount must match the records in the file. - CHANGELOG: v2 bullet. Approved by Fritz on 2026-11-19 ("A: inside each file"). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/Accommodation/AccommodationData.json | 14 ++++ .../AccommodationData.schema.json | 72 +++++++++++++++++++ data-v2/Feeds/FeedsData.json | 14 ++++ data-v2/Feeds/FeedsData.schema.json | 72 +++++++++++++++++++ .../FinancialInstiData.json | 14 ++++ .../FinancialInstiData.schema.json | 72 +++++++++++++++++++ .../HealthInstitution/HealthInstiData.json | 14 ++++ .../HealthInstiData.schema.json | 72 +++++++++++++++++++ .../MedicalSpecialistData.json | 14 ++++ .../MedicalSpecialistData.schema.json | 72 +++++++++++++++++++ data-v2/SupportGroups/SupportGroupsData.json | 14 ++++ .../SupportGroupsData.schema.json | 72 +++++++++++++++++++ scripts/convert-v2.mjs | 49 ++++++++++++- scripts/validate.mjs | 14 ++++ 15 files changed, 577 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83a5c5f..31474fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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. `source` is `null` 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. The records key stays where it was, so code that reads the records doesn't change. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index ec5dd48..47794e0 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -1,5 +1,19 @@ { "$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-19", + "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, diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index ea79d62..087668e 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -9,6 +9,77 @@ "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": { @@ -129,6 +200,7 @@ } }, "required": [ + "meta", "Accommodation" ], "additionalProperties": false, diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 5dd6faa..7a0c677 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -1,5 +1,19 @@ { "$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-16", + "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, diff --git a/data-v2/Feeds/FeedsData.schema.json b/data-v2/Feeds/FeedsData.schema.json index 55fbc6a..0d9a86c 100644 --- a/data-v2/Feeds/FeedsData.schema.json +++ b/data-v2/Feeds/FeedsData.schema.json @@ -9,6 +9,77 @@ "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": { @@ -80,6 +151,7 @@ } }, "required": [ + "meta", "Feed" ], "additionalProperties": false, diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 823e44b..e92c58f 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -1,5 +1,19 @@ { "$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-19", + "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" + }, "Financial_Insti": [ { "id": 1, diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 955ef9d..7b6e3c6 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -9,6 +9,77 @@ "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 + }, "Financial_Insti": { "type": "array", "items": { @@ -153,6 +224,7 @@ } }, "required": [ + "meta", "Financial_Insti" ], "additionalProperties": false, diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 36abdd7..fa9dd12 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -1,5 +1,19 @@ { "$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-19", + "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": "./HealthInstiData.schema.json" + }, "Health_Insti": [ { "id": 1, diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index d85f71f..16a62dd 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -9,6 +9,77 @@ "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 + }, "Health_Insti": { "type": "array", "items": { @@ -174,6 +245,7 @@ } }, "required": [ + "meta", "Health_Insti" ], "additionalProperties": false, diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index 254cacf..2b74d77 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -1,5 +1,19 @@ { "$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-15", + "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" + }, "Medical_Specialist": [ { "id": 1, diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json index 40e7d8a..dfce078 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -9,6 +9,77 @@ "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 + }, "Medical_Specialist": { "type": "array", "items": { @@ -118,6 +189,7 @@ } }, "required": [ + "meta", "Medical_Specialist" ], "additionalProperties": false, diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index 4d4ee48..8e3ec9c 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -1,5 +1,19 @@ { "$schema": "./SupportGroupsData.schema.json", + "meta": { + "title": "Support groups", + "description": "Cancer support groups for patients, survivors and families.", + "apiVersion": "v2", + "lastUpdated": "2026-11-15", + "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" + }, "Support_Group": [ { "id": 1, diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json index ef392e8..8900ec1 100644 --- a/data-v2/SupportGroups/SupportGroupsData.schema.json +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -9,6 +9,77 @@ "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 + }, "Support_Group": { "type": "array", "items": { @@ -115,6 +186,7 @@ } }, "required": [ + "meta", "Support_Group" ], "additionalProperties": false, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 7d35760..a67c6e9 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -10,6 +10,7 @@ // --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; @@ -621,12 +622,54 @@ function withLandmarks(records) { } } +// 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); - const out = { $schema: `./${file}.schema.json`, [key]: records }; - writeFileSync(join("data-v2", folder, `${file}.json`), JSON.stringify(out, null, 2) + "\n"); - console.log(`wrote data-v2/${folder}/${file}.json (${records.length} records)`); + 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 ---- diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 78b20bb..6288e13 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -132,6 +132,20 @@ for (const a of v2Read(v2Acc)?.Accommodation ?? []) { } } +// ---- 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(); From 139ed47e14cfa90d504fc2459f813146862ca504 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 16:15:17 +0800 Subject: [PATCH 29/49] v2: remove lastVerified from Accommodation records - Schema and all 10 records: "lastVerified" removed (and its unused definition). The file's meta.lastUpdated stays. Other datasets keep their own lastVerified. Approved by Fritz on 2026-11-19. Co-Authored-By: Claude Opus 5.5 --- data-v2/Accommodation/AccommodationData.json | 10 ---------- data-v2/Accommodation/AccommodationData.schema.json | 12 ------------ scripts/v2-additions/Accommodation.json | 10 ---------- 3 files changed, 32 deletions(-) diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index 47794e0..e1e37a3 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -23,7 +23,6 @@ "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", - "lastVerified": "2026-11-19", "contacts": [ { "contact_id": 1, @@ -61,7 +60,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -91,7 +89,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", "type": "Hotel", "operator": "Seda Hotels", - "lastVerified": "2026-11-19", "contacts": [], "branches": [ { @@ -123,7 +120,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": "Park Inn by Radisson", - "lastVerified": "2026-11-19", "contacts": [], "branches": [ { @@ -163,7 +159,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -193,7 +188,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -223,7 +217,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Inn", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -253,7 +246,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -283,7 +275,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -313,7 +304,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index 087668e..6f822d5 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -118,9 +118,6 @@ ], "description": "Who runs it, as written by the source. null if not given." }, - "lastVerified": { - "$ref": "#/$defs/lastVerified" - }, "contacts": { "$ref": "#/$defs/contacts", "description": "Organization contacts only (no personal numbers of private people). Branch contacts are inside each branch." @@ -187,7 +184,6 @@ "description", "type", "operator", - "lastVerified", "contacts", "branches", "cost", @@ -343,14 +339,6 @@ }, "uniqueItems": true, "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." - }, - "lastVerified": { - "type": [ - "null", - "string" - ], - "format": "date", - "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." } } } diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index 7ec291c..da5ae71 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -8,7 +8,6 @@ "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", - "lastVerified": "2026-11-19", "contacts": [ { "contact_id": 1, @@ -46,7 +45,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -76,7 +74,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center. 181 refreshed rooms.", "type": "Hotel", "operator": "Seda Hotels", - "lastVerified": "2026-11-19", "contacts": [], "branches": [ { @@ -108,7 +105,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": "Park Inn by Radisson", - "lastVerified": "2026-11-19", "contacts": [], "branches": [ { @@ -148,7 +144,6 @@ "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -178,7 +173,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -208,7 +202,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Inn", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -238,7 +231,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -268,7 +260,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { @@ -298,7 +289,6 @@ "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, - "lastVerified": null, "contacts": [], "branches": [ { From b8e6d74d546e1d3d40d300601eac55d2190b20db Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Thu, 19 Nov 2026 16:19:56 +0800 Subject: [PATCH 30/49] v2: remove lastVerified from every dataset - Schemas (financial help, hospitals, specialists, support groups): "lastVerified" removed with its unused definition. Each file's meta.lastUpdated is the only date. - convert-v2.mjs no longer writes it; v2-additions no longer carry it. - missing-v2.mjs, the v2 OpenAPI description and the CHANGELOG are updated to match. Approved by Fritz on 2026-11-19. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- .../FinancialInstiData.json | 3 -- .../FinancialInstiData.schema.json | 12 ------- .../HealthInstitution/HealthInstiData.json | 2 -- .../HealthInstiData.schema.json | 12 ------- .../MedicalSpecialistData.json | 31 +------------------ .../MedicalSpecialistData.schema.json | 12 ------- data-v2/SupportGroups/SupportGroupsData.json | 4 +-- .../SupportGroupsData.schema.json | 12 ------- scripts/build-openapi.mjs | 4 +-- scripts/convert-v2.mjs | 10 ++---- scripts/missing-v2.mjs | 5 ++- .../v2-additions/FinancialInstitution.json | 2 -- scripts/v2-additions/HealthInstitution.json | 1 - 14 files changed, 10 insertions(+), 102 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31474fa..8ac36cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ 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). - 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. diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index e92c58f..a4be9ec 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -22,7 +22,6 @@ "source": "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", - "lastVerified": null, "contacts": [ { "contact_id": 1, @@ -390,7 +389,6 @@ "source": "https://www.pcso.gov.ph/", "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", - "lastVerified": "2026-11-13", "contacts": [], "branches": [ { @@ -512,7 +510,6 @@ "source": "https://doh.gov.ph/", "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", - "lastVerified": "2026-11-13", "contacts": [], "branches": [ { diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 7b6e3c6..862604b 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -107,9 +107,6 @@ "type": { "type": "string" }, - "lastVerified": { - "$ref": "#/$defs/lastVerified" - }, "contacts": { "$ref": "#/$defs/contacts", "description": "Main contacts of the whole institution, e.g. a national hotline. Branch contacts are inside each branch." @@ -214,7 +211,6 @@ "source", "description", "type", - "lastVerified", "contacts", "branches", "programs" @@ -380,14 +376,6 @@ "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\")." }, - "lastVerified": { - "type": [ - "null", - "string" - ], - "format": "date", - "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." - }, "requirements": { "type": "array", "items": { diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index fa9dd12..dd98e60 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -22,7 +22,6 @@ "source": "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", - "lastVerified": null, "contacts": [ { "contact_id": 1, @@ -351,7 +350,6 @@ "source": "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", - "lastVerified": "2026-11-15", "contacts": [ { "contact_id": 1, diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index 16a62dd..d3d75e4 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -107,9 +107,6 @@ "type": { "type": "string" }, - "lastVerified": { - "$ref": "#/$defs/lastVerified" - }, "contacts": { "$ref": "#/$defs/contacts", "description": "Main contacts of the whole institution, e.g. a national hotline. Branch contacts are inside each branch." @@ -234,7 +231,6 @@ "source", "description", "type", - "lastVerified", "contacts", "branches", "services", @@ -401,14 +397,6 @@ "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\")." }, - "lastVerified": { - "type": [ - "null", - "string" - ], - "format": "date", - "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." - }, "requirements": { "type": "array", "items": { diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index 2b74d77..f647af1 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -4,7 +4,7 @@ "title": "Medical specialists", "description": "Cancer doctors in Davao City, with their clinics, schedules and booking.", "apiVersion": "v2", - "lastUpdated": "2026-11-15", + "lastUpdated": "2026-11-19", "recordCount": 29, "coverage": "Davao City, Philippines", "language": "en", @@ -25,7 +25,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -70,7 +69,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -156,7 +154,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -222,7 +219,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -329,7 +325,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -390,7 +385,6 @@ "sources": [ "https://seriousmd.com/doc/jay-r-enojo" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -446,7 +440,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -532,7 +525,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -608,7 +600,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -648,7 +639,6 @@ "sources": [ "https://seriousmd.com/doc/charmaine-catherine-valdez" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -744,7 +734,6 @@ "sources": [ "https://seriousmd.com/doc/aaron-paul-punzalan" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -897,7 +886,6 @@ "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": "https://seriousmd.com/doc/mlatayan?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D2", "sources": [], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -969,7 +957,6 @@ "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" ], - "lastVerified": null, "clinics": [ { "clinicID": 1, @@ -1114,7 +1101,6 @@ "sources": [ "https://ddh.com.ph/doctors/lapus-felycette-gay-m-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1160,7 +1146,6 @@ "sources": [ "https://ddh.com.ph/doctors/demegillo-kenny-jun-n-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1216,7 +1201,6 @@ "sources": [ "https://ddh.com.ph/doctors/abarquez-honey-sarita-j-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1272,7 +1256,6 @@ "sources": [ "https://ddh.com.ph/doctors/mangaoil-james-edward-r-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1328,7 +1311,6 @@ "sources": [ "https://ddh.com.ph/doctors/chiu-roland-victor-a-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1426,7 +1408,6 @@ "sources": [ "https://ddh.com.ph/doctors/flavier-carol-marjorie-p-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1482,7 +1463,6 @@ "sources": [ "https://ddh.com.ph/doctors/rayel-concepcion-d-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1538,7 +1518,6 @@ "sources": [ "https://ddh.com.ph/doctors/garcia-manuel-r-jr-m-d/" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1594,7 +1573,6 @@ "sources": [ "https://brokenshiremed.com/doctors-directory" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1629,7 +1607,6 @@ "sources": [ "https://brokenshiremed.com/doctors-directory" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1659,7 +1636,6 @@ "sources": [ "https://brokenshiremed.com/doctors-directory" ], - "lastVerified": "2026-11-10", "clinics": [ { "clinicID": 1, @@ -1694,7 +1670,6 @@ "sources": [ "https://seriousmd.com/doc/anna-mariel-rivera" ], - "lastVerified": "2026-11-14", "clinics": [ { "clinicID": 1, @@ -1770,7 +1745,6 @@ "sources": [ "https://seriousmd.com/doc/jeannine-anjelica-ledesma" ], - "lastVerified": "2026-11-14", "clinics": [ { "clinicID": 1, @@ -1846,7 +1820,6 @@ "sources": [ "https://seriousmd.com/doc/rongabrantes" ], - "lastVerified": "2026-11-14", "clinics": [ { "clinicID": 1, @@ -1942,7 +1915,6 @@ "sources": [ "https://seriousmd.com/doc/kristine-kamille-nietolorenzo" ], - "lastVerified": "2026-11-14", "clinics": [ { "clinicID": 1, @@ -2030,7 +2002,6 @@ "sources": [ "https://seriousmd.com/doc/adrianlorenzo" ], - "lastVerified": "2026-11-14", "clinics": [ { "clinicID": 1, diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json index dfce078..9dddac0 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -108,9 +108,6 @@ "sources": { "$ref": "#/$defs/sources" }, - "lastVerified": { - "$ref": "#/$defs/lastVerified" - }, "clinics": { "type": "array", "items": { @@ -181,7 +178,6 @@ "description", "imageURL", "sources", - "lastVerified", "clinics" ], "additionalProperties": false @@ -268,14 +264,6 @@ }, "uniqueItems": true, "description": "Links to the pages these facts come from. Empty if no source is given (show \"Not given\")." - }, - "lastVerified": { - "type": [ - "null", - "string" - ], - "format": "date", - "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." } } } diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index 8e3ec9c..5eafbaa 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -4,7 +4,7 @@ "title": "Support groups", "description": "Cancer support groups for patients, survivors and families.", "apiVersion": "v2", - "lastUpdated": "2026-11-15", + "lastUpdated": "2026-11-19", "recordCount": 2, "coverage": "Davao City, Philippines", "language": "en", @@ -31,7 +31,6 @@ ], "meetingSchedule": null, "sources": [], - "lastVerified": null, "contacts": [ { "contact_id": 1, @@ -62,7 +61,6 @@ "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" ], - "lastVerified": "2026-11-10", "contacts": [ { "contact_id": 1, diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json index 8900ec1..8922f18 100644 --- a/data-v2/SupportGroups/SupportGroupsData.schema.json +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -157,9 +157,6 @@ "sources": { "$ref": "#/$defs/sources" }, - "lastVerified": { - "$ref": "#/$defs/lastVerified" - }, "contacts": { "$ref": "#/$defs/contacts" } @@ -178,7 +175,6 @@ "founders", "meetingSchedule", "sources", - "lastVerified", "contacts" ], "additionalProperties": false @@ -247,14 +243,6 @@ "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\")." - }, - "lastVerified": { - "type": [ - "null", - "string" - ], - "format": "date", - "description": "Date the record was last checked against its sources, YYYY-MM-DD. null if not known." } } } diff --git a/scripts/build-openapi.mjs b/scripts/build-openapi.mjs index af22d4a..98eb32c 100644 --- a/scripts/build-openapi.mjs +++ b/scripts/build-openapi.mjs @@ -28,7 +28,7 @@ const INTRO = { 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`, `cancerTypes`, `lastVerified`, benefit `amount`, clinic `bookingType`, and `eligibility` as a list. No loan programs; PCSO and DOH added.", + "- **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\".**", "", ], @@ -41,7 +41,7 @@ const errorResponse = description => ({ }); // Keep the schema as written, minus keys that only make sense in a standalone file. -// Local $refs (like "#/$defs/lastVerified", used by the v2 schemas) point into the +// 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; diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index a67c6e9..99e6e25 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -4,9 +4,9 @@ // // Usage (from the repo root): // node scripts/convert-v2.mjs [--provenance /provenance] -// --provenance is optional. When given, it adds two things that were -// reviewed at import time: lastVerified = the "retrieved" date of records -// that were added from a source, and support group sources. +// --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"; @@ -21,7 +21,6 @@ const prov = (folder) => { const p = join(provDir, `${folder}.json`); return existsSync(p) ? read(p) : {}; }; -const lastVerified = (p, id) => (p[id]?.action === "added" && p[id]?.retrieved) || null; const list = (v) => (v === null || v === undefined || v === "" ? [] : [v]); // ---- Fritz's review decisions (2026-11-13) ---- @@ -700,7 +699,6 @@ function instiTop(r, p) { source: r.source, description: r.description, type: r.type, - lastVerified: lastVerified(p, r.id), // 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: [], @@ -775,7 +773,6 @@ const bookingType = (c) => description: r.description, imageURL: r.imageURL, sources: list(r.source), - lastVerified: lastVerified(p, r.id), clinics: r.clinics.map((c) => ({ clinicID: c.clinicid, clinicName: c.clinicName, @@ -807,7 +804,6 @@ const bookingType = (c) => founders: list(r.founder), meetingSchedule: null, sources: [...new Set((p[r.id]?.sources ?? []).map((s) => s.url).filter(Boolean))], - lastVerified: lastVerified(p, r.id), contacts: r.contacts, }))); } diff --git a/scripts/missing-v2.mjs b/scripts/missing-v2.mjs index 0eedc08..4b74133 100644 --- a/scripts/missing-v2.mjs +++ b/scripts/missing-v2.mjs @@ -20,7 +20,6 @@ const WHERE = { sources: "the official page the facts come from", amount: "the official circular or program page", fee: "the hospital's billing office or price list", - lastVerified: "set the date when someone checks the record against its sources", 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", @@ -59,7 +58,7 @@ function section(dataset, records, fn) { } const insti = (dataset, r, extra) => [ - ...check(dataset, r.name, r, ["bgImageURL", "lastVerified", "contacts"]), + ...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, ]; @@ -77,7 +76,7 @@ section("Health institutions", H.map((r) => ({ ...r, label: `#${r.id} ${r.name}` const M = read("data-v2/MedicalSpecialist/MedicalSpecialistData.json").Medical_Specialist; section("Medical specialists", M.map((r) => ({ ...r, label: `#${r.id} ${r.firstname} ${r.lastname}` })), (r) => [ - ...check("Specialist", r.lastname, r, ["description", "imageURL", "sources", "lastVerified"]), + ...check("Specialist", r.lastname, r, ["description", "imageURL", "sources"]), ...r.clinics.flatMap((c) => check("Specialist", r.lastname, c, ["latitude", "longitude", "bookingType", "contacts", "schedule"], `${c.clinicName} › `)), ]); diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 33b56fa..aad472e 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -8,7 +8,6 @@ "source": "https://www.pcso.gov.ph/", "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", - "lastVerified": "2026-11-13", "contacts": [], "branches": [ { @@ -129,7 +128,6 @@ "source": "https://doh.gov.ph/", "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", - "lastVerified": "2026-11-13", "contacts": [], "branches": [ { diff --git a/scripts/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json index df80847..603b339 100644 --- a/scripts/v2-additions/HealthInstitution.json +++ b/scripts/v2-additions/HealthInstitution.json @@ -8,7 +8,6 @@ "source": "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", - "lastVerified": "2026-11-15", "contacts": [ { "contact_id": 1, From 71f8804ff1d470e348374ff00c367fd45be7cc0f Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 08:22:52 +0800 Subject: [PATCH 31/49] v2: carry specialist #12 fixes over from v1 Same fixes as main's PRs #14 and #15, applied to data-v2: - imageURL had his SeriousMD profile link; now "" (no photo without consent) - sources was empty; now https://seriousmd.com/doc/mlatayan (checked 2026-11-16: "Dr. MICHAEL JONATHAN LATAYAN, Davao City, Urology") - clinic "Latayan Urology Clinic DMSF" is now "Davao Medical School Foundation Hospital", as his SeriousMD page names it AMUMA's wrong landline is already gone in v2. Co-Authored-By: Claude Opus 5.5 --- data-v2/MedicalSpecialist/MedicalSpecialistData.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index f647af1..01baad4 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -884,8 +884,10 @@ "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": "https://seriousmd.com/doc/mlatayan?referrer=NSWEB&origin=https%3A%2F%2Fnowserving.ph%2Fsearch%2F%3Flocations%3DDavao%2520City%2C%2520Davao%2520del%2520Sur%26name%3Doncology%26page%3D2", - "sources": [], + "imageURL": "", + "sources": [ + "https://seriousmd.com/doc/mlatayan" + ], "clinics": [ { "clinicID": 1, @@ -910,7 +912,7 @@ }, { "clinicID": 2, - "clinicName": "Latayan Urology Clinic DMSF", + "clinicName": "Davao Medical School Foundation Hospital", "location": "Bajada, Davao City", "latitude": null, "longitude": null, From bcc7405ee55e598ade567f79253e3807bb45afdf Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 08:25:06 +0800 Subject: [PATCH 32/49] v2: specialist #27 Online Clinic bookingType is not given Romulo Ong Abrantes (#27) had bookingType "Walk-in and appointment" on his Online Clinic. His SeriousMD page (https://seriousmd.com/doc/rongabrantes, checked 2026-11-27) gives no booking type for the online clinic, and walk-in can't apply online. Now null ("Not given"). His Quirino Avenue clinic keeps "Walk-in and appointment" (page: walk-in Mon/Wed/Fri, appointment Tue/Thu/Sat). Co-Authored-By: Claude Opus 5.5 --- data-v2/MedicalSpecialist/MedicalSpecialistData.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index 01baad4..7f04ac3 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -1870,7 +1870,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { From 11fb7ddb002240ce3b3c6459d22dcc96ebfaf7c9 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 08:30:09 +0800 Subject: [PATCH 33/49] v2: online clinics' bookingType is not given Eight specialists' Online Clinic had a bookingType that their SeriousMD pages don't give (checked 2026-11-27; each page shows only "Using NowServing app" with days and times): - "Walk-in and appointment" -> null: #4, #8, #10, #11, #13 - "Appointment only" -> null: #3, #7, #12 Same rule as #27 (bcc7405): values as written, null is "Not given". All 9 online clinics now match. Their schedules already match the pages. Co-Authored-By: Claude Opus 5.5 --- .../MedicalSpecialist/MedicalSpecialistData.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index 7f04ac3..6931da2 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -187,7 +187,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": null, "contacts": [], "schedule": [ { @@ -283,7 +283,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { @@ -483,7 +483,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": null, "contacts": [], "schedule": [ { @@ -553,7 +553,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { @@ -682,7 +682,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { @@ -846,7 +846,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { @@ -895,7 +895,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Appointment only", + "bookingType": null, "contacts": [], "schedule": [ { @@ -1056,7 +1056,7 @@ "location": "NowServing App", "latitude": null, "longitude": null, - "bookingType": "Walk-in and appointment", + "bookingType": null, "contacts": [], "schedule": [ { From 2c582c2b5ff8eca17ed9e21db410e486a9cfcab8 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:02:49 +0800 Subject: [PATCH 34/49] v2: one name for program 606001 (MAIFIP) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Davao Doctors Hospital's coverage named program 606001 "DOH MAIP – Department of Health" (as written on https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/), while SPMC's coverage and the DOH program itself use MAIFIP. Fritz decided (2026-11-27): use "MAIFIP" everywhere, so one program has one name. The DDH source link and details stay as they are. Changed in data-v2 and in scripts/v2-additions so a rebuild keeps it. Co-Authored-By: Claude Opus 5.5 --- data-v2/HealthInstitution/HealthInstiData.json | 2 +- scripts/v2-additions/HealthInstitution.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index dd98e60..fe24c97 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -598,7 +598,7 @@ }, { "programID": 606001, - "name": "DOH MAIP – Department of Health", + "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/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json index 603b339..06e4907 100644 --- a/scripts/v2-additions/HealthInstitution.json +++ b/scripts/v2-additions/HealthInstitution.json @@ -255,7 +255,7 @@ }, { "programID": 606001, - "name": "DOH MAIP – Department of Health", + "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/" From 385c999564f32dd016df16ac563aeb782d8eaea1 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:08:38 +0800 Subject: [PATCH 35/49] v2: camelCase keys everywhere, and one `sources` list per record Fritz decided (2026-11-27), before v2 goes live so no app breaks later: - Every v2 key is camelCase, with ID and URL kept upper case. Records keys: feed, financialInsti, healthInsti, medicalSpecialist, supportGroup, accommodation. Inside: contactID, contactDetails, programName, programDescription, benefitID, benefitName, requirementID, requirementDescription, serviceName, serviceDescription, serviceSchedule. - Every source is a `sources` list. Record-level `source` (Feeds, financial and health institutions; Accommodation had both) merges into `sources`, source first, no repeats. Feeds and institutions keep at least one link (minItems 1). convert-v2.mjs renames as its last step (toV2Keys), so a re-run keeps the new shape; v2-additions use the new keys. Decision 21 moves the online clinics' bookingType null into the converter, so a re-run no longer undoes it. Schemas, validate.mjs and missing-v2.mjs follow (missing-v2 no longer counts the removed lastVerified). Values are unchanged: each file equals the old one after renaming; only meta.lastUpdated moves to today. v1 is not touched. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +- data-v2/Accommodation/AccommodationData.json | 70 ++--- .../AccommodationData.schema.json | 25 +- data-v2/Feeds/FeedsData.json | 76 +++-- data-v2/Feeds/FeedsData.schema.json | 26 +- .../FinancialInstiData.json | 268 +++++++++--------- .../FinancialInstiData.schema.json | 46 +-- .../HealthInstitution/HealthInstiData.json | 162 +++++------ .../HealthInstiData.schema.json | 42 +-- .../MedicalSpecialistData.json | 68 ++--- .../MedicalSpecialistData.schema.json | 12 +- data-v2/SupportGroups/SupportGroupsData.json | 12 +- .../SupportGroupsData.schema.json | 12 +- scripts/convert-v2.mjs | 44 ++- scripts/missing-v2.mjs | 22 +- scripts/v2-additions/Accommodation.json | 68 ++--- scripts/v2-additions/Feeds.json | 66 +++-- .../v2-additions/FinancialInstitution.json | 102 +++---- scripts/v2-additions/HealthInstitution.json | 78 ++--- scripts/validate.mjs | 10 +- 20 files changed, 662 insertions(+), 554 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa2a561..fa45f83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,9 +31,12 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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. `source` is `null` when a place has no website. Landmarks for Red Planet and Park Inn, as written by their own pages. +- 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. The records key stays where it was, so code that reads the records doesn't change. +- 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`. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/Accommodation/AccommodationData.json b/data-v2/Accommodation/AccommodationData.json index e1e37a3..48c1903 100644 --- a/data-v2/Accommodation/AccommodationData.json +++ b/data-v2/Accommodation/AccommodationData.json @@ -4,7 +4,7 @@ "title": "Accommodation", "description": "Places where cancer patients and their companions can stay near the hospitals.", "apiVersion": "v2", - "lastUpdated": "2026-11-19", + "lastUpdated": "2026-11-27", "recordCount": 10, "coverage": "Davao City, Philippines", "language": "en", @@ -14,20 +14,22 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./AccommodationData.schema.json" }, - "Accommodation": [ + "accommodation": [ { "id": 4, "name": "Red Planet Davao", "bgImageURL": "", - "source": "https://www.redplanethotels.com/hotel/red-planet-davao", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "+63 (082) 224 0577" + "contactDetails": "+63 (082) 224 0577" } ], "branches": [ @@ -47,16 +49,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [ - "https://www.redplanethotels.com/hotel/red-planet-davao" - ] + } }, { "id": 5, "name": "Hop Inn Hotel Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, @@ -78,14 +77,15 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 6, "name": "Seda Abreeza", "bgImageURL": "", - "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", + "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", @@ -107,16 +107,15 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [ - "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" - ] + } }, { "id": 7, "name": "Park Inn by Radisson Davao", "bgImageURL": "", - "source": "https://www.radissonhotels.com/en-us/hotels/park-inn-davao", + "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", @@ -146,16 +145,13 @@ "roomCapacity": { "min": null, "max": 4 - }, - "sources": [ - "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" - ] + } }, { "id": 8, "name": "Acacia Hotel Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, @@ -177,14 +173,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 9, "name": "RedDoorz near Davao Doctors Hospital", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -206,14 +201,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 10, "name": "Rogen Inn", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Inn", "operator": null, @@ -235,14 +229,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 11, "name": "D'Morvie Suites - Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -264,14 +257,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 12, "name": "The Bourke Hotel", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -293,14 +285,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 13, "name": "Apo View Hotel", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -322,8 +313,7 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } } ] } diff --git a/data-v2/Accommodation/AccommodationData.schema.json b/data-v2/Accommodation/AccommodationData.schema.json index 6f822d5..3f46f90 100644 --- a/data-v2/Accommodation/AccommodationData.schema.json +++ b/data-v2/Accommodation/AccommodationData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Accommodation": { + "accommodation": { "type": "array", "items": { "type": "object", @@ -96,14 +96,6 @@ "description": "Background image: a path in this API like /images//.webp, or a full https:// URL. Empty if none.", "format": "uri-reference" }, - "source": { - "type": [ - "string", - "null" - ], - "description": "The place's own website, or the best page about it. null if it has no website.", - "format": "uri" - }, "description": { "type": "string" }, @@ -180,7 +172,7 @@ "id", "name", "bgImageURL", - "source", + "sources", "description", "type", "operator", @@ -188,8 +180,7 @@ "branches", "cost", "amenities", - "roomCapacity", - "sources" + "roomCapacity" ], "additionalProperties": false } @@ -197,14 +188,14 @@ }, "required": [ "meta", - "Accommodation" + "accommodation" ], "additionalProperties": false, "$defs": { "contact": { "type": "object", "properties": { - "contact_id": { + "contactID": { "type": "integer" }, "type": { @@ -220,14 +211,14 @@ ], "description": "Kind of contact. One fixed list for all datasets." }, - "contact_details": { + "contactDetails": { "type": "string" } }, "required": [ - "contact_id", + "contactID", "type", - "contact_details" + "contactDetails" ], "additionalProperties": false }, diff --git a/data-v2/Feeds/FeedsData.json b/data-v2/Feeds/FeedsData.json index 7a0c677..3b89e0e 100644 --- a/data-v2/Feeds/FeedsData.json +++ b/data-v2/Feeds/FeedsData.json @@ -4,7 +4,7 @@ "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-16", + "lastUpdated": "2026-11-27", "recordCount": 18, "coverage": "Davao City, Philippines", "language": "en", @@ -14,7 +14,7 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./FeedsData.schema.json" }, - "Feed": [ + "feed": [ { "id": 1, "title": "Philippine Cancer Society Delegation Prominent at UICC World Cancer Leaders’ Summit in Melbourne, Championing the New Global Declaration", @@ -26,7 +26,9 @@ "Philippine Cancer Society" ], "publishDate": "21 November 2025", - "source": "https://www.philcancer.org.ph/about-us/announcements/latest-news/125-uicc-world-cancer-leaders-summit" + "sources": [ + "https://www.philcancer.org.ph/about-us/announcements/latest-news/125-uicc-world-cancer-leaders-summit" + ] }, { "id": 2, @@ -39,7 +41,9 @@ "Philippine Cancer Society" ], "publishDate": "20 November 2025", - "source": "https://www.philcancer.org.ph/about-us/announcements/latest-news/123-dost-asti-convenes" + "sources": [ + "https://www.philcancer.org.ph/about-us/announcements/latest-news/123-dost-asti-convenes" + ] }, { "id": 3, @@ -54,7 +58,9 @@ "PSMO Digital" ], "publishDate": "19 October 2026", - "source": "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + "sources": [ + "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + ] }, { "id": 4, @@ -70,7 +76,9 @@ "PSMO Digital" ], "publishDate": "18 February 2026", - "source": "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + "sources": [ + "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + ] }, { "id": 5, @@ -85,7 +93,9 @@ "PSMO Digital" ], "publishDate": "10 February 2026", - "source": "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + "sources": [ + "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + ] }, { "id": 6, @@ -101,7 +111,9 @@ "PSMO Digital" ], "publishDate": "21 August 2025", - "source": "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + "sources": [ + "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + ] }, { "id": 7, @@ -116,7 +128,9 @@ "PSMO Digital" ], "publishDate": "31 July 2025", - "source": "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + "sources": [ + "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + ] }, { "id": 8, @@ -132,7 +146,9 @@ "PSMO Digital" ], "publishDate": "30 June 2025", - "source": "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" + "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, @@ -149,7 +165,9 @@ "CIO Admin" ], "publishDate": "4 May 2026", - "source": "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + "sources": [ + "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + ] }, { "id": 10, @@ -166,7 +184,9 @@ "CIO Admin" ], "publishDate": "23 October 2025", - "source": "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + "sources": [ + "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + ] }, { "id": 11, @@ -182,7 +202,9 @@ "Rojean Grace G. Patumbon" ], "publishDate": "24 October 2025", - "source": "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + "sources": [ + "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + ] }, { "id": 12, @@ -199,7 +221,9 @@ "Rojean Grace G. Patumbon" ], "publishDate": "16 May 2025", - "source": "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + "sources": [ + "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + ] }, { "id": 13, @@ -215,7 +239,9 @@ "CIO Admin" ], "publishDate": "19 September 2025", - "source": "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + "sources": [ + "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + ] }, { "id": 14, @@ -232,7 +258,9 @@ "Antonio L. Colina IV" ], "publishDate": "10 February 2026", - "source": "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + "sources": [ + "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + ] }, { "id": 15, @@ -249,7 +277,9 @@ "Daily Tribune" ], "publishDate": "26 August 2026", - "source": "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + "sources": [ + "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + ] }, { "id": 16, @@ -267,7 +297,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] }, { "id": 17, @@ -284,7 +316,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + ] }, { "id": 18, @@ -301,7 +335,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" + "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 index 0d9a86c..2a816fe 100644 --- a/data-v2/Feeds/FeedsData.schema.json +++ b/data-v2/Feeds/FeedsData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Feed": { + "feed": { "type": "array", "items": { "type": "object", @@ -129,10 +129,10 @@ "type": "string", "description": "Publish date in 'DD Month YYYY' format, e.g. '21 November 2025'." }, - "source": { - "type": "string", - "description": "Source URL.", - "format": "uri" + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 } }, "required": [ @@ -144,7 +144,7 @@ "content", "authors", "publishDate", - "source" + "sources" ], "additionalProperties": false } @@ -152,8 +152,18 @@ }, "required": [ "meta", - "Feed" + "feed" ], "additionalProperties": false, - "$defs": {} + "$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 index a4be9ec..a21d08d 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -4,7 +4,7 @@ "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-19", + "lastUpdated": "2026-11-27", "recordCount": 3, "coverage": "Davao City, Philippines", "language": "en", @@ -14,24 +14,26 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./FinancialInstiData.schema.json" }, - "Financial_Insti": [ + "financialInsti": [ { "id": 1, "name": "PhilHealth", "bgImageURL": "/images/FinancialInstitution/philhealth.webp", - "source": "https://www.philhealth.gov.ph/", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Hotline", - "contact_details": "(02) 866-225-88" + "contactDetails": "(02) 866-225-88" }, { - "contact_id": 2, + "contactID": 2, "type": "Website", - "contact_details": "https://e.gov.ph/" + "contactDetails": "https://e.gov.ph/" } ], "branches": [ @@ -51,19 +53,19 @@ ], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(082) 295-2133 loc. 6328 to 30" + "contactDetails": "(082) 295-2133 loc. 6328 to 30" }, { - "contact_id": 2, + "contactID": 2, "type": "Mobile", - "contact_details": "09457256139" + "contactDetails": "09457256139" }, { - "contact_id": 3, + "contactID": 3, "type": "Email", - "contact_details": "lhiodavao.onlinetransactions@gmail.com" + "contactDetails": "lhiodavao.onlinetransactions@gmail.com" } ] }, @@ -77,9 +79,9 @@ "schedule": [], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Email", - "contact_details": "pro11.fod.ossco@gmail.com" + "contactDetails": "pro11.fod.ossco@gmail.com" } ] }, @@ -93,14 +95,14 @@ "schedule": [], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0955 986 0938" + "contactDetails": "0955 986 0938" }, { - "contact_id": 2, + "contactID": 2, "type": "Email", - "contact_details": "pro11.express.toril@gmail.com" + "contactDetails": "pro11.express.toril@gmail.com" } ] }, @@ -114,9 +116,9 @@ "schedule": [], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Email", - "contact_details": "pro11.fod.ossco@gmail.com" + "contactDetails": "pro11.fod.ossco@gmail.com" } ] } @@ -124,7 +126,7 @@ "programs": [ { "programID": 161213, - "program_name": "PhilHealth YAKAP: Yaman ng Kalusugan Program", + "programName": "PhilHealth YAKAP: Yaman ng Kalusugan Program", "eligibility": [ "Government and Private Employees", "Kasambahay", @@ -138,7 +140,7 @@ "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.", + "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", @@ -151,45 +153,45 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Primary Care Checkup", + "benefitID": 1, + "benefitName": "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", + "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 }, { - "benefit_id": 3, - "benefit_name": "Medicines under PhilHealth GAMOT", + "benefitID": 3, + "benefitName": "Medicines under PhilHealth GAMOT", "amount": null }, { - "benefit_id": 4, - "benefit_name": "Breast cancer screening: Breast Ultrasound & Mammogram", + "benefitID": 4, + "benefitName": "Breast cancer screening: Breast Ultrasound & Mammogram", "amount": null }, { - "benefit_id": 5, - "benefit_name": "Liver cancer screening: Alpha Fetoprotein Test & Liver Ultrasound", + "benefitID": 5, + "benefitName": "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", + "benefitID": 6, + "benefitName": "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", + "benefitID": 7, + "benefitName": "Lung cancer screening: Low-dose Chest CT Scan", "amount": null } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "PhilHealth Identification Number (PIN) with updated membership" + "requirementID": 1, + "requirementDescription": "PhilHealth Identification Number (PIN) with updated membership" } ], "procedure": [ @@ -217,7 +219,7 @@ }, { "programID": 101002, - "program_name": "Z Benefits", + "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", @@ -250,7 +252,7 @@ "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." ], - "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.\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.", + "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", @@ -267,110 +269,110 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Breast Cancer (cStage 0 to IV): Total package", + "benefitID": 1, + "benefitName": "Breast Cancer (cStage 0 to IV): Total package", "amount": "Up to P1.4 million" }, { - "benefit_id": 2, - "benefit_name": "Breast Cancer (cStage 0 to IV): Diagnostic tests and prognostication", + "benefitID": 2, + "benefitName": "Breast Cancer (cStage 0 to IV): Diagnostic tests and prognostication", "amount": "Php 1,000 to Php 10,000.00" }, { - "benefit_id": 3, - "benefit_name": "Breast Cancer (cStage 0 to IV): Surgical procedures (partial mastectomy to modified radical mastectomy)", + "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" }, { - "benefit_id": 4, - "benefit_name": "Breast Cancer (cStage 0 to IV): Hormonotherapy", + "benefitID": 4, + "benefitName": "Breast Cancer (cStage 0 to IV): Hormonotherapy", "amount": "Php 2,700 or Php 18,000" }, { - "benefit_id": 5, - "benefit_name": "Breast Cancer (cStage 0 to IV): Cytotoxic chemotherapy", + "benefitID": 5, + "benefitName": "Breast Cancer (cStage 0 to IV): Cytotoxic chemotherapy", "amount": "Php 43,000 to Php 185,010" }, { - "benefit_id": 6, - "benefit_name": "Breast Cancer (cStage 0 to IV): Targeted therapy", + "benefitID": 6, + "benefitName": "Breast Cancer (cStage 0 to IV): Targeted therapy", "amount": "Php 333,336 for 18 maximum cycles" }, { - "benefit_id": 7, - "benefit_name": "Breast Cancer (cStage 0 to IV): Surveillance", + "benefitID": 7, + "benefitName": "Breast Cancer (cStage 0 to IV): Surveillance", "amount": "Php 5,000 (basic) and Php 9,000 (specific)" }, { - "benefit_id": 8, - "benefit_name": "Breast Cancer (cStage 0 to IV): No co-payment for patients admitted in basic or ward-type accommodation", + "benefitID": 8, + "benefitName": "Breast Cancer (cStage 0 to IV): No co-payment for patients admitted in basic or ward-type accommodation", "amount": null }, { - "benefit_id": 9, - "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Total package", + "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" }, { - "benefit_id": 10, - "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 1", + "benefitID": 10, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 1", "amount": "Php 300,000 (after the 1st induction phase)" }, { - "benefit_id": 11, - "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 2", + "benefitID": 11, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 2", "amount": "Php 125,000 (after the 3rd maintenance cycle)" }, { - "benefit_id": 12, - "benefit_name": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 3", + "benefitID": 12, + "benefitName": "Acute Lymphocytic / Lymphoblastic Leukemia (standard risk): Tranche 3", "amount": "Php 75,000 (after the 7th maintenance cycle)" }, { - "benefit_id": 13, - "benefit_name": "Prostate Cancer (low to intermediate risk): Total package", + "benefitID": 13, + "benefitName": "Prostate Cancer (low to intermediate risk): Total package", "amount": "P100,000" }, { - "benefit_id": 14, - "benefit_name": "Cervical Cancer: Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", + "benefitID": 14, + "benefitName": "Cervical Cancer: Chemoradiation with Cobalt and Brachytherapy (low dose) or Primary surgery for Stage IA1, IA2 - IIA1", "amount": "P120,000" }, { - "benefit_id": 15, - "benefit_name": "Cervical Cancer: Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", + "benefitID": 15, + "benefitName": "Cervical Cancer: Chemoradiation with Linear Accelerator and Brachytherapy (high dose)", "amount": "P175,000" }, { - "benefit_id": 16, - "benefit_name": "Colorectal Cancer: Colon Cancer, Stage I to II (Low Risk)", + "benefitID": 16, + "benefitName": "Colorectal Cancer: Colon Cancer, Stage I to II (Low Risk)", "amount": "Php 150,000" }, { - "benefit_id": 17, - "benefit_name": "Colorectal Cancer: Colon Cancer, Stage II to III (High Risk)", + "benefitID": 17, + "benefitName": "Colorectal Cancer: Colon Cancer, Stage II to III (High Risk)", "amount": "Php 300,000" }, { - "benefit_id": 18, - "benefit_name": "Colorectal Cancer: Rectal Cancer, Stage I to II (Low Risk)", + "benefitID": 18, + "benefitName": "Colorectal Cancer: Rectal Cancer, Stage I to II (Low Risk)", "amount": "Php 150,000" }, { - "benefit_id": 19, - "benefit_name": "Colorectal Cancer: Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", + "benefitID": 19, + "benefitName": "Colorectal Cancer: Rectal Cancer, Pre-operative Stage I, with Post-Operative Stage II to III", "amount": "Php 400,000" }, { - "benefit_id": 20, - "benefit_name": "Colorectal Cancer: Rectal Cancer, Stage II to III", + "benefitID": 20, + "benefitName": "Colorectal Cancer: Rectal Cancer, Stage II to III", "amount": "Php 400,000" } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "PhilHealth ID" + "requirementID": 1, + "requirementDescription": "PhilHealth ID" } ], "procedure": [ @@ -386,7 +388,9 @@ "id": 5, "name": "Philippine Charity Sweepstakes Office (PCSO)", "bgImageURL": "/images/FinancialInstitution/pcso.webp", - "source": "https://www.pcso.gov.ph/", + "sources": [ + "https://www.pcso.gov.ph/" + ], "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": [], @@ -401,14 +405,14 @@ "schedule": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(082) 282-0305" + "contactDetails": "(082) 282-0305" }, { - "contact_id": 2, + "contactID": 2, "type": "Email", - "contact_details": "mindanao@pcso.gov.ph" + "contactDetails": "mindanao@pcso.gov.ph" } ] } @@ -416,11 +420,11 @@ "programs": [ { "programID": 505001, - "program_name": "Medical Assistance Program (MAP)", + "programName": "Medical Assistance Program (MAP)", "eligibility": [ "Individuals with health-related problems seeking financial help" ], - "program_description": "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.", + "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" ], @@ -432,46 +436,46 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Cancer treatment: chemotherapeutic drugs and immunotherapy", + "benefitID": 1, + "benefitName": "Cancer treatment: chemotherapeutic drugs and immunotherapy", "amount": null }, { - "benefit_id": 2, - "benefit_name": "Radiation therapy", + "benefitID": 2, + "benefitName": "Radiation therapy", "amount": null }, { - "benefit_id": 3, - "benefit_name": "Confinement assistance", + "benefitID": 3, + "benefitName": "Confinement assistance", "amount": null }, { - "benefit_id": 4, - "benefit_name": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "benefitID": 4, + "benefitName": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", "amount": null } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Duly Accomplished MAP Application Form" + "requirementID": 1, + "requirementDescription": "Duly Accomplished MAP Application Form" }, { - "requirement_id": 2, - "requirement_description": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + "requirementID": 2, + "requirementDescription": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" }, { - "requirement_id": 3, - "requirement_description": "Valid ID of the patient's next of kin, if applicable" + "requirementID": 3, + "requirementDescription": "Valid ID of the patient's next of kin, if applicable" }, { - "requirement_id": 4, - "requirement_description": "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": 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" }, { - "requirement_id": 5, - "requirement_description": "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" + "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": [ @@ -507,7 +511,9 @@ "id": 6, "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", - "source": "https://doh.gov.ph/", + "sources": [ + "https://doh.gov.ph/" + ], "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": [], @@ -536,12 +542,12 @@ "programs": [ { "programID": 606001, - "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", "eligibility": [ "Indigent and financially incapacitated patients who cannot afford their medical expenses", "Including PhilHealth members whose remaining bill is still too big" ], - "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", "cancerTypes": [ "All cancers" ], @@ -555,27 +561,27 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Remaining medical bill after PhilHealth and other discounts", + "benefitID": 1, + "benefitName": "Remaining medical bill after PhilHealth and other discounts", "amount": "No fixed cap" } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Unified Intake Sheet (evaluated by a social worker)" + "requirementID": 1, + "requirementDescription": "Unified Intake Sheet (evaluated by a social worker)" }, { - "requirement_id": 2, - "requirement_description": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + "requirementID": 2, + "requirementDescription": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" }, { - "requirement_id": 3, - "requirement_description": "Medical certificate or patient's clinical summary / medical abstract" + "requirementID": 3, + "requirementDescription": "Medical certificate or patient's clinical summary / medical abstract" }, { - "requirement_id": 4, - "requirement_description": "Copy of IDs (patient and/or patient's representative)" + "requirementID": 4, + "requirementDescription": "Copy of IDs (patient and/or patient's representative)" } ], "procedure": [ @@ -595,12 +601,12 @@ }, { "programID": 606002, - "program_name": "Cancer Assistance Fund (CAF)", + "programName": "Cancer Assistance Fund (CAF)", "eligibility": [ "Persons with cancer, cancer survivors and high-risk individuals", "For the eight priority cancer types" ], - "program_description": "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", "cancerTypes": [ "Breast cancer", "Childhood cancers", @@ -620,15 +626,15 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Diagnostic procedures, medicines and treatment", + "benefitID": 1, + "benefitName": "Diagnostic procedures, medicines and treatment", "amount": "Up to P150,000" } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Medical abstract, doctor's prescription, or treatment plan" + "requirementID": 1, + "requirementDescription": "Medical abstract, doctor's prescription, or treatment plan" } ], "procedure": [ @@ -648,9 +654,9 @@ }, { "programID": 606003, - "program_name": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "programName": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", "eligibility": [], - "program_description": "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.", + "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": [ @@ -659,8 +665,8 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Free medicines not yet covered by PhilHealth", + "benefitID": 1, + "benefitName": "Free medicines not yet covered by PhilHealth", "amount": "Free" } ], diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 862604b..9660f66 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Financial_Insti": { + "financialInsti": { "type": "array", "items": { "type": "object", @@ -96,10 +96,10 @@ "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", "format": "uri-reference" }, - "source": { - "type": "string", - "description": "Main page of the institution.", - "format": "uri" + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 }, "description": { "type": "string" @@ -126,7 +126,7 @@ "programID": { "type": "integer" }, - "program_name": { + "programName": { "type": "string" }, "eligibility": { @@ -137,7 +137,7 @@ "uniqueItems": true, "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not given\")." }, - "program_description": { + "programDescription": { "type": "string" }, "cancerTypes": { @@ -159,10 +159,10 @@ "items": { "type": "object", "properties": { - "benefit_id": { + "benefitID": { "type": "integer" }, - "benefit_name": { + "benefitName": { "type": "string" }, "amount": { @@ -174,8 +174,8 @@ } }, "required": [ - "benefit_id", - "benefit_name", + "benefitID", + "benefitName", "amount" ], "additionalProperties": false @@ -190,9 +190,9 @@ }, "required": [ "programID", - "program_name", + "programName", "eligibility", - "program_description", + "programDescription", "cancerTypes", "applicationURL", "sources", @@ -208,7 +208,7 @@ "id", "name", "bgImageURL", - "source", + "sources", "description", "type", "contacts", @@ -221,14 +221,14 @@ }, "required": [ "meta", - "Financial_Insti" + "financialInsti" ], "additionalProperties": false, "$defs": { "contact": { "type": "object", "properties": { - "contact_id": { + "contactID": { "type": "integer" }, "type": { @@ -244,14 +244,14 @@ ], "description": "Kind of contact. One fixed list for all datasets." }, - "contact_details": { + "contactDetails": { "type": "string" } }, "required": [ - "contact_id", + "contactID", "type", - "contact_details" + "contactDetails" ], "additionalProperties": false }, @@ -381,16 +381,16 @@ "items": { "type": "object", "properties": { - "requirement_id": { + "requirementID": { "type": "integer" }, - "requirement_description": { + "requirementDescription": { "type": "string" } }, "required": [ - "requirement_id", - "requirement_description" + "requirementID", + "requirementDescription" ], "additionalProperties": false } diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index fe24c97..19c739d 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -4,7 +4,7 @@ "title": "Hospitals", "description": "Hospitals with cancer services in Davao City: services, schedules, fees and the programs they accept.", "apiVersion": "v2", - "lastUpdated": "2026-11-19", + "lastUpdated": "2026-11-27", "recordCount": 2, "coverage": "Davao City, Philippines", "language": "en", @@ -14,29 +14,31 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./HealthInstiData.schema.json" }, - "Health_Insti": [ + "healthInsti": [ { "id": 1, "name": "Southern Philippines Medical Center", "bgImageURL": "/images/HealthInstitution/spmc-cancer-institute.webp", - "source": "https://spmc.doh.gov.ph/", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(082) 227-2731" + "contactDetails": "(082) 227-2731" }, { - "contact_id": 2, + "contactID": 2, "type": "Other", - "contact_details": "TELEFAX: (082) 221-7029" + "contactDetails": "TELEFAX: (082) 221-7029" }, { - "contact_id": 3, + "contactID": 3, "type": "Email", - "contact_details": "coh.spmc@gmail.com" + "contactDetails": "coh.spmc@gmail.com" } ], "branches": [ @@ -68,15 +70,15 @@ "branchIDs": [ 1 ], - "service_name": "Adult Cancer Clinic and Infusion Unit", - "service_description": "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.", + "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" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] }, @@ -85,15 +87,15 @@ "branchIDs": [ 1 ], - "service_name": "Radiation Therapy (Linear Accelerator)", - "service_description": "The Cancer Institute's linear accelerator (Linac) for radiation therapy started operating with the adult cancer unit in 2018.", + "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" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] }, @@ -102,14 +104,14 @@ "branchIDs": [ 1 ], - "service_name": "Cancer Assistance Fund (CAF)", - "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.", + "serviceName": "Cancer Assistance Fund (CAF)", + "serviceDescription": "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.", "cancerTypes": null, "fee": null, "sources": [ "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] }, @@ -118,14 +120,14 @@ "branchIDs": [ 1 ], - "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.", + "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/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Tuesday and Thursday", "timeIn": "1 pm", @@ -140,14 +142,14 @@ "branchIDs": [ 1 ], - "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.", + "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/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Tuesday and Thursday", "timeIn": "1 pm", @@ -162,14 +164,14 @@ "branchIDs": [ 1 ], - "service_name": "Surgical Oncology", - "service_description": "Location: Cancer Institute – 2nd Floor.", + "serviceName": "Surgical Oncology", + "serviceDescription": "Location: Cancer Institute – 2nd Floor.", "cancerTypes": null, "fee": null, "sources": [ "https://spmc.doh.gov.ph/surgery/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Monday to Friday", "timeIn": "8AM", @@ -184,14 +186,14 @@ "branchIDs": [ 1 ], - "service_name": "Gynecologic Oncology", - "service_description": "Caters to patients diagnosed with cancer in the reproductive organs", + "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/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "weekdays", "timeIn": "1:00 pm", @@ -206,14 +208,14 @@ "branchIDs": [ 1 ], - "service_name": "Trophoblastic Service Clinic", - "service_description": "Specializes in dealing with a group of conditions involving tumor growth in the womb.", + "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/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "weekdays", "timeIn": "1:00 pm", @@ -228,8 +230,8 @@ "branchIDs": [ 1 ], - "service_name": "Colposcopy / Pap’s Smear", - "service_description": "Screening procedure for detecting cervical cancer.", + "serviceName": "Colposcopy / Pap’s Smear", + "serviceDescription": "Screening procedure for detecting cervical cancer.", "cancerTypes": [ "Cervical Cancer" ], @@ -237,7 +239,7 @@ "sources": [ "https://spmc.doh.gov.ph/obstetrics-and-gynecology/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Tuesday and Thursday", "timeIn": "1:00 pm", @@ -252,14 +254,14 @@ "branchIDs": [ 1 ], - "service_name": "Oncology Clinic (Pediatrics)", - "service_description": "Specializes on diagnoses, treatment and management of cancer.", + "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/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Monday and Wednesday", "timeIn": "2:00", @@ -279,8 +281,8 @@ "branchIDs": [ 1 ], - "service_name": "Breast Imaging", - "service_description": "Involves the use of mammography, sonomammography and elastography. Imaging exam dedicated for screening breast cancer.", + "serviceName": "Breast Imaging", + "serviceDescription": "Involves the use of mammography, sonomammography and elastography. Imaging exam dedicated for screening breast cancer.", "cancerTypes": [ "Breast Cancer" ], @@ -289,7 +291,7 @@ "https://spmc.doh.gov.ph/radiological-and-imaging-sciences/", "https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "weekdays (OPD)", "timeIn": "8:00 am", @@ -347,24 +349,26 @@ "id": 2, "name": "Davao Doctors Hospital", "bgImageURL": "", - "source": "https://ddh.com.ph/", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(+6382) 222-8000" + "contactDetails": "(+6382) 222-8000" }, { - "contact_id": 2, + "contactID": 2, "type": "Landline", - "contact_details": "(+6382) 222 - 7948" + "contactDetails": "(+6382) 222 - 7948" }, { - "contact_id": 3, + "contactID": 3, "type": "Email", - "contact_details": "info@ddh.com.ph" + "contactDetails": "info@ddh.com.ph" } ], "branches": [ @@ -385,38 +389,38 @@ "branchIDs": [ 1 ], - "service_name": "Radiation Oncology Department", - "service_description": "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", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [ { - "requirement_id": 1, - "requirement_description": "Referral letter and a short clinical abstract." + "requirementID": 1, + "requirementDescription": "Referral letter and a short clinical abstract." }, { - "requirement_id": 2, - "requirement_description": "Histopathologic report." + "requirementID": 2, + "requirementDescription": "Histopathologic report." }, { - "requirement_id": 3, - "requirement_description": "Laboratory and Imaging work-ups with results and radiographs." + "requirementID": 3, + "requirementDescription": "Laboratory and Imaging work-ups with results and radiographs." }, { - "requirement_id": 4, - "requirement_description": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + "requirementID": 4, + "requirementDescription": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" }, { - "requirement_id": 5, - "requirement_description": "Dental clearance for head and neck tumors." + "requirementID": 5, + "requirementDescription": "Dental clearance for head and neck tumors." }, { - "requirement_id": 6, - "requirement_description": "Steroid coverage for brain and spinal cord irradiation." + "requirementID": 6, + "requirementDescription": "Steroid coverage for brain and spinal cord irradiation." } ], "procedure": [] @@ -426,8 +430,8 @@ "branchIDs": [ 1 ], - "service_name": "External Beam Radiation Therapy", - "service_description": "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", + "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", @@ -443,7 +447,7 @@ "sources": [ "https://ddh.com.ph/services-and-centers/external-beam-radiation-therapy/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Mondays - Fridays", "timeIn": "6:00am", @@ -458,8 +462,8 @@ "branchIDs": [ 1 ], - "service_name": "Brachytherapy", - "service_description": "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.", + "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", @@ -469,7 +473,7 @@ "sources": [ "https://ddh.com.ph/services-and-centers/nursing-service/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [ { @@ -491,14 +495,14 @@ "branchIDs": [ 1 ], - "service_name": "In-patient Chemotherapy", - "service_description": "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.", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] }, @@ -507,8 +511,8 @@ "branchIDs": [ 1 ], - "service_name": "Radioactive Iodine Therapy (RAI)", - "service_description": "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", + "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" @@ -518,7 +522,7 @@ "https://ddh.com.ph/services-and-centers/nursing-service/", "https://ddh.com.ph/services-and-centers/nuclear-medicine/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Mondays - Fridays", "timeIn": "7:00am", @@ -551,14 +555,14 @@ "branchIDs": [ 1 ], - "service_name": "Long Term Radiotherapy", - "service_description": "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.", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] } diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index d3d75e4..3a20d43 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Health_Insti": { + "healthInsti": { "type": "array", "items": { "type": "object", @@ -96,10 +96,10 @@ "description": "Background image: a path in this API like /images//.webp, or a full https:// URL.", "format": "uri-reference" }, - "source": { - "type": "string", - "description": "Main page of the institution.", - "format": "uri" + "sources": { + "$ref": "#/$defs/sources", + "type": "array", + "minItems": 1 }, "description": { "type": "string" @@ -135,10 +135,10 @@ "uniqueItems": true, "description": "Branches that offer this service. Each must be a branchID of the same institution." }, - "service_name": { + "serviceName": { "type": "string" }, - "service_description": { + "serviceDescription": { "type": "string" }, "cancerTypes": { @@ -154,7 +154,7 @@ "sources": { "$ref": "#/$defs/sources" }, - "service_schedule": { + "serviceSchedule": { "type": [ "array", "null" @@ -174,12 +174,12 @@ "required": [ "serviceID", "branchIDs", - "service_name", - "service_description", + "serviceName", + "serviceDescription", "cancerTypes", "fee", "sources", - "service_schedule", + "serviceSchedule", "requirements", "procedure" ], @@ -228,7 +228,7 @@ "id", "name", "bgImageURL", - "source", + "sources", "description", "type", "contacts", @@ -242,14 +242,14 @@ }, "required": [ "meta", - "Health_Insti" + "healthInsti" ], "additionalProperties": false, "$defs": { "contact": { "type": "object", "properties": { - "contact_id": { + "contactID": { "type": "integer" }, "type": { @@ -265,14 +265,14 @@ ], "description": "Kind of contact. One fixed list for all datasets." }, - "contact_details": { + "contactDetails": { "type": "string" } }, "required": [ - "contact_id", + "contactID", "type", - "contact_details" + "contactDetails" ], "additionalProperties": false }, @@ -402,16 +402,16 @@ "items": { "type": "object", "properties": { - "requirement_id": { + "requirementID": { "type": "integer" }, - "requirement_description": { + "requirementDescription": { "type": "string" } }, "required": [ - "requirement_id", - "requirement_description" + "requirementID", + "requirementDescription" ], "additionalProperties": false } diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.json index 6931da2..ece8c9d 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.json @@ -4,7 +4,7 @@ "title": "Medical specialists", "description": "Cancer doctors in Davao City, with their clinics, schedules and booking.", "apiVersion": "v2", - "lastUpdated": "2026-11-19", + "lastUpdated": "2026-11-27", "recordCount": 29, "coverage": "Davao City, Philippines", "language": "en", @@ -14,7 +14,7 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./MedicalSpecialistData.schema.json" }, - "Medical_Specialist": [ + "medicalSpecialist": [ { "id": 1, "firstname": "Soo Rah", @@ -969,9 +969,9 @@ "bookingType": "Walk-in and appointment", "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0918 426 3266" + "contactDetails": "0918 426 3266" } ], "schedule": [ @@ -1011,9 +1011,9 @@ "bookingType": "Walk-in and appointment", "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "(082) 227 7343" + "contactDetails": "(082) 227 7343" } ], "schedule": [ @@ -1113,9 +1113,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0917-701-0567" + "contactDetails": "0917-701-0567" } ], "schedule": [ @@ -1158,9 +1158,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0954-273-4521" + "contactDetails": "0954-273-4521" } ], "schedule": [ @@ -1213,9 +1213,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0915-058-3725" + "contactDetails": "0915-058-3725" } ], "schedule": [ @@ -1268,9 +1268,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09694235569" + "contactDetails": "09694235569" } ], "schedule": [ @@ -1323,9 +1323,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09423997676" + "contactDetails": "09423997676" } ], "schedule": [ @@ -1365,9 +1365,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0953-960-8332" + "contactDetails": "0953-960-8332" } ], "schedule": [ @@ -1420,9 +1420,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09333486510" + "contactDetails": "09333486510" } ], "schedule": [ @@ -1475,9 +1475,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09502681182" + "contactDetails": "09502681182" } ], "schedule": [ @@ -1530,9 +1530,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09755547833" + "contactDetails": "09755547833" } ], "schedule": [ @@ -1585,14 +1585,14 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0943-707-8266" + "contactDetails": "0943-707-8266" }, { - "contact_id": 2, + "contactID": 2, "type": "Mobile", - "contact_details": "0917-705-6902" + "contactDetails": "0917-705-6902" } ], "schedule": [] @@ -1619,9 +1619,9 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0917-705-6902" + "contactDetails": "0917-705-6902" } ], "schedule": [] @@ -1648,14 +1648,14 @@ "bookingType": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0963-124-3548" + "contactDetails": "0963-124-3548" }, { - "contact_id": 2, + "contactID": 2, "type": "Mobile", - "contact_details": "0917-319-5140" + "contactDetails": "0917-319-5140" } ], "schedule": [] diff --git a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json index 9dddac0..b71ff06 100644 --- a/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json +++ b/data-v2/MedicalSpecialist/MedicalSpecialistData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Medical_Specialist": { + "medicalSpecialist": { "type": "array", "items": { "type": "object", @@ -186,14 +186,14 @@ }, "required": [ "meta", - "Medical_Specialist" + "medicalSpecialist" ], "additionalProperties": false, "$defs": { "contact": { "type": "object", "properties": { - "contact_id": { + "contactID": { "type": "integer" }, "type": { @@ -209,14 +209,14 @@ ], "description": "Kind of contact. One fixed list for all datasets." }, - "contact_details": { + "contactDetails": { "type": "string" } }, "required": [ - "contact_id", + "contactID", "type", - "contact_details" + "contactDetails" ], "additionalProperties": false }, diff --git a/data-v2/SupportGroups/SupportGroupsData.json b/data-v2/SupportGroups/SupportGroupsData.json index 5eafbaa..9240651 100644 --- a/data-v2/SupportGroups/SupportGroupsData.json +++ b/data-v2/SupportGroups/SupportGroupsData.json @@ -4,7 +4,7 @@ "title": "Support groups", "description": "Cancer support groups for patients, survivors and families.", "apiVersion": "v2", - "lastUpdated": "2026-11-19", + "lastUpdated": "2026-11-27", "recordCount": 2, "coverage": "Davao City, Philippines", "language": "en", @@ -14,7 +14,7 @@ "contact": "https://github.com/ProjectFuritsu/CancerOpenData/issues", "schema": "./SupportGroupsData.schema.json" }, - "Support_Group": [ + "supportGroup": [ { "id": 1, "name": "AMUMA", @@ -33,9 +33,9 @@ "sources": [], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "09384376090" + "contactDetails": "09384376090" } ] }, @@ -63,9 +63,9 @@ ], "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Mobile", - "contact_details": "0977 329 8496" + "contactDetails": "0977 329 8496" } ] } diff --git a/data-v2/SupportGroups/SupportGroupsData.schema.json b/data-v2/SupportGroups/SupportGroupsData.schema.json index 8922f18..b9ee7cb 100644 --- a/data-v2/SupportGroups/SupportGroupsData.schema.json +++ b/data-v2/SupportGroups/SupportGroupsData.schema.json @@ -80,7 +80,7 @@ ], "additionalProperties": false }, - "Support_Group": { + "supportGroup": { "type": "array", "items": { "type": "object", @@ -183,14 +183,14 @@ }, "required": [ "meta", - "Support_Group" + "supportGroup" ], "additionalProperties": false, "$defs": { "contact": { "type": "object", "properties": { - "contact_id": { + "contactID": { "type": "integer" }, "type": { @@ -206,14 +206,14 @@ ], "description": "Kind of contact. One fixed list for all datasets." }, - "contact_details": { + "contactDetails": { "type": "string" } }, "required": [ - "contact_id", + "contactID", "type", - "contact_details" + "contactDetails" ], "additionalProperties": false }, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 99e6e25..c9fa293 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -582,6 +582,13 @@ function applyReview(folder, records) { // 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) { @@ -598,12 +605,43 @@ function applyReview(folder, records) { return records; } -// Records that exist only in v2 live in scripts/v2-additions/.json (same records key). +// 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)); - for (const r of read(p)[key] ?? []) { + 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})`); @@ -650,6 +688,8 @@ function lastUpdated(path, records, key) { 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 = { diff --git a/scripts/missing-v2.mjs b/scripts/missing-v2.mjs index 4b74133..3b141d5 100644 --- a/scripts/missing-v2.mjs +++ b/scripts/missing-v2.mjs @@ -25,7 +25,7 @@ const WHERE = { 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", - service_schedule: "the hospital's service page or a phone call", + 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", @@ -63,30 +63,30 @@ const insti = (dataset, r, extra) => [ ...extra, ]; -const F = read("data-v2/FinancialInstitution/FinancialInstiData.json").Financial_Insti; +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.program_name} › `), - ...p.benefits.flatMap((b) => check("Financial", r.name, b, ["amount"], `${p.program_name} › benefit "${b.benefit_name}" › `)), + ...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").Health_Insti; +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", "service_schedule", "requirements", "procedure"], `${s.service_name} › `)))); + 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").Medical_Specialist; +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").Support_Group; +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", "lastVerified", "contacts"])); + check("Support group", r.name, r, ["cancerTypes", "socmedURL", "bgImageURL", "latitude", "longitude", "founders", "meetingSchedule", "sources", "contacts"])); -const FD = read("data-v2/Feeds/FeedsData.json").Feed; +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", "source"])); + 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) diff --git a/scripts/v2-additions/Accommodation.json b/scripts/v2-additions/Accommodation.json index da5ae71..25f075b 100644 --- a/scripts/v2-additions/Accommodation.json +++ b/scripts/v2-additions/Accommodation.json @@ -1,18 +1,20 @@ { - "Accommodation": [ + "accommodation": [ { "id": 4, "name": "Red Planet Davao", "bgImageURL": "", - "source": "https://www.redplanethotels.com/hotel/red-planet-davao", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "+63 (082) 224 0577" + "contactDetails": "+63 (082) 224 0577" } ], "branches": [ @@ -32,16 +34,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [ - "https://www.redplanethotels.com/hotel/red-planet-davao" - ] + } }, { "id": 5, "name": "Hop Inn Hotel Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, @@ -63,14 +62,15 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 6, "name": "Seda Abreeza", "bgImageURL": "", - "source": "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao", + "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", @@ -92,16 +92,15 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [ - "https://ayalalandhospitality.com/en/seda/hotels/seda-abreeza-davao" - ] + } }, { "id": 7, "name": "Park Inn by Radisson Davao", "bgImageURL": "", - "source": "https://www.radissonhotels.com/en-us/hotels/park-inn-davao", + "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", @@ -131,16 +130,13 @@ "roomCapacity": { "min": null, "max": 4 - }, - "sources": [ - "https://www.radissonhotels.com/en-us/hotels/park-inn-davao" - ] + } }, { "id": 8, "name": "Acacia Hotel Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Southern Philippines Medical Center.", "type": "Hotel", "operator": null, @@ -162,14 +158,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 9, "name": "RedDoorz near Davao Doctors Hospital", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -191,14 +186,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 10, "name": "Rogen Inn", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Inn", "operator": null, @@ -220,14 +214,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 11, "name": "D'Morvie Suites - Davao", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -249,14 +242,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 12, "name": "The Bourke Hotel", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -278,14 +270,13 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } }, { "id": 13, "name": "Apo View Hotel", "bgImageURL": "", - "source": null, + "sources": [], "description": "Paid place to stay near Davao Doctors Hospital.", "type": "Hotel", "operator": null, @@ -307,8 +298,7 @@ "roomCapacity": { "min": null, "max": null - }, - "sources": [] + } } ] } diff --git a/scripts/v2-additions/Feeds.json b/scripts/v2-additions/Feeds.json index d8ef4e6..26c3a70 100644 --- a/scripts/v2-additions/Feeds.json +++ b/scripts/v2-additions/Feeds.json @@ -1,6 +1,6 @@ { "_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": [ + "feed": [ { "id": 3, "title": "NCCN Partners with Philippine Cancer Organizations to Develop Locally Adapted Cancer Treatment Guidelines", @@ -14,7 +14,9 @@ "PSMO Digital" ], "publishDate": "19 October 2026", - "source": "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + "sources": [ + "https://www.psmo.ph/blog/news-2/nccn-partners-with-philippine-cancer-organizations-to-develop-locally-adapted-cancer-treatment-guidelines-42" + ] }, { "id": 4, @@ -30,7 +32,9 @@ "PSMO Digital" ], "publishDate": "18 February 2026", - "source": "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + "sources": [ + "https://www.psmo.ph/blog/news-2/panag-istorya-conversations-that-matter-in-cancer-care-38" + ] }, { "id": 5, @@ -45,7 +49,9 @@ "PSMO Digital" ], "publishDate": "10 February 2026", - "source": "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + "sources": [ + "https://www.psmo.ph/blog/blogs-5/a-unified-front-in-systemic-care-psmo-reinforces-the-national-cancer-alliance-37" + ] }, { "id": 6, @@ -61,7 +67,9 @@ "PSMO Digital" ], "publishDate": "21 August 2025", - "source": "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + "sources": [ + "https://www.psmo.ph/blog/news-2/barangayan-goes-to-gingoog-city-27" + ] }, { "id": 7, @@ -76,7 +84,9 @@ "PSMO Digital" ], "publishDate": "31 July 2025", - "source": "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + "sources": [ + "https://www.psmo.ph/blog/blogs-5/ano-ang-sarcoma-24" + ] }, { "id": 8, @@ -92,7 +102,9 @@ "PSMO Digital" ], "publishDate": "30 June 2025", - "source": "https://www.psmo.ph/blog/news-2/philippine-society-of-medical-oncologists-a-vital-presence-at-the-1st-national-patient-navigation-conference-18" + "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, @@ -109,7 +121,9 @@ "CIO Admin" ], "publishDate": "4 May 2026", - "source": "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + "sources": [ + "https://davaocity.gov.ph/health/davao-city-boosts-anti-cervical-cancer-drive/" + ] }, { "id": 10, @@ -126,7 +140,9 @@ "CIO Admin" ], "publishDate": "23 October 2025", - "source": "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + "sources": [ + "https://davaocity.gov.ph/health/free-breast-cancer-screening-available-all-year-roundin-health-centers/" + ] }, { "id": 11, @@ -142,7 +158,9 @@ "Rojean Grace G. Patumbon" ], "publishDate": "24 October 2025", - "source": "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + "sources": [ + "https://www.sunstar.com.ph/davao/davao-city-logs-197-breast-cancer-deaths-in-2024" + ] }, { "id": 12, @@ -159,7 +177,9 @@ "Rojean Grace G. Patumbon" ], "publishDate": "16 May 2025", - "source": "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + "sources": [ + "https://www.sunstar.com.ph/davao/cervical-cancer-deaths-screening-rates-decline" + ] }, { "id": 13, @@ -175,7 +195,9 @@ "CIO Admin" ], "publishDate": "19 September 2025", - "source": "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + "sources": [ + "https://davaocity.gov.ph/health/spmc-says-child-cancer-patients-skipping-treatment-down-to-2/" + ] }, { "id": 14, @@ -192,7 +214,9 @@ "Antonio L. Colina IV" ], "publishDate": "10 February 2026", - "source": "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + "sources": [ + "https://mindanews.com/top-stories/2026/02/davao-citys-spmc-now-performing-non-surgical-procedure-to-remove-brain-tumors/" + ] }, { "id": 15, @@ -209,7 +233,9 @@ "Daily Tribune" ], "publishDate": "26 August 2026", - "source": "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + "sources": [ + "https://tribune.net.ph/2026/08/26/malasakit-center-eases-cancer-treatment-burden-for-north-cotabato-midwife" + ] }, { "id": 16, @@ -227,7 +253,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/contracted/20260930_ContractedZBen.pdf" + ] }, { "id": 17, @@ -244,7 +272,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + "sources": [ + "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/CancerScreening.pdf" + ] }, { "id": 18, @@ -261,7 +291,9 @@ "PhilHealth" ], "publishDate": "30 September 2026", - "source": "https://www.philhealth.gov.ph/partners/providers/facilities/accredited/YAKAP.pdf" + "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 index aad472e..4d883af 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -1,11 +1,13 @@ { "_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).", - "Financial_Insti": [ + "financialInsti": [ { "id": 5, "name": "Philippine Charity Sweepstakes Office (PCSO)", "bgImageURL": "/images/FinancialInstitution/pcso.webp", - "source": "https://www.pcso.gov.ph/", + "sources": [ + "https://www.pcso.gov.ph/" + ], "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": [], @@ -19,14 +21,14 @@ "schedule": null, "contacts": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(082) 282-0305" + "contactDetails": "(082) 282-0305" }, { - "contact_id": 2, + "contactID": 2, "type": "Email", - "contact_details": "mindanao@pcso.gov.ph" + "contactDetails": "mindanao@pcso.gov.ph" } ] } @@ -34,11 +36,11 @@ "programs": [ { "programID": 505001, - "program_name": "Medical Assistance Program (MAP)", + "programName": "Medical Assistance Program (MAP)", "eligibility": [ "Individuals with health-related problems seeking financial help" ], - "program_description": "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.", + "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" ], @@ -50,46 +52,46 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Cancer treatment: chemotherapeutic drugs and immunotherapy", + "benefitID": 1, + "benefitName": "Cancer treatment: chemotherapeutic drugs and immunotherapy", "amount": null }, { - "benefit_id": 2, - "benefit_name": "Radiation therapy", + "benefitID": 2, + "benefitName": "Radiation therapy", "amount": null }, { - "benefit_id": 3, - "benefit_name": "Confinement assistance", + "benefitID": 3, + "benefitName": "Confinement assistance", "amount": null }, { - "benefit_id": 4, - "benefit_name": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", + "benefitID": 4, + "benefitName": "Laboratory, diagnostic and imaging procedures (such as CT-Scan, MRI, PET Scan and biopsy)", "amount": null } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Duly Accomplished MAP Application Form" + "requirementID": 1, + "requirementDescription": "Duly Accomplished MAP Application Form" }, { - "requirement_id": 2, - "requirement_description": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" + "requirementID": 2, + "requirementDescription": "Valid proof of identity of the patient (government-issued ID or other accepted ID)" }, { - "requirement_id": 3, - "requirement_description": "Valid ID of the patient's next of kin, if applicable" + "requirementID": 3, + "requirementDescription": "Valid ID of the patient's next of kin, if applicable" }, { - "requirement_id": 4, - "requirement_description": "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": 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" }, { - "requirement_id": 5, - "requirement_description": "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" + "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": [ @@ -125,7 +127,9 @@ "id": 6, "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", - "source": "https://doh.gov.ph/", + "sources": [ + "https://doh.gov.ph/" + ], "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": [], @@ -152,12 +156,12 @@ "programs": [ { "programID": 606001, - "program_name": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", + "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", "eligibility": [ "Indigent and financially incapacitated patients who cannot afford their medical expenses", "Including PhilHealth members whose remaining bill is still too big" ], - "program_description": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", "cancerTypes": [ "All cancers" ], @@ -171,27 +175,27 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Remaining medical bill after PhilHealth and other discounts", + "benefitID": 1, + "benefitName": "Remaining medical bill after PhilHealth and other discounts", "amount": "No fixed cap" } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Unified Intake Sheet (evaluated by a social worker)" + "requirementID": 1, + "requirementDescription": "Unified Intake Sheet (evaluated by a social worker)" }, { - "requirement_id": 2, - "requirement_description": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + "requirementID": 2, + "requirementDescription": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" }, { - "requirement_id": 3, - "requirement_description": "Medical certificate or patient's clinical summary / medical abstract" + "requirementID": 3, + "requirementDescription": "Medical certificate or patient's clinical summary / medical abstract" }, { - "requirement_id": 4, - "requirement_description": "Copy of IDs (patient and/or patient's representative)" + "requirementID": 4, + "requirementDescription": "Copy of IDs (patient and/or patient's representative)" } ], "procedure": [ @@ -211,12 +215,12 @@ }, { "programID": 606002, - "program_name": "Cancer Assistance Fund (CAF)", + "programName": "Cancer Assistance Fund (CAF)", "eligibility": [ "Persons with cancer, cancer survivors and high-risk individuals", "For the eight priority cancer types" ], - "program_description": "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", "cancerTypes": [ "Breast cancer", "Childhood cancers", @@ -236,15 +240,15 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Diagnostic procedures, medicines and treatment", + "benefitID": 1, + "benefitName": "Diagnostic procedures, medicines and treatment", "amount": "Up to P150,000" } ], "requirements": [ { - "requirement_id": 1, - "requirement_description": "Medical abstract, doctor's prescription, or treatment plan" + "requirementID": 1, + "requirementDescription": "Medical abstract, doctor's prescription, or treatment plan" } ], "procedure": [ @@ -264,9 +268,9 @@ }, { "programID": 606003, - "program_name": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", + "programName": "Cancer and Supportive-Palliative Medicines Access Program (CSPMAP)", "eligibility": [], - "program_description": "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.", + "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": [ @@ -275,8 +279,8 @@ ], "benefits": [ { - "benefit_id": 1, - "benefit_name": "Free medicines not yet covered by PhilHealth", + "benefitID": 1, + "benefitName": "Free medicines not yet covered by PhilHealth", "amount": "Free" } ], diff --git a/scripts/v2-additions/HealthInstitution.json b/scripts/v2-additions/HealthInstitution.json index 06e4907..5a82a84 100644 --- a/scripts/v2-additions/HealthInstitution.json +++ b/scripts/v2-additions/HealthInstitution.json @@ -1,28 +1,30 @@ { "_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.", - "Health_Insti": [ + "healthInsti": [ { "id": 2, "name": "Davao Doctors Hospital", "bgImageURL": "", - "source": "https://ddh.com.ph/", + "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": [ { - "contact_id": 1, + "contactID": 1, "type": "Landline", - "contact_details": "(+6382) 222-8000" + "contactDetails": "(+6382) 222-8000" }, { - "contact_id": 2, + "contactID": 2, "type": "Landline", - "contact_details": "(+6382) 222 - 7948" + "contactDetails": "(+6382) 222 - 7948" }, { - "contact_id": 3, + "contactID": 3, "type": "Email", - "contact_details": "info@ddh.com.ph" + "contactDetails": "info@ddh.com.ph" } ], "branches": [ @@ -42,38 +44,38 @@ "branchIDs": [ 1 ], - "service_name": "Radiation Oncology Department", - "service_description": "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", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [ { - "requirement_id": 1, - "requirement_description": "Referral letter and a short clinical abstract." + "requirementID": 1, + "requirementDescription": "Referral letter and a short clinical abstract." }, { - "requirement_id": 2, - "requirement_description": "Histopathologic report." + "requirementID": 2, + "requirementDescription": "Histopathologic report." }, { - "requirement_id": 3, - "requirement_description": "Laboratory and Imaging work-ups with results and radiographs." + "requirementID": 3, + "requirementDescription": "Laboratory and Imaging work-ups with results and radiographs." }, { - "requirement_id": 4, - "requirement_description": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" + "requirementID": 4, + "requirementDescription": "Complete blood count preferably normal or least 100 grams/dl. hemoglobin" }, { - "requirement_id": 5, - "requirement_description": "Dental clearance for head and neck tumors." + "requirementID": 5, + "requirementDescription": "Dental clearance for head and neck tumors." }, { - "requirement_id": 6, - "requirement_description": "Steroid coverage for brain and spinal cord irradiation." + "requirementID": 6, + "requirementDescription": "Steroid coverage for brain and spinal cord irradiation." } ], "procedure": [] @@ -83,8 +85,8 @@ "branchIDs": [ 1 ], - "service_name": "External Beam Radiation Therapy", - "service_description": "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", + "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", @@ -100,7 +102,7 @@ "sources": [ "https://ddh.com.ph/services-and-centers/external-beam-radiation-therapy/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Mondays - Fridays", "timeIn": "6:00am", @@ -115,8 +117,8 @@ "branchIDs": [ 1 ], - "service_name": "Brachytherapy", - "service_description": "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.", + "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", @@ -126,7 +128,7 @@ "sources": [ "https://ddh.com.ph/services-and-centers/nursing-service/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [ { @@ -148,14 +150,14 @@ "branchIDs": [ 1 ], - "service_name": "In-patient Chemotherapy", - "service_description": "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.", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] }, @@ -164,8 +166,8 @@ "branchIDs": [ 1 ], - "service_name": "Radioactive Iodine Therapy (RAI)", - "service_description": "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", + "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" @@ -175,7 +177,7 @@ "https://ddh.com.ph/services-and-centers/nursing-service/", "https://ddh.com.ph/services-and-centers/nuclear-medicine/" ], - "service_schedule": [ + "serviceSchedule": [ { "day": "Mondays - Fridays", "timeIn": "7:00am", @@ -208,14 +210,14 @@ "branchIDs": [ 1 ], - "service_name": "Long Term Radiotherapy", - "service_description": "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.", + "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/" ], - "service_schedule": null, + "serviceSchedule": null, "requirements": [], "procedure": [] } diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 6288e13..08c6af8 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -90,7 +90,7 @@ 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?.Health_Insti ?? []) { + for (const insti of data?.healthInsti ?? []) { const ids = (insti.branches ?? []).map(b => b.branchID); const known = new Set(ids); if (known.size !== ids.length) { @@ -99,7 +99,7 @@ if (existsSync(v2Health)) { 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.service_name}" uses branchID ${id}, which this institution doesn't have`); + console.error(`FAIL ${v2Health}: ${insti.name}, service ${s.serviceID} "${s.serviceName}" uses branchID ${id}, which this institution doesn't have`); failed++; } } @@ -113,8 +113,8 @@ const v2Read = (p) => { try { return existsSync(p) ? JSON.parse(readFileSync(p, const v2Fin = v2Read(join("data-v2", "FinancialInstitution", "FinancialInstiData.json")); const v2Hos = v2Read(v2Health); if (v2Fin && v2Hos) { - const programIDs = new Set(v2Fin.Financial_Insti.flatMap(r => (r.programs ?? []).map(p => p.programID))); - for (const h of v2Hos.Health_Insti) { + 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++; @@ -125,7 +125,7 @@ if (v2Fin && v2Hos) { // ---- 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 ?? []) { +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++; From d894a76e8eb035ca7d7a60cedb728ba87b8522e7 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:19:26 +0800 Subject: [PATCH 36/49] v2: official DOH sources for MAIFIP, CAF and CSPMAP Fritz asked for direct official sources, not articles (2026-11-27). Pages read in Chrome on 2026-11-27. MAIFIP: added DOH Malasakit Program Office pages (documentary requirements, process of availing, eMAIFIP access sites) and DOH Davao's Citizen's Charter 2025 (service 028); kept DOH Region 2's page. Removed SunStar (x2), PTV News, and Davao Doctors' page (it stays in that hospital's coverage). CAF: added DOH's release "DOH implements Cancer Assistance Fund"; removed PTV News and Philstar. CSPMAP: added DOH's lung cancer month release; the WHO link is now DOH's own copy of the same joint release. Removed facts that only news gave (Fritz: remove them): - MAIFIP "no fixed maximum amount" -> benefit amount null - MAIFIP "payment within 12 working days" - MAIFIP "cancer patients at SPMC have used it ..." - MAIFIP "apply online through eMAIFIP in the eGovPH app" (and applicationURL e.gov.ph) -> null - CAF "Up to P150,000" -> amount null Still on news: CAF's "SPMC is an access site (one of 36, July 2026)" keeps the Daily Tribune link until Fritz decides on DOH's 2025 list. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../FinancialInstiData.json | 26 +++++++++---------- .../v2-additions/FinancialInstitution.json | 26 +++++++++---------- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa45f83..5f054c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - **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"). ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index a21d08d..32193bb 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -547,23 +547,23 @@ "Indigent and financially incapacitated patients who cannot afford their medical expenses", "Including PhilHealth members whose remaining bill is still too big" ], - "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts.", "cancerTypes": [ "All cancers" ], - "applicationURL": "https://e.gov.ph/", + "applicationURL": null, "sources": [ - "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", - "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", - "https://ptvnews.ph/?p=251764", - "https://www.sunstar.com.ph/manila/doh-expands-emaifip-to-lgu-hospitals-32k-patients-served-in-1-month" + "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/", + "https://doh.gov.ph/mpo/emaifip-access-sites/", + "https://ro11.doh.gov.ph/wp-content/uploads/2025/12/citizens-charter_compressed.pdf" ], "benefits": [ { "benefitID": 1, "benefitName": "Remaining medical bill after PhilHealth and other discounts", - "amount": "No fixed cap" + "amount": null } ], "requirements": [ @@ -587,7 +587,7 @@ "procedure": [ { "step": 1, - "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital, or apply online through eMAIFIP in the eGovPH app. eMAIFIP started in DOH hospitals and is being extended to LGU hospitals." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." }, { "step": 2, @@ -620,15 +620,14 @@ "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide", - "https://ptvnews.ph/pbbm-to-doh-expedite-cancer-fund-request/", - "https://www.philstar.com/headlines/2022/11/14/2223750/how-cancer-patients-survivors-can-access-assistance-fund" + "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/", + "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" ], "benefits": [ { "benefitID": 1, "benefitName": "Diagnostic procedures, medicines and treatment", - "amount": "Up to P150,000" + "amount": null } ], "requirements": [ @@ -661,7 +660,8 @@ "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://www.who.int/philippines/news/detail/14-02-2024-doh--who-launch-2024-2028-national-integrated-cancer-control-program-(niccp)-strategic-framework" + "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": [ { diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 4d883af..04de75b 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -161,23 +161,23 @@ "Indigent and financially incapacitated patients who cannot afford their medical expenses", "Including PhilHealth members whose remaining bill is still too big" ], - "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts. DOH Davao says there is no fixed maximum amount, and payment is targeted within 12 working days when documents are complete (2026). Cancer patients at SPMC have used it for laboratories, CT scans, procedures and medicines.", + "programDescription": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts.", "cancerTypes": [ "All cancers" ], - "applicationURL": "https://e.gov.ph/", + "applicationURL": null, "sources": [ - "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families", - "https://ddh.com.ph/ddh-accredited-government-financial-medical-assistance/", "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", - "https://ptvnews.ph/?p=251764", - "https://www.sunstar.com.ph/manila/doh-expands-emaifip-to-lgu-hospitals-32k-patients-served-in-1-month" + "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/", + "https://doh.gov.ph/mpo/emaifip-access-sites/", + "https://ro11.doh.gov.ph/wp-content/uploads/2025/12/citizens-charter_compressed.pdf" ], "benefits": [ { "benefitID": 1, "benefitName": "Remaining medical bill after PhilHealth and other discounts", - "amount": "No fixed cap" + "amount": null } ], "requirements": [ @@ -201,7 +201,7 @@ "procedure": [ { "step": 1, - "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital, or apply online through eMAIFIP in the eGovPH app. eMAIFIP started in DOH hospitals and is being extended to LGU hospitals." + "instruction": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." }, { "step": 2, @@ -234,15 +234,14 @@ "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide", - "https://ptvnews.ph/pbbm-to-doh-expedite-cancer-fund-request/", - "https://www.philstar.com/headlines/2022/11/14/2223750/how-cancer-patients-survivors-can-access-assistance-fund" + "https://doh.gov.ph/press-release/DOH-IMPLEMENTS-CANCER-ASSISTANCE-FUND-TO-SUPPORT-CANCER-PATIENTS-AND-SURVIVORS/", + "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" ], "benefits": [ { "benefitID": 1, "benefitName": "Diagnostic procedures, medicines and treatment", - "amount": "Up to P150,000" + "amount": null } ], "requirements": [ @@ -275,7 +274,8 @@ "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://www.who.int/philippines/news/detail/14-02-2024-doh--who-launch-2024-2028-national-integrated-cancer-control-program-(niccp)-strategic-framework" + "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": [ { From 4090d3cda4aa0b7b70dc5e0411132afd2d38e92d Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:20:11 +0800 Subject: [PATCH 37/49] v2: SPMC's CAF access site from DOH's 2025 list Fritz chose DOH's list over the Daily Tribune (2026-11-27). The list "CAF Access Sites 2025 [34 Sites]" (Google Drive file reached through DOH's tinyurl.com/CAF-Access-Sites link, read 2026-11-27) names Southern Philippines Medical Center under Davao. - CAF program: "(one of 36 nationwide, July 2026)" is now "(one of 34 in DOH's 2025 list)"; Tribune link replaced by the list. - SPMC coverage (convert-v2 decision 16): same change. Co-Authored-By: Claude Opus 5.5 --- data-v2/FinancialInstitution/FinancialInstiData.json | 4 ++-- data-v2/HealthInstitution/HealthInstiData.json | 4 ++-- scripts/convert-v2.mjs | 4 ++-- scripts/v2-additions/FinancialInstitution.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 32193bb..085e837 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -606,7 +606,7 @@ "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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 MAIP. 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", @@ -621,7 +621,7 @@ "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" ], "benefits": [ { diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 19c739d..d60791b 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -330,9 +330,9 @@ { "programID": 606002, "name": "Cancer Assistance Fund", - "details": "One of 36 DOH Cancer Assistance Fund access sites (July 2026).", + "details": "One of 34 CAF access sites in DOH's 2025 list.", "sources": [ - "https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" ] }, { diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index c9fa293..743810e 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -282,8 +282,8 @@ const REVIEW = { { programID: 606002, name: "Cancer Assistance Fund", - details: "One of 36 DOH Cancer Assistance Fund access sites (July 2026).", - sources: ["https://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide"], + details: "One of 34 CAF access sites in DOH's 2025 list.", + sources: ["https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view"], }, { programID: 606001, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 04de75b..f84e68d 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -220,7 +220,7 @@ "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 36 nationwide, July 2026).", + "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 MAIP. 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", @@ -235,7 +235,7 @@ "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" ], "benefits": [ { From d748321a955794d46bf9de5af6a46069582cc3c4 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:22:13 +0800 Subject: [PATCH 38/49] v2: remove SPMC's MAIFIP coverage item (news only) SPMC's coverage listed MAIFIP with details "Cancer patients at SPMC have used MAIFIP for laboratories, CT scans, procedures and medicines (2026)", supported only by a SunStar article. Fritz: remove it (2026-11-27). SPMC coverage now has 4 items. Davao Doctors' MAIFIP item stays (its source is the hospital's own page). Co-Authored-By: Claude Opus 5.5 --- data-v2/HealthInstitution/HealthInstiData.json | 8 -------- scripts/convert-v2.mjs | 7 +------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index d60791b..20348a0 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -334,14 +334,6 @@ "sources": [ "https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view" ] - }, - { - "programID": 606001, - "name": "MAIFIP", - "details": "Cancer patients at SPMC have used MAIFIP for laboratories, CT scans, procedures and medicines (2026).", - "sources": [ - "https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families" - ] } ] }, diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index 743810e..df53d59 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -285,12 +285,7 @@ const REVIEW = { details: "One of 34 CAF access sites in DOH's 2025 list.", sources: ["https://drive.google.com/file/d/12qWZNvJ9XFXUns86mqCTYgk1KgaqlOFs/view"], }, - { - programID: 606001, - name: "MAIFIP", - details: "Cancer patients at SPMC have used MAIFIP for laboratories, CT scans, procedures and medicines (2026).", - sources: ["https://www.sunstar.com.ph/davao/maifip-program-eases-medical-cost-burden-for-struggling-families"], - }, + // 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, From e19bc6910ef08e9e5aa65c7c3e687c694772a2fc Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:23:43 +0800 Subject: [PATCH 39/49] v2: SPMC's CAF service uses DOH's 2025 list (v2 only) SPMC's "Cancer Assistance Fund (CAF)" service (from v1) said "one of 36 ... access sites nationwide (July 2026)", citing the Daily Tribune. Fritz: fix it in v2 only (2026-11-27); live v1 keeps its text. Converter decision 22 now writes "one of 34 CAF access sites in its 2025 list" with DOH's 2025 list as source, plus DOH's CAF release for "supports cancer care, from early screening and diagnosis to treatment". The rule stops the build if the v1 text changes. No Daily Tribune "36 sites" link is left in data-v2. Co-Authored-By: Claude Opus 5.5 --- data-v2/HealthInstitution/HealthInstiData.json | 5 +++-- scripts/convert-v2.mjs | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 20348a0..769f3f3 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -105,11 +105,12 @@ 1 ], "serviceName": "Cancer Assistance Fund (CAF)", - "serviceDescription": "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.", + "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://tribune.net.ph/2026/07/06/doh-expands-cancer-assistance-fund-access-sites-to-36-nationwide" + "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": [], diff --git a/scripts/convert-v2.mjs b/scripts/convert-v2.mjs index df53d59..0f3f459 100644 --- a/scripts/convert-v2.mjs +++ b/scripts/convert-v2.mjs @@ -565,6 +565,20 @@ function applyReview(folder, records) { } 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)); From 7f1bb0596518aae2f925b525bdf233fe85374c94 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:37:30 +0800 Subject: [PATCH 40/49] v2: MAIFIP requirements and steps from DOH's Malasakit Program Office Fritz asked (2026-11-27) to use DOH's list and to send people to the Malasakit Center. Requirements: copied as written from https://doh.gov.ph/mpo/list-of-documentary-requirements-in-availing-maifip-program-medical-assistance/ parts A (In-Patients) and B (Out-Patients in the Health Facility), labeled "In-patients:" / "Out-patients:". Parts C-E (primary care facilities and labs, dental clinics, dialysis clinics) are left out: they are not Malasakit Center (hospital) cases. Procedure: the 5 steps of https://doh.gov.ph/mpo/process-of-availing-of-medical-assistance/ ("Paano Makahingi ng Tulong sa Malasakit Center?"), in English. No more "Medical Social Work Unit" or "Unified Intake Sheet". Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 22 +++++++++++++------ .../v2-additions/FinancialInstitution.json | 22 +++++++++++++------ 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 085e837..b1fe8e3 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -569,33 +569,41 @@ "requirements": [ { "requirementID": 1, - "requirementDescription": "Unified Intake Sheet (evaluated by a social worker)" + "requirementDescription": "In-patients: Hospital bill or charges or fees or statement of account (SOA)" }, { "requirementID": 2, - "requirementDescription": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + "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": "Medical certificate or patient's clinical summary / medical abstract" + "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": "Copy of IDs (patient and/or patient's representative)" + "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": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." + "instruction": "Get a consultation or treatment at a hospital that has a Malasakit Center." }, { "step": 2, - "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + "instruction": "Go to the Malasakit Center office inside the hospital for your medical or financial needs." }, { "step": 3, - "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." + "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." } ] }, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index f84e68d..483f594 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -183,33 +183,41 @@ "requirements": [ { "requirementID": 1, - "requirementDescription": "Unified Intake Sheet (evaluated by a social worker)" + "requirementDescription": "In-patients: Hospital bill or charges or fees or statement of account (SOA)" }, { "requirementID": 2, - "requirementDescription": "Final bill or statement of account (in-patient), or price quotation and doctor's prescription (out-patient)" + "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": "Medical certificate or patient's clinical summary / medical abstract" + "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": "Copy of IDs (patient and/or patient's representative)" + "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": "Go to the Malasakit Center or the Medical Social Work Unit (MSW) of your hospital." + "instruction": "Get a consultation or treatment at a hospital that has a Malasakit Center." }, { "step": 2, - "instruction": "Ask the hospital's social worker to assess you for MAIFIP. The social worker evaluates your Unified Intake Sheet." + "instruction": "Go to the Malasakit Center office inside the hospital for your medical or financial needs." }, { "step": 3, - "instruction": "Submit the documents the social worker asks for. Payment is faster when the documents are complete." + "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." } ] }, From 830d074ab01471f1f8f6cc8553f2037f4214e815 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:41:51 +0800 Subject: [PATCH 41/49] v2: MAIFIP uses only DOH's two Malasakit Program Office pages Fritz chose (2026-11-27) two sources for MAIFIP: the documentary requirements page and the process of availing page. Facts that only the other sources backed now follow these two pages (process page, read in Chrome 2026-11-27, in English): - programDescription: where the help is given (Malasakit Centers in DOH, state university and college, DND, PNP and selected LGU hospitals) - eligibility: every Filipino who is an indigent patient, or a financially incapacitated patient - benefits: DOH's list (PNDF or compassionate-use medicines, blood products, medical procedures and supplies, mental health / psychosocial / rehabilitation support, hospital bill), amounts null Removed sources: DOH Region 2's MAIFIP page, eMAIFIP access sites and DOH Davao's Citizen's Charter. Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 33 ++++++++++++++----- .../v2-additions/FinancialInstitution.json | 33 ++++++++++++++----- 2 files changed, 50 insertions(+), 16 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index b1fe8e3..2465e9a 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -544,25 +544,42 @@ "programID": 606001, "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", "eligibility": [ - "Indigent and financially incapacitated patients who cannot afford their medical expenses", - "Including PhilHealth members whose remaining bill is still too big" + "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": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts.", + "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": [ "All cancers" ], "applicationURL": null, "sources": [ - "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", "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/", - "https://doh.gov.ph/mpo/emaifip-access-sites/", - "https://ro11.doh.gov.ph/wp-content/uploads/2025/12/citizens-charter_compressed.pdf" + "https://doh.gov.ph/mpo/process-of-availing-of-medical-assistance/" ], "benefits": [ { "benefitID": 1, - "benefitName": "Remaining medical bill after PhilHealth and other discounts", + "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 } ], diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 483f594..12cad70 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -158,25 +158,42 @@ "programID": 606001, "programName": "Medical Assistance for Indigent and Financially Incapacitated Patients (MAIFIP)", "eligibility": [ - "Indigent and financially incapacitated patients who cannot afford their medical expenses", - "Including PhilHealth members whose remaining bill is still too big" + "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": "Covers the remaining out-of-pocket hospital bill after PhilHealth and other discounts.", + "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": [ "All cancers" ], "applicationURL": null, "sources": [ - "https://ro2.doh.gov.ph/medical-assistance-for-indigent-and-financially-incapacitated-patients-maifip/", "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/", - "https://doh.gov.ph/mpo/emaifip-access-sites/", - "https://ro11.doh.gov.ph/wp-content/uploads/2025/12/citizens-charter_compressed.pdf" + "https://doh.gov.ph/mpo/process-of-availing-of-medical-assistance/" ], "benefits": [ { "benefitID": 1, - "benefitName": "Remaining medical bill after PhilHealth and other discounts", + "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 } ], From ed5f4582fa42fcb459a9fa363c3ad65f9fb29ae1 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:42:37 +0800 Subject: [PATCH 42/49] v2: MAIFIP cancerTypes is not given Neither DOH Malasakit Program Office page names cancer types (MAIFIP is for all indigent and financially incapacitated patients), so cancerTypes ["All cancers"] is now null. Fritz, 2026-11-27. Co-Authored-By: Claude Opus 5.5 --- data-v2/FinancialInstitution/FinancialInstiData.json | 4 +--- scripts/v2-additions/FinancialInstitution.json | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 2465e9a..799afe4 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -548,9 +548,7 @@ "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": [ - "All cancers" - ], + "cancerTypes": null, "applicationURL": null, "sources": [ "https://doh.gov.ph/mpo/list-of-documentary-requirements-in-availing-maifip-program-medical-assistance/", diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 12cad70..c36b697 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -162,9 +162,7 @@ "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": [ - "All cancers" - ], + "cancerTypes": null, "applicationURL": null, "sources": [ "https://doh.gov.ph/mpo/list-of-documentary-requirements-in-availing-maifip-program-medical-assistance/", From 42bbb701a4223fbd846d8c82ce0cd17786a78c8c Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:43:37 +0800 Subject: [PATCH 43/49] v2: display rule for empty requirements and procedure Fritz chose (2026-11-27) a display rule over filler text in the data. The `requirements` and `procedure` definitions in the Financial and Health schemas now say what apps show when they are empty: "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."). It reaches the v2 OpenAPI spec. The data stays empty (18 items today: CSPMAP and 17 hospital services), so missing-v2.mjs still lists them as gaps to fill. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/FinancialInstitution/FinancialInstiData.schema.json | 2 ++ data-v2/HealthInstitution/HealthInstiData.schema.json | 2 ++ 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f054c8..bb6e700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - **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. ### Repo - Issue forms: wrong data, new resource, API problem, privacy or removal request. Blank issues are off. diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 9660f66..6c38a45 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -378,6 +378,7 @@ }, "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": { @@ -397,6 +398,7 @@ }, "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": { diff --git a/data-v2/HealthInstitution/HealthInstiData.schema.json b/data-v2/HealthInstitution/HealthInstiData.schema.json index 3a20d43..b2be154 100644 --- a/data-v2/HealthInstitution/HealthInstiData.schema.json +++ b/data-v2/HealthInstitution/HealthInstiData.schema.json @@ -399,6 +399,7 @@ }, "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": { @@ -418,6 +419,7 @@ }, "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": { From c175bf6e8597e6cd8a30c78142746cc1879ec0d5 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:46:17 +0800 Subject: [PATCH 44/49] v2: MAIP is written MAIFIP CAF's description said "for cancer cases it is used before MAIP", as the DBM-DOH circular 2023-001 wrote it. MAIP is the older name of the same DOH program. Fritz (2026-11-27): write MAIFIP everywhere in v2, so patients don't think it is another program. It was the only MAIP left. Co-Authored-By: Claude Opus 5.5 --- data-v2/FinancialInstitution/FinancialInstiData.json | 2 +- scripts/v2-additions/FinancialInstitution.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 799afe4..1d81845 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -629,7 +629,7 @@ "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 34 in DOH's 2025 list).", + "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", diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index c36b697..701018f 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -243,7 +243,7 @@ "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 MAIP. In Davao City, Southern Philippines Medical Center is a CAF access site (one of 34 in DOH's 2025 list).", + "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", From f63acae28ea1611902734d1a87845301f198af3e Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:47:05 +0800 Subject: [PATCH 45/49] v2: DOH points only to the Malasakit Center Removed DOH's "DOH Office Davao City" branch (PRRD Bldg Bajada, infront SPMC Hospital). DOH's MAIFIP steps (Malasakit Program Office) send patients to the Malasakit Center, and since the DOH Davao Citizen's Charter was dropped as a source, nothing listed says to apply at that office. The Malasakit Center is now DOH's only branch (branchID 1). Fritz, 2026-11-27. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/FinancialInstitution/FinancialInstiData.json | 10 ---------- scripts/v2-additions/FinancialInstitution.json | 9 --------- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb6e700..7da81d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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. +- 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/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index 1d81845..c1c497f 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -520,16 +520,6 @@ "branches": [ { "branchID": 1, - "branchName": "DOH Office Davao City", - "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", - "landmark": null, - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, "branchName": "Malasakit Center", "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", "landmark": null, diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 701018f..60fece1 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -136,15 +136,6 @@ "branches": [ { "branchID": 1, - "branchName": "DOH Office Davao City", - "location": "PRRD Bldg Bajada, Davao City (infront SPMC Hospital)", - "latitude": null, - "longitude": null, - "schedule": null, - "contacts": [] - }, - { - "branchID": 2, "branchName": "Malasakit Center", "location": "Malasakit Center, Bajada, Davao City (beside SPMC Hospital)", "latitude": null, From e48c4474a6748c358037a77d49b1e16c680f696d Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 09:57:36 +0800 Subject: [PATCH 46/49] v2: Malasakit Center (SPMC) contacts for PCSO and DOH - PCSO: add branch 2, Malasakit Center beside SPMC, with its landline and email. Keep the Maharlika branch. - DOH: add the same landline and email to its Malasakit Center branch. - Sources: DOH Malasakit Center directory (https://doh.gov.ph/mpo/mc-directory/, row given by Fritz 2026-11-27) and RA 11463 Secs. 6, 8, 9(c) for PCSO (https://lawphil.net/statutes/repacts/ra2019/ra_11463_2019.html). - Left out the contact person's name and a personal Gmail (RA 10173). Co-Authored-By: Claude Opus 5.5 --- .../FinancialInstiData.json | 41 +++++++++++++++++-- .../v2-additions/FinancialInstitution.json | 40 ++++++++++++++++-- 2 files changed, 75 insertions(+), 6 deletions(-) diff --git a/data-v2/FinancialInstitution/FinancialInstiData.json b/data-v2/FinancialInstitution/FinancialInstiData.json index c1c497f..b1403e9 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.json @@ -389,7 +389,9 @@ "name": "Philippine Charity Sweepstakes Office (PCSO)", "bgImageURL": "/images/FinancialInstitution/pcso.webp", "sources": [ - "https://www.pcso.gov.ph/" + "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", @@ -415,6 +417,27 @@ "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": [ @@ -512,7 +535,8 @@ "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", "sources": [ - "https://doh.gov.ph/" + "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", @@ -526,7 +550,18 @@ "latitude": null, "longitude": null, "schedule": null, - "contacts": [] + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] } ], "programs": [ diff --git a/scripts/v2-additions/FinancialInstitution.json b/scripts/v2-additions/FinancialInstitution.json index 60fece1..9d93c10 100644 --- a/scripts/v2-additions/FinancialInstitution.json +++ b/scripts/v2-additions/FinancialInstitution.json @@ -6,7 +6,9 @@ "name": "Philippine Charity Sweepstakes Office (PCSO)", "bgImageURL": "/images/FinancialInstitution/pcso.webp", "sources": [ - "https://www.pcso.gov.ph/" + "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", @@ -31,6 +33,26 @@ "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": [ @@ -128,7 +150,8 @@ "name": "Department of Health (DOH)", "bgImageURL": "/images/FinancialInstitution/doh.webp", "sources": [ - "https://doh.gov.ph/" + "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", @@ -141,7 +164,18 @@ "latitude": null, "longitude": null, "schedule": null, - "contacts": [] + "contacts": [ + { + "contactID": 1, + "type": "Landline", + "contactDetails": "227-2731 loc 4103" + }, + { + "contactID": 2, + "type": "Email", + "contactDetails": "medicaassistanceprogramspmc@gmail.com" + } + ] } ], "programs": [ From 3183a86bb2e67c60d0f4df7c9c3673844a651d4f Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 10:06:11 +0800 Subject: [PATCH 47/49] v2: help-desk display rule for empty money-help eligibility When a program's eligibility is empty, apps 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." Same rule as for empty requirements and procedure. The data stays empty. First used by DOH's CSPMAP (606003). CHANGELOG updated. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + data-v2/FinancialInstitution/FinancialInstiData.schema.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7da81d8..3e4b6f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ A new data shape, to be served at `/v2/…` next to v1. Not live yet; v1 is unch - 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 diff --git a/data-v2/FinancialInstitution/FinancialInstiData.schema.json b/data-v2/FinancialInstitution/FinancialInstiData.schema.json index 6c38a45..b04d7cc 100644 --- a/data-v2/FinancialInstitution/FinancialInstiData.schema.json +++ b/data-v2/FinancialInstitution/FinancialInstiData.schema.json @@ -135,7 +135,7 @@ "type": "string" }, "uniqueItems": true, - "description": "Who can get this program, one rule per item, as written by the source. Empty if not given (show \"Not given\")." + "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" From 6e3c59087c7f78e75dcf41275679c451a9404152 Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 11:26:27 +0800 Subject: [PATCH 48/49] SPMC: add Chemotherapy service (no price) v1 service 4 and v2 service 4 (other SPMC v2 services move up one ID). Source: SPMC official Rates and Fees PDF (as of August 31, 2022), https://spmc.doh.gov.ph/wp-content/uploads/AllRatesAndFees-merged.pdf Price left out by Fritz's decision (2026-11-27). Co-Authored-By: Claude Opus 5.5 --- .../HealthInstitution/HealthInstiData.json | 30 ++++++++++++++----- data/HealthInstitution/HealthInstiData.json | 8 +++++ 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 769f3f3..9fddbe9 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -121,6 +121,22 @@ "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, @@ -139,7 +155,7 @@ "procedure": [] }, { - "serviceID": 5, + "serviceID": 6, "branchIDs": [ 1 ], @@ -161,7 +177,7 @@ "procedure": [] }, { - "serviceID": 6, + "serviceID": 7, "branchIDs": [ 1 ], @@ -183,7 +199,7 @@ "procedure": [] }, { - "serviceID": 7, + "serviceID": 8, "branchIDs": [ 1 ], @@ -205,7 +221,7 @@ "procedure": [] }, { - "serviceID": 8, + "serviceID": 9, "branchIDs": [ 1 ], @@ -227,7 +243,7 @@ "procedure": [] }, { - "serviceID": 9, + "serviceID": 10, "branchIDs": [ 1 ], @@ -251,7 +267,7 @@ "procedure": [] }, { - "serviceID": 10, + "serviceID": 11, "branchIDs": [ 1 ], @@ -278,7 +294,7 @@ "procedure": [] }, { - "serviceID": 11, + "serviceID": 12, "branchIDs": [ 1 ], diff --git a/data/HealthInstitution/HealthInstiData.json b/data/HealthInstitution/HealthInstiData.json index fc58e68..ccae61f 100644 --- a/data/HealthInstitution/HealthInstiData.json +++ b/data/HealthInstitution/HealthInstiData.json @@ -51,6 +51,14 @@ "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": [] } ] } From 734a3286cbcf5ba3ec8a3727e05558164f64e71a Mon Sep 17 00:00:00 2001 From: ProjectFuritsu Date: Fri, 27 Nov 2026 12:51:32 +0800 Subject: [PATCH 49/49] HealthInstitution: add Brokenshire Medical Center (id 3) v1 record and v2 (via convert-v2.mjs --provenance). Sources: official https://brokenshiremed.com/ (Chemotherapy and Infusion Unit, address, contacts) and https://brokenshiremed.com/news-events. Coordinates from Google Maps, given by Fritz. Schedule not given: days [] (help-desk rule). Approved by Fritz, 2026-11-27. Davao Doctors stays v2-only (id 2). Co-Authored-By: Claude Opus 5.5 --- .../HealthInstitution/HealthInstiData.json | 60 ++++++++++++++++++- data/HealthInstitution/HealthInstiData.json | 42 +++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) diff --git a/data-v2/HealthInstitution/HealthInstiData.json b/data-v2/HealthInstitution/HealthInstiData.json index 9fddbe9..78dbdf7 100644 --- a/data-v2/HealthInstitution/HealthInstiData.json +++ b/data-v2/HealthInstitution/HealthInstiData.json @@ -5,7 +5,7 @@ "description": "Hospitals with cancer services in Davao City: services, schedules, fees and the programs they accept.", "apiVersion": "v2", "lastUpdated": "2026-11-27", - "recordCount": 2, + "recordCount": 3, "coverage": "Davao City, Philippines", "language": "en", "license": "CC0-1.0", @@ -618,6 +618,64 @@ ] } ] + }, + { + "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/HealthInstitution/HealthInstiData.json b/data/HealthInstitution/HealthInstiData.json index ccae61f..786e557 100644 --- a/data/HealthInstitution/HealthInstiData.json +++ b/data/HealthInstitution/HealthInstiData.json @@ -61,6 +61,48 @@ "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": [] + } + ] } ] } \ No newline at end of file