Create an external study
Creates an archive (external) AutoScribe study. Clinical context fields are not accepted. If no report fields are sent, no report row is created. Study create is all-or-nothing, including file ingest.
Parameters
Description of the study/scan (e.g., ‘Brain MRI with Contrast’, ‘Chest CT’)
DICOM Study Instance UID. Must be a valid DICOM UID format (e.g., ‘1.2.840.10008.5.1.4.1.1.2’)
Strongly recommended if you want to leverage priors functionality for future reads for this patient.
Custom key-value metadata for the study. Maximum 50 pairs, keys up to 100 chars, values up to 1000 chars
Optional original reader / author name. Shown as-is. May be set on study create or a later report create; a later create overwrites it when provided.
File name including extension. Required when reportFileUrl is provided. Supported types: PDF, PNG, JPG, GIF, WEBP.
HTTPS download URL for a PDF or image (PNG, JPG, GIF, WEBP). Not used for AI tooling; the reader can still access it. Avara fetches this URL server-side. If omitted, you can add it later. Once set, it cannot be edited; delete the study to remake it. Whitelist https://api.avarasoftware.com on the file host if the fetch is origin-restricted.
Create an external study
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
external = client.auto_scribe.studies.external.create(
report_metadata={},
severity="normal",
study_description="CT Chest without contrast",
study_instance_uid="1.2.840.113619.2.55.3.604688119.868.1234567890.123",
)
print(external.study_instance_uid){
"cancelledAt": null,
"createdAt": "2024-03-15T10:30:00Z",
"isCancelled": false,
"reportMetadata": {
"age": "38 years",
"dateOfBirth": "1985-07-20",
"facilityName": "City Medical Center",
"height": {
"unit": "cm",
"value": 165
},
"mrn": "MRN-2024-001234",
"patientName": "Jane Doe",
"procedure": "MRI Brain with Contrast",
"referringPhysicianName": "Dr. Michael Chen",
"sex": "female",
"studyDate": "2024-03-15",
"studyTime": "14:30",
"weight": {
"unit": "kg",
"value": 62
}
},
"severity": "normal",
"studyDescription": "Brain MRI with Contrast",
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"studyReportStatus": "in_progress",
"updatedAt": "2024-03-15T14:20:00Z",
"assignedTo": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"clinicalHistory": "clinicalHistory",
"clinicalIndication": "clinicalIndication",
"createdByApiKey": {
"apiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"description": "Production API Key",
"isClinicalContextEnrichmentEnabled": true,
"isViewerEnabled": true
},
"createdByUser": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"expressCustomer": {
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center"
},
"externalPatientId": "externalPatientId",
"externalReportId": "ext_1234567890abcdef1234567890abcdef",
"isCritical": true,
"metadata": {
"department": "radiology",
"priority": "routine"
},
"modality": "modality",
"priorReports": [
{
"reportText": "IMPRESSION: No acute cardiopulmonary process.",
"externalStudyId": "EXT-2024-001",
"modality": "CT",
"studyDate": "2024-01-15",
"studyDescription": "CT Chest without contrast"
}
],
"reportIds": [
{
"isCritical": null,
"reportId": "rep_1234567890abcdef1234567890abcdef",
"status": "in_progress"
}
],
"studyType": "standard",
"technologistNotes": [
"x"
],
"technologistTechnique": "technologistTechnique"
}Returns Examples
{
"cancelledAt": null,
"createdAt": "2024-03-15T10:30:00Z",
"isCancelled": false,
"reportMetadata": {
"age": "38 years",
"dateOfBirth": "1985-07-20",
"facilityName": "City Medical Center",
"height": {
"unit": "cm",
"value": 165
},
"mrn": "MRN-2024-001234",
"patientName": "Jane Doe",
"procedure": "MRI Brain with Contrast",
"referringPhysicianName": "Dr. Michael Chen",
"sex": "female",
"studyDate": "2024-03-15",
"studyTime": "14:30",
"weight": {
"unit": "kg",
"value": 62
}
},
"severity": "normal",
"studyDescription": "Brain MRI with Contrast",
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"studyReportStatus": "in_progress",
"updatedAt": "2024-03-15T14:20:00Z",
"assignedTo": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"clinicalHistory": "clinicalHistory",
"clinicalIndication": "clinicalIndication",
"createdByApiKey": {
"apiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"description": "Production API Key",
"isClinicalContextEnrichmentEnabled": true,
"isViewerEnabled": true
},
"createdByUser": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"expressCustomer": {
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center"
},
"externalPatientId": "externalPatientId",
"externalReportId": "ext_1234567890abcdef1234567890abcdef",
"isCritical": true,
"metadata": {
"department": "radiology",
"priority": "routine"
},
"modality": "modality",
"priorReports": [
{
"reportText": "IMPRESSION: No acute cardiopulmonary process.",
"externalStudyId": "EXT-2024-001",
"modality": "CT",
"studyDate": "2024-01-15",
"studyDescription": "CT Chest without contrast"
}
],
"reportIds": [
{
"isCritical": null,
"reportId": "rep_1234567890abcdef1234567890abcdef",
"status": "in_progress"
}
],
"studyType": "standard",
"technologistNotes": [
"x"
],
"technologistTechnique": "technologistTechnique"
}