{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://vetdatastandards.com/schemas/v0.1/practice.schema.json",
  "title": "Practice",
  "type": "object",
  "additionalProperties": false,
  "required": ["id", "name", "source"],
  "properties": {
    "id": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/id" },
    "source": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/source" },
    "matchKeys": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/matchKeys" },
    "createdAt": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/dateTime" },
    "updatedAt": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/dateTime" },
    "deletedAt": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/dateTime" },
    "active": { "type": "boolean" },
    "extensions": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/extensions" },
    "organisationId": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/id" },
    "name": { "type": "string", "minLength": 1, "maxLength": 255 },
    "address": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/address" },
    "phone": { "type": "string", "minLength": 1, "maxLength": 64 },
    "email": { "type": "string", "format": "email", "maxLength": 255 },
    "website": { "type": "string", "minLength": 1, "maxLength": 512 },
    "country": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/country" },
    "countryRaw": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/rawText" },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "IANA timezone name, for example Europe/London."
    },
    "defaultCurrency": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/currency" },
    "defaultCurrencyRaw": { "$ref": "https://vetdatastandards.com/schemas/v0.1/common.schema.json#/$defs/rawText" },
    "companyName": { "type": "string", "minLength": 1, "maxLength": 255 },
    "companyNumber": { "type": "string", "minLength": 1, "maxLength": 64 },
    "taxIdentifier": { "type": "string", "minLength": 1, "maxLength": 64 }
  }
}
