Documentation ¶
Index ¶
- type CaseHistory
- type Permission
- type Rx
- func (r Rx) GetEncrypted() string
- func (r Rx) GetID() string
- func (r Rx) GetMemo() string
- func (r Rx) GetPatient() string
- func (r Rx) GetSaleStore() string
- func (r Rx) GetSaleTime() time.Time
- func (r Rx) GetStatus() sdk.Int
- func (r Rx) GetTime() time.Time
- func (r Rx) SetEncrypted(en string)
- func (r Rx) SetID(id string)
- func (r Rx) SetMemo(memo string)
- func (r Rx) SetPatient(p string)
- func (r Rx) SetSaleStore(s string)
- func (r Rx) SetSaleTime(t time.Time)
- func (r Rx) SetStatus(status sdk.Int)
- func (r Rx) SetTime(t time.Time)
- func (r Rx) String() string
- type RxPermission
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 ¶
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 (Rx) GetEncrypted ¶
func (Rx) GetPatient ¶
func (Rx) GetSaleStore ¶
func (Rx) GetSaleTime ¶
func (Rx) SetEncrypted ¶
func (Rx) SetPatient ¶
func (Rx) SetSaleStore ¶
func (Rx) SetSaleTime ¶
type RxPermission ¶
type RxPermission = []Permission
func NewRxPermission ¶
func NewRxPermission(prs ...Permission) RxPermission
Click to show internal directories.
Click to hide internal directories.