treatmentSuggestion

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OperationTreatmentSuggestionCreateTreatmentSuggestion = "/api.patient.treatmentSuggestion.TreatmentSuggestion/CreateTreatmentSuggestion"
View Source
const OperationTreatmentSuggestionListTreatmentSuggestion = "/api.patient.treatmentSuggestion.TreatmentSuggestion/ListTreatmentSuggestion"

Variables

View Source
var File_api_patient_treatmentSuggestion_treatmentSuggestion_proto protoreflect.FileDescriptor
View Source
var TreatmentSuggestion_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.patient.treatmentSuggestion.TreatmentSuggestion",
	HandlerType: (*TreatmentSuggestionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTreatmentSuggestion",
			Handler:    _TreatmentSuggestion_ListTreatmentSuggestion_Handler,
		},
		{
			MethodName: "CreateTreatmentSuggestion",
			Handler:    _TreatmentSuggestion_CreateTreatmentSuggestion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/patient/treatmentSuggestion/treatmentSuggestion.proto",
}

TreatmentSuggestion_ServiceDesc is the grpc.ServiceDesc for TreatmentSuggestion service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTreatmentSuggestionHTTPServer

func RegisterTreatmentSuggestionHTTPServer(s *http.Server, srv TreatmentSuggestionHTTPServer)

func RegisterTreatmentSuggestionServer

func RegisterTreatmentSuggestionServer(s grpc.ServiceRegistrar, srv TreatmentSuggestionServer)

Types

type CreateTreatmentSuggestionRequest

type CreateTreatmentSuggestionRequest struct {
	ScaleID  string           `protobuf:"bytes,1,opt,name=scaleID,proto3" json:"scaleID,omitempty"`
	VisitID  string           `protobuf:"bytes,2,opt,name=visitID,proto3" json:"visitID,omitempty"`
	Keywords map[string]int32 `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateTreatmentSuggestionRequest) Descriptor deprecated

func (*CreateTreatmentSuggestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTreatmentSuggestionRequest.ProtoReflect.Descriptor instead.

func (*CreateTreatmentSuggestionRequest) GetKeywords

func (x *CreateTreatmentSuggestionRequest) GetKeywords() map[string]int32

func (*CreateTreatmentSuggestionRequest) GetScaleID

func (x *CreateTreatmentSuggestionRequest) GetScaleID() string

func (*CreateTreatmentSuggestionRequest) GetVisitID

func (x *CreateTreatmentSuggestionRequest) GetVisitID() string

func (*CreateTreatmentSuggestionRequest) ProtoMessage

func (*CreateTreatmentSuggestionRequest) ProtoMessage()

func (*CreateTreatmentSuggestionRequest) ProtoReflect

func (*CreateTreatmentSuggestionRequest) Reset

func (*CreateTreatmentSuggestionRequest) String

func (*CreateTreatmentSuggestionRequest) Validate

Validate checks the field values on CreateTreatmentSuggestionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateTreatmentSuggestionRequest) ValidateAll

func (m *CreateTreatmentSuggestionRequest) ValidateAll() error

ValidateAll checks the field values on CreateTreatmentSuggestionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTreatmentSuggestionRequestMultiError, or nil if none found.

type CreateTreatmentSuggestionRequestMultiError

type CreateTreatmentSuggestionRequestMultiError []error

CreateTreatmentSuggestionRequestMultiError is an error wrapping multiple validation errors returned by CreateTreatmentSuggestionRequest.ValidateAll() if the designated constraints aren't met.

func (CreateTreatmentSuggestionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateTreatmentSuggestionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTreatmentSuggestionRequestValidationError

type CreateTreatmentSuggestionRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateTreatmentSuggestionRequestValidationError is the validation error returned by CreateTreatmentSuggestionRequest.Validate if the designated constraints aren't met.

func (CreateTreatmentSuggestionRequestValidationError) Cause

Cause function returns cause value.

func (CreateTreatmentSuggestionRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTreatmentSuggestionRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTreatmentSuggestionRequestValidationError) Field

Field function returns field value.

func (CreateTreatmentSuggestionRequestValidationError) Key

Key function returns key value.

func (CreateTreatmentSuggestionRequestValidationError) Reason

Reason function returns reason value.

type GetSuggestionScaleReply

type GetSuggestionScaleReply struct {
	ScaleID string                         `protobuf:"bytes,1,opt,name=scaleID,proto3" json:"scaleID,omitempty"`
	Scale   *api.ScaleReply                `protobuf:"bytes,2,opt,name=scale,proto3" json:"scale,omitempty"`
	List    []*GetTreatmentSuggestionReply `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSuggestionScaleReply) Descriptor deprecated

