Halaxy · Schema

ReferralDefinition

A ReferralType definition

CompanyHealthcarePractice ManagementFHIRTelehealthAppointmentsBillingPatients

Properties

Name Type Description
name stringnull Name of the referral definition
length stringnull Length/duration of the referral definition
fundingOrganization object Funder organization associated with this referral definition
limitQuantity object Default limit on the quantity of services (appointments, hours, or minutes)
limitMoney object Default limit on the cost of services
includeCancelledAppointment booleannull Include cancelled appointments in the referral count/value tracking
text object Text summary of the resource, for human interpretation
contained array Contained, inline Resources
id stringnull Logical id of this artifact
meta object Metadata about the resource
resourceType stringnull Resource Type
View JSON Schema on GitHub

JSON Schema

halaxy-referral-definition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/halaxy/json-schema/halaxy-referral-definition-schema.json",
  "title": "ReferralDefinition",
  "description": "A ReferralType definition",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/halaxy-referraldefinition-api-openapi.yml#/components/schemas/ReferralDefinition",
  "type": "object",
  "deprecated": false,
  "properties": {
    "name": {
      "description": "Name of the referral definition",
      "type": [
        "string",
        "null"
      ]
    },
    "length": {
      "description": "Length/duration of the referral definition",
      "type": [
        "string",
        "null"
      ]
    },
    "fundingOrganization": {
      "description": "Funder organization associated with this referral definition",
      "anyOf": [
        {
          "$ref": "#/$defs/FhirReference"
        },
        {
          "type": "null"
        }
      ]
    },
    "limitQuantity": {
      "description": "Default limit on the quantity of services (appointments, hours, or minutes)",
      "anyOf": [
        {
          "$ref": "#/$defs/LimitQuantity"
        },
        {
          "type": "null"
        }
      ]
    },
    "limitMoney": {
      "description": "Default limit on the cost of services",
      "anyOf": [
        {
          "$ref": "#/$defs/LimitMoney"
        },
        {
          "type": "null"
        }
      ]
    },
    "includeCancelledAppointment": {
      "description": "Include cancelled appointments in the referral count/value tracking",
      "type": [
        "boolean",
        "null"
      ]
    },
    "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"
      }
    },
    "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"
      ]
    }
  },
  "$defs": {
    "FhirMoney": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "value": {
          "description": "The numerical value of the amount",
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "description": "The currency used in ISO 4217 currency code",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "AED",
            "AFN",
            "ALL",
            "AMD",
            "ANG",
            "AOA",
            "ARS",
            "AUD",
            "AWG",
            "AZN",
            "BAM",
            "BBD",
            "BDT",
            "BGN",
            "BHD",
            "BIF",
            "BMD",
            "BND",
            "BOB",
            "BRL",
            "BSD",
            "BTN",
            "BWP",
            "BYN",
            "BZD",
            "CAD",
            "CDF",
            "CHF",
            "CLP",
            "CNY",
            "COP",
            "CRC",
            "CUC",
            "CUP",
            "CVE",
            "CZK",
            "DJF",
            "DKK",
            "DOP",
            "DZD",
            "EGP",
            "ERN",
            "ETB",
            "EUR",
            "FJD",
            "FKP",
            "FOK",
            "GBP",
            "GEL",
            "GGP",
            "GHS",
            "GIP",
            "GMD",
            "GNF",
            "GTQ",
            "GYD",
            "HKD",
            "HNL",
            "HRK",
            "HTG",
            "HUF",
            "IDR",
            "ILS",
            "IMP",
            "INR",
            "IQD",
            "IRR",
            "ISK",
            "JEP",
            "JMD",
            "JOD",
            "JPY",
            "KES",
            "KGS",
            "KHR",
            "KID",
            "KMF",
            "KRW",
            "KWD",
            "KYD",
            "KZT",
            "LAK",
            "LBP",
            "LKR",
            "LRD",
            "LSL",
            "LYD",
            "MAD",
            "MDL",
            "MGA",
            "MKD",
            "MMK",
            "MNT",
            "MOP",
            "MRU",
            "MUR",
            "MVR",
            "MWK",
            "MXN",
            "MYR",
            "MZN",
            "NAD",
            "NGN",
            "NIO",
            "NOK",
            "NPR",
            "NZD",
            "OMR",
            "PAB",
            "PEN",
            "PGK",
            "PHP",
            "PKR",
            "PLN",
            "PYG",
            "QAR",
            "RON",
            "RSD",
            "RUB",
            "RWF",
            "SAR",
            "SBD",
            "SCR",
            "SDG",
            "SEK",
            "SGD",
            "SHP",
            "SLL",
            "SOS",
            "SRD",
            "SSP",
            "STN",
            "SVC",
            "SYP",
            "SZL",
            "THB",
            "TJS",
            "TMT",
            "TND",
            "TOP",
            "TRY",
            "TTD",
            "TVD",
            "TWD",
            "TZS",
            "UAH",
            "UGX",
            "USD",
            "USN",
            "UYI",
            "UYU",
            "UZS",
            "VEF",
            "VND",
            "VUV",
            "WST",
            "XAF",
            "XAG",
            "XAU",
            "XBA",
            "XBB",
            "XBC",
            "XBD",
            "XCD",
            "XDR",
            "XOF",
            "XPD",
            "XPF",
            "XPT",
            "XSU",
            "XTS",
            "XUA",
            "XXX",
            "YER",
            "ZAR",
            "ZMW",
            "ZWL",
            null
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "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"
          ]
        }
      }
    },
    "FhirQuantity": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "value": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ]
            },
            {
              "type": "integer"
            }
          ]
        },
        "comparator": {
          "type": [
            "string",
            "null"
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "system": {
          "default": "http://unitsofmeasure.org",
          "type": "string"
        },
        "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"
          }
        }
      }
    },
    "LimitMoney": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "amount": {
          "anyOf": [
            {
              "$ref": "#/$defs/FhirMoney"
            },
            {
              "type": "null"
            }
          ]
        },
        "allocationType": {
          "description": "Specifies whether the referral amount is applied to appointment fees only or to all fee types",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Appointments only",
            "All fee types",
            null
          ]
        },
        "amountUsed": {
          "description": "The amount of the monetary value used in the referral",
          "type": [
            "number",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "LimitQuantity": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "quantity": {
          "description": "The value and unit of the amount of time (e.g. 6 appointments, 1 hour, 30 minutes)",
          "anyOf": [
            {
              "$ref": "#/$defs/FhirQuantity"
            },
            {
              "type": "null"
            }
          ]
        },
        "quantityOffset": {
          "description": "The number of prior units used to include in this referral",
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ]
            },
            {
              "type": "integer"
            }
          ]
        },
        "quantityUsed": {
          "description": "The value and unit of the amount of time used in Halaxy appointments (e.g. 6 appointments, 1 hour, 30 minutes)",
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ]
            },
            {
              "type": "integer"
            }
          ]
        },
        "id": {
          "readOnly": true,
          "description": "ID of the FHIR element (optional)",
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/halaxy-referral-definition"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.