{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/AssetValuation",
  "definitions": {
    "AssetValuation": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/definitions/CodeableConcept",
          "description": "Valuation method (replacement-cost, actual-cash-value, agreed-value, stated-value, market-value)."
        },
        "amount": {
          "$ref": "#/definitions/Money",
          "description": "The valuation amount"
        },
        "effectiveDate": {
          "type": "string",
          "description": "Date this valuation was effective or determined.",
          "format": "date"
        },
        "source": {
          "type": "string",
          "description": "Source of the valuation (appraisal, insured-stated, index-adjusted, market-comparable)"
        },
        "notes": {
          "type": "string",
          "description": "Notes about the valuation methodology or caveats"
        }
      },
      "required": [
        "type",
        "amount"
      ],
      "additionalProperties": false,
      "description": "A financial valuation of a risk or location asset. Captures different valuation methods (replacement cost, ACV, agreed value, etc.) and their provenance.",
      "examples": [
        {
          "type": {
            "coding": [
              {
                "code": "replacement-cost",
                "display": "Replacement Cost"
              }
            ]
          },
          "amount": {
            "value": 5000000,
            "currency": "USD"
          },
          "effectiveDate": "2025-01-15",
          "source": "appraisal"
        }
      ]
    },
    "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/AssetValuation",
  "title": "AssetValuation"
}
