{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/halaxy/json-schema/halaxy-schedule-bundle-resource-jsonfhir-schema.json",
  "title": "Schedule.BundleResource.jsonfhir",
  "description": "Schedule resources provide a container for time-slots that can be booked using an appointment. It provides the window of time (period) that slots are defined for and what type of appointments can be booked.\nThe schedule does not provide any information about actual appointments. This separation greatly assists where access to the appointments would not be permitted for security or privacy reasons, while still being able to determine if an appointment might be available.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/halaxy-schedule-api-openapi.yml#/components/schemas/Schedule.BundleResource.jsonfhir",
  "type": "object",
  "deprecated": false,
  "properties": {
    "identifier": {
      "description": "Identifies this organization across multiple systems",
      "$ref": "#/$defs/FhirIdentifier.jsonfhir"
    },
    "type": {
      "description": "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection",
      "type": "string",
      "enum": [
        "document",
        "message",
        "transaction",
        "transaction-response",
        "batch",
        "batch-response",
        "history",
        "searchset",
        "collection"
      ]
    },
    "timestamp": {
      "description": "When the bundle was assembled",
      "type": "string",
      "format": "date-time"
    },
    "total": {
      "description": "If search, the total number of matches",
      "type": "integer"
    },
    "link": {
      "description": "Links related to this Bundle",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirBundleLink.jsonfhir"
      }
    },
    "entry": {
      "description": "Entry in the bundle - will have a resource or information",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirBundleEntry.jsonfhir"
      }
    },
    "text": {
      "readOnly": true,
      "description": "Text summary of the resource, for human interpretation",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirNarrative.jsonfhir"
        },
        {
          "type": "null"
        }
      ]
    },
    "contained": {
      "readOnly": true,
      "description": "Contained, inline Resources",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirResourceInterface.jsonfhir"
      }
    },
    "id": {
      "readOnly": true,
      "description": "Logical id of this artifact",
      "type": [
        "string",
        "null"
      ]
    },
    "meta": {
      "description": "Metadata about the resource",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirResourceMeta.jsonfhir"
        },
        {
          "type": "null"
        }
      ]
    },
    "resourceType": {
      "description": "Resource Type",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "FhirBundleEntry.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "fullUrl": {
          "description": "URI for resource (Absolute URL server address or URI for UUID/OID)",
          "type": [
            "string",
            "null"
          ]
        },
        "resource": {
          "description": "A resource in the bundle",
          "$ref": "#/$defs/FhirResourceInterface.jsonfhir"
        },
        "search": {
          "description": "Search related information",
          "$ref": "#/$defs/FhirBundleSearch.jsonfhir"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirBundleLink.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "relation": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirBundleSearch.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "mode": {
          "description": "match | include | outcome - why this is in the result set",
          "type": "string",
          "enum": [
            "match",
            "include",
            "outcome"
          ]
        },
        "score": {
          "description": "Search ranking (between 0 and 1)",
          "type": [
            "number",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirCodeableConcept.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "coding": {
          "description": "defined by a terminology system",
          "type": "array",
          "items": {
            "$ref": "#/$defs/FhirCoding.jsonfhir"
          }
        },
        "text": {
          "description": "Plain text representation of the concept",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirCoding.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "system": {
          "format": "uri",
          "description": "Identity of the terminology system",
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "description": "Symbol in syntax defined by the system",
          "type": [
            "string",
            "null"
          ]
        },
        "display": {
          "description": "Representation defined by the system",
          "type": [
            "string",
            "null"
          ]
        },
        "userSelected": {
          "readOnly": true,
          "description": "If this coding was chosen directly by the user",
          "type": [
            "boolean",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirIdentifier.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "use": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "usual",
            "official",
            "temp",
            "secondary",
            "old",
            null
          ]
        },
        "type": {
          "description": "Description of identifier",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirCodeableConcept.jsonfhir"
            },
            {
              "type": "null"
            }
          ]
        },
        "system": {
          "description": "The namespace for the identifier value",
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "description": "The unique identifier",
          "type": [
            "string",
            "null"
          ]
        },
        "period": {
          "description": "The time period when identifier is/was valid for use",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirPeriodDateTime.jsonfhir"
            },
            {
              "type": "null"
            }
          ]
        },
        "assigner": {
          "description": "Organization that issued id (may be just text)",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirReference.jsonfhir"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirNarrative.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "status": {
          "readOnly": true,
          "description": "Describes how the narrative was generated",
          "type": "string",
          "enum": [
            "generated",
            "extensions",
            "additional",
            "empty"
          ]
        },
        "div": {
          "readOnly": true,
          "description": "Limited xhtml content",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirPeriodDateTime.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "start": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "end": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirReference.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "required": [
        "reference"
      ],
      "properties": {
        "reference": {
          "description": "The URL (relative or absolute) to the resource being referenced",
          "type": "string"
        },
        "type": {
          "description": "The type of resource being referenced",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Organization",
            "Patient",
            "Practitioner",
            "PractitionerRole",
            "Appointment",
            "Coverage",
            "Invoice",
            "Communication",
            "Group",
            "DocumentReference",
            "InvoiceLine",
            "PaymentTransaction",
            "Referral",
            "ReferralDefinition",
            "Schedule",
            "Slot",
            "HealthcareService",
            "AllergyIntolerance",
            "Condition",
            "Immunization",
            "Subscription",
            "SubscriptionTopic",
            "ChargeItemDefinition",
            "ServiceRequest",
            "Medication",
            "MedicationRequest",
            "Questionnaire",
            "QuestionnaireResponse",
            "ValueSet",
            "ValueSetConcept",
            "Observation",
            "Binary",
            "Bundle",
            "OperationOutcome",
            "Parameters",
            "List",
            null
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirResourceInterface.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false
    },
    "FhirResourceMeta.jsonfhir": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "lastUpdated": {
          "readOnly": true,
          "description": "When the resource version last changed",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "profile": {
          "description": "Profiles this resource claims to conform to",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}