{
 "openapi": "3.1.0",
 "info": {
  "title": "Deep Almanac: Australian private health insurance policies",
  "version": "1.0.0",
  "summary": "Every open hospital and combined policy of every Australian health insurer, with each fund's cheapest ranked per state, household and tier, refreshed daily from the regulator's monthly data release.",
  "description": "Static JSON files regenerated from the Private Health Insurance Ombudsman's monthly 'PrivateHealth.gov.au' release on data.gov.au, the same data that drives privatehealth.gov.au. Every row names the release file and zip it came from (source_file, source_url). Only index.json carries the generation and fetch times (generated_at, fetched_at, data_as_of): every other file changes only when the underlying data changes. Human-readable pages: https://deepalmanac.com/au/insurance/health/ (cheapest policies by state, household and tier), https://deepalmanac.com/au/insurance/health/funds/ (every fund) and one page per fund at https://deepalmanac.com/au/insurance/health/funds/<fund_slug>/. Start at questions.json: it lists the questions this dataset answers, the inputs to ask a reader for before answering (a premium question has no single answer until the state and household are known), and which file answers each. For the cheapest cover read top/{state}/{household}.json (the five cheapest per tier, 'any' first, under 30 kB), and cheapest/{state}/{household}.json (180 to 450 kB) for every fund's cheapest; cheapest.json is an index of both. by-state.json prices the same policy in every state. The per-state and per-fund policy files are indexes whose parts are at most a few megabytes; no file here is over 8 MiB. Premiums are list prices, before the government rebate and before any Lifetime Health Cover loading or age-based discount; this is reference data, not financial or health advice.",
  "termsOfService": "https://deepalmanac.com/terms",
  "contact": {
   "name": "Deep Almanac",
   "url": "https://deepalmanac.com"
  },
  "license": {
   "name": "Deep Almanac's own work CC BY 4.0; source data under its own terms, listed in licences in each index.json",
   "url": "https://deepalmanac.com/terms#data-licences"
  }
 },
 "servers": [
  {
   "url": "https://deepalmanac.com"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "health-insurance",
   "description": "Australian private health insurance policies (dataset au/insurance/health)."
  }
 ],
 "paths": {
  "/au/insurance/health/v1/index.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthInsuranceIndex",
    "summary": "Dataset index",
    "description": "Lists the dataset files, the per-state and per-fund files with their page URLs, and the source release.",
    "responses": {
     "200": {
      "description": "The dataset index.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthDatasetIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/cheapest.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getCheapestHealthPolicies",
    "summary": "Index of the cheapest-policy rankings per state and household",
    "description": "parts[state][household] gives the cheapest/ file (every fund's cheapest policy per tier) and the top/ file (the five cheapest per tier) for that state and household, with counts per tier. This file once held every ranking at once (11 MB); the rankings are the same, cut by state and household.",
    "responses": {
     "200": {
      "description": "Where the rankings for every state and household are.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthCheapestIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/questions.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthInsuranceQuestions",
    "summary": "What to ask a reader before answering a premium question",
    "description": "The questions this dataset answers, and for each one the inputs to collect first. ask_the_reader_first is what selects the data (state and household are both required: the same policy's premium varies by more than half between states, and by household type within a state). also_ask is context this dataset does not hold - income, age, cover already held, days without cover - which decides whether the reader owes the surcharge at all and what they would actually pay after the rebate and any Lifetime Health Cover loading. check_first is the test to apply before recommending cover. then_read names the file that answers the question.",
    "responses": {
     "200": {
      "description": "The question guide.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthQuestionGuide"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/answers.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthInsuranceAnswers",
    "summary": "Questions the dataset answers outright",
    "description": "The counterpart to questions.json: questions whose answers do not depend on who is asking, answered, with every figure computed from the current release. Covers what a family premium actually buys (two adults and their dependants, at the same price most funds charge a couple, with no cap on the number of children), and which dependants a fund will cover at what age: the young-adult, student and non-student classes have different age bands at every fund, so the same 22-year-old may be covered at one fund, covered only while studying at another, and not coverable at a third. Each answer carries an evidence object with the funds and counts behind it.",
    "responses": {
     "200": {
      "description": "The answered questions.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthAnswers"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/mls.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthMedicareLevySurcharge",
    "summary": "Medicare levy surcharge thresholds and rates, and the rebate",
    "description": "The Medicare levy surcharge income thresholds and rates for the current income year, and the private health insurance rebate percentages by income tier and the age of the oldest person covered, each with the dates it applies between. Transcribed from the ATO and checked against its pages daily; lapsed names any part whose period has ended without an update.",
    "responses": {
     "200": {
      "description": "The surcharge and rebate figures.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthMedicareLevySurcharge"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/hospitals.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthAgreementHospitals",
    "summary": "Index of the agreement hospitals, by state",
    "description": "An index of the agreement hospital register: hospital counts and the URL of each state's index, hospitals/{state}.json, whose entries name hospitals/{state}/{id}.json, one file per hospital with the funds holding an agreement with it. This file once held the whole register (about 690 kB). An agreement means the insurer and the hospital have settled what the insurer pays, so a member treated there is covered at those rates; at a hospital with no agreement the same policy can leave a large bill, which is why the hospital matters as much as the premium and is invisible in one. Each row carries the hospital's address, town, state, postcode and coordinates, whether it is a day hospital or admits overnight, and the funds that cover it. Cover is national: a fund's agreements are not confined to the state its members are priced in, so someone living on a border is covered on both sides. A handful of hospitals, almost all day clinics, have no agreement with any insurer and are listed as such.",
    "responses": {
     "200": {
      "description": "Where each state's hospitals are.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthHospitalRegisterIndex"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/by-state.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthPremiumsByState",
    "summary": "The same policy priced in every state, and the cheapest surcharge-exempt cover per state",
    "description": "A premium differs by state because risk equalisation pools claims per state, so an identical product costs different amounts depending on the member's address. state_index scores each state against the median price of the same policy elsewhere; widest_spread lists the products that vary most; cheapest_mls_compliant[state][household] is the cheapest open-membership policy that exempts the holder from the Medicare Levy Surcharge, which is the direct answer to 'the least I can spend to stop paying the surcharge'. Funds price on the member's real residential address, so the differences explain why the state must be asked rather than offering a choice.",
    "responses": {
     "200": {
      "description": "Cross-state comparison.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthByState"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/cheapest/{state}/{household}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getCheapestHealthPoliciesForStateAndHousehold",
    "summary": "The cheapest policies for one state and household, every tier",
    "description": "180 to 450 kB. rankings[tier] ('any' first, then gold to basic) is an array of HealthCheapestSliceEntry ordered by monthly premium: every fund's cheapest policy in that bucket, open and restricted-membership funds alike (fund_type and eligibility say who may join), excluding corporate, visitor and add-on-only policies. Every entry is appropriate hospital cover for the Medicare Levy Surcharge on the release's own flag.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State code.",
      "schema": {
       "type": "string",
       "enum": [
        "NSW",
        "VIC",
        "QLD",
        "SA",
        "WA",
        "TAS",
        "NT"
       ]
      }
     },
     {
      "name": "household",
      "in": "path",
      "required": true,
      "description": "Who the policy covers.",
      "schema": {
       "type": "string",
       "enum": [
        "single",
        "couple",
        "family",
        "family_plus",
        "single_parent",
        "single_parent_plus"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Rankings for one state and household.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthCheapestSlice"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/top/{state}/{household}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getTopHealthPoliciesForStateAndHousehold",
    "summary": "The five cheapest policies per tier for one state and household",
    "description": "Under 30 kB. rankings[tier] ('any' first) holds the first five entries of the cheapest/ file's ranking, cut to the fields needed to quote them. Every ranked policy avoids the Medicare Levy Surcharge at any tier (medicare_levy_surcharge), so the first entry in rankings.any is the cheapest surcharge-exempt cover from any fund, restricted funds included.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State code.",
      "schema": {
       "type": "string",
       "enum": [
        "NSW",
        "VIC",
        "QLD",
        "SA",
        "WA",
        "TAS",
        "NT"
       ]
      }
     },
     {
      "name": "household",
      "in": "path",
      "required": true,
      "description": "Who the policy covers.",
      "schema": {
       "type": "string",
       "enum": [
        "single",
        "couple",
        "family",
        "family_plus",
        "single_parent",
        "single_parent_plus"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The five cheapest per tier.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthTop"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/hospitals/{state}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthAgreementHospitalsByState",
    "summary": "Index of the agreement hospitals in one state",
    "description": "Every hospital in one state with id, name, town, postcode, day_only and fund_count, under 100 kB; url_template with the id gives the hospital's own file and its funds. The state is where the hospital is, which includes the ACT: it has hospitals even though no policy is priced there. Cover is national, so a fund's agreements are not confined to one state and a reader near a border should read the neighbouring slice as well.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State or territory the hospital is in.",
      "schema": {
       "type": "string",
       "enum": [
        "ACT",
        "NSW",
        "NT",
        "QLD",
        "SA",
        "TAS",
        "VIC",
        "WA"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The hospitals in one state.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthHospitalSlice"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/hospitals/{state}/{hospital_id}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthAgreementHospital",
    "summary": "One hospital and the funds holding an agreement with it",
    "description": "A few kilobytes: the hospital's address, coordinates, whether it is day-only, and funds (each with fund_slug, fund_label and its fund file), plus funds_without_agreement. Find the id in hospitals/{state}.json.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State or territory the hospital is in.",
      "schema": {
       "type": "string",
       "enum": [
        "ACT",
        "NSW",
        "NT",
        "QLD",
        "SA",
        "TAS",
        "VIC",
        "WA"
       ]
      }
     },
     {
      "name": "hospital_id",
      "in": "path",
      "required": true,
      "description": "The hospital's id, from hospitals/{state}.json.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "One hospital and its funds.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthHospitalFile"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/funds.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthFundRegister",
    "summary": "Every registered health insurer",
    "responses": {
     "200": {
      "description": "The funds, with membership type, restrictions and sub-brands.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthFundRegister"
        }
       }
      }
     },
     "404": {
      "description": "The file has not been published yet or the path is wrong; static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/policies/{state}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthPoliciesByState",
    "summary": "Index of every open hospital and combined policy sold in one state",
    "description": "Lists the state's parts, one per household type and product type, with their row counts.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State code.",
      "schema": {
       "type": "string",
       "enum": [
        "NSW",
        "VIC",
        "QLD",
        "SA",
        "WA",
        "TAS",
        "NT"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The state's parts.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthStateIndex"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/policies/{state}/{household}/{product_type}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthPoliciesByStateHouseholdAndType",
    "summary": "Every open policy of one product type sold in one state for one household type",
    "description": "Includes policies sold nationally (state ALL). household is the regulator's own value. Minified JSON, at most a few megabytes.",
    "parameters": [
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State code.",
      "schema": {
       "type": "string",
       "enum": [
        "NSW",
        "VIC",
        "QLD",
        "SA",
        "WA",
        "TAS",
        "NT"
       ]
      }
     },
     {
      "name": "household",
      "in": "path",
      "required": true,
      "description": "The regulator's household value on the policy row.",
      "schema": {
       "type": "string",
       "enum": [
        "single",
        "couple",
        "family",
        "single_parent",
        "dependants_only"
       ]
      }
     },
     {
      "name": "product_type",
      "in": "path",
      "required": true,
      "description": "Hospital-only or combined hospital and extras.",
      "schema": {
       "type": "string",
       "enum": [
        "hospital",
        "combined"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The rows.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthPolicies"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/funds/{fund_slug}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthFund",
    "summary": "One fund: identity, restrictions, agreement hospitals and where its policies are",
    "parameters": [
     {
      "name": "fund_slug",
      "in": "path",
      "required": true,
      "description": "Fund slug as listed under funds_dir.funds[].fund_slug in index.json.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "enum": [
        "aca-health",
        "ahm",
        "aia-health",
        "australian-unity",
        "bupa",
        "cbhs",
        "cbhs-corporate-health",
        "cdh-benefits-fund",
        "defence-health",
        "doctors-health-fund",
        "gmhba",
        "gu-health",
        "hbf",
        "hcf",
        "hci",
        "health-partners",
        "hif",
        "latrobe-health",
        "medibank",
        "mildura-health-fund",
        "navy-health",
        "nib",
        "onemedifund",
        "peoplecare",
        "phoenix-health",
        "police-health",
        "queensland-country-health-fund",
        "reserve-bank-health-society",
        "rt-health",
        "see-u-by-hbf",
        "st-lukes",
        "teachers-health",
        "tuh",
        "westfund"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The fund, with parts listing its policies by state.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthFundIndex"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  },
  "/au/insurance/health/v1/funds/{fund_slug}/{state}.json": {
   "get": {
    "tags": [
     "health-insurance"
    ],
    "operationId": "getHealthFundPoliciesByState",
    "summary": "One fund's policies sold in one state, with full clinical-category detail",
    "description": "Includes the fund's policies sold nationally (state ALL). Minified JSON, at most a few megabytes.",
    "parameters": [
     {
      "name": "fund_slug",
      "in": "path",
      "required": true,
      "description": "Fund slug as listed under funds_dir.funds[].fund_slug in index.json.",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "enum": [
        "aca-health",
        "ahm",
        "aia-health",
        "australian-unity",
        "bupa",
        "cbhs",
        "cbhs-corporate-health",
        "cdh-benefits-fund",
        "defence-health",
        "doctors-health-fund",
        "gmhba",
        "gu-health",
        "hbf",
        "hcf",
        "hci",
        "health-partners",
        "hif",
        "latrobe-health",
        "medibank",
        "mildura-health-fund",
        "navy-health",
        "nib",
        "onemedifund",
        "peoplecare",
        "phoenix-health",
        "police-health",
        "queensland-country-health-fund",
        "reserve-bank-health-society",
        "rt-health",
        "see-u-by-hbf",
        "st-lukes",
        "teachers-health",
        "tuh",
        "westfund"
       ]
      }
     },
     {
      "name": "state",
      "in": "path",
      "required": true,
      "description": "State code.",
      "schema": {
       "type": "string",
       "enum": [
        "NSW",
        "VIC",
        "QLD",
        "SA",
        "WA",
        "TAS",
        "NT"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The fund's policies in the state.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthFundPart"
        }
       }
      }
     },
     "404": {
      "description": "No such file. Static hosting returns the site's 404 page (HTML)."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "HealthPolicy": {
    "type": "object",
    "description": "One open policy with hospital cover, in one state, for one household type.",
    "properties": {
     "product_item_id": {
      "type": "string",
      "description": "Identifier of this version of the policy in the source data (changes when the policy changes)."
     },
     "product_id": {
      "type": "string",
      "description": "Stable identifier of the policy in the source data."
     },
     "product_code": {
      "type": "string",
      "description": "The regulator's policy code, e.g. H4/QAFO20."
     },
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "brands": {
      "type": "array",
      "description": "Sub-brand names the fund sells this policy under (e.g. Qantas Insurance for nib), often empty.",
      "items": {
       "type": "string"
      }
     },
     "name": {
      "type": "string",
      "description": "Policy name as published."
     },
     "product_type": {
      "type": "string",
      "description": "hospital (hospital cover only) or combined (hospital and extras in one policy).",
      "enum": [
       "hospital",
       "combined"
      ]
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": [
       "string",
       "null"
      ],
      "description": "Who the policy covers, as the regulator records it.",
      "enum": [
       "single",
       "couple",
       "family",
       "single_parent",
       "dependants_only"
      ]
     },
     "adults": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Number of adults covered."
     },
     "dependant_types": {
      "type": "array",
      "description": "Dependant categories covered (child, student, non_student ...).",
      "items": {
       "type": "string"
      }
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital product tier.",
      "enum": [
       "gold",
       "silver_plus",
       "silver",
       "bronze_plus",
       "bronze",
       "basic_plus",
       "basic"
      ]
     },
     "premium_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly premium in AUD before the government rebate, LHC loading and age-based discount."
     },
     "premium_hospital_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The hospital component of the monthly premium."
     },
     "premium_extras_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The extras component (combined policies only)."
     },
     "excess_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "How the excess applies.",
      "enum": [
       "none",
       "per_admission_only",
       "limited_per_year",
       "limited_per_person",
       "limited_per_person_per_policy"
      ]
     },
     "excess_per_person": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per person per year in AUD (750 or less for a single keeps Medicare Levy Surcharge exemption)."
     },
     "excess_per_policy": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per policy per year in AUD."
     },
     "excess_per_admission": {
      "type": [
       "number",
       "null"
      ],
      "description": "Excess per hospital admission in AUD."
     },
     "excess_waivers": {
      "type": "array",
      "description": "Cases where the excess is waived (accidents, dependents, day_surgery).",
      "items": {
       "type": "string"
      }
     },
     "copayment": {
      "type": [
       "string",
       "null"
      ],
      "description": "Whether a daily co-payment applies: none, limited (it stops at a cap) or unlimited (it does not). A co-payment is an amount per day in hospital, charged on top of any excess.",
      "enum": [
       "none",
       "limited",
       "unlimited"
      ]
     },
     "copayment_shared_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a shared room, in AUD. Null when the policy has no co-payment."
     },
     "copayment_shared_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the shared-room co-payment can reach in one stay, in AUD."
     },
     "copayment_private_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a private room, in AUD."
     },
     "copayment_private_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the private-room co-payment can reach in one stay, in AUD."
     },
     "copayment_day_surgery": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment for a day-surgery admission, in AUD."
     },
     "copayment_max_per_year": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most the co-payment can reach in a year, in AUD, where the policy sets an annual cap."
     },
     "mls_exempt": {
      "type": "boolean",
      "description": "True when the policy is appropriate hospital cover for Medicare Levy Surcharge purposes."
     },
     "age_based_discount": {
      "type": "boolean",
      "description": "Whether the under-30 age-based discount is offered on this policy. The rate itself is set by the Private Health Insurance (Reforms) Amendment Rules 2018 (2% per year under 30, capped at 10%), not by the insurer, and no policy in the release narrows it to particular ages."
     },
     "age_discount_retained_on_transfer": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether someone who already has an age-based discount keeps it on transferring to this policy. Null when the policy offers no discount. Insurers choose this per product, and about a fifth of discounted policies do not honour an existing discount."
     },
     "accommodation": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital accommodation covered (private_or_public, public, public_shared ...)."
     },
     "categories_covered": {
      "type": "integer",
      "description": "Of the 38 clinical categories, how many are covered."
     },
     "categories_restricted": {
      "type": "integer",
      "description": "How many clinical categories are covered on a restricted basis."
     },
     "categories_not_covered": {
      "type": "integer",
      "description": "How many clinical categories are excluded."
     },
     "ambulance": {
      "type": [
       "string",
       "null"
      ],
      "description": "Ambulance cover included (none, emergency_only, emergency_and_non_emergency, state_govt). This says what kind of trip is covered, not on what terms: read ambulance_limit, ambulance_call_out_fees and the waiting periods with it, because an unlimited policy and one capped at a single trip a year are both emergency_only."
     },
     "known_gap_cover": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether the fund has a known-gap or no-gap arrangement with doctors for in-hospital medical bills on this policy. True on all but 80 policies in the release; on those the member meets the whole specialist gap. Doctors choose per claim whether to use it, so it caps exposure rather than removing it."
     },
     "accommodation_text": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own wording about hospital accommodation. Usually travel and accommodation benefits, but about two dozen policies state an excess rule here that excess_waivers does not carry."
     },
     "ambulance_call_out_fees": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether a benefit is paid when an ambulance attends and treats without transporting. False on about 18% of policies, where that attendance is billed to the member."
     },
     "ambulance_wait_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_non_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_pre_existing": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_limit": {
      "type": [
       "object",
       "null"
      ],
      "description": "What caps the emergency ambulance benefit. unlimited is true on most policies; where it is false the cap is a dollar amount, a number of trips over a number of years, or both.",
      "properties": {
       "unlimited": {
        "type": "boolean",
        "description": "True when no cap applies."
       },
       "per_person": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per person, AUD."
       },
       "per_service": {
        "type": [
         "number",
         "null"
        ],
        "description": "Limit per ambulance service, AUD."
       },
       "per_policy": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per policy, AUD."
       },
       "lifetime": {
        "type": [
         "number",
         "null"
        ],
        "description": "Lifetime benefit limit, AUD."
       },
       "services": {
        "type": [
         "number",
         "null"
        ],
        "description": "Number of ambulance services covered."
       },
       "years": {
        "type": [
         "number",
         "null"
        ],
        "description": "Over how many years the service count applies; 1 means per year."
       }
      }
     },
     "waiting_pre_existing_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "Waiting period for pre-existing conditions, months."
     },
     "waiting_pregnancy_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "Waiting period for pregnancy and birth, months."
     },
     "waiting_other_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "General waiting period, months."
     },
     "extras_services_covered": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Combined policies: number of extras services covered."
     },
     "only_available_with": {
      "type": [
       "string",
       "null"
      ],
      "description": "not_applicable when the policy can be bought on its own; otherwise what it must be bought with."
     },
     "corporate": {
      "type": "boolean",
      "description": "True when the policy is only available through an employer's corporate plan (not ranked)."
     },
     "availability": {
      "type": "string",
      "description": "general for ordinary resident cover; visitors for reciprocal-agreement visitor and expatriate policies (not ranked).",
      "enum": [
       "general",
       "visitors"
      ]
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own page for the policy, when supplied.",
      "format": "uri"
     },
     "phis_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The policy's Private Health Information Statement on privatehealth.gov.au: the regulator's own summary of the full terms, including every clinical category, waiting periods and dependant age limits.",
      "format": "uri"
     },
     "phis_pdf_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The same Private Health Information Statement as a PDF.",
      "format": "uri"
     },
     "valid_from": {
      "type": [
       "string",
       "null"
      ],
      "description": "Date these terms and premium took effect.",
      "format": "date"
     },
     "source_file": {
      "type": "string",
      "description": "File inside the data.gov.au release the row was read from."
     },
     "source_url": {
      "type": "string",
      "description": "The data.gov.au zip the row was read from (one release a month).",
      "format": "uri"
     }
    },
    "required": [
     "product_item_id",
     "product_id",
     "product_code",
     "fund",
     "fund_label",
     "fund_slug",
     "fund_code",
     "fund_type",
     "brands",
     "name",
     "product_type",
     "state",
     "household",
     "adults",
     "dependant_types",
     "tier",
     "premium_monthly",
     "premium_hospital_monthly",
     "premium_extras_monthly",
     "excess_type",
     "excess_per_person",
     "excess_per_policy",
     "excess_per_admission",
     "excess_waivers",
     "copayment",
     "copayment_shared_daily",
     "copayment_shared_max",
     "copayment_private_daily",
     "copayment_private_max",
     "copayment_day_surgery",
     "copayment_max_per_year",
     "mls_exempt",
     "age_based_discount",
     "age_discount_retained_on_transfer",
     "accommodation",
     "categories_covered",
     "categories_restricted",
     "categories_not_covered",
     "ambulance",
     "known_gap_cover",
     "accommodation_text",
     "ambulance_call_out_fees",
     "ambulance_wait_emergency",
     "ambulance_wait_non_emergency",
     "ambulance_wait_pre_existing",
     "ambulance_limit",
     "waiting_pre_existing_months",
     "waiting_pregnancy_months",
     "waiting_other_months",
     "extras_services_covered",
     "only_available_with",
     "corporate",
     "availability",
     "product_url",
     "phis_url",
     "phis_pdf_url",
     "valid_from",
     "source_file",
     "source_url"
    ]
   },
   "HealthPolicyDetail": {
    "type": "object",
    "properties": {
     "product_item_id": {
      "type": "string",
      "description": "Identifier of this version of the policy in the source data (changes when the policy changes)."
     },
     "product_id": {
      "type": "string",
      "description": "Stable identifier of the policy in the source data."
     },
     "product_code": {
      "type": "string",
      "description": "The regulator's policy code, e.g. H4/QAFO20."
     },
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "brands": {
      "type": "array",
      "description": "Sub-brand names the fund sells this policy under (e.g. Qantas Insurance for nib), often empty.",
      "items": {
       "type": "string"
      }
     },
     "name": {
      "type": "string",
      "description": "Policy name as published."
     },
     "product_type": {
      "type": "string",
      "description": "hospital (hospital cover only) or combined (hospital and extras in one policy).",
      "enum": [
       "hospital",
       "combined"
      ]
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": [
       "string",
       "null"
      ],
      "description": "Who the policy covers, as the regulator records it.",
      "enum": [
       "single",
       "couple",
       "family",
       "single_parent",
       "dependants_only"
      ]
     },
     "adults": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Number of adults covered."
     },
     "dependant_types": {
      "type": "array",
      "description": "Dependant categories covered (child, student, non_student ...).",
      "items": {
       "type": "string"
      }
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital product tier.",
      "enum": [
       "gold",
       "silver_plus",
       "silver",
       "bronze_plus",
       "bronze",
       "basic_plus",
       "basic"
      ]
     },
     "premium_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly premium in AUD before the government rebate, LHC loading and age-based discount."
     },
     "premium_hospital_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The hospital component of the monthly premium."
     },
     "premium_extras_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "The extras component (combined policies only)."
     },
     "excess_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "How the excess applies.",
      "enum": [
       "none",
       "per_admission_only",
       "limited_per_year",
       "limited_per_person",
       "limited_per_person_per_policy"
      ]
     },
     "excess_per_person": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per person per year in AUD (750 or less for a single keeps Medicare Levy Surcharge exemption)."
     },
     "excess_per_policy": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per policy per year in AUD."
     },
     "excess_per_admission": {
      "type": [
       "number",
       "null"
      ],
      "description": "Excess per hospital admission in AUD."
     },
     "excess_waivers": {
      "type": "array",
      "description": "Cases where the excess is waived (accidents, dependents, day_surgery).",
      "items": {
       "type": "string"
      }
     },
     "copayment": {
      "type": [
       "string",
       "null"
      ],
      "description": "Whether a daily co-payment applies: none, limited (it stops at a cap) or unlimited (it does not). A co-payment is an amount per day in hospital, charged on top of any excess.",
      "enum": [
       "none",
       "limited",
       "unlimited"
      ]
     },
     "copayment_shared_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a shared room, in AUD. Null when the policy has no co-payment."
     },
     "copayment_shared_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the shared-room co-payment can reach in one stay, in AUD."
     },
     "copayment_private_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a private room, in AUD."
     },
     "copayment_private_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the private-room co-payment can reach in one stay, in AUD."
     },
     "copayment_day_surgery": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment for a day-surgery admission, in AUD."
     },
     "copayment_max_per_year": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most the co-payment can reach in a year, in AUD, where the policy sets an annual cap."
     },
     "mls_exempt": {
      "type": "boolean",
      "description": "True when the policy is appropriate hospital cover for Medicare Levy Surcharge purposes."
     },
     "age_based_discount": {
      "type": "boolean",
      "description": "Whether the under-30 age-based discount is offered on this policy. The rate itself is set by the Private Health Insurance (Reforms) Amendment Rules 2018 (2% per year under 30, capped at 10%), not by the insurer, and no policy in the release narrows it to particular ages."
     },
     "age_discount_retained_on_transfer": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether someone who already has an age-based discount keeps it on transferring to this policy. Null when the policy offers no discount. Insurers choose this per product, and about a fifth of discounted policies do not honour an existing discount."
     },
     "accommodation": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital accommodation covered (private_or_public, public, public_shared ...)."
     },
     "categories_covered": {
      "type": "integer",
      "description": "Of the 38 clinical categories, how many are covered."
     },
     "categories_restricted": {
      "type": "integer",
      "description": "How many clinical categories are covered on a restricted basis."
     },
     "categories_not_covered": {
      "type": "integer",
      "description": "How many clinical categories are excluded."
     },
     "ambulance": {
      "type": [
       "string",
       "null"
      ],
      "description": "Ambulance cover included (none, emergency_only, emergency_and_non_emergency, state_govt). This says what kind of trip is covered, not on what terms: read ambulance_limit, ambulance_call_out_fees and the waiting periods with it, because an unlimited policy and one capped at a single trip a year are both emergency_only."
     },
     "known_gap_cover": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether the fund has a known-gap or no-gap arrangement with doctors for in-hospital medical bills on this policy. True on all but 80 policies in the release; on those the member meets the whole specialist gap. Doctors choose per claim whether to use it, so it caps exposure rather than removing it."
     },
     "accommodation_text": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own wording about hospital accommodation. Usually travel and accommodation benefits, but about two dozen policies state an excess rule here that excess_waivers does not carry."
     },
     "ambulance_call_out_fees": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether a benefit is paid when an ambulance attends and treats without transporting. False on about 18% of policies, where that attendance is billed to the member."
     },
     "ambulance_wait_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_non_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_pre_existing": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_limit": {
      "type": [
       "object",
       "null"
      ],
      "description": "What caps the emergency ambulance benefit. unlimited is true on most policies; where it is false the cap is a dollar amount, a number of trips over a number of years, or both.",
      "properties": {
       "unlimited": {
        "type": "boolean",
        "description": "True when no cap applies."
       },
       "per_person": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per person, AUD."
       },
       "per_service": {
        "type": [
         "number",
         "null"
        ],
        "description": "Limit per ambulance service, AUD."
       },
       "per_policy": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per policy, AUD."
       },
       "lifetime": {
        "type": [
         "number",
         "null"
        ],
        "description": "Lifetime benefit limit, AUD."
       },
       "services": {
        "type": [
         "number",
         "null"
        ],
        "description": "Number of ambulance services covered."
       },
       "years": {
        "type": [
         "number",
         "null"
        ],
        "description": "Over how many years the service count applies; 1 means per year."
       }
      }
     },
     "waiting_pre_existing_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "Waiting period for pre-existing conditions, months."
     },
     "waiting_pregnancy_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "Waiting period for pregnancy and birth, months."
     },
     "waiting_other_months": {
      "type": [
       "number",
       "null"
      ],
      "description": "General waiting period, months."
     },
     "extras_services_covered": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Combined policies: number of extras services covered."
     },
     "only_available_with": {
      "type": [
       "string",
       "null"
      ],
      "description": "not_applicable when the policy can be bought on its own; otherwise what it must be bought with."
     },
     "corporate": {
      "type": "boolean",
      "description": "True when the policy is only available through an employer's corporate plan (not ranked)."
     },
     "availability": {
      "type": "string",
      "description": "general for ordinary resident cover; visitors for reciprocal-agreement visitor and expatriate policies (not ranked).",
      "enum": [
       "general",
       "visitors"
      ]
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own page for the policy, when supplied.",
      "format": "uri"
     },
     "phis_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The policy's Private Health Information Statement on privatehealth.gov.au: the regulator's own summary of the full terms, including every clinical category, waiting periods and dependant age limits.",
      "format": "uri"
     },
     "phis_pdf_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The same Private Health Information Statement as a PDF.",
      "format": "uri"
     },
     "valid_from": {
      "type": [
       "string",
       "null"
      ],
      "description": "Date these terms and premium took effect.",
      "format": "date"
     },
     "source_file": {
      "type": "string",
      "description": "File inside the data.gov.au release the row was read from."
     },
     "source_url": {
      "type": "string",
      "description": "The data.gov.au zip the row was read from (one release a month).",
      "format": "uri"
     },
     "cover_profile": {
      "type": "string",
      "description": "Key into the fund file's cover_profiles: which of the 38 clinical categories are covered, restricted and not covered."
     },
     "waiting_profile": {
      "type": "string",
      "description": "Key into the fund file's waiting_profiles: waiting periods by kind (sub_acute, pre_existing, pregnancy_birth, other) with value and unit."
     },
     "extras_profile": {
      "type": [
       "string",
       "null"
      ],
      "description": "Combined policies: key into the fund file's extras_profiles, the extras services covered (dental_general, optical, physiotherapy ...)."
     },
     "ambulance_profile": {
      "type": [
       "string",
       "null"
      ],
      "description": "Key into the fund file's ambulance_profiles: the fund's own wording for ambulance cover in this policy's state."
     },
     "features_profile": {
      "type": [
       "string",
       "null"
      ],
      "description": "Key into the fund file's features_profiles: the fund's own description of what else this policy does, which is where the terms that separate two otherwise identical policies live."
     },
     "funds_product_code": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own product code."
     }
    },
    "required": [
     "product_item_id",
     "product_id",
     "product_code",
     "fund",
     "fund_label",
     "fund_slug",
     "fund_code",
     "fund_type",
     "brands",
     "name",
     "product_type",
     "state",
     "household",
     "adults",
     "dependant_types",
     "tier",
     "premium_monthly",
     "premium_hospital_monthly",
     "premium_extras_monthly",
     "excess_type",
     "excess_per_person",
     "excess_per_policy",
     "excess_per_admission",
     "excess_waivers",
     "copayment",
     "copayment_shared_daily",
     "copayment_shared_max",
     "copayment_private_daily",
     "copayment_private_max",
     "copayment_day_surgery",
     "copayment_max_per_year",
     "mls_exempt",
     "age_based_discount",
     "age_discount_retained_on_transfer",
     "accommodation",
     "categories_covered",
     "categories_restricted",
     "categories_not_covered",
     "ambulance",
     "known_gap_cover",
     "accommodation_text",
     "ambulance_call_out_fees",
     "ambulance_wait_emergency",
     "ambulance_wait_non_emergency",
     "ambulance_wait_pre_existing",
     "ambulance_limit",
     "waiting_pre_existing_months",
     "waiting_pregnancy_months",
     "waiting_other_months",
     "extras_services_covered",
     "only_available_with",
     "corporate",
     "availability",
     "product_url",
     "phis_url",
     "phis_pdf_url",
     "valid_from",
     "source_file",
     "source_url",
     "cover_profile",
     "waiting_profile",
     "extras_profile",
     "ambulance_profile",
     "features_profile",
     "funds_product_code"
    ],
    "description": "A policy row plus references to the fund file's cover, waiting and extras profiles."
   },
   "HealthCheapestEntry": {
    "type": "object",
    "description": "One ranked policy.",
    "properties": {
     "rank": {
      "type": "integer",
      "description": "1 is cheapest."
     },
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "eligibility": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: who may join, in the fund's own words. Null for open funds (anyone can join)."
     },
     "brands": {
      "type": "array",
      "description": "Sub-brand names the fund sells this policy under (e.g. Qantas Insurance for nib), often empty.",
      "items": {
       "type": "string"
      }
     },
     "name": {
      "type": "string",
      "description": "Policy name as published."
     },
     "product_item_id": {
      "type": "string",
      "description": "Identifier of this version of the policy in the source data (changes when the policy changes)."
     },
     "product_code": {
      "type": "string",
      "description": "The regulator's policy code, e.g. H4/QAFO20."
     },
     "product_type": {
      "type": "string",
      "description": "hospital (hospital cover only) or combined (hospital and extras in one policy).",
      "enum": [
       "hospital",
       "combined"
      ]
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": "string",
      "description": "Which ranking bucket this entry is in. family_plus and single_parent_plus are the variants that also cover adult non-students; the policy's own household field in policies/<state>.json keeps the regulator's four values.",
      "enum": [
       "single",
       "couple",
       "family",
       "family_plus",
       "single_parent",
       "single_parent_plus"
      ]
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital product tier.",
      "enum": [
       "gold",
       "silver_plus",
       "silver",
       "bronze_plus",
       "bronze",
       "basic_plus",
       "basic"
      ]
     },
     "covers_wider_dependants": {
      "type": "boolean",
      "description": "True on the dearer of the two family variants a fund sells of the same product: the one covering a wider set of dependants. Which class is added differs by fund, so this is relative to that fund's own narrowest version of the same cover, not a fixed test. Most funds add an adult non-student for about 22% more; Bupa instead excludes students from its base and charges about 30% to include them."
     },
     "premium_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly premium in AUD before the government rebate, LHC loading and age-based discount."
     },
     "excess_per_person": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per person per year in AUD (750 or less for a single keeps Medicare Levy Surcharge exemption)."
     },
     "excess_per_policy": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per policy per year in AUD."
     },
     "copayment": {
      "type": [
       "string",
       "null"
      ],
      "description": "Whether a daily co-payment applies: none, limited (it stops at a cap) or unlimited (it does not). A co-payment is an amount per day in hospital, charged on top of any excess.",
      "enum": [
       "none",
       "limited",
       "unlimited"
      ]
     },
     "copayment_shared_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a shared room, in AUD. Null when the policy has no co-payment."
     },
     "copayment_shared_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the shared-room co-payment can reach in one stay, in AUD."
     },
     "copayment_private_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a private room, in AUD."
     },
     "copayment_private_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the private-room co-payment can reach in one stay, in AUD."
     },
     "copayment_day_surgery": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment for a day-surgery admission, in AUD."
     },
     "copayment_max_per_year": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most the co-payment can reach in a year, in AUD, where the policy sets an annual cap."
     },
     "known_gap_cover": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether the fund has a known-gap or no-gap arrangement with doctors for in-hospital medical bills on this policy. True on all but 80 policies in the release; on those the member meets the whole specialist gap. Doctors choose per claim whether to use it, so it caps exposure rather than removing it."
     },
     "ambulance": {
      "type": [
       "string",
       "null"
      ],
      "description": "Ambulance cover included (none, emergency_only, emergency_and_non_emergency, state_govt). This says what kind of trip is covered, not on what terms: read ambulance_limit, ambulance_call_out_fees and the waiting periods with it, because an unlimited policy and one capped at a single trip a year are both emergency_only."
     },
     "ambulance_call_out_fees": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether a benefit is paid when an ambulance attends and treats without transporting. False on about 18% of policies, where that attendance is billed to the member."
     },
     "ambulance_wait_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_non_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_pre_existing": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_limit": {
      "type": [
       "object",
       "null"
      ],
      "description": "What caps the emergency ambulance benefit. unlimited is true on most policies; where it is false the cap is a dollar amount, a number of trips over a number of years, or both.",
      "properties": {
       "unlimited": {
        "type": "boolean",
        "description": "True when no cap applies."
       },
       "per_person": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per person, AUD."
       },
       "per_service": {
        "type": [
         "number",
         "null"
        ],
        "description": "Limit per ambulance service, AUD."
       },
       "per_policy": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per policy, AUD."
       },
       "lifetime": {
        "type": [
         "number",
         "null"
        ],
        "description": "Lifetime benefit limit, AUD."
       },
       "services": {
        "type": [
         "number",
         "null"
        ],
        "description": "Number of ambulance services covered."
       },
       "years": {
        "type": [
         "number",
         "null"
        ],
        "description": "Over how many years the service count applies; 1 means per year."
       }
      }
     },
     "categories_covered": {
      "type": "integer",
      "description": "Of the 38 clinical categories, how many are covered."
     },
     "categories_restricted": {
      "type": "integer",
      "description": "How many clinical categories are covered on a restricted basis."
     },
     "age_based_discount": {
      "type": "boolean",
      "description": "Whether the under-30 age-based discount is offered on this policy. The rate itself is set by the Private Health Insurance (Reforms) Amendment Rules 2018 (2% per year under 30, capped at 10%), not by the insurer, and no policy in the release narrows it to particular ages."
     },
     "age_discount_retained_on_transfer": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether someone who already has an age-based discount keeps it on transferring to this policy. Null when the policy offers no discount. Insurers choose this per product, and about a fifth of discounted policies do not honour an existing discount."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own page for the policy, when supplied.",
      "format": "uri"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "dependant_types": {
      "type": "array",
      "description": "Dependant categories covered (child, student, non_student ...).",
      "items": {
       "type": "string"
      }
     },
     "phis_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The policy's Private Health Information Statement on privatehealth.gov.au: the regulator's own summary of the full terms, including every clinical category, waiting periods and dependant age limits.",
      "format": "uri"
     },
     "phis_pdf_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The same Private Health Information Statement as a PDF.",
      "format": "uri"
     }
    },
    "required": [
     "rank",
     "fund",
     "fund_label",
     "fund_slug",
     "fund_type",
     "eligibility",
     "brands",
     "name",
     "product_item_id",
     "product_code",
     "product_type",
     "state",
     "household",
     "tier",
     "covers_wider_dependants",
     "premium_monthly",
     "excess_per_person",
     "excess_per_policy",
     "copayment",
     "copayment_shared_daily",
     "copayment_shared_max",
     "copayment_private_daily",
     "copayment_private_max",
     "copayment_day_surgery",
     "copayment_max_per_year",
     "known_gap_cover",
     "ambulance",
     "ambulance_call_out_fees",
     "ambulance_wait_emergency",
     "ambulance_wait_non_emergency",
     "ambulance_wait_pre_existing",
     "ambulance_limit",
     "categories_covered",
     "categories_restricted",
     "age_based_discount",
     "age_discount_retained_on_transfer",
     "product_url",
     "fund_code",
     "dependant_types",
     "phis_url",
     "phis_pdf_url"
    ]
   },
   "HealthPolicies": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": "string",
      "description": "The household value every row carries."
     },
     "product_type": {
      "type": "string",
      "description": "hospital or combined."
     },
     "note": {
      "type": "string",
      "description": "What the file holds."
     },
     "state_index": {
      "type": "string",
      "description": "policies/<state>.json, listing the state's other parts.",
      "format": "uri"
     },
     "row_count": {
      "type": "integer",
      "description": "Number of rows."
     },
     "rows": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/HealthPolicy"
      }
     }
    },
    "required": [
     "state",
     "rows"
    ]
   },
   "HealthStateIndex": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "note": {
      "type": "string",
      "description": "What the parts hold."
     },
     "url_template": {
      "type": "string",
      "description": "URL template of a part."
     },
     "households": {
      "type": "array",
      "description": "Household values with a part.",
      "items": {
       "type": "string"
      }
     },
     "product_types": {
      "type": "array",
      "description": "Product types with a part.",
      "items": {
       "type": "string"
      }
     },
     "row_count": {
      "type": "integer",
      "description": "Rows across every part."
     },
     "parts": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "household": {
         "type": "string"
        },
        "product_type": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "row_count": {
         "type": "integer"
        }
       }
      }
     }
    },
    "required": [
     "state",
     "parts"
    ]
   },
   "HealthCheapestIndex": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "source_url": {
      "type": "string",
      "description": "The release every entry came from.",
      "format": "uri"
     },
     "note": {
      "type": "string",
      "description": "Where the rankings are, and how to read them."
     },
     "before_answering": {
      "type": "string",
      "description": "questions.json.",
      "format": "uri"
     },
     "url_template": {
      "type": "string",
      "description": "URL template of cheapest/<state>/<household>.json."
     },
     "top_url_template": {
      "type": "string",
      "description": "URL template of top/<state>/<household>.json."
     },
     "cross_state": {
      "type": "string",
      "description": "by-state.json.",
      "format": "uri"
     },
     "states": {
      "type": "array",
      "description": "States ranked.",
      "items": {
       "type": "string"
      }
     },
     "households": {
      "type": "array",
      "description": "Household types ranked.",
      "items": {
       "type": "string"
      }
     },
     "tiers": {
      "type": "array",
      "description": "'any', then the tiers ranked.",
      "items": {
       "type": "string"
      }
     },
     "one_per_fund": {
      "type": "boolean",
      "description": "Each list holds exactly one policy per fund that sells in the bucket."
     },
     "parts": {
      "type": "object",
      "description": "state -> household -> {url, top, counts}: the two files for that bucket and how many funds each tier ranks.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string",
          "format": "uri"
         },
         "top": {
          "type": "string",
          "format": "uri"
         },
         "counts": {
          "type": "object",
          "additionalProperties": {
           "type": "integer"
          }
         }
        }
       }
      }
     },
     "funds_ranked": {
      "type": "array",
      "description": "fund_slug of every fund with at least one ranked policy.",
      "items": {
       "type": "string"
      }
     }
    },
    "required": [
     "states",
     "households",
     "tiers",
     "parts"
    ]
   },
   "HealthCheapestSliceEntry": {
    "type": "object",
    "description": "A ranked policy in a per-state, per-household slice: as HealthCheapestEntry without household, which the file's path gives.",
    "required": [
     "rank",
     "fund",
     "fund_label",
     "fund_slug",
     "fund_type",
     "eligibility",
     "brands",
     "name",
     "product_item_id",
     "product_code",
     "product_type",
     "state",
     "household",
     "tier",
     "covers_wider_dependants",
     "premium_monthly",
     "excess_per_person",
     "excess_per_policy",
     "copayment",
     "copayment_shared_daily",
     "copayment_shared_max",
     "copayment_private_daily",
     "copayment_private_max",
     "copayment_day_surgery",
     "copayment_max_per_year",
     "known_gap_cover",
     "ambulance",
     "ambulance_call_out_fees",
     "ambulance_wait_emergency",
     "ambulance_wait_non_emergency",
     "ambulance_wait_pre_existing",
     "ambulance_limit",
     "categories_covered",
     "categories_restricted",
     "age_based_discount",
     "age_discount_retained_on_transfer",
     "product_url",
     "fund_code",
     "dependant_types",
     "phis_url",
     "phis_pdf_url"
    ],
    "properties": {
     "rank": {
      "type": "integer",
      "description": "1 is cheapest."
     },
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "eligibility": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: who may join, in the fund's own words. Null for open funds (anyone can join)."
     },
     "brands": {
      "type": "array",
      "description": "Sub-brand names the fund sells this policy under (e.g. Qantas Insurance for nib), often empty.",
      "items": {
       "type": "string"
      }
     },
     "name": {
      "type": "string",
      "description": "Policy name as published."
     },
     "product_item_id": {
      "type": "string",
      "description": "Identifier of this version of the policy in the source data (changes when the policy changes)."
     },
     "product_code": {
      "type": "string",
      "description": "The regulator's policy code, e.g. H4/QAFO20."
     },
     "product_type": {
      "type": "string",
      "description": "hospital (hospital cover only) or combined (hospital and extras in one policy).",
      "enum": [
       "hospital",
       "combined"
      ]
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital product tier.",
      "enum": [
       "gold",
       "silver_plus",
       "silver",
       "bronze_plus",
       "bronze",
       "basic_plus",
       "basic"
      ]
     },
     "covers_wider_dependants": {
      "type": "boolean",
      "description": "True on the dearer of the two family variants a fund sells of the same product: the one covering a wider set of dependants. Which class is added differs by fund, so this is relative to that fund's own narrowest version of the same cover, not a fixed test. Most funds add an adult non-student for about 22% more; Bupa instead excludes students from its base and charges about 30% to include them."
     },
     "premium_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly premium in AUD before the government rebate, LHC loading and age-based discount."
     },
     "excess_per_person": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per person per year in AUD (750 or less for a single keeps Medicare Levy Surcharge exemption)."
     },
     "excess_per_policy": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per policy per year in AUD."
     },
     "copayment": {
      "type": [
       "string",
       "null"
      ],
      "description": "Whether a daily co-payment applies: none, limited (it stops at a cap) or unlimited (it does not). A co-payment is an amount per day in hospital, charged on top of any excess.",
      "enum": [
       "none",
       "limited",
       "unlimited"
      ]
     },
     "copayment_shared_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a shared room, in AUD. Null when the policy has no co-payment."
     },
     "copayment_shared_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the shared-room co-payment can reach in one stay, in AUD."
     },
     "copayment_private_daily": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment per day in a private room, in AUD."
     },
     "copayment_private_max": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most that the private-room co-payment can reach in one stay, in AUD."
     },
     "copayment_day_surgery": {
      "type": [
       "number",
       "null"
      ],
      "description": "Co-payment for a day-surgery admission, in AUD."
     },
     "copayment_max_per_year": {
      "type": [
       "number",
       "null"
      ],
      "description": "Most the co-payment can reach in a year, in AUD, where the policy sets an annual cap."
     },
     "known_gap_cover": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether the fund has a known-gap or no-gap arrangement with doctors for in-hospital medical bills on this policy. True on all but 80 policies in the release; on those the member meets the whole specialist gap. Doctors choose per claim whether to use it, so it caps exposure rather than removing it."
     },
     "ambulance": {
      "type": [
       "string",
       "null"
      ],
      "description": "Ambulance cover included (none, emergency_only, emergency_and_non_emergency, state_govt). This says what kind of trip is covered, not on what terms: read ambulance_limit, ambulance_call_out_fees and the waiting periods with it, because an unlimited policy and one capped at a single trip a year are both emergency_only."
     },
     "ambulance_call_out_fees": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether a benefit is paid when an ambulance attends and treats without transporting. False on about 18% of policies, where that attendance is billed to the member."
     },
     "ambulance_wait_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_non_emergency": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_wait_pre_existing": {
      "type": [
       "object",
       "null"
      ],
      "description": "A waiting period as the insurer states it: a value and its unit. Kept unconverted because a policy's '2 months' is a calendar period, not 60 days.",
      "properties": {
       "value": {
        "type": [
         "number",
         "null"
        ]
       },
       "unit": {
        "type": [
         "string",
         "null"
        ],
        "enum": [
         "day",
         "month",
         "year",
         null
        ]
       }
      }
     },
     "ambulance_limit": {
      "type": [
       "object",
       "null"
      ],
      "description": "What caps the emergency ambulance benefit. unlimited is true on most policies; where it is false the cap is a dollar amount, a number of trips over a number of years, or both.",
      "properties": {
       "unlimited": {
        "type": "boolean",
        "description": "True when no cap applies."
       },
       "per_person": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per person, AUD."
       },
       "per_service": {
        "type": [
         "number",
         "null"
        ],
        "description": "Limit per ambulance service, AUD."
       },
       "per_policy": {
        "type": [
         "number",
         "null"
        ],
        "description": "Annual benefit limit per policy, AUD."
       },
       "lifetime": {
        "type": [
         "number",
         "null"
        ],
        "description": "Lifetime benefit limit, AUD."
       },
       "services": {
        "type": [
         "number",
         "null"
        ],
        "description": "Number of ambulance services covered."
       },
       "years": {
        "type": [
         "number",
         "null"
        ],
        "description": "Over how many years the service count applies; 1 means per year."
       }
      }
     },
     "categories_covered": {
      "type": "integer",
      "description": "Of the 38 clinical categories, how many are covered."
     },
     "categories_restricted": {
      "type": "integer",
      "description": "How many clinical categories are covered on a restricted basis."
     },
     "age_based_discount": {
      "type": "boolean",
      "description": "Whether the under-30 age-based discount is offered on this policy. The rate itself is set by the Private Health Insurance (Reforms) Amendment Rules 2018 (2% per year under 30, capped at 10%), not by the insurer, and no policy in the release narrows it to particular ages."
     },
     "age_discount_retained_on_transfer": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Whether someone who already has an age-based discount keeps it on transferring to this policy. Null when the policy offers no discount. Insurers choose this per product, and about a fifth of discounted policies do not honour an existing discount."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own page for the policy, when supplied.",
      "format": "uri"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "dependant_types": {
      "type": "array",
      "description": "Dependant categories covered (child, student, non_student ...).",
      "items": {
       "type": "string"
      }
     },
     "phis_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The policy's Private Health Information Statement on privatehealth.gov.au: the regulator's own summary of the full terms, including every clinical category, waiting periods and dependant age limits.",
      "format": "uri"
     },
     "phis_pdf_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The same Private Health Information Statement as a PDF.",
      "format": "uri"
     }
    }
   },
   "HealthCheapestSlice": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "source_url": {
      "type": "string",
      "description": "The release every entry came from.",
      "format": "uri"
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": [
       "string",
       "null"
      ],
      "description": "Who the policy covers, as the regulator records it.",
      "enum": [
       "single",
       "couple",
       "family",
       "single_parent",
       "dependants_only"
      ]
     },
     "data_as_of": {
      "type": [
       "string",
       "null"
      ],
      "description": "Extract date of the release.",
      "format": "date"
     },
     "note": {
      "type": "string",
      "description": "What the file holds."
     },
     "premiums_are_list_prices": {
      "type": "string",
      "description": "What sits between these premiums and what a reader pays."
     },
     "medicare_levy_surcharge": {
      "type": "string",
      "description": "That every ranked policy avoids the surcharge, at any tier."
     },
     "before_answering": {
      "type": "string",
      "description": "Where to find what to ask a reader first."
     },
     "tiers": {
      "type": "array",
      "description": "Tiers in rankings, 'any' first.",
      "items": {
       "type": "string"
      }
     },
     "top": {
      "type": "string",
      "description": "top/<state>/<household>.json, the five cheapest per tier.",
      "format": "uri"
     },
     "whole_dataset": {
      "type": "string",
      "description": "cheapest.json, the index of every state and household.",
      "format": "uri"
     },
     "other_states": {
      "type": "string",
      "description": "URL template for the same household in another state."
     },
     "compare_states": {
      "type": "string",
      "description": "by-state.json.",
      "format": "uri"
     },
     "counts": {
      "type": "object",
      "description": "tier -> number of funds ranked.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "rankings": {
      "type": "object",
      "description": "tier -> ranked HealthCheapestSliceEntry array.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "$ref": "#/components/schemas/HealthCheapestSliceEntry"
       }
      }
     },
     "combined_note": {
      "type": "string",
      "description": "Why combined_rankings exists and what it leaves out."
     },
     "combined_counts": {
      "type": "object",
      "description": "tier -> number of funds with a combined policy ranked.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "combined_rankings": {
      "type": "object",
      "description": "tier -> each fund's cheapest combined (hospital and extras) policy, cheapest first, as HealthCheapestSliceEntry.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "$ref": "#/components/schemas/HealthCheapestSliceEntry"
       }
      }
     }
    },
    "required": [
     "state",
     "household",
     "rankings"
    ]
   },
   "HealthTopEntry": {
    "type": "object",
    "description": "A ranked policy cut to the fields needed to quote it.",
    "properties": {
     "rank": {
      "type": "integer",
      "description": "1 is cheapest."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "eligibility": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: who may join, in the fund's own words. Null for open funds (anyone can join)."
     },
     "name": {
      "type": "string",
      "description": "Policy name as published."
     },
     "tier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Hospital product tier.",
      "enum": [
       "gold",
       "silver_plus",
       "silver",
       "bronze_plus",
       "bronze",
       "basic_plus",
       "basic"
      ]
     },
     "product_type": {
      "type": "string",
      "description": "hospital (hospital cover only) or combined (hospital and extras in one policy).",
      "enum": [
       "hospital",
       "combined"
      ]
     },
     "premium_monthly": {
      "type": [
       "number",
       "null"
      ],
      "description": "Monthly premium in AUD before the government rebate, LHC loading and age-based discount."
     },
     "excess_per_person": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per person per year in AUD (750 or less for a single keeps Medicare Levy Surcharge exemption)."
     },
     "excess_per_policy": {
      "type": [
       "number",
       "null"
      ],
      "description": "Maximum excess per policy per year in AUD."
     },
     "product_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own page for the policy, when supplied.",
      "format": "uri"
     },
     "phis_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "The policy's Private Health Information Statement on privatehealth.gov.au: the regulator's own summary of the full terms, including every clinical category, waiting periods and dependant age limits.",
      "format": "uri"
     }
    },
    "required": [
     "rank",
     "fund_label",
     "fund_slug",
     "fund_type",
     "eligibility",
     "name",
     "tier",
     "product_type",
     "premium_monthly",
     "excess_per_person",
     "excess_per_policy",
     "product_url",
     "phis_url"
    ]
   },
   "HealthTop": {
    "type": "object",
    "properties": {
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "household": {
      "type": [
       "string",
       "null"
      ],
      "description": "Who the policy covers, as the regulator records it.",
      "enum": [
       "single",
       "couple",
       "family",
       "single_parent",
       "dependants_only"
      ]
     },
     "data_as_of": {
      "type": [
       "string",
       "null"
      ],
      "description": "Extract date of the release.",
      "format": "date"
     },
     "note": {
      "type": "string",
      "description": "What the file holds."
     },
     "medicare_levy_surcharge": {
      "type": "string",
      "description": "That every ranked policy avoids the surcharge, at any tier."
     },
     "before_answering": {
      "type": "string",
      "description": "questions.json.",
      "format": "uri"
     },
     "full_ranking": {
      "type": "string",
      "description": "cheapest/<state>/<household>.json, every fund's cheapest per tier.",
      "format": "uri"
     },
     "counts": {
      "type": "object",
      "description": "tier -> funds ranked in the full ranking.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "rankings": {
      "type": "object",
      "description": "tier ('any' first) -> the five cheapest HealthTopEntry.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "$ref": "#/components/schemas/HealthTopEntry"
       }
      }
     },
     "combined_note": {
      "type": "string",
      "description": "Why combined_rankings exists and what it leaves out."
     },
     "combined_counts": {
      "type": "object",
      "description": "tier -> funds with a combined policy ranked.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "combined_rankings": {
      "type": "object",
      "description": "any -> the five cheapest funds' cheapest combined (hospital and extras) policy at any tier, as HealthTopEntry; the per-tier combined rankings are in cheapest/.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "$ref": "#/components/schemas/HealthTopEntry"
       }
      }
     }
    },
    "required": [
     "state",
     "household",
     "rankings"
    ]
   },
   "HealthByState": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "source_url": {
      "type": "string",
      "description": "The release the figures came from.",
      "format": "uri"
     },
     "note": {
      "type": "string",
      "description": "Why one policy has different prices, and what that does and does not permit."
     },
     "method": {
      "type": "string",
      "description": "How a product is matched across states."
     },
     "states": {
      "type": "array",
      "description": "States compared.",
      "items": {
       "type": "string"
      }
     },
     "households": {
      "type": "array",
      "description": "Household types.",
      "items": {
       "type": "string"
      }
     },
     "products_compared": {
      "type": "integer",
      "description": "Products sold in more than one state."
     },
     "products_price_varies_by_state": {
      "type": "integer",
      "description": "Of those, how many are not the same price everywhere."
     },
     "state_index": {
      "type": "array",
      "description": "One row per state.",
      "items": {
       "type": "object",
       "properties": {
        "state": {
         "type": "string"
        },
        "products_compared": {
         "type": "integer"
        },
        "median_vs_other_states_pct": {
         "type": [
          "number",
          "null"
         ],
         "description": "Median gap against the same policy's median price elsewhere; negative is cheaper."
        },
        "cheapest_state_for_products": {
         "type": "integer",
         "description": "Products for which this state is the cheapest."
        }
       }
      }
     },
     "state_index_note": {
      "type": "string",
      "description": "How to read median_vs_other_states_pct."
     },
     "mls_excess_cap": {
      "type": "object",
      "description": "household -> the highest excess that still counts as exempt cover.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "cheapest_mls_compliant": {
      "type": "object",
      "description": "state -> household -> the cheapest open-membership policy that exempts the holder, or null.",
      "additionalProperties": {
       "type": "object",
       "additionalProperties": {
        "type": [
         "object",
         "null"
        ],
        "additionalProperties": true
       }
      }
     },
     "cheapest_mls_compliant_note": {
      "type": "string",
      "description": "What that figure is and is not."
     },
     "widest_spread": {
      "type": "array",
      "description": "Products whose price varies most between states, widest first; premium_monthly maps state to price.",
      "items": {
       "type": "object",
       "additionalProperties": true
      }
     },
     "widest_spread_note": {
      "type": "string",
      "description": "How many products are listed."
     }
    },
    "required": [
     "states",
     "state_index",
     "cheapest_mls_compliant"
    ]
   },
   "HealthQuestionGuide": {
    "type": "object",
    "properties": {
     "note": {
      "type": "string",
      "description": "How to use the guide."
     },
     "premiums_are_list_prices": {
      "type": "string",
      "description": "What sits between a published premium and what a reader pays."
     },
     "commentary": {
      "type": "array",
      "description": "Figures in this dataset that a client will otherwise misread. Each entry has a topic and, depending on the kind, looks_wrong_but_is_correct with why_it_is_correct and do_not; known_gap with what_is_going_on and what_to_do; or excluded_from_every_premium_here with how_it_works and a worked_example. Read it before quoting a premium that seems implausible, and before deciding this dataset is wrong.",
      "items": {
       "type": "object",
       "properties": {
        "topic": {
         "type": "string"
        }
       },
       "required": [
        "topic"
       ],
       "additionalProperties": true
      }
     },
     "commentary_note": {
      "type": "string",
      "description": "What the commentary covers."
     },
     "questions": {
      "type": "array",
      "description": "One entry per question readers ask.",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string"
        },
        "also_asked_as": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Other wordings of the same question."
        },
        "has_no_single_answer": {
         "type": "boolean",
         "description": "True when the question cannot be answered without the inputs below."
        },
        "check_first": {
         "type": "object",
         "additionalProperties": true,
         "description": "A test to apply before recommending anything, and what it needs."
        },
        "ask_the_reader_first": {
         "type": "array",
         "description": "Inputs that select the data; in_this_dataset is true for these.",
         "items": {
          "type": "object",
          "additionalProperties": true
         }
        },
        "also_ask": {
         "type": "array",
         "description": "Context this dataset does not hold but which changes the answer.",
         "items": {
          "type": "object",
          "additionalProperties": true
         }
        },
        "then_read": {
         "type": "object",
         "additionalProperties": true,
         "description": "The file and field that answer the question."
        },
        "for_a_short_list": {
         "type": "object",
         "additionalProperties": true,
         "description": "The top/ file: the five cheapest per tier."
        },
        "for_the_full_ranking": {
         "type": "object",
         "additionalProperties": true,
         "description": "The cheapest/ file: every fund's cheapest per tier."
        },
        "for_one_fund": {
         "type": "object",
         "additionalProperties": true,
         "description": "One fund's policies in one state."
        },
        "say_as_well": {
         "type": "string",
         "description": "What to tell the reader alongside the number."
        }
       },
       "required": [
        "question"
       ]
      }
     }
    },
    "required": [
     "questions"
    ]
   },
   "HealthFund": {
    "type": "object",
    "description": "A registered health insurer.",
    "properties": {
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "restriction": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: who may join, in brief."
     },
     "restriction_details": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: the full eligibility statement."
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own description."
     },
     "website": {
      "type": [
       "string",
       "null"
      ],
      "description": "Fund website.",
      "format": "uri"
     },
     "phone": {
      "type": [
       "string",
       "null"
      ],
      "description": "Fund phone number."
     },
     "states": {
      "type": "array",
      "description": "States the fund sells in (ALL means nationally).",
      "items": {
       "type": "string"
      }
     },
     "brands": {
      "type": "array",
      "description": "Sub-brands the fund sells under.",
      "items": {
       "type": "object",
       "properties": {
        "brand_code": {
         "type": [
          "string",
          "null"
         ]
        },
        "brand": {
         "type": "string"
        },
        "website": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      }
     },
     "dependant_age_limits": {
      "type": "object",
      "description": "Age limits the fund applies to each class of dependant. A policy says which classes it covers (dependant_types); these say the ages each class runs between, so both are needed to tell whether a particular person is covered. Set by the fund, not the policy.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "supported": {
         "type": "boolean",
         "description": "False when the fund will not cover this class of dependant at all."
        },
        "min_age": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Youngest age covered, inclusive; null when unsupported."
        },
        "max_age": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Oldest age covered, inclusive; null when unsupported."
        }
       }
      }
     },
     "non_classified_dependant_note": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own definition of a non-classified ('young adult') dependant, when it gives one."
     },
     "agreement_hospital_count": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Hospitals this fund holds an agreement with."
     },
     "agreement_hospitals_by_state": {
      "type": "object",
      "description": "Agreement hospitals per state. Cover is national, so a fund's agreements are not confined to the states it prices in.",
      "additionalProperties": {
       "type": "integer"
      }
     }
    },
    "required": [
     "fund",
     "fund_slug",
     "fund_code",
     "fund_type"
    ]
   },
   "HealthMedicareLevySurcharge": {
    "type": "object",
    "description": "Medicare levy surcharge thresholds and rates, and the rebate percentages, from the ATO.",
    "properties": {
     "note": {
      "type": "string",
      "description": "What the figures are and how they are kept current."
     },
     "how_to_use": {
      "type": "string",
      "description": "How to apply them to a reader."
     },
     "lapsed": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "surcharge and/or rebate when its applies_to date has passed without an update."
     },
     "surcharge": {
      "type": "object",
      "description": "income_year, applies_from, applies_to, source_url, tiers (single_min/max, family_min/max, rate_pct) and the per-child family increase.",
      "additionalProperties": true
     },
     "rebate": {
      "type": "object",
      "description": "applies_from, applies_to, source_url and rates_pct[age band][tier].",
      "additionalProperties": true
     }
    },
    "required": [
     "surcharge",
     "rebate",
     "lapsed"
    ]
   },
   "HealthAnswers": {
    "type": "object",
    "description": "Questions answered outright from the data.",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "dependant_classes": {
      "type": "object",
      "description": "The source's dependant classes and the words privatehealth.gov.au uses for them.",
      "additionalProperties": {
       "type": "string"
      }
     },
     "answers": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "question": {
         "type": "string",
         "description": "The question, as a reader would ask it."
        },
        "short_answer": {
         "type": "string",
         "description": "One sentence."
        },
        "answer": {
         "type": "string",
         "description": "The full answer, with this month's figures."
        },
        "evidence": {
         "type": "object",
         "description": "The counts, bands and fund names the answer is built from.",
         "additionalProperties": true
        },
        "table": {
         "type": "object",
         "description": "A worked example, where the answer has one: caption, column headings and rows of strings, already formatted.",
         "properties": {
          "caption": {
           "type": "string"
          },
          "columns": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "rows": {
           "type": "array",
           "items": {
            "type": "array",
            "items": {
             "type": "string"
            }
           }
          }
         }
        }
       },
       "required": [
        "question",
        "short_answer",
        "answer"
       ]
      }
     }
    },
    "required": [
     "answers"
    ]
   },
   "HealthAgreementHospitalBrief": {
    "type": "object",
    "description": "A hospital on one fund's agreement list.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Unique id of the hospital in this dataset."
     },
     "name": {
      "type": "string",
      "description": "Hospital name."
     },
     "town": {
      "type": "string",
      "description": "Town or suburb."
     },
     "state": {
      "type": "string",
      "description": "State or territory."
     },
     "postcode": {
      "type": [
       "string",
       "null"
      ],
      "description": "Postcode."
     },
     "day_only": {
      "type": "boolean",
      "description": "True for a day hospital or clinic, false where it admits overnight."
     }
    },
    "required": [
     "id",
     "name",
     "state"
    ]
   },
   "HealthAgreementHospital": {
    "type": "object",
    "description": "A hospital and the funds holding an agreement with it.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Unique id of the hospital in this dataset, from its name and town.",
      "pattern": "^[a-z0-9-]+$"
     },
     "provider_id": {
      "type": [
       "string",
       "null"
      ],
      "description": "The source's Provider number. A billing identifier, not unique: some operators run several campuses under one."
     },
     "name": {
      "type": "string",
      "description": "Hospital name as published."
     },
     "address": {
      "type": [
       "string",
       "null"
      ],
      "description": "Street address."
     },
     "town": {
      "type": "string",
      "description": "Town or suburb."
     },
     "state": {
      "type": "string",
      "description": "State or territory, including ACT, which is a location even though it is not a pricing state."
     },
     "postcode": {
      "type": [
       "string",
       "null"
      ],
      "description": "Postcode."
     },
     "latitude": {
      "type": [
       "number",
       "null"
      ],
      "description": "Latitude in decimal degrees."
     },
     "longitude": {
      "type": [
       "number",
       "null"
      ],
      "description": "Longitude in decimal degrees."
     },
     "day_only": {
      "type": "boolean",
      "description": "True for a day hospital or clinic, false where it admits overnight."
     },
     "funds": {
      "type": "array",
      "description": "Slugs of the funds holding an agreement with this hospital; empty when no insurer lists one.",
      "items": {
       "type": "string"
      }
     },
     "fund_count": {
      "type": "integer",
      "description": "How many funds hold an agreement."
     },
     "source_file": {
      "type": "string",
      "description": "The release file this row came from."
     },
     "source_url": {
      "type": "string",
      "description": "The release this row came from.",
      "format": "uri"
     }
    },
    "required": [
     "id",
     "name",
     "state",
     "funds"
    ]
   },
   "HealthHospitalRegister": {
    "type": "object",
    "description": "Every agreement hospital in the release.",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "hospital_count": {
      "type": "integer",
      "description": "Hospitals in the register."
     },
     "states": {
      "type": "array",
      "description": "States and territories with a hospital.",
      "items": {
       "type": "string"
      }
     },
     "funds": {
      "type": "object",
      "description": "Fund slug to short name, for reading the funds array on each hospital.",
      "additionalProperties": {
       "type": "string"
      }
     },
     "hospitals_by_state": {
      "type": "object",
      "description": "Hospitals per state.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "hospitals_with_no_agreement": {
      "type": "integer",
      "description": "Hospitals no insurer has an agreement with."
     },
     "hospitals": {
      "type": "array",
      "description": "The hospitals.",
      "items": {
       "$ref": "#/components/schemas/HealthAgreementHospital"
      }
     }
    },
    "required": [
     "hospitals"
    ]
   },
   "HealthHospitalRegisterIndex": {
    "type": "object",
    "description": "Where each state's agreement hospitals are.",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "url_template": {
      "type": "string",
      "description": "URL template of a state index."
     },
     "hospital_url_template": {
      "type": "string",
      "description": "URL template of one hospital's file."
     },
     "hospital_count": {
      "type": "integer",
      "description": "Hospitals in the register."
     },
     "hospitals_with_no_agreement": {
      "type": "integer",
      "description": "Hospitals no insurer has an agreement with."
     },
     "funds": {
      "type": "object",
      "description": "Fund slug to short name.",
      "additionalProperties": {
       "type": "string"
      }
     },
     "states": {
      "type": "array",
      "description": "Each state with its index URL and hospital count.",
      "items": {
       "type": "object"
      }
     }
    },
    "required": [
     "states",
     "url_template"
    ]
   },
   "HealthHospitalSlice": {
    "type": "object",
    "description": "A compact index of the agreement hospitals in one state.",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "state": {
      "type": "string",
      "description": "The state these hospitals are in."
     },
     "states": {
      "type": "array",
      "description": "Every state with an index.",
      "items": {
       "type": "string"
      }
     },
     "url_template": {
      "type": "string",
      "description": "URL template of one hospital's file, filled with its id."
     },
     "fund_total": {
      "type": "integer",
      "description": "Funds that list any agreement hospital, against which fund_count reads."
     },
     "hospital_count": {
      "type": "integer",
      "description": "Hospitals in this state."
     },
     "hospitals_with_no_agreement": {
      "type": "integer",
      "description": "Of those, how many no insurer covers."
     },
     "hospitals": {
      "type": "array",
      "description": "The hospitals.",
      "items": {
       "$ref": "#/components/schemas/HealthAgreementHospitalEntry"
      }
     }
    },
    "required": [
     "state",
     "hospitals",
     "url_template"
    ]
   },
   "HealthAgreementHospitalEntry": {
    "type": "object",
    "description": "One hospital in a state index.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Unique id of the hospital, for url_template.",
      "pattern": "^[a-z0-9-]+$"
     },
     "name": {
      "type": "string",
      "description": "Hospital name."
     },
     "town": {
      "type": "string",
      "description": "Town or suburb."
     },
     "postcode": {
      "type": [
       "string",
       "null"
      ],
      "description": "Postcode."
     },
     "day_only": {
      "type": "boolean",
      "description": "True for a day hospital or clinic, false where it admits overnight."
     },
     "fund_count": {
      "type": "integer",
      "description": "How many funds hold an agreement."
     }
    },
    "required": [
     "id",
     "name"
    ]
   },
   "HealthHospitalFile": {
    "type": "object",
    "description": "One hospital and the funds holding an agreement with it.",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "id": {
      "type": "string",
      "description": "Unique id of the hospital in this dataset, from its name and town.",
      "pattern": "^[a-z0-9-]+$"
     },
     "provider_id": {
      "type": [
       "string",
       "null"
      ],
      "description": "The source's Provider number. A billing identifier, not unique: some operators run several campuses under one."
     },
     "name": {
      "type": "string",
      "description": "Hospital name as published."
     },
     "address": {
      "type": [
       "string",
       "null"
      ],
      "description": "Street address."
     },
     "town": {
      "type": "string",
      "description": "Town or suburb."
     },
     "state": {
      "type": "string",
      "description": "State or territory, including ACT, which is a location even though it is not a pricing state."
     },
     "postcode": {
      "type": [
       "string",
       "null"
      ],
      "description": "Postcode."
     },
     "latitude": {
      "type": [
       "number",
       "null"
      ],
      "description": "Latitude in decimal degrees."
     },
     "longitude": {
      "type": [
       "number",
       "null"
      ],
      "description": "Longitude in decimal degrees."
     },
     "day_only": {
      "type": "boolean",
      "description": "True for a day hospital or clinic, false where it admits overnight."
     },
     "fund_count": {
      "type": "integer",
      "description": "How many funds hold an agreement."
     },
     "source_file": {
      "type": "string",
      "description": "The release file this row came from."
     },
     "source_url": {
      "type": "string",
      "description": "The release this row came from.",
      "format": "uri"
     },
     "state_index": {
      "type": "string",
      "description": "The state index this hospital is listed in.",
      "format": "uri"
     },
     "funds": {
      "type": "array",
      "description": "Funds holding an agreement, with fund_slug, fund_label and fund_url.",
      "items": {
       "type": "object"
      }
     },
     "funds_without_agreement": {
      "type": "array",
      "description": "Funds that list agreement hospitals but not this one, with fund_slug and fund_label.",
      "items": {
       "type": "object"
      }
     }
    },
    "required": [
     "id",
     "name",
     "state",
     "funds"
    ]
   },
   "HealthFundRegister": {
    "type": "object",
    "properties": {
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "funds": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/HealthFund"
      }
     }
    },
    "required": [
     "funds"
    ]
   },
   "HealthFundIndex": {
    "type": "object",
    "properties": {
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "restriction": {
      "type": [
       "string",
       "null"
      ],
      "description": "Restricted funds: who may join, in brief."
     },
     "restriction_details": {
      "type": [
       "string",
       "null"
      ],
      "description": "Full eligibility statement."
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own description."
     },
     "website": {
      "type": [
       "string",
       "null"
      ],
      "description": "Fund website.",
      "format": "uri"
     },
     "phone": {
      "type": [
       "string",
       "null"
      ],
      "description": "Fund phone number."
     },
     "states": {
      "type": "array",
      "description": "States the fund sells in.",
      "items": {
       "type": "string"
      }
     },
     "brands": {
      "type": "array",
      "description": "Sub-brands.",
      "items": {
       "type": "object"
      }
     },
     "dependant_age_limits": {
      "type": "object",
      "description": "Age limits the fund applies to each class of dependant. A policy says which classes it covers (dependant_types); these say the ages each class runs between, so both are needed to tell whether a particular person is covered. Set by the fund, not the policy.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "supported": {
         "type": "boolean",
         "description": "False when the fund will not cover this class of dependant at all."
        },
        "min_age": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Youngest age covered, inclusive; null when unsupported."
        },
        "max_age": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Oldest age covered, inclusive; null when unsupported."
        }
       }
      }
     },
     "non_classified_dependant_note": {
      "type": [
       "string",
       "null"
      ],
      "description": "The fund's own definition of a non-classified ('young adult') dependant, when it gives one."
     },
     "agreement_hospital_count": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Hospitals this fund holds an agreement with."
     },
     "agreement_hospitals_by_state": {
      "type": "object",
      "description": "Agreement hospitals per state.",
      "additionalProperties": {
       "type": "integer"
      }
     },
     "agreement_hospitals": {
      "type": "array",
      "description": "The hospitals themselves; hospitals/{state}/{id}.json has each one's address and funds.",
      "items": {
       "$ref": "#/components/schemas/HealthAgreementHospitalBrief"
      }
     },
     "agreement_hospitals_note": {
      "type": "string",
      "description": "What an agreement hospital means for a member's costs."
     },
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "note": {
      "type": "string",
      "description": "Where the policies are."
     },
     "policy_count": {
      "type": "integer",
      "description": "Policies across every state."
     },
     "hospital_policy_count": {
      "type": "integer",
      "description": "Hospital-only policies."
     },
     "combined_policy_count": {
      "type": "integer",
      "description": "Combined policies."
     },
     "url_template": {
      "type": "string",
      "description": "URL template of a part."
     },
     "parts": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "state": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "policy_count": {
         "type": "integer",
         "description": "Policies in the part, nationally sold ones included."
        }
       }
      }
     }
    },
    "required": [
     "fund",
     "fund_slug",
     "parts"
    ]
   },
   "HealthFundPart": {
    "type": "object",
    "properties": {
     "fund": {
      "type": "string",
      "description": "The insurer's registered name."
     },
     "fund_label": {
      "type": "string",
      "description": "Short name used on the site."
     },
     "fund_slug": {
      "type": "string",
      "description": "URL slug of the fund (its page and JSON file).",
      "pattern": "^[a-z0-9-]+$"
     },
     "fund_code": {
      "type": "string",
      "description": "Three-letter code the regulator uses for the fund."
     },
     "fund_type": {
      "type": "string",
      "description": "open (anyone can join) or restricted (membership limited to a group).",
      "enum": [
       "open",
       "restricted"
      ]
     },
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "state": {
      "type": "string",
      "description": "State the premium applies in; ALL means sold nationally at one price.",
      "enum": [
       "NSW",
       "VIC",
       "QLD",
       "SA",
       "WA",
       "TAS",
       "NT",
       "ALL"
      ]
     },
     "note": {
      "type": "string",
      "description": "What the part holds and how the profile tables relate to the policies."
     },
     "fund_index": {
      "type": "string",
      "description": "funds/<fund_slug>.json.",
      "format": "uri"
     },
     "other_states": {
      "type": "string",
      "description": "URL template of the fund's other parts."
     },
     "policy_count": {
      "type": "integer",
      "description": "Policies in this file."
     },
     "hospital_policy_count": {
      "type": "integer",
      "description": "Hospital-only policies."
     },
     "combined_policy_count": {
      "type": "integer",
      "description": "Combined policies."
     },
     "cover_profiles": {
      "type": "object",
      "description": "cover_profile id -> {covered, restricted, not_covered}: lists of clinical category names.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "covered": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "restricted": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "not_covered": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "waiting_profiles": {
      "type": "object",
      "description": "waiting_profile id -> kind -> {value, unit}.",
      "additionalProperties": {
       "type": "object"
      }
     },
     "extras_profiles": {
      "type": "object",
      "description": "extras_profile id -> extras services covered.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     },
     "features_profiles": {
      "type": "object",
      "description": "features_profile id -> the fund's own description of what else the policy does. 241 distinct passages across the release and 86% of policies carry one; this is where a 24-hour accident-admission limit or an accident override sits, and two policies identical in every structured field can differ entirely here.",
      "additionalProperties": {
       "type": "string"
      }
     },
     "ambulance_profiles": {
      "type": "object",
      "description": "ambulance_profile id -> the fund's own wording for ambulance cover in that policy's state. The release carries one passage per state and they differ on most policies, usually because the Queensland and Tasmanian state schemes sit in front of the insurer's cover.",
      "additionalProperties": {
       "type": "string"
      }
     },
     "policies": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/HealthPolicyDetail"
      }
     }
    },
    "required": [
     "fund",
     "fund_slug",
     "state",
     "policies"
    ]
   },
   "HealthDatasetIndex": {
    "type": "object",
    "properties": {
     "dataset": {
      "type": "string",
      "description": "Dataset name."
     },
     "page": {
      "type": "string",
      "description": "Human-readable page for the dataset.",
      "format": "uri"
     },
     "start_here": {
      "type": [
       "object",
       "null"
      ],
      "description": "The small file that answers most questions here: answer_file (a URL template), inputs (how to fill it), example (a filled-in URL) and sometimes also (the next file for a common variant).",
      "properties": {
       "answer_file": {
        "type": "string",
        "description": "URL template of the answer file."
       },
       "inputs": {
        "type": "string",
        "description": "What each placeholder takes."
       },
       "example": {
        "type": "string",
        "description": "A filled-in answer file URL.",
        "format": "uri"
       },
       "also": {
        "type": "string",
        "description": "Another file for a common variant of the question."
       },
       "lookup": {
        "type": "string",
        "description": "Where present: a /v1/lookup URL that takes the reader's own numbers, applies the bucket rules and redirects to the answer file.",
        "format": "uri"
       },
       "compare": {
        "type": "string",
        "description": "Where present: a /v1/compare URL that ranks every rate at the reader's exact amount and answers with JSON directly.",
        "format": "uri"
       }
      }
     },
     "generated_at": {
      "type": "string",
      "description": "When this index was written, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "fetched_at": {
      "type": "string",
      "description": "When the source was last fetched, UTC, YYYY-MM-DDTHH:MM:SSZ.",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
     },
     "data_as_of": {
      "type": "string",
      "description": "How current the data is: a date (YYYY-MM-DD) or a UTC timestamp (YYYY-MM-DDTHH:MM:SSZ); data_as_of_basis says what it means here.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$"
     },
     "data_as_of_basis": {
      "type": "string",
      "description": "One sentence saying what data_as_of means for this dataset."
     },
     "source": {
      "type": "string",
      "description": "Data source statement."
     },
     "licence_note": {
      "type": "string",
      "description": "Terms of reuse and the not-advice note."
     },
     "licences": {
      "type": "array",
      "description": "What may be reused and on what terms, layer by layer: each layer's source, the fields it covers, its licence and the attribution it asks for. The last layer is Deep Almanac's own work (CC BY 4.0), covering every field no other layer names. Reusing a field means meeting the terms of the layer that covers it.",
      "items": {
       "type": "object",
       "required": [
        "layer",
        "covers",
        "licence",
        "licence_url",
        "attribution"
       ],
       "properties": {
        "layer": {
         "type": "string",
         "description": "The source."
        },
        "covers": {
         "type": "string",
         "description": "The fields it covers."
        },
        "licence": {
         "type": "string",
         "description": "Its licence, or why there is none."
        },
        "licence_url": {
         "type": [
          "string",
          "null"
         ],
         "format": "uri",
         "description": "The licence's own page, where it has one."
        },
        "attribution": {
         "type": "string",
         "description": "The credit the layer asks for."
        }
       }
      }
     },
     "questions": {
      "type": "string",
      "description": "This dataset's questions.json: what to ask the reader first and which file answers each.",
      "format": "uri"
     },
     "openapi": {
      "type": "string",
      "description": "This dataset's OpenAPI document.",
      "format": "uri"
     },
     "status": {
      "type": "string",
      "description": "https://deepalmanac.com/status.json: when every dataset was last fetched and when it counts as overdue.",
      "format": "uri"
     },
     "llms": {
      "type": "string",
      "description": "https://deepalmanac.com/llms.txt: the site's guide for language models.",
      "format": "uri"
     },
     "files": {
      "type": "array",
      "description": "Every top-level file this dataset publishes, as absolute URLs.",
      "items": {
       "type": "string",
       "format": "uri"
      }
     },
     "file_guide": {
      "type": "array",
      "description": "What each of those files holds, in the same order.",
      "items": {
       "type": "object",
       "properties": {
        "file": {
         "type": "string"
        },
        "url": {
         "type": "string",
         "format": "uri"
        },
        "description": {
         "type": "string"
        }
       }
      }
     },
     "release": {
      "type": "object",
      "description": "The data.gov.au release the files were built from (name, url, bytes, sha256, extract_date).",
      "additionalProperties": true
     },
     "answering": {
      "$ref": "#/components/schemas/HealthQuestionGuide"
     },
     "cheapest_dir": {
      "type": "object",
      "description": "The per-state, per-household slices of cheapest.json; read one of these rather than the whole file.",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "states": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "households": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "urls": {
        "type": "array",
        "items": {
         "type": "string",
         "format": "uri"
        }
       }
      }
     },
     "top_dir": {
      "type": "object",
      "description": "The five cheapest per tier for each state and household.",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "states": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "households": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "urls": {
        "type": "array",
        "items": {
         "type": "string",
         "format": "uri"
        }
       }
      }
     },
     "states_dir": {
      "type": "object",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "part_url_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "households": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "product_types": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "states": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "state": {
           "type": "string"
          },
          "url": {
           "type": "string",
           "format": "uri"
          },
          "row_count": {
           "type": "integer"
          }
         }
        }
       }
      }
     },
     "funds_dir": {
      "type": "object",
      "properties": {
       "path": {
        "type": "string"
       },
       "url_template": {
        "type": "string"
       },
       "part_url_template": {
        "type": "string"
       },
       "page_template": {
        "type": "string"
       },
       "description": {
        "type": "string"
       },
       "count": {
        "type": "integer"
       },
       "funds": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "fund": {
           "type": "string",
           "description": "The insurer's registered name."
          },
          "fund_label": {
           "type": "string",
           "description": "Short name used on the site."
          },
          "fund_slug": {
           "type": "string",
           "description": "URL slug of the fund (its page and JSON file).",
           "pattern": "^[a-z0-9-]+$"
          },
          "fund_code": {
           "type": "string",
           "description": "Three-letter code the regulator uses for the fund."
          },
          "fund_type": {
           "type": "string",
           "description": "open (anyone can join) or restricted (membership limited to a group).",
           "enum": [
            "open",
            "restricted"
           ]
          },
          "url": {
           "type": "string",
           "format": "uri"
          },
          "page": {
           "type": "string",
           "format": "uri"
          },
          "policy_count": {
           "type": "integer"
          }
         }
        }
       }
      }
     }
    },
    "required": [
     "dataset",
     "page",
     "start_here",
     "generated_at",
     "fetched_at",
     "data_as_of",
     "data_as_of_basis",
     "source",
     "licence_note",
     "licences",
     "questions",
     "openapi",
     "status",
     "llms",
     "files",
     "funds_dir",
     "states_dir"
    ]
   }
  }
 }
}
