Documentation
¶
Index ¶
- type DocumentService
- func (s *DocumentService) CreateDocument(ctx context.Context, doc *models.DocumentReference) (*domain.CreateDocumentResult, error)
- func (s *DocumentService) DeleteDocument(ctx context.Context, id string) error
- func (s *DocumentService) GetDocument(ctx context.Context, id string) (*models.DocumentReference, error)
- func (s *DocumentService) ListDocuments(ctx context.Context, patientID string, limit, offset int) (*domain.ListResponse[models.DocumentReference], error)
- type ObservationService
- func (s *ObservationService) Create(ctx context.Context, obs *models.Observation) (*models.Observation, error)
- func (s *ObservationService) Delete(ctx context.Context, id string) error
- func (s *ObservationService) Get(ctx context.Context, id string) (*models.Observation, error)
- func (s *ObservationService) List(ctx context.Context, patientID string, limit, offset int) (*domain.ListResponse[models.Observation], error)
- func (s *ObservationService) Update(ctx context.Context, obs *models.Observation) (*models.Observation, error)
- type PatientService
- type ShareService
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 NewDocumentService ¶
func NewDocumentService( repo ports.DocumentRepository, fileProvider ports.FileProvider, v *validator.DocumentValidator, ) *DocumentService
func (*DocumentService) CreateDocument ¶
func (s *DocumentService) CreateDocument(ctx context.Context, doc *models.DocumentReference) (*domain.CreateDocumentResult, error)
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 NewObservationService ¶
func NewObservationService( repo ports.ObservationRepository, docRepo ports.DocumentRepository, v *validator.ObservationValidator, ) *ObservationService
func (*ObservationService) Create ¶
func (s *ObservationService) Create(ctx context.Context, obs *models.Observation) (*models.Observation, error)
func (*ObservationService) Delete ¶
func (s *ObservationService) Delete(ctx context.Context, id string) error
func (*ObservationService) Get ¶
func (s *ObservationService) Get(ctx context.Context, id string) (*models.Observation, error)
func (*ObservationService) List ¶
func (s *ObservationService) List(ctx context.Context, patientID string, limit, offset int) (*domain.ListResponse[models.Observation], error)
func (*ObservationService) Update ¶
func (s *ObservationService) Update(ctx context.Context, obs *models.Observation) (*models.Observation, error)
type PatientService ¶
type PatientService struct {
// contains filtered or unexported fields
}
func NewPatientService ¶
func NewPatientService(repo ports.PatientRepository, v *validator.PatientValidator) *PatientService
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 ¶
func (s *ShareService) Share(ctx context.Context, req domain.ShareRequest) (*domain.ShareResponse, error)
Click to show internal directories.
Click to hide internal directories.