shao il y a 2 jours
Parent
commit
f03bec0947
2 fichiers modifiés avec 141 ajouts et 84 suppressions
  1. 129 72
      dr_study_pb/dr_study_idl.pb.go
  2. 12 12
      dr_study_pb/dr_study_idl_grpc.pb.go

+ 129 - 72
dr_study_pb/dr_study_idl.pb.go

@@ -400,6 +400,58 @@ func (x *StudyRequest) GetViews() []*ViewRequest {
 	return nil
 }
 
+type CreateImageRequest struct {
+	state         protoimpl.MessageState `protogen:"open.v1"`
+	StudyId       string                 `protobuf:"bytes,1,opt,name=study_id,json=studyId,proto3" json:"study_id,omitempty"`
+	Views         []*ViewRequest         `protobuf:"bytes,2,rep,name=views,proto3" json:"views,omitempty"`
+	unknownFields protoimpl.UnknownFields
+	sizeCache     protoimpl.SizeCache
+}
+
+func (x *CreateImageRequest) Reset() {
+	*x = CreateImageRequest{}
+	mi := &file_dr_study_idl_proto_msgTypes[4]
+	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+	ms.StoreMessageInfo(mi)
+}
+
+func (x *CreateImageRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateImageRequest) ProtoMessage() {}
+
+func (x *CreateImageRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_dr_study_idl_proto_msgTypes[4]
+	if x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateImageRequest.ProtoReflect.Descriptor instead.
+func (*CreateImageRequest) Descriptor() ([]byte, []int) {
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *CreateImageRequest) GetStudyId() string {
+	if x != nil {
+		return x.StudyId
+	}
+	return ""
+}
+
+func (x *CreateImageRequest) GetViews() []*ViewRequest {
+	if x != nil {
+		return x.Views
+	}
+	return nil
+}
+
 type Image struct {
 	state              protoimpl.MessageState `protogen:"open.v1"`
 	SopInstanceId      string                 `protobuf:"bytes,1,opt,name=sop_instance_id,json=sopInstanceId,proto3" json:"sop_instance_id,omitempty"`
@@ -423,7 +475,7 @@ type Image struct {
 
 func (x *Image) Reset() {
 	*x = Image{}
-	mi := &file_dr_study_idl_proto_msgTypes[4]
+	mi := &file_dr_study_idl_proto_msgTypes[5]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -435,7 +487,7 @@ func (x *Image) String() string {
 func (*Image) ProtoMessage() {}
 
 func (x *Image) ProtoReflect() protoreflect.Message {
-	mi := &file_dr_study_idl_proto_msgTypes[4]
+	mi := &file_dr_study_idl_proto_msgTypes[5]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -448,7 +500,7 @@ func (x *Image) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use Image.ProtoReflect.Descriptor instead.
 func (*Image) Descriptor() ([]byte, []int) {
-	return file_dr_study_idl_proto_rawDescGZIP(), []int{4}
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *Image) GetSopInstanceId() string {
@@ -576,7 +628,7 @@ type Series struct {
 
 func (x *Series) Reset() {
 	*x = Series{}
-	mi := &file_dr_study_idl_proto_msgTypes[5]
+	mi := &file_dr_study_idl_proto_msgTypes[6]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -588,7 +640,7 @@ func (x *Series) String() string {
 func (*Series) ProtoMessage() {}
 
 func (x *Series) ProtoReflect() protoreflect.Message {
-	mi := &file_dr_study_idl_proto_msgTypes[5]
+	mi := &file_dr_study_idl_proto_msgTypes[6]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -601,7 +653,7 @@ func (x *Series) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use Series.ProtoReflect.Descriptor instead.
 func (*Series) Descriptor() ([]byte, []int) {
-	return file_dr_study_idl_proto_rawDescGZIP(), []int{5}
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *Series) GetSeriesInstanceUid() string {
@@ -741,7 +793,7 @@ type StudyReply struct {
 
 func (x *StudyReply) Reset() {
 	*x = StudyReply{}
-	mi := &file_dr_study_idl_proto_msgTypes[6]
+	mi := &file_dr_study_idl_proto_msgTypes[7]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -753,7 +805,7 @@ func (x *StudyReply) String() string {
 func (*StudyReply) ProtoMessage() {}
 
 func (x *StudyReply) ProtoReflect() protoreflect.Message {
-	mi := &file_dr_study_idl_proto_msgTypes[6]
+	mi := &file_dr_study_idl_proto_msgTypes[7]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -766,7 +818,7 @@ func (x *StudyReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use StudyReply.ProtoReflect.Descriptor instead.
 func (*StudyReply) Descriptor() ([]byte, []int) {
-	return file_dr_study_idl_proto_rawDescGZIP(), []int{6}
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{7}
 }
 
 func (x *StudyReply) GetStudyInstanceUid() string {
@@ -1084,28 +1136,28 @@ func (x *StudyReply) GetSeries() []*Series {
 	return nil
 }
 
-type SeriesReply struct {
+type CreateImageReply struct {
 	state         protoimpl.MessageState `protogen:"open.v1"`
 	Series        []*Series              `protobuf:"bytes,1,rep,name=series,proto3" json:"series,omitempty"`
 	unknownFields protoimpl.UnknownFields
 	sizeCache     protoimpl.SizeCache
 }
 
-func (x *SeriesReply) Reset() {
-	*x = SeriesReply{}
-	mi := &file_dr_study_idl_proto_msgTypes[7]
+func (x *CreateImageReply) Reset() {
+	*x = CreateImageReply{}
+	mi := &file_dr_study_idl_proto_msgTypes[8]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
 
-func (x *SeriesReply) String() string {
+func (x *CreateImageReply) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*SeriesReply) ProtoMessage() {}
+func (*CreateImageReply) ProtoMessage() {}
 
-func (x *SeriesReply) ProtoReflect() protoreflect.Message {
-	mi := &file_dr_study_idl_proto_msgTypes[7]
+func (x *CreateImageReply) ProtoReflect() protoreflect.Message {
+	mi := &file_dr_study_idl_proto_msgTypes[8]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1116,12 +1168,12 @@ func (x *SeriesReply) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use SeriesReply.ProtoReflect.Descriptor instead.
-func (*SeriesReply) Descriptor() ([]byte, []int) {
-	return file_dr_study_idl_proto_rawDescGZIP(), []int{7}
+// Deprecated: Use CreateImageReply.ProtoReflect.Descriptor instead.
+func (*CreateImageReply) Descriptor() ([]byte, []int) {
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{8}
 }
 
-func (x *SeriesReply) GetSeries() []*Series {
+func (x *CreateImageReply) GetSeries() []*Series {
 	if x != nil {
 		return x.Series
 	}
@@ -1137,7 +1189,7 @@ type SortRequest struct {
 
 func (x *SortRequest) Reset() {
 	*x = SortRequest{}
-	mi := &file_dr_study_idl_proto_msgTypes[8]
+	mi := &file_dr_study_idl_proto_msgTypes[9]
 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 	ms.StoreMessageInfo(mi)
 }
@@ -1149,7 +1201,7 @@ func (x *SortRequest) String() string {
 func (*SortRequest) ProtoMessage() {}
 
 func (x *SortRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_dr_study_idl_proto_msgTypes[8]
+	mi := &file_dr_study_idl_proto_msgTypes[9]
 	if x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1162,7 +1214,7 @@ func (x *SortRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SortRequest.ProtoReflect.Descriptor instead.
 func (*SortRequest) Descriptor() ([]byte, []int) {
-	return file_dr_study_idl_proto_rawDescGZIP(), []int{8}
+	return file_dr_study_idl_proto_rawDescGZIP(), []int{9}
 }
 
 func (x *SortRequest) GetSopInstanceId() []string {
@@ -1220,7 +1272,10 @@ const file_dr_study_idl_proto_rawDesc = "" +
 	"chipNumber\x12\x18\n" +
 	"\avariety\x18\x13 \x01(\tR\avariety\x12\x18\n" +
 	"\acomment\x18\x14 \x01(\tR\acomment\x12+\n" +
-	"\x05views\x18\x15 \x03(\v2\x15.dr.study.ViewRequestR\x05views\"\xef\x04\n" +
+	"\x05views\x18\x15 \x03(\v2\x15.dr.study.ViewRequestR\x05views\"\\\n" +
+	"\x12CreateImageRequest\x12\x19\n" +
+	"\bstudy_id\x18\x01 \x01(\tR\astudyId\x12+\n" +
+	"\x05views\x18\x02 \x03(\v2\x15.dr.study.ViewRequestR\x05views\"\xef\x04\n" +
 	"\x05Image\x12&\n" +
 	"\x0fsop_instance_id\x18\x01 \x01(\tR\rsopInstanceId\x12.\n" +
 	"\x13series_instance_uid\x18\x02 \x01(\tR\x11seriesInstanceUid\x12,\n" +
@@ -1312,18 +1367,18 @@ const file_dr_study_idl_proto_rawDesc = "" +
 	"\acomment\x18* \x01(\tR\acomment\x12\x12\n" +
 	"\x04sort\x18+ \x01(\x05R\x04sort\x12\x18\n" +
 	"\aproduct\x18, \x01(\tR\aproduct\x12(\n" +
-	"\x06series\x18- \x03(\v2\x10.dr.study.SeriesR\x06series\"7\n" +
-	"\vSeriesReply\x12(\n" +
+	"\x06series\x18- \x03(\v2\x10.dr.study.SeriesR\x06series\"<\n" +
+	"\x10CreateImageReply\x12(\n" +
 	"\x06series\x18\x01 \x03(\v2\x10.dr.study.SeriesR\x06series\"5\n" +
 	"\vSortRequest\x12&\n" +
 	"\x0fsop_instance_id\x18\x01 \x03(\tR\rsopInstanceId2N\n" +
 	"\x05Basic\x12E\n" +
-	"\fSoftwareInfo\x12\x16.google.protobuf.Empty\x1a\x1b.dr.study.SoftwareInfoReply\"\x002\xf5\x02\n" +
+	"\fSoftwareInfo\x12\x16.google.protobuf.Empty\x1a\x1b.dr.study.SoftwareInfoReply\"\x002\x86\x03\n" +
 	"\x05Study\x12=\n" +
 	"\vCreateStudy\x12\x16.dr.study.StudyRequest\x1a\x14.dr.study.StudyReply\"\x00\x127\n" +
-	"\bGetStudy\x12\x13.dr.study.IDRequest\x1a\x14.dr.study.StudyReply\"\x00\x12=\n" +
-	"\vCreateImage\x12\x15.dr.study.ViewRequest\x1a\x15.dr.study.SeriesReply\"\x00\x129\n" +
-	"\tCopyImage\x12\x13.dr.study.IDRequest\x1a\x15.dr.study.SeriesReply\"\x00\x12<\n" +
+	"\bGetStudy\x12\x13.dr.study.IDRequest\x1a\x14.dr.study.StudyReply\"\x00\x12I\n" +
+	"\vCreateImage\x12\x1c.dr.study.CreateImageRequest\x1a\x1a.dr.study.CreateImageReply\"\x00\x12>\n" +
+	"\tCopyImage\x12\x13.dr.study.IDRequest\x1a\x1a.dr.study.CreateImageReply\"\x00\x12<\n" +
 	"\vDeleteImage\x12\x13.dr.study.IDRequest\x1a\x16.google.protobuf.Empty\"\x00\x12<\n" +
 	"\tSortImage\x12\x15.dr.study.SortRequest\x1a\x16.google.protobuf.Empty\"\x00B\x0eZ\fdr_study_pb/b\x06proto3"
 
@@ -1339,54 +1394,56 @@ func file_dr_study_idl_proto_rawDescGZIP() []byte {
 	return file_dr_study_idl_proto_rawDescData
 }
 
-var file_dr_study_idl_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
+var file_dr_study_idl_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
 var file_dr_study_idl_proto_goTypes = []any{
 	(*IDRequest)(nil),             // 0: dr.study.IDRequest
 	(*SoftwareInfoReply)(nil),     // 1: dr.study.SoftwareInfoReply
 	(*ViewRequest)(nil),           // 2: dr.study.ViewRequest
 	(*StudyRequest)(nil),          // 3: dr.study.StudyRequest
-	(*Image)(nil),                 // 4: dr.study.Image
-	(*Series)(nil),                // 5: dr.study.Series
-	(*StudyReply)(nil),            // 6: dr.study.StudyReply
-	(*SeriesReply)(nil),           // 7: dr.study.SeriesReply
-	(*SortRequest)(nil),           // 8: dr.study.SortRequest
-	(*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
-	(*structpb.Struct)(nil),       // 10: google.protobuf.Struct
-	(*emptypb.Empty)(nil),         // 11: google.protobuf.Empty
+	(*CreateImageRequest)(nil),    // 4: dr.study.CreateImageRequest
+	(*Image)(nil),                 // 5: dr.study.Image
+	(*Series)(nil),                // 6: dr.study.Series
+	(*StudyReply)(nil),            // 7: dr.study.StudyReply
+	(*CreateImageReply)(nil),      // 8: dr.study.CreateImageReply
+	(*SortRequest)(nil),           // 9: dr.study.SortRequest
+	(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
+	(*structpb.Struct)(nil),       // 11: google.protobuf.Struct
+	(*emptypb.Empty)(nil),         // 12: google.protobuf.Empty
 }
 var file_dr_study_idl_proto_depIdxs = []int32{
-	9,  // 0: dr.study.StudyRequest.patient_dob:type_name -> google.protobuf.Timestamp
+	10, // 0: dr.study.StudyRequest.patient_dob:type_name -> google.protobuf.Timestamp
 	2,  // 1: dr.study.StudyRequest.views:type_name -> dr.study.ViewRequest
-	10, // 2: dr.study.Image.acquisition_context:type_name -> google.protobuf.Struct
-	10, // 3: dr.study.Image.img_proc_context:type_name -> google.protobuf.Struct
-	9,  // 4: dr.study.Series.performed_datetime:type_name -> google.protobuf.Timestamp
-	4,  // 5: dr.study.Series.images:type_name -> dr.study.Image
-	9,  // 6: dr.study.StudyReply.patient_dob:type_name -> google.protobuf.Timestamp
-	9,  // 7: dr.study.StudyReply.admitting_time:type_name -> google.protobuf.Timestamp
-	9,  // 8: dr.study.StudyReply.study_start_datetime:type_name -> google.protobuf.Timestamp
-	9,  // 9: dr.study.StudyReply.study_end_datetime:type_name -> google.protobuf.Timestamp
-	9,  // 10: dr.study.StudyReply.scheduled_procedure_step_start_date:type_name -> google.protobuf.Timestamp
-	5,  // 11: dr.study.StudyReply.series:type_name -> dr.study.Series
-	5,  // 12: dr.study.SeriesReply.series:type_name -> dr.study.Series
-	11, // 13: dr.study.Basic.SoftwareInfo:input_type -> google.protobuf.Empty
-	3,  // 14: dr.study.Study.CreateStudy:input_type -> dr.study.StudyRequest
-	0,  // 15: dr.study.Study.GetStudy:input_type -> dr.study.IDRequest
-	2,  // 16: dr.study.Study.CreateImage:input_type -> dr.study.ViewRequest
-	0,  // 17: dr.study.Study.CopyImage:input_type -> dr.study.IDRequest
-	0,  // 18: dr.study.Study.DeleteImage:input_type -> dr.study.IDRequest
-	8,  // 19: dr.study.Study.SortImage:input_type -> dr.study.SortRequest
-	1,  // 20: dr.study.Basic.SoftwareInfo:output_type -> dr.study.SoftwareInfoReply
-	6,  // 21: dr.study.Study.CreateStudy:output_type -> dr.study.StudyReply
-	6,  // 22: dr.study.Study.GetStudy:output_type -> dr.study.StudyReply
-	7,  // 23: dr.study.Study.CreateImage:output_type -> dr.study.SeriesReply
-	7,  // 24: dr.study.Study.CopyImage:output_type -> dr.study.SeriesReply
-	11, // 25: dr.study.Study.DeleteImage:output_type -> google.protobuf.Empty
-	11, // 26: dr.study.Study.SortImage:output_type -> google.protobuf.Empty
-	20, // [20:27] is the sub-list for method output_type
-	13, // [13:20] is the sub-list for method input_type
-	13, // [13:13] is the sub-list for extension type_name
-	13, // [13:13] is the sub-list for extension extendee
-	0,  // [0:13] is the sub-list for field type_name
+	2,  // 2: dr.study.CreateImageRequest.views:type_name -> dr.study.ViewRequest
+	11, // 3: dr.study.Image.acquisition_context:type_name -> google.protobuf.Struct
+	11, // 4: dr.study.Image.img_proc_context:type_name -> google.protobuf.Struct
+	10, // 5: dr.study.Series.performed_datetime:type_name -> google.protobuf.Timestamp
+	5,  // 6: dr.study.Series.images:type_name -> dr.study.Image
+	10, // 7: dr.study.StudyReply.patient_dob:type_name -> google.protobuf.Timestamp
+	10, // 8: dr.study.StudyReply.admitting_time:type_name -> google.protobuf.Timestamp
+	10, // 9: dr.study.StudyReply.study_start_datetime:type_name -> google.protobuf.Timestamp
+	10, // 10: dr.study.StudyReply.study_end_datetime:type_name -> google.protobuf.Timestamp
+	10, // 11: dr.study.StudyReply.scheduled_procedure_step_start_date:type_name -> google.protobuf.Timestamp
+	6,  // 12: dr.study.StudyReply.series:type_name -> dr.study.Series
+	6,  // 13: dr.study.CreateImageReply.series:type_name -> dr.study.Series
+	12, // 14: dr.study.Basic.SoftwareInfo:input_type -> google.protobuf.Empty
+	3,  // 15: dr.study.Study.CreateStudy:input_type -> dr.study.StudyRequest
+	0,  // 16: dr.study.Study.GetStudy:input_type -> dr.study.IDRequest
+	4,  // 17: dr.study.Study.CreateImage:input_type -> dr.study.CreateImageRequest
+	0,  // 18: dr.study.Study.CopyImage:input_type -> dr.study.IDRequest
+	0,  // 19: dr.study.Study.DeleteImage:input_type -> dr.study.IDRequest
+	9,  // 20: dr.study.Study.SortImage:input_type -> dr.study.SortRequest
+	1,  // 21: dr.study.Basic.SoftwareInfo:output_type -> dr.study.SoftwareInfoReply
+	7,  // 22: dr.study.Study.CreateStudy:output_type -> dr.study.StudyReply
+	7,  // 23: dr.study.Study.GetStudy:output_type -> dr.study.StudyReply
+	8,  // 24: dr.study.Study.CreateImage:output_type -> dr.study.CreateImageReply
+	8,  // 25: dr.study.Study.CopyImage:output_type -> dr.study.CreateImageReply
+	12, // 26: dr.study.Study.DeleteImage:output_type -> google.protobuf.Empty
+	12, // 27: dr.study.Study.SortImage:output_type -> google.protobuf.Empty
+	21, // [21:28] is the sub-list for method output_type
+	14, // [14:21] is the sub-list for method input_type
+	14, // [14:14] is the sub-list for extension type_name
+	14, // [14:14] is the sub-list for extension extendee
+	0,  // [0:14] is the sub-list for field type_name
 }
 
 func init() { file_dr_study_idl_proto_init() }
@@ -1401,7 +1458,7 @@ func file_dr_study_idl_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_dr_study_idl_proto_rawDesc), len(file_dr_study_idl_proto_rawDesc)),
 			NumEnums:      0,
-			NumMessages:   9,
+			NumMessages:   10,
 			NumExtensions: 0,
 			NumServices:   2,
 		},

+ 12 - 12
dr_study_pb/dr_study_idl_grpc.pb.go

@@ -136,8 +136,8 @@ const (
 type StudyClient interface {
 	CreateStudy(ctx context.Context, in *StudyRequest, opts ...grpc.CallOption) (*StudyReply, error)
 	GetStudy(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*StudyReply, error)
-	CreateImage(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (*SeriesReply, error)
-	CopyImage(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*SeriesReply, error)
+	CreateImage(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageReply, error)
+	CopyImage(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*CreateImageReply, error)
 	DeleteImage(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	SortImage(ctx context.Context, in *SortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
@@ -170,9 +170,9 @@ func (c *studyClient) GetStudy(ctx context.Context, in *IDRequest, opts ...grpc.
 	return out, nil
 }
 
-func (c *studyClient) CreateImage(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (*SeriesReply, error) {
+func (c *studyClient) CreateImage(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageReply, error) {
 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(SeriesReply)
+	out := new(CreateImageReply)
 	err := c.cc.Invoke(ctx, Study_CreateImage_FullMethodName, in, out, cOpts...)
 	if err != nil {
 		return nil, err
@@ -180,9 +180,9 @@ func (c *studyClient) CreateImage(ctx context.Context, in *ViewRequest, opts ...
 	return out, nil
 }
 
-func (c *studyClient) CopyImage(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*SeriesReply, error) {
+func (c *studyClient) CopyImage(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*CreateImageReply, error) {
 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
-	out := new(SeriesReply)
+	out := new(CreateImageReply)
 	err := c.cc.Invoke(ctx, Study_CopyImage_FullMethodName, in, out, cOpts...)
 	if err != nil {
 		return nil, err
@@ -216,8 +216,8 @@ func (c *studyClient) SortImage(ctx context.Context, in *SortRequest, opts ...gr
 type StudyServer interface {
 	CreateStudy(context.Context, *StudyRequest) (*StudyReply, error)
 	GetStudy(context.Context, *IDRequest) (*StudyReply, error)
-	CreateImage(context.Context, *ViewRequest) (*SeriesReply, error)
-	CopyImage(context.Context, *IDRequest) (*SeriesReply, error)
+	CreateImage(context.Context, *CreateImageRequest) (*CreateImageReply, error)
+	CopyImage(context.Context, *IDRequest) (*CreateImageReply, error)
 	DeleteImage(context.Context, *IDRequest) (*emptypb.Empty, error)
 	SortImage(context.Context, *SortRequest) (*emptypb.Empty, error)
 	mustEmbedUnimplementedStudyServer()
@@ -236,10 +236,10 @@ func (UnimplementedStudyServer) CreateStudy(context.Context, *StudyRequest) (*St
 func (UnimplementedStudyServer) GetStudy(context.Context, *IDRequest) (*StudyReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetStudy not implemented")
 }
-func (UnimplementedStudyServer) CreateImage(context.Context, *ViewRequest) (*SeriesReply, error) {
+func (UnimplementedStudyServer) CreateImage(context.Context, *CreateImageRequest) (*CreateImageReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CreateImage not implemented")
 }
-func (UnimplementedStudyServer) CopyImage(context.Context, *IDRequest) (*SeriesReply, error) {
+func (UnimplementedStudyServer) CopyImage(context.Context, *IDRequest) (*CreateImageReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CopyImage not implemented")
 }
 func (UnimplementedStudyServer) DeleteImage(context.Context, *IDRequest) (*emptypb.Empty, error) {
@@ -306,7 +306,7 @@ func _Study_GetStudy_Handler(srv interface{}, ctx context.Context, dec func(inte
 }
 
 func _Study_CreateImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(ViewRequest)
+	in := new(CreateImageRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -318,7 +318,7 @@ func _Study_CreateImage_Handler(srv interface{}, ctx context.Context, dec func(i
 		FullMethod: Study_CreateImage_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(StudyServer).CreateImage(ctx, req.(*ViewRequest))
+		return srv.(StudyServer).CreateImage(ctx, req.(*CreateImageRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }