keeper

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryPatient = "patient"
)

query endpoints supported by the nameservice Querier

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

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 NewKeeper

func NewKeeper(
	storeKey sdk.StoreKey,
	cdc *codec.Codec) Keeper

NewKeeper creates new instances of the Faucet Keeper

func (Keeper) Authorize

func (k Keeper) Authorize(ctx sdk.Context, patient string, id string, recipient string, token string) error

func (Keeper) GetCaseHistory

func (k Keeper) GetCaseHistory(ctx sdk.Context, pubkey string) (exported.CaseHistory, error)

func (Keeper) GetDoctor

func (k Keeper) GetDoctor(ctx sdk.Context, pubkey string) (types.Doctor, error)

func (Keeper) GetDrugstore

func (k Keeper) GetDrugstore(ctx sdk.Context, pubkey string) (types.DrugStore, error)

func (Keeper) GetPatient

func (k Keeper) GetPatient(ctx sdk.Context, pubkey string) types.Patient

func (Keeper) GetRx

func (k Keeper) GetRx(ctx sdk.Context, patient string, id string) (exported.Rx, error)

func (Keeper) GetRxPermission

func (k Keeper) GetRxPermission(ctx sdk.Context, rxid string) (exported.RxPermission, error)

func (Keeper) GetRxs

func (k Keeper) GetRxs(ctx sdk.Context, patient string) (exported.CaseHistory, error)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

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) SaleDrugs

func (k Keeper) SaleDrugs(ctx sdk.Context, patient string, rxid string, drugstore string) error

func (Keeper) SaveCaseHistory

func (k Keeper) SaveCaseHistory(ctx sdk.Context, pubkey string, history exported.CaseHistory)

func (Keeper) SaveDoctor

func (k Keeper) SaveDoctor(ctx sdk.Context, doctor types.Doctor)

func (Keeper) SaveDrugStore

func (k Keeper) SaveDrugStore(ctx sdk.Context, drugstore types.DrugStore)

func (Keeper) SavePatient

func (k Keeper) SavePatient(ctx sdk.Context, patient types.Patient)

func (Keeper) SaveRxPermission

func (k Keeper) SaveRxPermission(ctx sdk.Context, rxid string, rxPermission exported.RxPermission)

Jump to

Keyboard shortcuts

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