Skip to content

module ​

go
import "github.com/prescriptoo/prescriptoo-api/services/patient/module"

Package module composes Patient business capabilities. Doctor owns portal HTTP.

Index ​

type Dependencies ​

Dependencies defines the provider-owned capabilities required by Patient.

go
type Dependencies = usecase.Dependencies

type Module ​

Module composes patient business operations without publishing generic CRUD routes.

go
type Module struct {
    // contains filtered or unexported fields
}

func NewModule ​

go
func NewModule(databases ...*pgxpool.Pool) *Module

NewModule wires persistent patient repositories when a database is supplied.

func (*Module) Configure ​

go
func (m *Module) Configure(d Dependencies)

Configure wires the provider capabilities and PostgreSQL persistence.

func (*Module) Creator ​

go
func (m *Module) Creator() p.PatientCreator

Creator exposes only patient creation.

func (*Module) Lister ​

go
func (m *Module) Lister() p.PatientLister

Lister exposes only patient listing.

func (*Module) Patcher ​

go
func (m *Module) Patcher() p.PatientPatcher

Patcher exposes only patient partial updates.

func (*Module) Patients ​

go
func (m *Module) Patients() p.PatientReader

Patients exposes the authorized patient reader.

func (*Module) RegisterHuma ​

go
func (m *Module) RegisterHuma(_ huma.API)

RegisterHuma deliberately registers no generic patient CRUD aliases.

Generated by gomarkdoc

Documentation follows the source. Planned contracts are marked explicitly.