{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collectly/json-schema/collectly-insurance-policy-schema.json",
  "title": "InsurancePolicy",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collectly-insurance-policies-api-openapi.yml#/components/schemas/InsurancePolicy",
  "properties": {
    "clearinghouse_copay": {
      "type": [
        "number",
        "null"
      ]
    },
    "company_id": {
      "format": "int32",
      "type": "integer"
    },
    "created_at": {
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "external_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "external_insurance_company_id": {
      "description": "Provide this to automatically look up and assign the internal company_id",
      "type": "string",
      "writeOnly": true
    },
    "extra": {
      "type": "object"
    },
    "id": {
      "format": "int32",
      "readOnly": true,
      "type": "integer"
    },
    "in_network_effective_location_ids": {
      "items": {
        "format": "int32",
        "type": "integer"
      },
      "type": "array"
    },
    "is_archived": {
      "readOnly": true,
      "type": "boolean"
    },
    "is_external": {
      "type": "boolean"
    },
    "is_manually_verified": {
      "type": "boolean"
    },
    "is_photos_exist_in_ehr": {
      "type": "boolean"
    },
    "manual_copay": {
      "type": [
        "number",
        "null"
      ]
    },
    "member_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "patient_id": {
      "description": "Patient ID from your integration who owns the resource",
      "type": "string"
    },
    "photo_back_upload_id": {},
    "photo_front_upload_id": {},
    "priority": {
      "enum": [
        "primary",
        "secondary",
        "tertiary",
        "other"
      ],
      "type": "string"
    }
  },
  "required": [
    "patient_id"
  ],
  "type": "object"
}