{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-patient-photo-schema.json",
  "title": "PatientPhoto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-patient-profile-photo-api-openapi.yml#/components/schemas/PatientPhoto",
  "properties": {
    "base_64": {
      "type": "string",
      "writeOnly": true
    },
    "content_type": {
      "readOnly": true,
      "type": "string"
    },
    "created_date": {
      "format": "date-time",
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "file": {
      "description": "Patient profile image URL generation method\nArgs:\n    obj: PatientPhoto object\n\nReturns: The URL where you can get the image",
      "readOnly": true,
      "type": "string"
    },
    "file_size": {
      "readOnly": true,
      "type": "integer"
    },
    "height": {
      "readOnly": true,
      "type": "integer"
    },
    "id": {
      "readOnly": true,
      "type": "integer"
    },
    "last_updated": {
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "original_filename": {
      "type": "string"
    },
    "patient": {
      "format": "int64",
      "type": "integer"
    },
    "practice": {
      "format": "int64",
      "type": "integer"
    },
    "width": {
      "readOnly": true,
      "type": "integer"
    }
  },
  "required": [
    "base_64",
    "original_filename",
    "patient",
    "practice"
  ],
  "type": "object"
}