{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-healthlake/json-schema/aws-healthlake-list-fhirimport-jobs-response-schema.json",
  "title": "ListFHIRImportJobsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-healthlake-import-api-openapi.yml#/components/schemas/ListFHIRImportJobsResponse",
  "type": "object",
  "properties": {
    "ImportJobPropertiesList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImportJobProperties"
      },
      "description": "The properties for listed import jobs."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token used to identify the next page of results to return."
    }
  },
  "required": [
    "ImportJobPropertiesList"
  ],
  "$defs": {
    "ImportJobProperties": {
      "type": "object",
      "properties": {
        "JobId": {
          "type": "string",
          "description": "The import job identifier."
        },
        "JobName": {
          "type": "string",
          "description": "The import job name."
        },
        "JobStatus": {
          "type": "string",
          "enum": [
            "SUBMITTED",
            "QUEUED",
            "IN_PROGRESS",
            "COMPLETED_WITH_ERRORS",
            "COMPLETED",
            "FAILED",
            "CANCEL_SUBMITTED",
            "CANCEL_IN_PROGRESS",
            "CANCEL_COMPLETED",
            "CANCEL_FAILED"
          ],
          "description": "The import job status."
        },
        "SubmitTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the import job was submitted for processing."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the import job was completed."
        },
        "DatastoreId": {
          "type": "string",
          "description": "The data store identifier."
        },
        "InputDataConfig": {
          "$ref": "#/$defs/InputDataConfig"
        },
        "JobOutputDataConfig": {
          "$ref": "#/$defs/OutputDataConfig"
        },
        "JobProgressReport": {
          "$ref": "#/$defs/JobProgressReport"
        },
        "DataAccessRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that grants HealthLake access to the input data."
        },
        "Message": {
          "type": "string",
          "description": "An explanation of any errors that might have occurred during the FHIR import job."
        },
        "ValidationLevel": {
          "type": "string",
          "enum": [
            "strict",
            "structure-only",
            "minimal"
          ],
          "description": "The validation level of the import job."
        }
      },
      "required": [
        "JobId",
        "JobStatus",
        "SubmitTime",
        "DatastoreId",
        "InputDataConfig"
      ]
    },
    "InputDataConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3Uri is the user-specified Amazon S3 location of the FHIR data to be imported into HealthLake."
        }
      },
      "description": "Exactly one member is set."
    },
    "JobProgressReport": {
      "type": "object",
      "properties": {
        "TotalNumberOfScannedFiles": {
          "type": "integer",
          "description": "The number of files scanned from the Amazon S3 input bucket."
        },
        "TotalSizeOfScannedFilesInMB": {
          "type": "number",
          "description": "The size (in MB) of files scanned from the Amazon S3 input bucket."
        },
        "TotalNumberOfImportedFiles": {
          "type": "integer",
          "description": "The number of files imported."
        },
        "TotalNumberOfResourcesScanned": {
          "type": "integer",
          "description": "The number of resources scanned from the Amazon S3 input bucket."
        },
        "TotalNumberOfResourcesImported": {
          "type": "integer",
          "description": "The number of resources imported."
        },
        "TotalNumberOfResourcesWithCustomerError": {
          "type": "integer",
          "description": "The number of resources that failed due to customer error."
        },
        "TotalNumberOfFilesReadWithCustomerError": {
          "type": "integer",
          "description": "The number of files that failed to be read from the Amazon S3 input bucket due to customer error."
        },
        "TotalNumberOfScannedNonFhirFiles": {
          "type": "integer",
          "description": "The number of non-FHIR files scanned from the Amazon S3 input bucket."
        },
        "TotalSizeOfScannedNonFhirFilesInMB": {
          "type": "number",
          "description": "The size (in MB) of non-FHIR files scanned from the Amazon S3 input bucket."
        },
        "TotalNumberOfImportedNonFhirFiles": {
          "type": "integer",
          "description": "The number of non-FHIR files imported."
        },
        "TotalNumberOfNonFhirResourcesScanned": {
          "type": "integer",
          "description": "The number of non-FHIR resources scanned from the Amazon S3 input bucket."
        },
        "TotalNumberOfNonFhirResourcesImported": {
          "type": "integer",
          "description": "The number of non-FHIR resources imported."
        },
        "TotalNumberOfNonFhirResourcesWithCustomerError": {
          "type": "integer",
          "description": "The number of non-FHIR resources that failed due to customer error."
        },
        "TotalNumberOfNonFhirFilesReadWithCustomerError": {
          "type": "integer",
          "description": "The number of non-FHIR files that failed to be read from the Amazon S3 input bucket due to customer error."
        },
        "Throughput": {
          "type": "number",
          "description": "The transaction rate the import job is processed at."
        },
        "TotalFilesConverted": {
          "type": "integer",
          "description": "Number of CCDA files successfully transformed during the import's transformation phase. Populated only for import jobs that use the two-Step-Function (transformation + ingestion) flow; null for legacy single-SF imports and for pure FHIR imports that skip transformation."
        },
        "TotalResourcesGenerated": {
          "type": "integer",
          "description": "Number of FHIR resources produced by the transformation phase. Populated only for import jobs that use the two-Step-Function flow; null for legacy single-SF imports and for pure FHIR imports."
        }
      }
    },
    "OutputDataConfig": {
      "type": "object",
      "properties": {
        "S3Configuration": {
          "$ref": "#/$defs/S3Configuration"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3Configuration": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3Uri is the user-specified Amazon S3 location of the FHIR data to be imported into HealthLake."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Key Management Service (KMS) key ID used to access the Amazon S3 bucket."
        }
      },
      "required": [
        "S3Uri",
        "KmsKeyId"
      ]
    }
  }
}