Retrieve report text
auto_scribe.reports.text(ReportTextParams**kwargs) -> ReportTextResponse
/v1/autoScribe/reports/text
Retrieves the text content of a report. Can fetch a single report by report ID, or all reports for a study by study ID/DICOM UID. Returns plain text report content.
Parameters
report_id: Optional[str]
Unique report identifier. Format: rep_{32-hex-chars}
study_id: Optional[str]
Unique study identifier. Format: stu_{32-hex-chars}
study_instance_uid: Optional[str]
DICOM Study Instance UID. Must be a valid DICOM UID format (e.g., '1.2.840.10008.5.1.4.1.1.2')
Returns
Retrieve report text
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
response = client.auto_scribe.reports.text()
print(response)
{
"reportId": "rep_1234567890abcdef1234567890abcdef",
"snapshotMetadata": {
"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
}
},
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"plainText": "FINDINGS: Normal brain MRI. No acute intracranial abnormality. IMPRESSION: Unremarkable brain MRI."
}
Returns Examples
{
"reportId": "rep_1234567890abcdef1234567890abcdef",
"snapshotMetadata": {
"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
}
},
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"plainText": "FINDINGS: Normal brain MRI. No acute intracranial abnormality. IMPRESSION: Unremarkable brain MRI."
}