{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/canvas-medical/main/json-schema/canvas-medical-appointment-schema.json", "title": "Appointment", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/canvas-medical-appointment-api-openapi.yml#/components/schemas/Appointment", "allOf": [ { "$ref": "#/$defs/FHIRResource" }, { "type": "object", "required": [ "resourceType", "status" ], "properties": { "resourceType": { "type": "string", "default": "Appointment" }, "status": { "type": "string", "enum": [ "proposed", "pending", "booked", "arrived", "fulfilled", "cancelled", "noshow", "entered-in-error", "checked-in", "waitlist" ] }, "serviceType": { "type": "array", "items": { "$ref": "#/$defs/CodeableConcept" } }, "appointmentType": { "$ref": "#/$defs/CodeableConcept" }, "reasonCode": { "type": "array", "items": { "$ref": "#/$defs/CodeableConcept" } }, "start": { "type": "string", "format": "date-time" }, "end": { "type": "string", "format": "date-time" }, "participant": { "type": "array", "items": { "type": "object", "properties": { "actor": { "$ref": "#/$defs/Reference" }, "status": { "type": "string", "enum": [ "accepted", "declined", "tentative", "needs-action" ] } } } } } } ], "$defs": { "CodeableConcept": { "type": "object", "properties": { "coding": { "type": "array", "items": { "$ref": "#/$defs/Coding" } }, "text": { "type": "string" } } }, "Coding": { "type": "object", "properties": { "system": { "type": "string" }, "version": { "type": "string" }, "code": { "type": "string" }, "display": { "type": "string" }, "userSelected": { "type": "boolean" } } }, "FHIRResource": { "type": "object", "description": "Base FHIR R4 resource properties", "properties": { "resourceType": { "type": "string", "description": "FHIR resource type name" }, "id": { "type": "string", "description": "Logical id of this artifact" }, "meta": { "$ref": "#/$defs/Meta" }, "text": { "$ref": "#/$defs/Narrative" } } }, "Meta": { "type": "object", "properties": { "versionId": { "type": "string" }, "lastUpdated": { "type": "string", "format": "date-time" }, "source": { "type": "string" }, "profile": { "type": "array", "items": { "type": "string" } }, "tag": { "type": "array", "items": { "$ref": "#/$defs/Coding" } } } }, "Narrative": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "generated", "extensions", "additional", "empty" ] }, "div": { "type": "string" } } }, "Reference": { "type": "object", "properties": { "reference": { "type": "string" }, "type": { "type": "string" }, "display": { "type": "string" } } } } }