{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/halaxy/json-schema/halaxy-fhir-parameter-jsonfhir-schema.json",
  "title": "FhirParameter.jsonfhir",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/halaxy-appointment-api-openapi.yml#/components/schemas/FhirParameter.jsonfhir",
  "type": "object",
  "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.jsonfhir"
        },
        {
          "type": "null"
        }
      ]
    },
    "valueInt": {
      "type": [
        "integer",
        "null"
      ]
    },
    "resource": {
      "description": "If parameter is a whole resource",
      "anyOf": [
        {
          "$ref": "#/$defs/AbstractFhirResource.jsonfhir"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "readOnly": true,
      "description": "ID of the FHIR element (optional)",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "AbstractFhirResource.jsonfhir": {
      "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.jsonfhir"
            },
            {
              "type": "null"
            }
          ]
        },
        "resourceType": {
          "description": "Resource Type",
          "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"
          ]
        }
      }
    },
    "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"
          }
        }
      }
    }
  }
}