{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/InsuranceSpecialty",
  "definitions": {
    "InsuranceSpecialty": {
      "type": "object",
      "properties": {
        "line": {
          "$ref": "#/definitions/CodeableConcept",
          "description": "Primary line of business (GL, Property, WC, Auto, etc.)"
        },
        "subLine": {
          "$ref": "#/definitions/CodeableConcept",
          "description": "Sub-line or coverage part (Products/Completed Ops, Premises, etc.)"
        },
        "ratingBureau": {
          "$ref": "#/definitions/Coding",
          "description": "Rating bureau or advisory organization (ISO, NCCI, AAIS)."
        },
        "formNumber": {
          "type": "string",
          "description": "Standard form number (e.g., CG 00 01, CP 00 10)"
        },
        "program": {
          "type": "string",
          "description": "Named program, if applicable"
        }
      },
      "required": [
        "line"
      ],
      "additionalProperties": false,
      "description": "A specialty or line-of-business classification. Describes the specific insurance products, forms, and rating bureaus associated with a coverage, department, or person's expertise.",
      "examples": [
        {
          "line": {
            "coding": [
              {
                "code": "GL",
                "display": "General Liability"
              }
            ]
          },
          "ratingBureau": {
            "code": "ISO",
            "display": "Insurance Services Office"
          },
          "formNumber": "CG 00 01"
        }
      ]
    },
    "CodeableConcept": {
      "type": "object",
      "properties": {
        "coding": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Coding"
          },
          "description": "Code(s) from formal code systems"
        },
        "text": {
          "type": "string",
          "description": "Plain text representation of the concept"
        }
      },
      "additionalProperties": false,
      "description": "A concept with a coding and optional text. Wraps one or more Coding values with a human-readable summary."
    },
    "Coding": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string",
          "description": "The code system URI that defines the code.",
          "format": "uri"
        },
        "code": {
          "type": "string",
          "description": "The code value from the code system"
        },
        "display": {
          "type": "string",
          "description": "Human-readable display text for the code"
        }
      },
      "required": [
        "code"
      ],
      "additionalProperties": false,
      "description": "A coded value from a defined code system. Used throughout BIND for standardized enumerations.",
      "examples": [
        {
          "system": "https://bind.codes/line-of-business",
          "code": "GL",
          "display": "General Liability"
        }
      ]
    }
  },
  "$id": "https://bind-standard.org/schema/InsuranceSpecialty",
  "title": "InsuranceSpecialty"
}
