{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/halaxy/json-schema/halaxy-patient-parameters-resource-schema.json",
  "title": "Patient.ParametersResource",
  "description": "Demographics and other administrative information about an individual or animal receiving care or other health-related services. See https://www.hl7.org/fhir/R4/patient.html",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/halaxy-patient-api-openapi.yml#/components/schemas/Patient.ParametersResource",
  "type": "object",
  "deprecated": false,
  "properties": {
    "resourceType": {
      "default": "Parameters",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "description": "Logical id of this artifact",
      "type": [
        "string",
        "null"
      ]
    },
    "parameter": {
      "description": "Parameter related to this FhirParameters",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirParameter"
      }
    },
    "text": {
      "readOnly": true,
      "description": "Text summary of the resource, for human interpretation",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirNarrative"
        },
        {
          "type": "null"
        }
      ]
    },
    "contained": {
      "readOnly": true,
      "description": "Contained, inline Resources",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FhirResourceInterface"
      }
    },
    "meta": {
      "description": "Metadata about the resource",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirResourceMeta"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "AbstractFhirResource": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "id": {
          "readOnly": true,
          "description": "Logical id of this artifact",
          "type": [
            "string",
            "null"
          ]
        },
        "meta": {
          "description": "Metadata about the resource",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirResourceMeta"
            },
            {
              "type": "null"
            }
          ]
        },
        "resourceType": {
          "description": "Resource Type",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirNarrative": {
      "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"
          ]
        }
      }
    },
    "FhirParameter": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "name": {
          "description": "Name of parameter",
          "type": "string"
        },
        "valueString": {
          "type": [
            "string",
            "null"
          ]
        },
        "valueDateTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "valueBoolean": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "valueReference": {
          "anyOf": [
            {
              "$ref": "#/$defs/FhirReference"
            },
            {
              "type": "null"
            }
          ]
        },
        "valueInt": {
          "type": [
            "integer",
            "null"
          ]
        },
        "resource": {
          "description": "If parameter is a whole resource",
          "anyOf": [
            {
              "$ref": "#/$defs/AbstractFhirResource"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "FhirReference": {
      "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": {
      "type": "object",
      "description": "",
      "deprecated": false
    },
    "FhirResourceMeta": {
      "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"
          }
        }
      }
    }
  }
}