exported

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseHistory

type CaseHistory = []Rx

func NewCaseHistory

func NewCaseHistory(rxs ...Rx) CaseHistory

type Permission

type Permission struct {
	Visitor  string
	Envelope string
}

func NewPermission

func NewPermission(visitor string, envelope string) Permission

type Rx

type Rx struct {
	ID        string    `json:"id"`
	Doctor    string    `json:"doctor"`
	Patient   string    `json:"patient"`
	Status    sdk.Int   `json:"status"`
	Time      time.Time `json:"time"`
	Encrypted string    `json:"encrypted"` //加密处方数据
	Memo      string    `json:"memo"`
	SaleStore string    `json:"sale_store"` //在哪个门店使用的
	SaleTime  time.Time `json:"sale_time"`  //销售时间
}

Rx is a struct that contains all the metadata of a Rx

func NewRx

func NewRx(doctor string, pubkey string, encrypted string, memo string) Rx

NewRx returns a new Rx

func (Rx) GetEncrypted

func (r Rx) GetEncrypted() string

func (Rx) GetID

func (r Rx) GetID() string

impliment exported.Rx

func (Rx) GetMemo

func (r Rx) GetMemo() string

func (Rx) GetPatient

func (r Rx) GetPatient() string

func (Rx) GetSaleStore

func (r Rx) GetSaleStore() string

func (Rx) GetSaleTime

func (r Rx) GetSaleTime() time.Time

func (Rx) GetStatus

func (r Rx) GetStatus() sdk.Int

func (Rx) GetTime

func (r Rx) GetTime() time.Time

func (Rx) SetEncrypted

func (r Rx) SetEncrypted(en string)

func (Rx) SetID

func (r Rx) SetID(id string)

func (Rx) SetMemo

func (r Rx) SetMemo(memo string)

func (Rx) SetPatient

func (r Rx) SetPatient(p string)

func (Rx) SetSaleStore

func (r Rx) SetSaleStore(s string)

func (Rx) SetSaleTime

func (r Rx) SetSaleTime(t time.Time)

func (Rx) SetStatus

func (r Rx) SetStatus(status sdk.Int)

func (Rx) SetTime

func (r Rx) SetTime(t time.Time)

func (Rx) String

func (r Rx) String() string

implement fmt.Stringer

type RxPermission

type RxPermission = []Permission

func NewRxPermission

func NewRxPermission(prs ...Permission) RxPermission

Jump to

Keyboard shortcuts

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