{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-data-import-request-array-schema.json",
  "title": "DataImportRequestArray",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-data-import-request-api-openapi.yml#/components/schemas/DataImportRequestArray",
  "type": "array",
  "items": {
    "$ref": "#/$defs/ExistingDataImportRequestWithoutStatus"
  },
  "$defs": {
    "BaseDataImportRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "readOnly": true,
          "description": "The id of the Data Import Request"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "description": "The creation timestamp for the Data Import Request"
        },
        "notes": {
          "type": "string",
          "description": "Arbitrary notes to associate with the Data Import Request"
        }
      }
    },
    "ExistingDataImportRequestWithoutStatus": {
      "required": [
        "id",
        "created_at",
        "physician_id",
        "practice_id",
        "sections_to_import"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/BaseDataImportRequest"
        },
        {
          "type": "object"
        }
      ],
      "properties": {
        "physician_id": {
          "type": "integer",
          "format": "int64",
          "readOnly": true,
          "description": "The id of the physician provider to import all child patient charts for; cannot be updated after initial create"
        },
        "practice_id": {
          "type": "integer",
          "format": "int64",
          "readOnly": true,
          "description": "The id of the practice to import all child patient charts for; cannot be updated after initial create"
        }
      }
    }
  }
}