Update a study
auto_scribe.studies.update(strstudy_id, StudyUpdateParams**kwargs) -> StudyUpdateResponse
/v1/autoScribe/studies/{studyId}
Updates a study's properties including description, severity, assignment, organization, metadata, and report metadata. All fields are optional - only provided fields will be updated.
Parameters
study_id: str
Unique study identifier. Format: stu_{32-hex-chars}
assigned_to: Optional[str]
User ID to assign the study to, or null to unassign. Format: usr_{32-hex-chars}
metadata: Optional[Dict[str, str]]
org_id: Optional[str]
Organization ID for the study, or null to remove. Format: org_{32-hex-chars}
prior_report_texts: Optional[SequenceNotStr[str]]
prior_study_ids: Optional[SequenceNotStr[str]]
study_description: Optional[str]
Description of the study/scan (e.g., 'Brain MRI with Contrast', 'Chest CT')
minLength1
Returns
Update a 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
)
study = client.auto_scribe.studies.update(
study_id="stu_1234567890abcdef1234567890abcdef",
)
print(study.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",
"referringPhysicianName": "Dr. Michael Chen",
"scanDate": "2024-03-15",
"scanTime": "14:30",
"scanType": "MRI Brain with Contrast",
"sex": "female",
"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"
},
"createdByApiKey": {
"apiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"description": "Production API Key",
"isViewerEnabled": true
},
"createdByUser": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"metadata": {
"department": "radiology",
"priority": "routine"
},
"org": {
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center"
},
"priorReportTexts": [
"Previous imaging shows stable findings."
],
"priorStudyIds": [
"stu_abcdef1234567890abcdef1234567890"
],
"reportIds": [
{
"reportId": "rep_1234567890abcdef1234567890abcdef",
"status": "in_progress"
}
]
}
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",
"referringPhysicianName": "Dr. Michael Chen",
"scanDate": "2024-03-15",
"scanTime": "14:30",
"scanType": "MRI Brain with Contrast",
"sex": "female",
"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"
},
"createdByApiKey": {
"apiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"description": "Production API Key",
"isViewerEnabled": true
},
"createdByUser": {
"email": "dr.smith@radiology.com",
"userId": "usr_1234567890abcdef1234567890abcdef",
"firstName": "John",
"lastName": "Smith",
"middleName": "Robert",
"suffix1": "MD",
"suffix2": "FACR"
},
"metadata": {
"department": "radiology",
"priority": "routine"
},
"org": {
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center"
},
"priorReportTexts": [
"Previous imaging shows stable findings."
],
"priorStudyIds": [
"stu_abcdef1234567890abcdef1234567890"
],
"reportIds": [
{
"reportId": "rep_1234567890abcdef1234567890abcdef",
"status": "in_progress"
}
]
}