{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-swagger-swagger-requests-lkdocuments-get-patient-documents-swagger-request-schema.json",
  "title": "LKCloudConnect.Swagger.SwaggerRequests.LKDocuments.GetPatientDocumentsSwaggerRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ellkay-lkdocuments-api-openapi.yml#/components/schemas/LKCloudConnect.Swagger.SwaggerRequests.LKDocuments.GetPatientDocumentsSwaggerRequest",
  "type": "object",
  "properties": {
    "request": {
      "allOf": [
        {
          "$ref": "#/$defs/LKCloudConnect.Contracts.Documents.GetPatientDocumentRequest"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.Documents.DateRange": {
      "required": [
        "endDate",
        "startDate"
      ],
      "type": "object",
      "properties": {
        "startDate": {
          "type": "string",
          "description": "Start date (DateTimeOffset) e.g. 2019-01-01T00:00:00+00:00\nEquivalent to Start in the DateRange of other LKCloud APIs",
          "format": "date-time"
        },
        "endDate": {
          "type": "string",
          "description": "End date (DateTimeOffset) e.g. 2019-01-01T00:00:00+00:00\nEquivalent to End in the DateRange of other LKCloud APIs",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Documents.GetPatientDocumentRequest": {
      "required": [
        "patientId"
      ],
      "type": "object",
      "properties": {
        "patientId": {
          "minLength": 1,
          "type": "string",
          "description": "Patient id"
        },
        "dateRange": {
          "allOf": [
            {
              "$ref": "#/$defs/LKCloudConnect.Contracts.Documents.DateRange"
            }
          ],
          "description": "Date range"
        },
        "documentTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Document types filter (ref GetDocumentTypes id if available)"
        }
      },
      "additionalProperties": false
    }
  }
}