{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-health/json-schema/oracle-health-bundle-schema.json",
  "title": "Bundle",
  "description": "A FHIR R4 Bundle. Search results are returned as `type: searchset`; paging is carried on `link[relation=next]`.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-health-account-api-openapi.yml#/components/schemas/Bundle",
  "type": "object",
  "properties": {
    "resourceType": {
      "const": "Bundle"
    },
    "type": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "link": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "relation": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "entry": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "required": [
    "resourceType",
    "type"
  ],
  "additionalProperties": true
}