services
go
import "github.com/prescriptoo/prescriptoo-api/services/organization/internal/services"Package services implements shared organization service contracts.
Index
- type DoctorOrganizationService
- func NewDoctorOrganizationService(repository ports.DoctorOrganizationRepository) *DoctorOrganizationService
- func (s *DoctorOrganizationService) ListAssignedOrganizations(ctx context.Context, doctorID string) ([]types.DoctorOrganizationAssignment, error)
- func (s *DoctorOrganizationService) ListOrganizations(ctx context.Context, query types.ListDoctorOrganizationsQuery) (*types.DoctorOrganizationPage, error)
type DoctorOrganizationService
DoctorOrganizationService implements organization discovery and cursor pagination.
go
type DoctorOrganizationService struct {
// contains filtered or unexported fields
}func NewDoctorOrganizationService
go
func NewDoctorOrganizationService(repository ports.DoctorOrganizationRepository) *DoctorOrganizationServiceNewDoctorOrganizationService wires the organization-owned repository.
func (*DoctorOrganizationService) ListAssignedOrganizations
go
func (s *DoctorOrganizationService) ListAssignedOrganizations(ctx context.Context, doctorID string) ([]types.DoctorOrganizationAssignment, error)ListAssignedOrganizations requires a canonical verified profile ID and returns only assignments.
func (*DoctorOrganizationService) ListOrganizations
go
func (s *DoctorOrganizationService) ListOrganizations(ctx context.Context, query types.ListDoctorOrganizationsQuery) (*types.DoctorOrganizationPage, error)ListOrganizations returns active summaries without requiring an existing affiliation.
Generated by gomarkdoc