Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateStatus(ehrStatusID string, subject base.PartySelf) (doc *model.EhrStatus, err error)
- func (s *Service) CreateSubject(subjectID, subjectNamespace, subType string) (subject base.PartySelf)
- func (s *Service) EhrCreate(ctx context.Context, userID, systemID string, ...) (*model.EHR, error)
- func (s *Service) EhrCreateWithID(ctx context.Context, userID, systemID string, ...) (*model.EHR, error)
- func (s *Service) GetByID(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID) ([]byte, error)
- func (s *Service) GetDocBySubject(ctx context.Context, userID, systemID, subjectID, namespace string) (docDecrypted []byte, err error)
- func (s *Service) GetStatus(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID) (*model.EhrStatus, error)
- func (s *Service) GetStatusByNearestTime(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID, ...) ([]byte, error)
- func (s *Service) GetStatusByVersionID(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID, ...) ([]byte, error)
- func (s *Service) SaveEhr(ctx context.Context, multiCallTx *indexer.MultiCallTx, ...) error
- func (s *Service) SaveStatus(ctx context.Context, multiCallTx *indexer.MultiCallTx, ...) error
- func (s *Service) UpdateEhr(ctx context.Context, multiCallTx *indexer.MultiCallTx, ...) error
- func (s *Service) UpdateStatus(ctx context.Context, procRequest *proc.Request, userID, systemID string, ...) error
- func (s *Service) ValidateEhr(ehr *model.EHR) bool
- func (s *Service) ValidateStatus(status *model.EhrStatus) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Infra *infrastructure.Infra Doc *service.DefaultDocumentService DocGroup *docGroupService.Service User *userService.Service GroupAccess *groupAccess.Service }
func NewService ¶
func NewService(docSvc *docService.DefaultDocumentService, userSvc *userService.Service, docGroupSvc *docGroupService.Service, gaSvc *groupAccess.Service) *Service
func (*Service) CreateStatus ¶
func (*Service) CreateSubject ¶
func (*Service) EhrCreateWithID ¶
func (*Service) GetDocBySubject ¶
func (s *Service) GetDocBySubject(ctx context.Context, userID, systemID, subjectID, namespace string) (docDecrypted []byte, err error)
GetDocBySubject Get decrypted document by subject
func (*Service) GetStatus ¶
func (s *Service) GetStatus(ctx context.Context, userID, systemID string, ehrUUID *uuid.UUID) (*model.EhrStatus, error)
GetStatus Get current (last) status of EHR document
func (*Service) GetStatusByNearestTime ¶
func (*Service) GetStatusByVersionID ¶
func (*Service) SaveStatus ¶
func (*Service) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.