{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/Identifier",
  "definitions": {
    "Identifier": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string",
          "description": "The namespace for the identifier value.",
          "format": "uri"
        },
        "value": {
          "type": "string",
          "description": "The identifier value within the namespace"
        },
        "type": {
          "$ref": "#/definitions/CodeableConcept",
          "description": "The kind of identifier (e.g., EIN, NAIC, NPN, FEIN)"
        },
        "period": {
          "$ref": "#/definitions/Period",
          "description": "Period during which this identifier is/was valid"
        }
      },
      "required": [
        "value"
      ],
      "additionalProperties": false,
      "description": "A business identifier for an entity (e.g., NAIC code, EIN, NPN, policy number). Separates business identifiers from coded concepts.",
      "examples": [
        {
          "system": "urn:oid:2.16.840.1.113883.6.300",
          "value": "29459",
          "type": {
            "text": "NAIC"
          }
        }
      ]
    },
    "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"
        }
      ]
    },
    "Period": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "description": "Start of the period (inclusive).",
          "format": "date"
        },
        "end": {
          "type": "string",
          "description": "End of the period (inclusive).",
          "format": "date"
        }
      },
      "additionalProperties": false,
      "description": "A time period defined by a start and/or end date. Used for policy terms, coverage periods, etc.",
      "examples": [
        {
          "start": "2025-01-01",
          "end": "2026-01-01"
        }
      ]
    }
  },
  "$id": "https://bind-standard.org/schema/Identifier",
  "title": "Identifier"
}
