{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-client-referral-source-controller-client-referral-source-schema.json",
  "title": "RESTCollectionModelBase_OpenApiClientReferralSourceController.ClientReferralSource",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-clientreferralsource-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiClientReferralSourceController.ClientReferralSource",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiClientReferralSourceController.ClientReferralSource"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiClientReferralSourceController.Client": {
      "description": "Client REST model.",
      "type": "object",
      "properties": {
        "additionalText": {
          "description": "Free-text field of additional info for the client.",
          "type": "string"
        },
        "alerts": {
          "description": "Important info for the client, e.g. \"Difficult to work with\"",
          "type": "string"
        },
        "clientStatusId": {
          "description": "Unique identifier representing the related ClientStatus entity.",
          "type": "string"
        },
        "clinicId": {
          "description": "Unique identifier representing the related Clinic entity.",
          "type": "string"
        },
        "dateDeleted": {
          "format": "date-time",
          "description": "Date and time when the client was deleted.",
          "type": "string"
        },
        "deleted": {
          "description": "Value indicating whether this client is deleted.",
          "type": "boolean"
        },
        "email": {
          "description": "The client's email.",
          "type": "string"
        },
        "emailNotification": {
          "description": "Flag indicating whether the client accepts Email notifications.",
          "type": "boolean"
        },
        "firstName": {
          "description": "The client's first name.",
          "type": "string"
        },
        "identifier": {
          "description": "The client's short unique identifier inside the clinic. Clients from different clinics can have the same value.",
          "type": "string"
        },
        "isSubscribedToNotifications": {
          "description": "Flag indicating whether the client is subscribed to notifications. If false, no email or SMS\nnotifications should be sent to the client.",
          "type": "boolean"
        },
        "isTaxExempt": {
          "description": "Flag indicating whether the client is tax-exempt.",
          "type": "boolean"
        },
        "lastName": {
          "description": "The client's last name.",
          "type": "string"
        },
        "legacyId": {
          "description": "The client's legacy identifier from a previous PIMS.",
          "type": "string"
        },
        "smsNotification": {
          "description": "Flag indicating whether the client accepts SMS notifications.",
          "type": "boolean"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientReferralSourceController.ClientReferralSource": {
      "description": "Client Referral Source REST model",
      "type": "object",
      "properties": {
        "client": {
          "$ref": "#/$defs/OpenApiClientReferralSourceController.Client",
          "description": "Object representing related Client entity."
        },
        "clientId": {
          "format": "uuid",
          "description": "The unique identifier representing the related Client entity.",
          "type": "string"
        },
        "clinicId": {
          "format": "uuid",
          "description": "Unique identifier representing the related Clinic entity.",
          "type": "string"
        },
        "deleted": {
          "description": "A Value indicating whether this Client Referral Source entity is deleted.",
          "type": "boolean"
        },
        "groupId": {
          "format": "uuid",
          "description": "The unique identifier representing the Group where clinic belongs.",
          "type": "string"
        },
        "referralSource": {
          "$ref": "#/$defs/OpenApiClientReferralSourceController.ReferralSource",
          "description": "Object representing related Referral Source entity."
        },
        "referralSourceId": {
          "format": "uuid",
          "description": "The unique identifier representing the related Referral Source entity.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientReferralSourceController.ReferralSource": {
      "description": "Referral Source REST model.",
      "type": "object",
      "properties": {
        "clinicId": {
          "format": "uuid",
          "description": "Unique identifier representing the related Clinic entity.",
          "type": "string"
        },
        "description": {
          "description": "Additional details about the referral source, such as phone number or email address.",
          "type": "string"
        },
        "email": {
          "description": "Email address of the Referral source.",
          "type": "string"
        },
        "groupId": {
          "format": "uuid",
          "description": "The unique identifier representing the group to which the clinic belongs.",
          "type": "string"
        },
        "isActive": {
          "description": "Flag indicating if Referral Source is active. Defaults to true, active Referral source. If flag is set to false, Referral source is inactive.",
          "type": "boolean"
        },
        "name": {
          "description": "The Referral source name.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    }
  }
}