services

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentService

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

func (*DocumentService) CreateDocument

func (*DocumentService) DeleteDocument

func (s *DocumentService) DeleteDocument(ctx context.Context, id string) error

func (*DocumentService) GetDocument

func (s *DocumentService) GetDocument(ctx context.Context, id string) (*models.DocumentReference, error)

func (*DocumentService) ListDocuments

func (s *DocumentService) ListDocuments(ctx context.Context, patientID string, limit, offset int) (*domain.ListResponse[models.DocumentReference], error)

type ObservationService

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

func (*ObservationService) Create

func (*ObservationService) Delete

func (s *ObservationService) Delete(ctx context.Context, id string) error

func (*ObservationService) Get

func (*ObservationService) List

func (s *ObservationService) List(ctx context.Context, patientID string, limit, offset int) (*domain.ListResponse[models.Observation], error)

func (*ObservationService) Update

type PatientService

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

func (*PatientService) Create

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

func (*PatientService) Get

func (s *PatientService) Get(ctx context.Context, id string) (*models.Patient, error)

func (*PatientService) Update

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

type ShareService

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

func NewShareService

func NewShareService(
	obsRepo ports.ObservationRepository,
	docRepo ports.DocumentRepository,
	tmpAccessClient ports.TmpAccessClient,
) *ShareService

func (*ShareService) GetSharedResources

func (s *ShareService) GetSharedResources(ctx context.Context) (*domain.SharedResourcesResponse, error)

func (*ShareService) Share

Jump to

Keyboard shortcuts

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