{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/PremiumAdjustment",
  "definitions": {
    "PremiumAdjustment": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/definitions/CodeableConcept",
          "description": "Type of adjustment (experience-mod, schedule-credit, schedule-debit, IRPM, etc.)"
        },
        "factor": {
          "type": "number",
          "description": "Multiplicative factor (e.g., 0.85 = 15% credit, 1.15 = 15% debit)"
        },
        "amount": {
          "$ref": "#/definitions/Money",
          "description": "Fixed dollar adjustment amount"
        },
        "description": {
          "type": "string",
          "description": "Description of the adjustment"
        }
      },
      "required": [
        "type"
      ],
      "additionalProperties": false,
      "description": "A premium adjustment or modification factor. Represents experience modifications, schedule credits/debits, IRPMs, and similar adjustments.",
      "examples": [
        {
          "type": {
            "text": "Experience Modification"
          },
          "factor": 0.85,
          "description": "15% credit based on 3-year loss history"
        }
      ]
    },
    "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"
        }
      ]
    },
    "Money": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "description": "Numeric amount. Represented as a number; precision should be maintained by the consuming system."
        },
        "currency": {
          "type": "string",
          "description": "ISO 4217 currency code.",
          "default": "USD"
        }
      },
      "required": [
        "value"
      ],
      "additionalProperties": false,
      "description": "A monetary amount with currency.",
      "examples": [
        {
          "value": 1000000,
          "currency": "USD"
        }
      ]
    }
  },
  "$id": "https://bind-standard.org/schema/PremiumAdjustment",
  "title": "PremiumAdjustment"
}
