Create a new study
Creates a new study in the Viewer system with the specified DICOM Study Instance UID and metadata. The study can be optionally assigned to a user.
Body 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')
User ID to assign the study to. Format: usr_{32-hex-chars}
Custom key-value metadata for the study. Maximum 50 pairs, keys up to 100 chars, values up to 1000 chars
Organization ID for the study. Format: org_{32-hex-chars}
Returns
Timestamp when the study was cancelled, null if not cancelled
Timestamp when the study was created
Whether the study has been cancelled
Description of the study/scan (e.g., 'Brain MRI with Contrast', 'Chest CT')
Unique study identifier. Format: stu_{32-hex-chars}
DICOM Study Instance UID. Must be a valid DICOM UID format (e.g., '1.2.840.10008.5.1.4.1.1.2')
Timestamp when the study was last updated
Custom key-value metadata for the study. Maximum 50 pairs, keys up to 100 chars, values up to 1000 chars
Create a new study
curl https://api.avarasoftware.com/v1/viewer/studies \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $AVARA_API_KEY" \
-d '{
"severity": "high",
"studyDescription": "CT Chest/Abdomen/Pelvis",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"assignedTo": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"priority": "urgent"
},
"orgId": "org_1234567890abcdef1234567890abcdef"
}'
{
"cancelledAt": null,
"createdAt": "2024-03-15T10:30:00Z",
"isCancelled": false,
"severity": "high",
"studyDescription": "CT Chest/Abdomen/Pelvis",
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"studyViewerStatus": "incomplete",
"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": "urgent"
},
"org": {
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center"
}
}
Returns Examples
{
"cancelledAt": null,
"createdAt": "2024-03-15T10:30:00Z",
"isCancelled": false,
"severity": "high",
"studyDescription": "CT Chest/Abdomen/Pelvis",
"studyId": "stu_1234567890abcdef1234567890abcdef",
"studyInstanceUid": "1.2.840.113619.2.55.3.604688119.868.1234567890.123",
"studyViewerStatus": "incomplete",
"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": "urgent"
},
"org": {
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center"
}
}