Create a new study
StudyCreateResponse viewer().studies().create(StudyCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
/v1/viewer/studies
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.
Parameters
Returns
Create a new study
package com.avara.example;
import com.avara.client.AvaraClient;
import com.avara.client.okhttp.AvaraOkHttpClient;
import com.avara.models.viewer.studies.StudyCreateParams;
import com.avara.models.viewer.studies.StudyCreateResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
AvaraClient client = AvaraOkHttpClient.fromEnv();
StudyCreateParams params = StudyCreateParams.builder()
.severity(StudyCreateParams.Severity.HIGH)
.studyDescription("CT Chest/Abdomen/Pelvis")
.studyInstanceUid("1.2.840.113619.2.55.3.604688119.868.1234567890.123")
.build();
StudyCreateResponse study = client.viewer().studies().create(params);
}
}
{
"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"
}
}