{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anpheros-com/json-schema/anpheros-com-document-out-schema.json",
  "title": "DocumentOut",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anpheros-com-openapi.json#/components/schemas/DocumentOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "patient": {
      "type": "string",
      "title": "Patient"
    },
    "kind": {
      "type": "string",
      "title": "Kind"
    },
    "identifiers": {
      "items": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "type": "array",
      "title": "Identifiers",
      "default": []
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date"
    },
    "content_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Type"
    },
    "size": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Size"
    },
    "sha256": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sha256"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "download_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Download Url"
    },
    "upload": {
      "anyOf": [
        {
          "$ref": "#/$defs/UploadInfo"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    },
    "fhir": {
      "type": "string",
      "title": "Fhir"
    }
  },
  "type": "object",
  "required": [
    "id",
    "patient",
    "kind",
    "title",
    "description",
    "date",
    "content_type",
    "size",
    "sha256",
    "status",
    "updated_at",
    "fhir"
  ],
  "$defs": {
    "UploadInfo": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "method": {
          "type": "string",
          "title": "Method"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Headers"
        },
        "expires_in_seconds": {
          "type": "integer",
          "title": "Expires In Seconds"
        }
      },
      "type": "object",
      "required": [
        "url",
        "method",
        "headers",
        "expires_in_seconds"
      ],
      "title": "UploadInfo"
    }
  }
}