Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Authorize(ctx sdk.Context, patient string, id string, recipient string, token string) error
- func (k Keeper) GetCaseHistory(ctx sdk.Context, pubkey string) (exported.CaseHistory, error)
- func (k Keeper) GetDoctor(ctx sdk.Context, pubkey string) (types.Doctor, error)
- func (k Keeper) GetDrugstore(ctx sdk.Context, pubkey string) (types.DrugStore, error)
- func (k Keeper) GetPatient(ctx sdk.Context, pubkey string) types.Patient
- func (k Keeper) GetRx(ctx sdk.Context, patient string, id string) (exported.Rx, error)
- func (k Keeper) GetRxPermission(ctx sdk.Context, rxid string) (exported.RxPermission, error)
- func (k Keeper) GetRxs(ctx sdk.Context, patient string) (exported.CaseHistory, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Prescribe(ctx sdk.Context, doctor string, patient string, encrypted string, memo string, ...) error
- func (k Keeper) RegisterDoctor(ctx sdk.Context, pubkey string, name string, sex string, hospital string, ...) error
- func (k Keeper) RegisterDrugstore(ctx sdk.Context, pubkey string, name string, phone string, group string, ...) error
- func (k Keeper) RegisterPatient(ctx sdk.Context, pubkey string, name string, sex string, birthday time.Time, ...) error
- func (k Keeper) SaleDrugs(ctx sdk.Context, patient string, rxid string, drugstore string) error
- func (k Keeper) SaveCaseHistory(ctx sdk.Context, pubkey string, history exported.CaseHistory)
- func (k Keeper) SaveDoctor(ctx sdk.Context, doctor types.Doctor)
- func (k Keeper) SaveDrugStore(ctx sdk.Context, drugstore types.DrugStore)
- func (k Keeper) SavePatient(ctx sdk.Context, patient types.Patient)
- func (k Keeper) SaveRxPermission(ctx sdk.Context, rxid string, rxPermission exported.RxPermission)
Constants ¶
View Source
const (
QueryPatient = "patient"
)
query endpoints supported by the nameservice Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func (Keeper) GetCaseHistory ¶
func (Keeper) GetDrugstore ¶
func (Keeper) GetRxPermission ¶
func (Keeper) Prescribe ¶
func (k Keeper) Prescribe(ctx sdk.Context, doctor string, patient string, encrypted string, memo string, token string) error
RegisterPatient register patient on blockchain.
func (Keeper) RegisterDoctor ¶
func (k Keeper) RegisterDoctor(ctx sdk.Context, pubkey string, name string, sex string, hospital string, department string, title string, introduction string) error
RegisterPatient register patient on blockchain.
func (Keeper) RegisterDrugstore ¶
func (k Keeper) RegisterDrugstore(ctx sdk.Context, pubkey string, name string, phone string, group string, biztime string, location string) error
RegisterPatient register patient on blockchain.
func (Keeper) RegisterPatient ¶
func (k Keeper) RegisterPatient(ctx sdk.Context, pubkey string, name string, sex string, birthday time.Time, encrypted string, envelope string) error
RegisterPatient register patient on blockchain.
func (Keeper) SaveCaseHistory ¶
func (Keeper) SaveDrugStore ¶
func (Keeper) SaveRxPermission ¶
Click to show internal directories.
Click to hide internal directories.