patient

package
v0.0.0-...-2741532 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePatientRequest

type CreatePatientRequest struct {
	Name      string     `json:"name"`
	BirthDate *time.Time `json:"birth_date"`
	Avatar    *string    `json:"avatar"`
	Sex       int        `json:"sex"`
}

type CreatePatientResponse

type CreatePatientResponse struct {
	ID        uint64       `json:"id"`
	Name      string       `json:"name"`
	BirthDate *time.Time   `json:"birth_date"`
	Avatar    string       `json:"avatar"`
	Sex       *domain2.Sex `json:"sex"`
	Status    string       `json:"status"`
}

func (*CreatePatientResponse) ToDTO

func (p *CreatePatientResponse) ToDTO(d *domain.Patient)

type GetPatientResponse

type GetPatientResponse struct {
	ID        uint64       `json:"id"`
	Name      string       `json:"name"`
	BirthDate *time.Time   `json:"birth_date"`
	Avatar    string       `json:"avatar"`
	Sex       *domain2.Sex `json:"sex"`
	Status    string       `json:"status"`
}

func (*GetPatientResponse) ToDTO

func (p *GetPatientResponse) ToDTO(d *domain.Patient)

type NewPatientSessionRequest

type NewPatientSessionRequest struct {
	Ip       string `json:"ip"`
	DeviceID string `json:"device_id"`
}

type NewPatientSessionResponse

type NewPatientSessionResponse struct {
	Token string `json:"token"`
}

type RefreshSessionQRRequest

type RefreshSessionQRRequest struct {
	OldQR string `json:"old_qr"`
}

type RefreshSessionQRResponse

type RefreshSessionQRResponse struct {
	Token string `json:"token"`
}

type UpdatePatientRequest

type UpdatePatientRequest struct {
	Name      string     `json:"name"`
	BirthDate *time.Time `json:"birth_date"`
	Avatar    string     `json:"avatar"`
	Sex       *int       `json:"sex"`
}

type UpdatePatientResponse

type UpdatePatientResponse struct {
	ID        uint64       `json:"id"`
	Name      string       `json:"name"`
	BirthDate *time.Time   `json:"birth_date"`
	Avatar    string       `json:"avatar"`
	Sex       *domain2.Sex `json:"sex"`
	Status    string       `json:"status"`
}

func (*UpdatePatientResponse) ToDTO

func (p *UpdatePatientResponse) ToDTO(d *domain.Patient)

Jump to

Keyboard shortcuts

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