mongodb

package
v0.0.0-...-4e57419 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentRepo

type DocumentRepo struct {
	// contains filtered or unexported fields
}

func NewDocumentRepo

func NewDocumentRepo(db *mongo.Database) *DocumentRepo

func (*DocumentRepo) Create

func (*DocumentRepo) Delete

func (r *DocumentRepo) Delete(ctx context.Context, id string) error

func (*DocumentRepo) GetByID

func (*DocumentRepo) GetByIDs

func (r *DocumentRepo) GetByIDs(ctx context.Context, ids []string) ([]models.DocumentReference, error)

func (*DocumentRepo) Search

func (r *DocumentRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.DocumentReference, int64, error)

func (*DocumentRepo) Update

type ObservationRepo

type ObservationRepo struct {
	// contains filtered or unexported fields
}

func NewObservationRepo

func NewObservationRepo(db *mongo.Database) *ObservationRepo

func (*ObservationRepo) Create

func (*ObservationRepo) Delete

func (r *ObservationRepo) Delete(ctx context.Context, id string) error

func (*ObservationRepo) GetByID

func (r *ObservationRepo) GetByID(ctx context.Context, id string) (*models.Observation, error)

func (*ObservationRepo) GetByIDs

func (r *ObservationRepo) GetByIDs(ctx context.Context, ids []string) ([]models.Observation, error)

func (*ObservationRepo) Search

func (r *ObservationRepo) Search(ctx context.Context, patientID string, limit, offset int) ([]models.Observation, int64, error)

func (*ObservationRepo) Update

type PatientRepo

type PatientRepo struct {
	// contains filtered or unexported fields
}

func NewPatientRepo

func NewPatientRepo(db *mongo.Database) *PatientRepo

func (*PatientRepo) Create

func (s *PatientRepo) Create(ctx context.Context, patient *models.Patient) (*models.Patient, error)

func (*PatientRepo) GetByID

func (s *PatientRepo) GetByID(ctx context.Context, id string) (*models.Patient, error)

func (*PatientRepo) Update

func (s *PatientRepo) Update(ctx context.Context, patient *models.Patient) (*models.Patient, error)

Jump to

Keyboard shortcuts

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