patients

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishPatientNotice

func PublishPatientNotice(ctx context.Context, event PatientNotice) error

func Register

func Register(registry *contracts.Registry)

func SendWelcomeEmail

func SendWelcomeEmail(ctx context.Context, event PatientCreated) error

Types

type CreatePatient

type CreatePatient struct {
	Name string
}

type CreatePatientResult

type CreatePatientResult struct {
	ID string `json:"id"`
}

func HandleCreatePatient

func HandleCreatePatient(ctx context.Context, command CreatePatient) (CreatePatientResult, error)

type GetPatientPage

type GetPatientPage struct {
	Filter string
}

type PatientCreated

type PatientCreated struct {
	ID string
}

type PatientNotice

type PatientNotice struct {
	Patch RealtimePatch `json:"patch"`
}

type PatientPageData

type PatientPageData struct {
	Filter string `json:"filter"`
	Source string `json:"source"`
}

func LoadPatientPage

func LoadPatientPage(ctx context.Context, query GetPatientPage) (PatientPageData, error)

type RealtimePatch

type RealtimePatch struct {
	Op   string `json:"op"`
	HTML string `json:"html"`
	Swap string `json:"swap,omitempty"`
}

Jump to

Keyboard shortcuts

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