{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthimaging/json-schema/amazon-healthimaging-get-dicomimport-job-response-schema.json",
  "title": "GetDICOMImportJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-healthimaging-get-dicom-import-job-api-openapi.yml#/components/schemas/GetDICOMImportJobResponse",
  "type": "object",
  "properties": {
    "jobProperties": {
      "$ref": "#/$defs/DICOMImportJobProperties"
    }
  },
  "required": [
    "jobProperties"
  ],
  "$defs": {
    "DICOMImportJobProperties": {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string",
          "description": "The import job identifier."
        },
        "jobName": {
          "type": "string",
          "description": "The import job name."
        },
        "jobStatus": {
          "type": "string",
          "enum": [
            "SUBMITTED",
            "IN_PROGRESS",
            "COMPLETED",
            "FAILED"
          ],
          "description": "The filters for listing import jobs based on status."
        },
        "datastoreId": {
          "type": "string",
          "description": "The data store identifier."
        },
        "dataAccessRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that grants permissions to access medical imaging resources."
        },
        "endedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the import job was ended."
        },
        "submittedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the import job was submitted."
        },
        "inputS3Uri": {
          "type": "string",
          "description": "The input prefix path for the S3 bucket that contains the DICOM P10 files to be imported."
        },
        "outputS3Uri": {
          "type": "string",
          "description": "The output prefix of the S3 bucket to upload the results of the DICOM import job."
        },
        "message": {
          "type": "string",
          "description": "The error message thrown if an import job fails."
        },
        "importConfiguration": {
          "$ref": "#/$defs/ImportConfiguration"
        }
      },
      "required": [
        "jobId",
        "jobName",
        "jobStatus",
        "datastoreId",
        "dataAccessRoleArn",
        "inputS3Uri",
        "outputS3Uri"
      ]
    },
    "DicomJsonMetadataImportConfiguration": {
      "type": "object",
      "properties": {
        "dicomMetadataMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DicomMetadataMapping"
          },
          "description": "Maps DCM files to their metadata."
        }
      },
      "required": [
        "dicomMetadataMappings"
      ]
    },
    "DicomMetadataMapping": {
      "type": "object",
      "properties": {
        "studyInstanceUID": {
          "type": "string",
          "description": "The Study Instance UID that identifies the study."
        },
        "seriesInstanceUID": {
          "type": "string",
          "description": "The Series Instance UID that identifies the series. This parameter is optional because the mapping might be at the study level."
        },
        "metadataFilePath": {
          "type": "string",
          "description": "The path to the JSON metadata file relative to inputS3Uri."
        }
      },
      "required": [
        "studyInstanceUID",
        "metadataFilePath"
      ]
    },
    "ImportConfiguration": {
      "type": "object",
      "properties": {
        "dicomJsonMetadataImportConfiguration": {
          "$ref": "#/$defs/DicomJsonMetadataImportConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}