syntax = "proto3"; option go_package = "dr_protocol_pb/"; package dr.protocol; message EmptyRequest {} service Basic { rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {} } message SoftwareInfoReply { string module = 1; string desc = 2; string build = 3; string version = 4; } service Protocol { rpc GetPatientType (PatientTypeRequest) returns (PatientTypeReply) {} rpc GetBodyPart (BodyPartRequest) returns (BodyPartReply) {} } message PatientTypeRequest { optional bool is_enabled = 1; optional bool is_pre_install = 2; } message PatientType { uint64 id = 1; string patient_type_id = 2; string patient_type_name = 3; string patient_type_local = 4; string patient_type_description = 5; int32 sort = 6; bool is_enabled = 7; string product = 8; bool is_pre_install = 9; } message PatientTypeReply { repeated PatientType patient_type_list = 1; } message BodyPartRequest { optional string patient_type = 1; optional string category = 2; optional bool is_enabled = 3; optional bool is_pre_install = 4; } message BodyPart { uint64 id = 1; string body_part_id = 2; string body_part_name = 3; string body_part_local = 4; string body_part_description = 5; string patient_type = 6; string category = 7; int32 sort = 8; bool is_enabled = 9; string product = 10; bool is_pre_install = 11; } message BodyPartReply { repeated BodyPart body_part_list = 1; }