{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/canvas-medical/main/json-schema/canvas-medical-questionnaire-response-schema.json", "title": "QuestionnaireResponse", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/canvas-medical-questionnaireresponse-api-openapi.yml#/components/schemas/QuestionnaireResponse", "allOf": [ { "$ref": "#/$defs/FHIRResource" }, { "type": "object", "required": [ "resourceType", "status" ], "properties": { "resourceType": { "type": "string", "default": "QuestionnaireResponse" }, "questionnaire": { "type": "string" }, "status": { "type": "string", "enum": [ "in-progress", "completed", "amended", "entered-in-error", "stopped" ] }, "subject": { "$ref": "#/$defs/Reference" }, "authored": { "type": "string", "format": "date-time" }, "item": { "type": "array", "items": { "type": "object" } } } } ], "$defs": { "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" } } } } }