{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-healthimaging/json-schema/amazon-healthimaging-start-dicomimport-job-request-schema.json",
  "title": "StartDICOMImportJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-healthimaging-start-dicom-import-job-api-openapi.yml#/components/schemas/StartDICOMImportJobRequest",
  "type": "object",
  "properties": {
    "jobName": {
      "type": "string",
      "description": "The import job name."
    },
    "dataAccessRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that grants permission to access medical imaging resources."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique identifier for API idempotency."
    },
    "datastoreId": {
      "type": "string",
      "description": "The data store identifier."
    },
    "inputS3Uri": {
      "type": "string",
      "description": "The input prefix path for the S3 bucket that contains the DICOM files to be imported."
    },
    "outputS3Uri": {
      "type": "string",
      "description": "The output prefix of the S3 bucket to upload the results of the DICOM import job."
    },
    "inputOwnerAccountId": {
      "type": "string",
      "description": "The account ID of the source S3 bucket owner."
    },
    "importConfiguration": {
      "$ref": "#/$defs/ImportConfiguration"
    }
  },
  "required": [
    "dataAccessRoleArn",
    "clientToken",
    "datastoreId",
    "inputS3Uri",
    "outputS3Uri"
  ],
  "$defs": {
    "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."
    }
  }
}