func (*GetSuggestionScaleReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSuggestionScaleReply.ProtoReflect.Descriptor instead.

func (*GetSuggestionScaleReply) GetList

func (*GetSuggestionScaleReply) GetScale

func (x *GetSuggestionScaleReply) GetScale() *api.ScaleReply

func (*GetSuggestionScaleReply) GetScaleID

func (x *GetSuggestionScaleReply) GetScaleID() string

func (*GetSuggestionScaleReply) ProtoMessage

func (*GetSuggestionScaleReply) ProtoMessage()

func (*GetSuggestionScaleReply) ProtoReflect

func (x *GetSuggestionScaleReply) ProtoReflect() protoreflect.Message

func (*GetSuggestionScaleReply) Reset

func (x *GetSuggestionScaleReply) Reset()

func (*GetSuggestionScaleReply) String

func (x *GetSuggestionScaleReply) String() string

func (*GetSuggestionScaleReply) Validate

func (m *GetSuggestionScaleReply) Validate() error

Validate checks the field values on GetSuggestionScaleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSuggestionScaleReply) ValidateAll

func (m *GetSuggestionScaleReply) ValidateAll() error

ValidateAll checks the field values on GetSuggestionScaleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSuggestionScaleReplyMultiError, or nil if none found.

type GetSuggestionScaleReplyMultiError

type GetSuggestionScaleReplyMultiError []error

GetSuggestionScaleReplyMultiError is an error wrapping multiple validation errors returned by GetSuggestionScaleReply.ValidateAll() if the designated constraints aren't met.

func (GetSuggestionScaleReplyMultiError) AllErrors

