{
  "openapi": "3.1.0",
  "info": {
    "title": "Cancer Open Data API (beta)",
    "version": "a2b70ed",
    "summary": "Public, read-only data on cancer care resources in one place.",
    "description": "**Beta.** The API can still change. Version 1 is frozen: new and corrected data goes to version 2 at `/v2/`. Version 1 stays at the same links until a stop date is announced.\n\nData on cancer care resources: health and financial institutions, medical specialists, support groups and news.\n\n- **Read-only, no keys.** Any website can read it (`Access-Control-Allow-Origin: *`).\n- **Use a plain GET with no custom request headers.** The data files are static, and `OPTIONS` (CORS preflight) returns `405`.\n- **Errors** are JSON: `{ \"error\": { \"status\": 404, \"message\": \"…\" } }`.\n- Files are cached for 5 minutes. The source and change history are on GitHub.",
    "license": {
      "name": "See repository",
      "url": "https://github.com/ProjectFuritsu/CancerOpenData"
    }
  },
  "externalDocs": {
    "description": "README on GitHub",
    "url": "https://github.com/ProjectFuritsu/CancerOpenData#readme"
  },
  "servers": [
    {
      "url": "/",
      "description": "This API"
    }
  ],
  "tags": [
    {
      "name": "Index",
      "description": "Start here: the list of datasets."
    },
    {
      "name": "Datasets",
      "description": "The data files."
    },
    {
      "name": "Schemas",
      "description": "The rules each data file must pass."
    },
    {
      "name": "Images",
      "description": "Images used by the data."
    }
  ],
  "paths": {
    "/": {
      "get": {
        "tags": [
          "Index"
        ],
        "summary": "List all datasets",
        "description": "Every dataset with its data URL, schema URL, size and last change, plus the live commit.",
        "operationId": "listDatasets",
        "responses": {
          "200": {
            "description": "The dataset list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetIndex"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/Feeds/FeedsData.json": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "Feeds",
        "description": "News, blogs and articles about cancer care.\n\nSchema: `/Feeds/FeedsData.schema.json`",
        "operationId": "getFeeds",
        "responses": {
          "200": {
            "description": "The Feeds data.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "public, max-age=300"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Feeds"
                }
              }
            }
          },
          "304": {
            "description": "Not changed since your copy (send `If-None-Match` with the ETag)."
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/Feeds/FeedsData.schema.json": {
      "get": {
        "tags": [
          "Schemas"
        ],
        "summary": "Feeds JSON Schema",
        "description": "The JSON Schema (draft 2020-12) that the data file must pass.",
        "operationId": "getFeedsSchema",
        "responses": {
          "200": {
            "description": "The schema.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/FinancialInstitution/FinancialInstiData.json": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "FinancialInstitution",
        "description": "Financial institutions and their programs (e.g. PhilHealth, SSS, GSIS, Pag-IBIG): eligibility, benefits, requirements and steps to apply.\n\nSchema: `/FinancialInstitution/FinancialInstiData.schema.json`",
        "operationId": "getFinancialInstitution",
        "responses": {
          "200": {
            "description": "The FinancialInstitution data.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "public, max-age=300"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancialInstitution"
                }
              }
            }
          },
          "304": {
            "description": "Not changed since your copy (send `If-None-Match` with the ETag)."
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/FinancialInstitution/FinancialInstiData.schema.json": {
      "get": {
        "tags": [
          "Schemas"
        ],
        "summary": "FinancialInstitution JSON Schema",
        "description": "The JSON Schema (draft 2020-12) that the data file must pass.",
        "operationId": "getFinancialInstitutionSchema",
        "responses": {
          "200": {
            "description": "The schema.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/HealthInstitution/HealthInstiData.json": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "HealthInstitution",
        "description": "Health institutions and their services (e.g. SPMC Cancer Institute): schedules, requirements and procedures.\n\nSchema: `/HealthInstitution/HealthInstiData.schema.json`",
        "operationId": "getHealthInstitution",
        "responses": {
          "200": {
            "description": "The HealthInstitution data.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "public, max-age=300"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthInstitution"
                }
              }
            }
          },
          "304": {
            "description": "Not changed since your copy (send `If-None-Match` with the ETag)."
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/HealthInstitution/HealthInstiData.schema.json": {
      "get": {
        "tags": [
          "Schemas"
        ],
        "summary": "HealthInstitution JSON Schema",
        "description": "The JSON Schema (draft 2020-12) that the data file must pass.",
        "operationId": "getHealthInstitutionSchema",
        "responses": {
          "200": {
            "description": "The schema.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/MedicalSpecialist/MedicalSpecialistData.json": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "MedicalSpecialist",
        "description": "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\").\n\nSchema: `/MedicalSpecialist/MedicalSpecialistData.schema.json`",
        "operationId": "getMedicalSpecialist",
        "responses": {
          "200": {
            "description": "The MedicalSpecialist data.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "public, max-age=300"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MedicalSpecialist"
                }
              }
            }
          },
          "304": {
            "description": "Not changed since your copy (send `If-None-Match` with the ETag)."
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/MedicalSpecialist/MedicalSpecialistData.schema.json": {
      "get": {
        "tags": [
          "Schemas"
        ],
        "summary": "MedicalSpecialist JSON Schema",
        "description": "The JSON Schema (draft 2020-12) that the data file must pass.",
        "operationId": "getMedicalSpecialistSchema",
        "responses": {
          "200": {
            "description": "The schema.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/SupportGroups/SupportGroupsData.json": {
      "get": {
        "tags": [
          "Datasets"
        ],
        "summary": "SupportGroups",
        "description": "Cancer support groups (e.g. AMUMA) and how to contact them.\n\nSchema: `/SupportGroups/SupportGroupsData.schema.json`",
        "operationId": "getSupportGroups",
        "responses": {
          "200": {
            "description": "The SupportGroups data.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "examples": [
                    "public, max-age=300"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportGroups"
                }
              }
            }
          },
          "304": {
            "description": "Not changed since your copy (send `If-None-Match` with the ETag)."
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/SupportGroups/SupportGroupsData.schema.json": {
      "get": {
        "tags": [
          "Schemas"
        ],
        "summary": "SupportGroups JSON Schema",
        "description": "The JSON Schema (draft 2020-12) that the data file must pass.",
        "operationId": "getSupportGroupsSchema",
        "responses": {
          "200": {
            "description": "The schema.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/images/{folder}/{file}": {
      "get": {
        "tags": [
          "Images"
        ],
        "summary": "An image used by the data",
        "description": "Image fields (`bgImageURL`, `imageURL`) that start with `/images/` point here. Put the API's base URL in front.",
        "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.webp"
          }
        ],
        "responses": {
          "200": {
            "description": "The image.",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/*"
                }
              }
            }
          },
          "404": {
            "description": "No such image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "status",
              "message"
            ],
            "properties": {
              "status": {
                "type": "integer",
                "examples": [
                  404
                ]
              },
              "message": {
                "type": "string",
                "examples": [
                  "Not found. See / for the list of datasets."
                ]
              },
              "path": {
                "type": "string",
                "description": "Sent with 404."
              },
              "method": {
                "type": "string",
                "description": "Sent with 405."
              }
            }
          }
        }
      },
      "DatasetIndex": {
        "type": "object",
        "required": [
          "name",
          "version",
          "datasets"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "apiVersion": {
            "type": "string",
            "description": "Which API version this list is for."
          },
          "status": {
            "type": "string",
            "description": "Release status of this API version, for example beta."
          },
          "about": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "version": {
            "type": "string",
            "description": "The Git commit that is live."
          },
          "images": {
            "type": "string"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "usage": {
            "type": "string"
          },
          "datasets": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "data",
                "schema"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "examples": [
                    "Feeds"
                  ]
                },
                "data": {
                  "type": "string",
                  "format": "uri",
                  "description": "Full URL of the data file."
                },
                "schema": {
                  "type": "string",
                  "format": "uri",
                  "description": "Full URL of its JSON Schema."
                },
                "size": {
                  "type": "integer",
                  "description": "Size of the data file in bytes."
                },
                "updated": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Last commit that changed the data file."
                }
              }
            }
          }
        }
      },
      "Feeds": {
        "title": "FeedsData",
        "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/<Folder>/<file>.webp, or a full https:// URL.",
                  "format": "uri-reference"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "News",
                    "Blog",
                    "Article"
                  ],
                  "description": "Feed type, e.g. News, Blog, Article."
                },
                "content": {
                  "type": "string"
                },
                "author": {
                  "type": "string"
                },
                "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",
                "content",
                "author",
                "publishDate",
                "source"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Feed"
        ],
        "additionalProperties": false
      },
      "FinancialInstitution": {
        "title": "FinancialInstiData",
        "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/<Folder>/<file>.webp, or a full https:// URL.",
                  "format": "uri-reference"
                },
                "source": {
                  "type": "string",
                  "description": "Source URL.",
                  "format": "uri"
                },
                "description": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number",
                  "description": "Latitude (from Google Maps)."
                },
                "longitude": {
                  "type": "number",
                  "description": "Longitude (from Google Maps)."
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "isWholeWeek": {
                      "type": "boolean"
                    },
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "string"
                          },
                          "timeIn": {
                            "type": "string",
                            "description": "Opening time, e.g. '8:00 am'."
                          },
                          "timeOut": {
                            "type": "string",
                            "description": "Closing time, e.g. '5:00 pm'."
                          }
                        },
                        "required": [
                          "day",
                          "timeIn",
                          "timeOut"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "isWholeWeek",
                    "days"
                  ],
                  "additionalProperties": false
                },
                "contacts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "contact_id": {
                        "type": "integer"
                      },
                      "type": {
                        "type": "string"
                      },
                      "contact_details": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "contact_id",
                      "type",
                      "contact_details"
                    ],
                    "additionalProperties": false
                  }
                },
                "programs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "programID": {
                        "type": "integer"
                      },
                      "program_name": {
                        "type": "string"
                      },
                      "source": {
                        "type": [
                          "null",
                          "string"
                        ],
                        "description": "Official page for this program (show it as a link). Optional; null if not known.",
                        "format": "uri"
                      },
                      "eligibility": {
                        "type": "string"
                      },
                      "program_description": {
                        "type": "string"
                      },
                      "benefits": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "benefit_id": {
                              "type": "integer"
                            },
                            "benefit_name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "benefit_id",
                            "benefit_name"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "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
                        }
                      }
                    },
                    "required": [
                      "programID",
                      "program_name",
                      "eligibility",
                      "program_description",
                      "benefits",
                      "requirements",
                      "procedure"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "bgImageURL",
                "source",
                "description",
                "type",
                "location",
                "latitude",
                "longitude",
                "schedule",
                "contacts",
                "programs"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Financial_Insti"
        ],
        "additionalProperties": false
      },
      "HealthInstitution": {
        "title": "HealthInstiData",
        "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/<Folder>/<file>.webp, or a full https:// URL.",
                  "format": "uri-reference"
                },
                "source": {
                  "type": "string",
                  "description": "Source URL.",
                  "format": "uri"
                },
                "description": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number",
                  "description": "Latitude (from Google Maps)."
                },
                "longitude": {
                  "type": "number",
                  "description": "Longitude (from Google Maps)."
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "isWholeWeek": {
                      "type": "boolean"
                    },
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "string"
                          },
                          "timeIn": {
                            "type": "string",
                            "description": "Opening time, e.g. '8:00 am'."
                          },
                          "timeOut": {
                            "type": "string",
                            "description": "Closing time, e.g. '5:00 pm'."
                          }
                        },
                        "required": [
                          "day",
                          "timeIn",
                          "timeOut"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "isWholeWeek",
                    "days"
                  ],
                  "additionalProperties": false
                },
                "contacts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "contact_id": {
                        "type": "integer"
                      },
                      "type": {
                        "type": "string"
                      },
                      "contact_details": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "contact_id",
                      "type",
                      "contact_details"
                    ],
                    "additionalProperties": false
                  }
                },
                "services": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "serviceID": {
                        "type": "integer"
                      },
                      "source": {
                        "type": [
                          "null",
                          "string"
                        ],
                        "description": "Source URL.",
                        "format": "uri"
                      },
                      "service_name": {
                        "type": "string"
                      },
                      "service_description": {
                        "type": "string"
                      },
                      "service_schedule": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "string"
                            },
                            "timeIn": {
                              "type": "string",
                              "description": "Opening time, e.g. '8:00 am'."
                            },
                            "timeOut": {
                              "type": "string",
                              "description": "Closing time, e.g. '5:00 pm'."
                            }
                          },
                          "required": [
                            "day",
                            "timeIn",
                            "timeOut"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "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
                        }
                      }
                    },
                    "required": [
                      "serviceID",
                      "source",
                      "service_name",
                      "service_description",
                      "requirements",
                      "procedure"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "bgImageURL",
                "source",
                "description",
                "type",
                "location",
                "latitude",
                "longitude",
                "schedule",
                "contacts",
                "services"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Health_Insti"
        ],
        "additionalProperties": false
      },
      "MedicalSpecialist": {
        "title": "MedicalSpecialistData",
        "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/<Folder>/<file>.webp, or a full https:// URL.",
                  "format": "uri-reference"
                },
                "source": {
                  "type": "string",
                  "description": "Source URL.",
                  "format": "uri"
                },
                "clinics": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "clinicid": {
                        "type": "integer"
                      },
                      "isWalkIns": {
                        "type": [
                          "null",
                          "boolean"
                        ],
                        "description": "true = takes walk-ins. null if not known."
                      },
                      "canDoBoth": {
                        "type": [
                          "null",
                          "boolean"
                        ],
                        "description": "true = takes both walk-ins and appointments (wins over isWalkIns). null if not known."
                      },
                      "clinicName": {
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "contacts": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "contact_id": {
                              "type": "integer"
                            },
                            "type": {
                              "type": "string"
                            },
                            "contact_details": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "contact_id",
                            "type",
                            "contact_details"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "schedule": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "string"
                            },
                            "timeIN": {
                              "type": "string",
                              "description": "Start time, e.g. '09:00 am'."
                            },
                            "timeOUT": {
                              "type": "string",
                              "description": "End time, e.g. '01:00 pm'."
                            }
                          },
                          "required": [
                            "day",
                            "timeIN",
                            "timeOUT"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "clinicid",
                      "isWalkIns",
                      "canDoBoth",
                      "clinicName",
                      "location",
                      "contacts",
                      "schedule"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "firstname",
                "lastname",
                "specialty",
                "description",
                "imageURL",
                "clinics"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Medical_Specialist"
        ],
        "additionalProperties": false
      },
      "SupportGroups": {
        "title": "SupportGroupsData",
        "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"
                  ]
                },
                "socmedURL": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "description": "Official social media page URL, or null if not known.",
                  "format": "uri"
                },
                "bgImageURL": {
                  "type": "string",
                  "description": "Background image: a path in this API like /images/<Folder>/<file>.webp, or a full https:// URL.",
                  "format": "uri-reference"
                },
                "location": {
                  "type": "string"
                },
                "longitude": {
                  "type": [
                    "null",
                    "number"
                  ],
                  "description": "Longitude (from Google Maps)."
                },
                "latitude": {
                  "type": [
                    "null",
                    "number"
                  ],
                  "description": "Latitude (from Google Maps)."
                },
                "founder": {
                  "type": [
                    "null",
                    "string"
                  ],
                  "description": "Founder's name, or null if not known."
                },
                "contacts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "contact_id": {
                        "type": "integer"
                      },
                      "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",
                          "Landline",
                          "Mobile"
                        ]
                      },
                      "contact_details": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "contact_id",
                      "type",
                      "contact_details"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "description",
                "type",
                "socmedURL",
                "bgImageURL",
                "location",
                "longitude",
                "latitude",
                "founder",
                "contacts"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Support_Group"
        ],
        "additionalProperties": false
      }
    }
  }
}
