Versions in this module Expand all Collapse all v0 v0.1.0 Mar 4, 2020 Changes in this version + const QueryPatient + func NewQuerier(keeper Keeper) sdk.Querier + type Keeper struct + func NewKeeper(storeKey sdk.StoreKey, cdc *codec.Codec) 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)