directory

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

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*service.DefaultDocumentService
	DocGroup *docGroupService.Service
}

func NewService

func NewService(docService *service.DefaultDocumentService, docGroupSvc *docGroupService.Service) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, req processing.RequestInterface, patientID, systemID, dirUID string, d *model.Directory) error

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, req processing.RequestInterface, systemID string, ehrUUID *uuid.UUID, versionUID, userID string) (string, error)

func (*Service) GetActiveProcRequest

func (s *Service) GetActiveProcRequest(userID string, kind processing.RequestKind) (string, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, patientID string, systemID string, ehrUUID *uuid.UUID, versionID *base.ObjectVersionID) (*model.Directory, error)

func (*Service) GetByTimeOrLast

func (s *Service) GetByTimeOrLast(ctx context.Context, systemID string, ehrUUID *uuid.UUID, patientID string, versionTime time.Time) (*model.Directory, error)

func (*Service) IncreaseVersion

func (s *Service) IncreaseVersion(d *model.Directory, systemID string) (string, error)

func (*Service) NewProcRequest

func (s *Service) NewProcRequest(reqID, userID, ehrUUID string, kind processing.RequestKind) (processing.RequestInterface, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, req processing.RequestInterface, systemID string, userID string, d *model.Directory) error

Jump to

Keyboard shortcuts

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