func (m GetSuggestionScaleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSuggestionScaleReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSuggestionScaleReplyValidationError

type GetSuggestionScaleReplyValidationError struct {
	// contains filtered or unexported fields
}

GetSuggestionScaleReplyValidationError is the validation error returned by GetSuggestionScaleReply.Validate if the designated constraints aren't met.

func (GetSuggestionScaleReplyValidationError) Cause

Cause function returns cause value.

func (GetSuggestionScaleReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSuggestionScaleReplyValidationError) ErrorName

ErrorName returns error name.

func (GetSuggestionScaleReplyValidationError) Field

Field function returns field value.

func (GetSuggestionScaleReplyValidationError) Key

Key function returns key value.

func (GetSuggestionScaleReplyValidationError) Reason

Reason function returns reason value.

type GetTreatmentSuggestionReply

type GetTreatmentSuggestionReply struct {
	Tstid       string              `protobuf:"bytes,1,opt,name=tstid,proto3" json:"tstid,omitempty"`
	Tstname     string              `protobuf:"bytes,2,opt,name=tstname,proto3" json:"tstname,omitempty"`
	Content     string              `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Id          string              `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	KeywordID   string              `protobuf:"bytes,5,opt,name=keywordID,proto3" json:"keywordID,omitempty"`
	Score       int32               `protobuf:"varint,6,opt,name=score,proto3" json:"score,omitempty"`
	Status      int32               `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
	Keyword     *api.KeywordReply   `protobuf:"bytes,8,opt,name=keyword,proto3" json:"keyword,omitempty"`
	TreatmentID string              `protobuf:"bytes,9,opt,name=treatmentID,proto3" json:"treatmentID,omitempty"`
	Treatment   *api.TreatmentReply `protobuf:"bytes,10,opt,name=treatment,proto3" json:"treatment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTreatmentSuggestionReply) Descriptor deprecated

func (*GetTreatmentSuggestionReply) Descriptor() ([]byte, []int)

Deprecated: Use GetTreatmentSuggestionReply.ProtoReflect.Descriptor instead.

func (*GetTreatmentSuggestionReply) GetContent

func (x *GetTreatmentSuggestionReply) GetContent() string

func (*GetTreatmentSuggestionReply) GetId

func (*GetTreatmentSuggestionReply) GetKeyword

func (x *GetTreatmentSuggestionReply) GetKeyword() *api.KeywordReply

func (*GetTreatmentSuggestionReply) GetKeywordID

func (x *GetTreatmentSuggestionReply) GetKeywordID() string

func (*GetTreatmentSuggestionReply) GetScore

func (x *GetTreatmentSuggestionReply) GetScore() int32

func (*GetTreatmentSuggestionReply) GetStatus

func (x *GetTreatmentSuggestionReply) GetStatus() int32

func (*GetTreatmentSuggestionReply) GetTreatment

func (x *GetTreatmentSuggestionReply) GetTreatment() *api.TreatmentReply

func (*GetTreatmentSuggestionReply) GetTreatmentID

func (x *GetTreatmentSuggestionReply) GetTreatmentID() string

func (*GetTreatmentSuggestionReply) GetTstid

func (x *GetTreatmentSuggestionReply) GetTstid() string

func (*GetTreatmentSuggestionReply) GetTstname

func (x *GetTreatmentSuggestionReply) GetTstname() string

func (*GetTreatmentSuggestionReply) ProtoMessage

func (*GetTreatmentSuggestionReply) ProtoMessage()

func (*GetTreatmentSuggestionReply) ProtoReflect

func (*GetTreatmentSuggestionReply) Reset

func (x *GetTreatmentSuggestionReply) Reset()

func (*GetTreatmentSuggestionReply) String

func (x *GetTreatmentSuggestionReply) String() string

func (*GetTreatmentSuggestionReply) Validate

func (m *GetTreatmentSuggestionReply) Validate() error

Validate checks the field values on GetTreatmentSuggestionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTreatmentSuggestionReply) ValidateAll

func (m *GetTreatmentSuggestionReply) ValidateAll() error

ValidateAll checks the field values on GetTreatmentSuggestionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTreatmentSuggestionReplyMultiError, or nil if none found.

type GetTreatmentSuggestionReplyMultiError

type GetTreatmentSuggestionReplyMultiError []error

GetTreatmentSuggestionReplyMultiError is an error wrapping multiple validation errors returned by GetTreatmentSuggestionReply.ValidateAll() if the designated constraints aren't met.

func (GetTreatmentSuggestionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetTreatmentSuggestionReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTreatmentSuggestionReplyValidationError

type GetTreatmentSuggestionReplyValidationError struct {
	// contains filtered or unexported fields
}

GetTreatmentSuggestionReplyValidationError is the validation error returned by GetTreatmentSuggestionReply.Validate if the designated constraints aren't met.

func (GetTreatmentSuggestionReplyValidationError) Cause

Cause function returns cause value.

func (GetTreatmentSuggestionReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTreatmentSuggestionReplyValidationError) ErrorName

ErrorName returns error name.

func (GetTreatmentSuggestionReplyValidationError) Field

Field function returns field value.

func (GetTreatmentSuggestionReplyValidationError) Key

Key function returns key value.

func (GetTreatmentSuggestionReplyValidationError) Reason

Reason function returns reason value.

type ListTreatmentSuggestionReply

type ListTreatmentSuggestionReply struct {
	List    []*GetSuggestionScaleReply `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	VisitID string                     `protobuf:"bytes,2,opt,name=visitID,proto3" json:"visitID,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTreatmentSuggestionReply) Descriptor deprecated

func (*ListTreatmentSuggestionReply) Descriptor() ([]byte, []int)

Deprecated: Use ListTreatmentSuggestionReply.ProtoReflect.Descriptor instead.

func (*ListTreatmentSuggestionReply) GetList

func (*ListTreatmentSuggestionReply) GetVisitID

func (x *ListTreatmentSuggestionReply) GetVisitID() string

func (*ListTreatmentSuggestionReply) ProtoMessage

func (*ListTreatmentSuggestionReply) ProtoMessage()

func (*ListTreatmentSuggestionReply) ProtoReflect

func (*ListTreatmentSuggestionReply) Reset

func (x *ListTreatmentSuggestionReply) Reset()

func (*ListTreatmentSuggestionReply) String

func (*ListTreatmentSuggestionReply) Validate

func (m *ListTreatmentSuggestionReply) Validate() error

Validate checks the field values on ListTreatmentSuggestionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListTreatmentSuggestionReply) ValidateAll

func (m *ListTreatmentSuggestionReply) ValidateAll() error

ValidateAll checks the field values on ListTreatmentSuggestionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTreatmentSuggestionReplyMultiError, or nil if none found.

type ListTreatmentSuggestionReplyMultiError

type ListTreatmentSuggestionReplyMultiError []error

ListTreatmentSuggestionReplyMultiError is an error wrapping multiple validation errors returned by ListTreatmentSuggestionReply.ValidateAll() if the designated constraints aren't met.

func (ListTreatmentSuggestionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListTreatmentSuggestionReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTreatmentSuggestionReplyValidationError

type ListTreatmentSuggestionReplyValidationError struct {
	// contains filtered or unexported fields
}

ListTreatmentSuggestionReplyValidationError is the validation error returned by ListTreatmentSuggestionReply.Validate if the designated constraints aren't met.

func (ListTreatmentSuggestionReplyValidationError) Cause

Cause function returns cause value.

func (ListTreatmentSuggestionReplyValidationError) Error

Error satisfies the builtin error interface

func (ListTreatmentSuggestionReplyValidationError) ErrorName

ErrorName returns error name.

func (ListTreatmentSuggestionReplyValidationError) Field

Field function returns field value.

func (ListTreatmentSuggestionReplyValidationError) Key

Key function returns key value.

func (ListTreatmentSuggestionReplyValidationError) Reason

Reason function returns reason value.

type ListTreatmentSuggestionRequest

type ListTreatmentSuggestionRequest struct {
	VisitID string `protobuf:"bytes,1,opt,name=visitID,proto3" json:"visitID,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTreatmentSuggestionRequest) Descriptor deprecated

func (*ListTreatmentSuggestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTreatmentSuggestionRequest.ProtoReflect.Descriptor instead.

func (*ListTreatmentSuggestionRequest) GetVisitID

func (x *ListTreatmentSuggestionRequest) GetVisitID() string

func (*ListTreatmentSuggestionRequest) ProtoMessage

func (*ListTreatmentSuggestionRequest) ProtoMessage()

func (*ListTreatmentSuggestionRequest) ProtoReflect

func (*ListTreatmentSuggestionRequest) Reset

func (x *ListTreatmentSuggestionRequest) Reset()

func (*ListTreatmentSuggestionRequest) String

func (*ListTreatmentSuggestionRequest) Validate

func (m *ListTreatmentSuggestionRequest) Validate() error

Validate checks the field values on ListTreatmentSuggestionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListTreatmentSuggestionRequest) ValidateAll

func (m *ListTreatmentSuggestionRequest) ValidateAll() error

ValidateAll checks the field values on ListTreatmentSuggestionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListTreatmentSuggestionRequestMultiError, or nil if none found.

type ListTreatmentSuggestionRequestMultiError

type ListTreatmentSuggestionRequestMultiError []error

ListTreatmentSuggestionRequestMultiError is an error wrapping multiple validation errors returned by ListTreatmentSuggestionRequest.ValidateAll() if the designated constraints aren't met.

func (ListTreatmentSuggestionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListTreatmentSuggestionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListTreatmentSuggestionRequestValidationError

type ListTreatmentSuggestionRequestValidationError struct {
	// contains filtered or unexported fields
}

ListTreatmentSuggestionRequestValidationError is the validation error returned by ListTreatmentSuggestionRequest.Validate if the designated constraints aren't met.

func (ListTreatmentSuggestionRequestValidationError) Cause

Cause function returns cause value.

func (ListTreatmentSuggestionRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTreatmentSuggestionRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTreatmentSuggestionRequestValidationError) Field

Field function returns field value.

func (ListTreatmentSuggestionRequestValidationError) Key

Key function returns key value.

func (ListTreatmentSuggestionRequestValidationError) Reason

Reason function returns reason value.

type TreatmentSuggestionClient

type TreatmentSuggestionClient interface {
	ListTreatmentSuggestion(ctx context.Context, in *ListTreatmentSuggestionRequest, opts ...grpc.CallOption) (*ListTreatmentSuggestionReply, error)
	CreateTreatmentSuggestion(ctx context.Context, in *CreateTreatmentSuggestionRequest, opts ...grpc.CallOption) (*api.Success, error)
}

TreatmentSuggestionClient is the client API for TreatmentSuggestion service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TreatmentSuggestionHTTPClient

type TreatmentSuggestionHTTPClient interface {
	CreateTreatmentSuggestion(ctx context.Context, req *CreateTreatmentSuggestionRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	ListTreatmentSuggestion(ctx context.Context, req *ListTreatmentSuggestionRequest, opts ...http.CallOption) (rsp *ListTreatmentSuggestionReply, err error)
}

func NewTreatmentSuggestionHTTPClient

func NewTreatmentSuggestionHTTPClient(client *http.Client) TreatmentSuggestionHTTPClient

type TreatmentSuggestionHTTPClientImpl

type TreatmentSuggestionHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*TreatmentSuggestionHTTPClientImpl) CreateTreatmentSuggestion

func (*TreatmentSuggestionHTTPClientImpl) ListTreatmentSuggestion

type TreatmentSuggestionHTTPServer

type TreatmentSuggestionHTTPServer interface {
	CreateTreatmentSuggestion(context.Context, *CreateTreatmentSuggestionRequest) (*api.Success, error)
	ListTreatmentSuggestion(context.Context, *ListTreatmentSuggestionRequest) (*ListTreatmentSuggestionReply, error)
}

type TreatmentSuggestionServer

type TreatmentSuggestionServer interface {
	ListTreatmentSuggestion(context.Context, *ListTreatmentSuggestionRequest) (*ListTreatmentSuggestionReply, error)
	CreateTreatmentSuggestion(context.Context, *CreateTreatmentSuggestionRequest) (*api.Success, error)
	// contains filtered or unexported methods
}

TreatmentSuggestionServer is the server API for TreatmentSuggestion service. All implementations must embed UnimplementedTreatmentSuggestionServer for forward compatibility

type UnimplementedTreatmentSuggestionServer

type UnimplementedTreatmentSuggestionServer struct {
}

UnimplementedTreatmentSuggestionServer must be embedded to have forward compatible implementations.

func (UnimplementedTreatmentSuggestionServer) CreateTreatmentSuggestion

type UnsafeTreatmentSuggestionServer

type UnsafeTreatmentSuggestionServer interface {
	// contains filtered or unexported methods
}

UnsafeTreatmentSuggestionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TreatmentSuggestionServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL