repository

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paginate

func Paginate(p *PaginationInput) func(db *gorm.DB) *gorm.DB

Paginate ...

Types

type AllergyRepository added in v1.0.0

type AllergyRepository struct {
	DB *gorm.DB
}

func ProvideAllergyRepository added in v1.0.0

func ProvideAllergyRepository(DB *gorm.DB) AllergyRepository

func (*AllergyRepository) Delete added in v1.0.0

func (r *AllergyRepository) Delete(ID int) error

Delete ...

func (*AllergyRepository) Get added in v1.0.0

func (r *AllergyRepository) Get(m *models.Allergy, ID int) error

Get ...

func (*AllergyRepository) GetAll added in v1.0.0

GetAll ...

func (*AllergyRepository) Save added in v1.0.0

func (r *AllergyRepository) Save(m *models.Allergy) error

Save ...

func (*AllergyRepository) Update added in v1.0.0

func (r *AllergyRepository) Update(m *models.Allergy) error

Update ...

type AmendmentRepository added in v1.0.0

type AmendmentRepository struct {
	DB *gorm.DB
}

func ProvideAmendmentRepository added in v1.0.0

func ProvideAmendmentRepository(DB *gorm.DB) AmendmentRepository

func (*AmendmentRepository) Create added in v1.0.0

func (r *AmendmentRepository) Create(m *models.Amendment) error

Create ...

func (*AmendmentRepository) Delete added in v1.0.0

func (r *AmendmentRepository) Delete(ID int) error

Delete ...

func (*AmendmentRepository) Get added in v1.0.0

func (r *AmendmentRepository) Get(m *models.Amendment, ID int) error

Get ...

func (*AmendmentRepository) GetAll added in v1.0.0

func (r *AmendmentRepository) GetAll(filter *models.Amendment) ([]*models.Amendment, error)

GetAll ...

func (*AmendmentRepository) Update added in v1.0.0

func (r *AmendmentRepository) Update(m *models.Amendment) error

Update ...

type AppointmentQueueRepository added in v1.0.0

type AppointmentQueueRepository struct {
	DB *gorm.DB
}

func ProvideAppointmentQueueRepository added in v1.0.0

func ProvideAppointmentQueueRepository(DB *gorm.DB) AppointmentQueueRepository

func (*AppointmentQueueRepository) Delete added in v1.0.0

func (r *AppointmentQueueRepository) Delete(ID int) error

Delete ...

func (*AppointmentQueueRepository) FindByAppointment added in v1.0.0

func (r *AppointmentQueueRepository) FindByAppointment(p PaginationInput, userID int) ([]models.AppointmentQueue, int64, error)

FindByAppointment ...

func (*AppointmentQueueRepository) FindTodaysAppointments added in v1.0.0

func (r *AppointmentQueueRepository) FindTodaysAppointments(appointmentID int) ([]models.AppointmentQueue, error)

FindTodaysAppointments ...

func (*AppointmentQueueRepository) Get added in v1.0.0

Get ...

func (*AppointmentQueueRepository) Save added in v1.0.0

Save ...

func (*AppointmentQueueRepository) Update added in v1.0.0

Update ...

type AppointmentRepository added in v1.0.0

type AppointmentRepository struct {
	DB                          *gorm.DB
	AppointmentStatusRepository AppointmentStatusRepository
}

func ProvideAppointmentRepository added in v1.0.0

func ProvideAppointmentRepository(DB *gorm.DB, appointmentStatusRepository AppointmentStatusRepository) AppointmentRepository

func (*AppointmentRepository) CreateNewAppointment added in v1.0.0

func (r *AppointmentRepository) CreateNewAppointment(m *models.Appointment, billingID *int, invoiceNo *string) error

CreateNewAppointment ... Creates a new appointment along with PatientChart

func (*AppointmentRepository) Delete added in v1.0.0

func (r *AppointmentRepository) Delete(ID int) error

Delete ...

func (*AppointmentRepository) FindAppointmentsByPatientAndRange added in v1.0.0

func (r *AppointmentRepository) FindAppointmentsByPatientAndRange(patientID int, start time.Time, end time.Time) ([]*models.Appointment, error)

FindAppointmentsByPatientAndRange ...

func (*AppointmentRepository) FindByProvider added in v1.0.0

func (r *AppointmentRepository) FindByProvider(p models.PaginationInput, searchTerm *string, visitTypes []string, userID int) ([]models.Appointment, int64, error)

FindByProvider ...

func (*AppointmentRepository) FindByUserSubscriptions added in v1.0.0

func (r *AppointmentRepository) FindByUserSubscriptions(ids []int, searchTerm *string, visitTypes []string, p models.PaginationInput) ([]models.Appointment, int64, error)

GetByIds ...

func (*AppointmentRepository) FindTodaysAppointments added in v1.0.0

func (r *AppointmentRepository) FindTodaysAppointments(p models.PaginationInput, searchTerm *string) ([]models.Appointment, int64, error)

FindTodaysAppointments ...

func (*AppointmentRepository) FindTodaysCheckedInAppointments added in v1.0.0

func (r *AppointmentRepository) FindTodaysCheckedInAppointments(p models.PaginationInput, searchTerm *string, visitTypes []string) ([]models.Appointment, int64, error)

FindTodaysCheckedInAppointments ...

func (*AppointmentRepository) Get added in v1.0.0

Get ...

func (*AppointmentRepository) GetAll added in v1.0.0

GetAll ...

func (*AppointmentRepository) GetByIds added in v1.0.0

GetByIds ...

func (*AppointmentRepository) GetWithDetails added in v1.0.0

func (r *AppointmentRepository) GetWithDetails(m *models.Appointment, ID int) error

GetWithDetails ...

func (*AppointmentRepository) NurseHomeStats added in v1.0.0

func (r *AppointmentRepository) NurseHomeStats() (int, int, int, error)

NurseHomeStats ...

func (*AppointmentRepository) PatientsAppointmentToday added in v1.0.0

func (r *AppointmentRepository) PatientsAppointmentToday(patientID int, checkedIn *bool) (models.Appointment, error)

PatientsAppointmentsToday ...

func (*AppointmentRepository) PayForConsultation added in v1.0.0

func (r *AppointmentRepository) PayForConsultation(patientID int, date *time.Time) (bool, error)

PayForConsultation ...

func (*AppointmentRepository) PhysicianHomeStats added in v1.0.0

func (r *AppointmentRepository) PhysicianHomeStats(userId int) (int, int, int, error)

PhysicianHomeStats ...

func (*AppointmentRepository) ReceptionHomeStats added in v1.0.0

func (r *AppointmentRepository) ReceptionHomeStats() (int, int, int, error)

ReceptionHomeStats ...

func (*AppointmentRepository) Save added in v1.0.0

Save ...

func (*AppointmentRepository) SchedulePostOp added in v1.0.0

func (r *AppointmentRepository) SchedulePostOp(m *models.Appointment, appointment models.Appointment) error

SchedulePostOp ...

func (*AppointmentRepository) SearchAppointments added in v1.0.0

SearchAppointments ...

func (*AppointmentRepository) Update added in v1.0.0

Update ...

type AppointmentStatusRepository added in v1.0.0

type AppointmentStatusRepository struct {
	DB *gorm.DB
}

func ProvideAppointmentStatusRepository added in v1.0.0

func ProvideAppointmentStatusRepository(DB *gorm.DB) AppointmentStatusRepository

func (*AppointmentStatusRepository) Delete added in v1.0.0

func (r *AppointmentStatusRepository) Delete(ID int) error

Delete ...

func (*AppointmentStatusRepository) Get added in v1.0.0

Get ...

func (*AppointmentStatusRepository) GetAll added in v1.0.0

GetAll ...

func (*AppointmentStatusRepository) GetByTitle added in v1.0.0

GetByTitle ...

func (*AppointmentStatusRepository) Save added in v1.0.0

Save ...

func (*AppointmentStatusRepository) Seed added in v1.0.0

func (r *AppointmentStatusRepository) Seed()

Seed ...

func (*AppointmentStatusRepository) Update added in v1.0.0

Update ...

type AutoRefractionRepository added in v1.0.0

type AutoRefractionRepository struct {
	DB *gorm.DB
}

func ProvideAutoRefractionRepository added in v1.0.0

func ProvideAutoRefractionRepository(DB *gorm.DB) AutoRefractionRepository

func (*AutoRefractionRepository) Get added in v1.0.0

Get ...

func (*AutoRefractionRepository) GetByPatientChart added in v1.0.0

func (r *AutoRefractionRepository) GetByPatientChart(m *models.AutoRefraction, ID int) error

GetByPatientChart ...

func (*AutoRefractionRepository) Save added in v1.0.0

Save ...

func (*AutoRefractionRepository) SaveForPatientChart added in v1.0.0

func (r *AutoRefractionRepository) SaveForPatientChart(m *models.AutoRefraction) error

SaveForPatientChart ...

func (*AutoRefractionRepository) Update added in v1.0.0

Update ...

type BillingRepository added in v1.0.0

type BillingRepository struct {
	DB *gorm.DB
}

func ProvideBillingRepository added in v1.0.0

func ProvideBillingRepository(DB *gorm.DB) BillingRepository

func (*BillingRepository) Delete added in v1.0.0

func (r *BillingRepository) Delete(ID int) error

Delete ...

func (*BillingRepository) Get added in v1.0.0

func (r *BillingRepository) Get(m *models.Billing, ID int) error

Get ...

func (*BillingRepository) GetAll added in v1.0.0

GetAll ...

func (*BillingRepository) GetByIds added in v1.0.0

func (r *BillingRepository) GetByIds(ids []*int) ([]models.Billing, error)

GetByIds ...

func (*BillingRepository) GetConsultationBillings added in v1.0.0

func (r *BillingRepository) GetConsultationBillings() ([]*models.Billing, error)

GetConsultationBillings ...

func (*BillingRepository) Save added in v1.0.0

func (r *BillingRepository) Save(m *models.Billing) error

Save ...

func (*BillingRepository) Search added in v1.0.0

func (r *BillingRepository) Search(p models.PaginationInput, filter *models.Billing, searchTerm *string) ([]models.Billing, int64, error)

Search ...

func (*BillingRepository) Seed added in v1.1.0

func (r *BillingRepository) Seed()

Seed ...

func (*BillingRepository) Update added in v1.0.0

func (r *BillingRepository) Update(m *models.Billing) error

Update ...

type ChatDeleteRepository added in v1.0.0

type ChatDeleteRepository struct {
	DB *gorm.DB
}

func ProvideChatDeleteRepository added in v1.0.0

func ProvideChatDeleteRepository(DB *gorm.DB) ChatDeleteRepository

func (*ChatDeleteRepository) Delete added in v1.0.0

func (r *ChatDeleteRepository) Delete(userID int, chatID int) error

Delete ...

func (*ChatDeleteRepository) Get added in v1.0.0

Get ...

func (*ChatDeleteRepository) Save added in v1.0.0

Save ...

func (*ChatDeleteRepository) Update added in v1.0.0

Update ...

type ChatMemberRepository added in v1.0.0

type ChatMemberRepository struct {
	DB *gorm.DB
}

func ProvideChatMemberRepository added in v1.0.0

func ProvideChatMemberRepository(DB *gorm.DB) ChatMemberRepository

func (*ChatMemberRepository) Delete added in v1.0.0

func (r *ChatMemberRepository) Delete(userID int, chatID int) error

Delete ...

func (*ChatMemberRepository) FindCommonChatID added in v1.0.0

func (r *ChatMemberRepository) FindCommonChatID(userID int, recipientID int) (int, error)

FindCommonChatID ...

func (*ChatMemberRepository) Get added in v1.0.0

Get ...

func (*ChatMemberRepository) GetByChatID added in v1.0.0

func (r *ChatMemberRepository) GetByChatID(ID int) ([]*models.ChatMember, error)

GetByChatID ...

func (*ChatMemberRepository) Save added in v1.0.0

Save ...

func (*ChatMemberRepository) Update added in v1.0.0

Update ...

type ChatMessageRepository added in v1.0.0

type ChatMessageRepository struct {
	DB *gorm.DB
}

func ProvideChatMessageRepository added in v1.0.0

func ProvideChatMessageRepository(DB *gorm.DB) ChatMessageRepository

func (*ChatMessageRepository) Get added in v1.0.0

Get ...

func (*ChatMessageRepository) GetByChatID added in v1.0.0

func (r *ChatMessageRepository) GetByChatID(ID int) ([]*models.ChatMessage, error)

GetByChatID ...

func (*ChatMessageRepository) Save added in v1.0.0

Save ...

func (*ChatMessageRepository) Update added in v1.0.0

Update ...

type ChatMuteRepository added in v1.0.0

type ChatMuteRepository struct {
	DB *gorm.DB
}

func ProvideChatMuteRepository added in v1.0.0

func ProvideChatMuteRepository(DB *gorm.DB) ChatMuteRepository

func (*ChatMuteRepository) Delete added in v1.0.0

func (r *ChatMuteRepository) Delete(userID int, chatID int) error

Delete ...

func (*ChatMuteRepository) Get added in v1.0.0

func (r *ChatMuteRepository) Get(m *models.ChatMute, ID int) error

Get ...

func (*ChatMuteRepository) Save added in v1.0.0

Save ...

func (*ChatMuteRepository) Update added in v1.0.0

func (r *ChatMuteRepository) Update(m *models.ChatMute) error

Update ...

type ChatRepository added in v1.0.0

type ChatRepository struct {
	DB *gorm.DB
}

func ProvideChatRepository added in v1.0.0

func ProvideChatRepository(DB *gorm.DB) ChatRepository

func (*ChatRepository) Delete added in v1.0.0

func (r *ChatRepository) Delete(ID int) error

Delete ...

func (*ChatRepository) Get added in v1.0.0

func (r *ChatRepository) Get(m *models.Chat, ID int) error

Get ...

func (*ChatRepository) GetUserChats added in v1.0.0

func (r *ChatRepository) GetUserChats(userID int) ([]*models.Chat, error)

GetUserChats ...

func (*ChatRepository) Save added in v1.0.0

func (r *ChatRepository) Save(m *models.Chat) error

Save ...

func (*ChatRepository) Update added in v1.0.0

func (r *ChatRepository) Update(m *models.Chat) error

Update ...

type ChatUnreadRepository added in v1.0.0

type ChatUnreadRepository struct {
	DB *gorm.DB
}

func ProvideChatUnreadRepository added in v1.0.0

func ProvideChatUnreadRepository(DB *gorm.DB) ChatUnreadRepository

func (*ChatUnreadRepository) Delete added in v1.0.0

Delete ...

func (*ChatUnreadRepository) DeleteForUserChat added in v1.0.0

func (r *ChatUnreadRepository) DeleteForUserChat(userID int, chatID int) error

Delete ...

func (*ChatUnreadRepository) Get added in v1.0.0

Get ...

func (*ChatUnreadRepository) GetByUserID added in v1.0.0

func (r *ChatUnreadRepository) GetByUserID(ID int) ([]*models.ChatUnreadMessage, error)

GetByUserID ...

func (*ChatUnreadRepository) Save added in v1.0.0

Save ...

func (*ChatUnreadRepository) Update added in v1.0.0

Update ...

type ChiefComplaintRepository added in v1.0.0

type ChiefComplaintRepository struct {
	DB *gorm.DB
}

func ProvideChiefComplaintRepository added in v1.0.0

func ProvideChiefComplaintRepository(DB *gorm.DB) ChiefComplaintRepository

func (*ChiefComplaintRepository) Delete added in v1.0.0

func (r *ChiefComplaintRepository) Delete(ID int) error

Delete ...

func (*ChiefComplaintRepository) Get added in v1.0.0

Get ...

func (*ChiefComplaintRepository) GetAll added in v1.0.0

GetAll ...

func (*ChiefComplaintRepository) Save added in v1.0.0

Save ...

func (*ChiefComplaintRepository) Search added in v1.0.0

Search ...

func (*ChiefComplaintRepository) Update added in v1.0.0

Update ...

type ChiefComplaintTypeRepository added in v1.0.0

type ChiefComplaintTypeRepository struct {
	DB                               *gorm.DB
	FavoriteChiefComplaintRepository FavoriteChiefComplaintRepository
}

func ProvideChiefComplaintTypeRepository added in v1.0.0

func ProvideChiefComplaintTypeRepository(DB *gorm.DB, favoriteChiefComplaintRepository FavoriteChiefComplaintRepository) ChiefComplaintTypeRepository

func (*ChiefComplaintTypeRepository) Delete added in v1.0.0

func (r *ChiefComplaintTypeRepository) Delete(ID int) error

Delete ...

func (*ChiefComplaintTypeRepository) Get added in v1.0.0

Get ...

func (*ChiefComplaintTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*ChiefComplaintTypeRepository) GetByTitle added in v1.0.0

GetByTitle ...

func (*ChiefComplaintTypeRepository) GetFavorites added in v1.0.0

func (r *ChiefComplaintTypeRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.ChiefComplaintType, int64, error)

GetFavorites ...

func (*ChiefComplaintTypeRepository) Save added in v1.0.0

Save ...

func (*ChiefComplaintTypeRepository) Update added in v1.0.0

Update ...

type CoverTestRepository added in v1.0.0

type CoverTestRepository struct {
	DB *gorm.DB
}

func ProvideCoverTestRepository added in v1.0.0

func ProvideCoverTestRepository(DB *gorm.DB) CoverTestRepository

func (*CoverTestRepository) Get added in v1.0.0

Get ...

func (*CoverTestRepository) GetByPatientChart added in v1.0.0

func (r *CoverTestRepository) GetByPatientChart(m *models.CoverTest, ID int) error

GetByPatientChart ...

func (*CoverTestRepository) Save added in v1.0.0

Save ...

func (*CoverTestRepository) SaveForPatientChart added in v1.0.0

func (r *CoverTestRepository) SaveForPatientChart(m *models.CoverTest) error

SaveForPatientChart ...

func (*CoverTestRepository) Update added in v1.0.0

func (r *CoverTestRepository) Update(m *models.CoverTest) error

Update ...

type DiagnosisRepository added in v1.0.0

type DiagnosisRepository struct {
	DB                          *gorm.DB
	FavoriteDiagnosisRepository FavoriteDiagnosisRepository
}

func ProvideDiagnosisRepository added in v1.0.0

func ProvideDiagnosisRepository(DB *gorm.DB, favoriteDiagnosisRepository FavoriteDiagnosisRepository) DiagnosisRepository

func (*DiagnosisRepository) Delete added in v1.0.0

func (r *DiagnosisRepository) Delete(ID int) error

Delete ...

func (*DiagnosisRepository) Get added in v1.0.0

func (r *DiagnosisRepository) Get(m *models.Diagnosis, ID int) error

Get ...

func (*DiagnosisRepository) GetAll added in v1.0.0

func (r *DiagnosisRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Diagnosis, int64, error)

GetAll ...

func (*DiagnosisRepository) GetByTitle added in v1.0.0

func (r *DiagnosisRepository) GetByTitle(m *models.Diagnosis, title string) error

GetByTitle ...

func (*DiagnosisRepository) GetFavorites added in v1.0.0

func (r *DiagnosisRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.Diagnosis, int64, error)

GetFavorites ...

func (*DiagnosisRepository) Save added in v1.0.0

Save ...

func (*DiagnosisRepository) Update added in v1.0.0

func (r *DiagnosisRepository) Update(m *models.Diagnosis) error

Update ...

type DiagnosticProcedureOrderRepository added in v1.0.0

type DiagnosticProcedureOrderRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureOrderRepository added in v1.0.0

func ProvideDiagnosticProcedureOrderRepository(DB *gorm.DB) DiagnosticProcedureOrderRepository

func (*DiagnosticProcedureOrderRepository) Confirm added in v1.0.0

Confirm ...

func (*DiagnosticProcedureOrderRepository) Delete added in v1.0.0

Delete ...

func (*DiagnosticProcedureOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*DiagnosticProcedureOrderRepository) GetByPatientChartID added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) GetByPatientChartID(m *models.DiagnosticProcedureOrder, patientChartID int) error

GetByPatientChartID ...

func (*DiagnosticProcedureOrderRepository) GetCount added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) GetCount(filter *models.DiagnosticProcedureOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles(patientID int) ([]string, error)

GetPatientDiagnosticOrderTitles ...

func (*DiagnosticProcedureOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*DiagnosticProcedureOrderRepository) OrderAndConfirm added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) OrderAndConfirm()

OrderAndConfirm ...

func (*DiagnosticProcedureOrderRepository) Save added in v1.0.0

func (r *DiagnosticProcedureOrderRepository) Save(m *models.DiagnosticProcedureOrder, diagnosticProcedureTypeID int, patientChartID int, patientID int, billingID int, user models.User, orderNote string, receptionNote string) error

Save ...

func (*DiagnosticProcedureOrderRepository) Search added in v1.0.0

Search ...

func (*DiagnosticProcedureOrderRepository) Update added in v1.0.0

Update ...

type DiagnosticProcedureRepository added in v1.0.0

type DiagnosticProcedureRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureRepository added in v1.0.0

func ProvideDiagnosticProcedureRepository(DB *gorm.DB) DiagnosticProcedureRepository

func (*DiagnosticProcedureRepository) ClearAssociation added in v1.0.0

func (r *DiagnosticProcedureRepository) ClearAssociation(association string, diagnosticProcedureID int) error

ClearAssociation ...

func (*DiagnosticProcedureRepository) Delete added in v1.0.0

func (r *DiagnosticProcedureRepository) Delete(ID int) error

Delete ...

func (*DiagnosticProcedureRepository) DeleteFile added in v1.0.0

func (r *DiagnosticProcedureRepository) DeleteFile(association string, diagnosticProcedureID int, fileID int) error

DeleteFile ...

func (*DiagnosticProcedureRepository) Get added in v1.0.0

Get ...

func (*DiagnosticProcedureRepository) GetAll added in v1.0.0

GetAll ...

func (*DiagnosticProcedureRepository) GetByPatientChartID added in v1.0.0

func (r *DiagnosticProcedureRepository) GetByPatientChartID(m *models.DiagnosticProcedure, ID int) error

GetByPatientChartID ...

func (*DiagnosticProcedureRepository) GetRefraction added in v1.0.0

func (r *DiagnosticProcedureRepository) GetRefraction(m *models.DiagnosticProcedure, patientChartID int) error

GetRefraction ...

func (*DiagnosticProcedureRepository) Save added in v1.0.0

Save ...

func (*DiagnosticProcedureRepository) Update added in v1.0.0

Update ...

type DiagnosticProcedureTypeRepository added in v1.0.0

type DiagnosticProcedureTypeRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureTypeRepository added in v1.0.0

func ProvideDiagnosticProcedureTypeRepository(DB *gorm.DB) DiagnosticProcedureTypeRepository

func (*DiagnosticProcedureTypeRepository) Delete added in v1.0.0

Delete ...

func (*DiagnosticProcedureTypeRepository) Get added in v1.0.0

Get ...

func (*DiagnosticProcedureTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*DiagnosticProcedureTypeRepository) GetByTitle added in v1.0.0

GetByTitle ...

func (*DiagnosticProcedureTypeRepository) Save added in v1.0.0

Save ...

func (*DiagnosticProcedureTypeRepository) Update added in v1.0.0

Update ...

type ExamCategoryRepository added in v1.0.0

type ExamCategoryRepository struct {
	DB *gorm.DB
}

func ProvideExamCategoryRepository added in v1.0.0

func ProvideExamCategoryRepository(DB *gorm.DB) ExamCategoryRepository

func (*ExamCategoryRepository) Delete added in v1.0.0

func (r *ExamCategoryRepository) Delete(ID int) error

Delete ...

func (*ExamCategoryRepository) Get added in v1.0.0

Get ...

func (*ExamCategoryRepository) GetAll added in v1.0.0

GetAll ...

func (*ExamCategoryRepository) GetByTitle added in v1.0.0

func (r *ExamCategoryRepository) GetByTitle(m *models.ExamCategory, title string) error

GetByTitle ...

func (*ExamCategoryRepository) Save added in v1.0.0

Save ...

func (*ExamCategoryRepository) Update added in v1.0.0

Update ...

type ExamFindingRepository added in v1.0.0

type ExamFindingRepository struct {
	DB *gorm.DB
}

func ProvideExamFindingRepository added in v1.0.0

func ProvideExamFindingRepository(DB *gorm.DB) ExamFindingRepository

func (*ExamFindingRepository) Delete added in v1.0.0

func (r *ExamFindingRepository) Delete(ID int) error

Delete ...

func (*ExamFindingRepository) Get added in v1.0.0

Get ...

func (*ExamFindingRepository) GetAll added in v1.0.0

GetAll ...

func (*ExamFindingRepository) GetByTitle added in v1.0.0

func (r *ExamFindingRepository) GetByTitle(m *models.ExamFinding, title string) error

GetByTitle ...

func (*ExamFindingRepository) Save added in v1.0.0

Save ...

func (*ExamFindingRepository) Update added in v1.0.0

Update ...

type ExternalExamRepository added in v1.0.0

type ExternalExamRepository struct {
	DB *gorm.DB
}

func ProvideExternalExamRepository added in v1.0.0

func ProvideExternalExamRepository(DB *gorm.DB) ExternalExamRepository

func (*ExternalExamRepository) Get added in v1.0.0

Get ...

func (*ExternalExamRepository) GetByPatientChart added in v1.0.0

func (r *ExternalExamRepository) GetByPatientChart(m *models.ExternalExam, ID int) error

GetByPatientChart ...

func (*ExternalExamRepository) Save added in v1.0.0

Save ...

func (*ExternalExamRepository) SaveForPatientChart added in v1.0.0

func (r *ExternalExamRepository) SaveForPatientChart(m *models.ExternalExam) error

SaveForPatientChart ...

func (*ExternalExamRepository) Update added in v1.0.0

Update ...

type EyewearPrescriptionOrderRepository added in v1.0.0

type EyewearPrescriptionOrderRepository struct {
	DB *gorm.DB
}

func ProvideEyewearPrescriptionOrderRepository added in v1.0.0

func ProvideEyewearPrescriptionOrderRepository(DB *gorm.DB) EyewearPrescriptionOrderRepository

func (*EyewearPrescriptionOrderRepository) Delete added in v1.0.0

Delete ...

func (*EyewearPrescriptionOrderRepository) Get added in v1.0.0

Get ...

func (*EyewearPrescriptionOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*EyewearPrescriptionOrderRepository) GetByPatientChartID added in v1.0.0

func (r *EyewearPrescriptionOrderRepository) GetByPatientChartID(m *models.EyewearPrescriptionOrder, patientChartID int) error

GetByPatientChartID ...

func (*EyewearPrescriptionOrderRepository) Save added in v1.0.0

Save ...

func (*EyewearPrescriptionOrderRepository) SaveEyewearPrescription added in v1.0.0

func (r *EyewearPrescriptionOrderRepository) SaveEyewearPrescription(m *models.EyewearPrescriptionOrder, eyewearPrescription models.EyewearPrescription, patientID int) error

SaveEyewearPrescription ...

func (*EyewearPrescriptionOrderRepository) Search added in v1.0.0

Search ...

func (*EyewearPrescriptionOrderRepository) Update added in v1.0.0

Update ...

type EyewearPrescriptionRepository added in v1.0.0

type EyewearPrescriptionRepository struct {
	DB *gorm.DB
}

func ProvideEyewearPrescriptionRepository added in v1.0.0

func ProvideEyewearPrescriptionRepository(DB *gorm.DB) EyewearPrescriptionRepository

func (*EyewearPrescriptionRepository) Delete added in v1.0.0

func (r *EyewearPrescriptionRepository) Delete(ID int) error

Delete ...

func (*EyewearPrescriptionRepository) Get added in v1.0.0

Get ...

func (*EyewearPrescriptionRepository) GetAll added in v1.0.0

GetAll ...

func (*EyewearPrescriptionRepository) Save added in v1.0.0

Save ...

func (*EyewearPrescriptionRepository) Update added in v1.0.0

Update ...

type EyewearShopRepository added in v1.0.0

type EyewearShopRepository struct {
	DB *gorm.DB
}

func ProvideEyewearShopRepository added in v1.0.0

func ProvideEyewearShopRepository(DB *gorm.DB) EyewearShopRepository

func (*EyewearShopRepository) Delete added in v1.0.0

func (r *EyewearShopRepository) Delete(ID int) error

Delete ...

func (*EyewearShopRepository) Get added in v1.0.0

Get ...

func (*EyewearShopRepository) GetAll added in v1.0.0

GetAll ...

func (*EyewearShopRepository) Save added in v1.0.0

Save ...

func (*EyewearShopRepository) Update added in v1.0.0

Update ...

type FamilyIllnessRepository added in v1.0.0

type FamilyIllnessRepository struct {
	DB *gorm.DB
}

func ProvideFamilyIllnessRepository added in v1.0.0

func ProvideFamilyIllnessRepository(DB *gorm.DB) FamilyIllnessRepository

func (*FamilyIllnessRepository) Delete added in v1.0.0

func (r *FamilyIllnessRepository) Delete(ID int) error

Delete ...

func (*FamilyIllnessRepository) Get added in v1.0.0

Get ...

func (*FamilyIllnessRepository) GetByPatientHistoryID added in v1.0.0

func (r *FamilyIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.FamilyIllness, error)

GetByPatientHistoryID ...

func (*FamilyIllnessRepository) Save added in v1.0.0

Save ...

func (*FamilyIllnessRepository) Update added in v1.0.0

Update ...

type FavoriteChiefComplaintRepository added in v1.0.0

type FavoriteChiefComplaintRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteChiefComplaintRepository added in v1.0.0

func ProvideFavoriteChiefComplaintRepository(DB *gorm.DB) FavoriteChiefComplaintRepository

func (*FavoriteChiefComplaintRepository) Delete added in v1.0.0

Delete ...

func (*FavoriteChiefComplaintRepository) Get added in v1.0.0

Get ...

func (*FavoriteChiefComplaintRepository) GetByUser added in v1.0.0

GetByUser ...

func (*FavoriteChiefComplaintRepository) Save added in v1.0.0

Save ...

func (*FavoriteChiefComplaintRepository) Update added in v1.0.0

Update ...

type FavoriteDiagnosisRepository added in v1.0.0

type FavoriteDiagnosisRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteDiagnosisRepository added in v1.0.0

func ProvideFavoriteDiagnosisRepository(DB *gorm.DB) FavoriteDiagnosisRepository

func (*FavoriteDiagnosisRepository) Delete added in v1.0.0

func (r *FavoriteDiagnosisRepository) Delete(id int) error

Delete ...

func (*FavoriteDiagnosisRepository) Get added in v1.0.0

Get ...

func (*FavoriteDiagnosisRepository) GetByUser added in v1.0.0

GetByUser ...

func (*FavoriteDiagnosisRepository) Save added in v1.0.0

Save ...

func (*FavoriteDiagnosisRepository) Update added in v1.0.0

Update ...

type FavoriteMedicationRepository added in v1.0.0

type FavoriteMedicationRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteMedicationRepository added in v1.0.0

func ProvideFavoriteMedicationRepository(DB *gorm.DB) FavoriteMedicationRepository

func (*FavoriteMedicationRepository) Delete added in v1.0.0

func (r *FavoriteMedicationRepository) Delete(ID int) error

Delete ...

func (*FavoriteMedicationRepository) Get added in v1.0.0

Get ...

func (*FavoriteMedicationRepository) GetAll added in v1.0.0

GetAll ...

func (*FavoriteMedicationRepository) Save added in v1.0.0

Save ...

func (*FavoriteMedicationRepository) Search added in v1.0.0

Search ...

func (*FavoriteMedicationRepository) Update added in v1.0.0

Update ...

type FileRepository added in v1.0.0

type FileRepository struct {
	DB *gorm.DB
}

func ProvideFileRepository added in v1.0.0

func ProvideFileRepository(DB *gorm.DB) FileRepository

func (*FileRepository) Get added in v1.0.0

func (r *FileRepository) Get(m *models.File, ID int) error

Get ...

func (*FileRepository) Save added in v1.0.0

func (r *FileRepository) Save(m *models.File) error

Save ...

func (*FileRepository) Update added in v1.0.0

func (r *FileRepository) Update(m *models.File) error

Update ...

type FollowUpOrderRepository added in v1.0.0

type FollowUpOrderRepository struct {
	DB *gorm.DB
}

func ProvideFollowUpOrderRepository added in v1.0.0

func ProvideFollowUpOrderRepository(DB *gorm.DB) FollowUpOrderRepository

func (*FollowUpOrderRepository) ConfirmOrder added in v1.0.0

func (r *FollowUpOrderRepository) ConfirmOrder(m *models.FollowUpOrder, followUpOrderID int, followUpID int, billingID *int, invoiceNo *string, roomID int, checkInTime time.Time) error

ConfirmOrder ...

func (*FollowUpOrderRepository) Delete added in v1.0.0

func (r *FollowUpOrderRepository) Delete(ID int) error

Delete ...

func (*FollowUpOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*FollowUpOrderRepository) GetByPatientChartID added in v1.0.0

func (r *FollowUpOrderRepository) GetByPatientChartID(m *models.FollowUpOrder, patientChartID int) error

GetByPatientChartID ...

func (*FollowUpOrderRepository) GetCount added in v1.0.0

func (r *FollowUpOrderRepository) GetCount(filter *models.FollowUpOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*FollowUpOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *FollowUpOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*FollowUpOrderRepository) Save added in v1.0.0

func (r *FollowUpOrderRepository) Save(m *models.FollowUpOrder, patientChartID int, patientID int, user models.User, receptionNote string) error

Save ...

func (*FollowUpOrderRepository) Search added in v1.0.0

func (r *FollowUpOrderRepository) Search(p models.PaginationInput, filter *models.FollowUpOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.FollowUpOrder, int64, error)

Search ...

func (*FollowUpOrderRepository) Update added in v1.0.0

Update ...

type FollowUpRepository added in v1.0.0

type FollowUpRepository struct {
	DB *gorm.DB
}

func ProvideFollowUpRepository added in v1.0.0

func ProvideFollowUpRepository(DB *gorm.DB) FollowUpRepository

func (*FollowUpRepository) Delete added in v1.0.0

func (r *FollowUpRepository) Delete(ID int) error

Delete ...

func (*FollowUpRepository) Get added in v1.0.0

func (r *FollowUpRepository) Get(m *models.FollowUp, ID int) error

Get ...

func (*FollowUpRepository) GetAll added in v1.0.0

GetAll ...

func (*FollowUpRepository) GetByPatientChart added in v1.0.0

func (r *FollowUpRepository) GetByPatientChart(m *models.FollowUp, ID int) error

GetByPatientChart ...

func (*FollowUpRepository) Save added in v1.0.0

Save ...

func (*FollowUpRepository) Update added in v1.0.0

func (r *FollowUpRepository) Update(m *models.FollowUp) error

Update ...

type FunduscopyRepository added in v1.0.0

type FunduscopyRepository struct {
	DB *gorm.DB
}

func ProvideFunduscopyRepository added in v1.0.0

func ProvideFunduscopyRepository(DB *gorm.DB) FunduscopyRepository

func (*FunduscopyRepository) Get added in v1.0.0

Get ...

func (*FunduscopyRepository) GetByPatientChart added in v1.0.0

func (r *FunduscopyRepository) GetByPatientChart(m *models.Funduscopy, ID int) error

GetByPatientChart ...

func (*FunduscopyRepository) Save added in v1.0.0

Save ...

func (*FunduscopyRepository) SaveForPatientChart added in v1.0.0

func (r *FunduscopyRepository) SaveForPatientChart(m *models.Funduscopy) error

SaveForPatientChart ...

func (*FunduscopyRepository) Update added in v1.0.0

Update ...

type HpiComponentRepository added in v1.0.0

type HpiComponentRepository struct {
	DB *gorm.DB
}

func ProvideHpiComponentRepository added in v1.0.0

func ProvideHpiComponentRepository(DB *gorm.DB) HpiComponentRepository

func (*HpiComponentRepository) Delete added in v1.0.0

func (r *HpiComponentRepository) Delete(ID int) error

Delete ...

func (*HpiComponentRepository) Get added in v1.0.0

Get ...

func (*HpiComponentRepository) GetAll added in v1.0.0

GetAll ...

func (*HpiComponentRepository) GetByIds added in v1.0.0

func (r *HpiComponentRepository) GetByIds(ids []*int) ([]models.HpiComponent, error)

GetByIds ...

func (*HpiComponentRepository) Save added in v1.0.0

Save ...

func (*HpiComponentRepository) Search added in v1.0.0

Search ...

func (*HpiComponentRepository) Update added in v1.0.0

Update ...

type HpiComponentTypeRepository added in v1.0.0

type HpiComponentTypeRepository struct {
	DB *gorm.DB
}

func ProvideHpiComponentTypeRepository added in v1.0.0

func ProvideHpiComponentTypeRepository(DB *gorm.DB) HpiComponentTypeRepository

func (*HpiComponentTypeRepository) Count added in v1.0.0

func (r *HpiComponentTypeRepository) Count(dbString string) (int64, error)

Count ...

func (*HpiComponentTypeRepository) Delete added in v1.0.0

func (r *HpiComponentTypeRepository) Delete(ID int) error

Delete ...

func (*HpiComponentTypeRepository) Get added in v1.0.0

Get ...

func (*HpiComponentTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*HpiComponentTypeRepository) Save added in v1.0.0

Save ...

func (*HpiComponentTypeRepository) Update added in v1.0.0

Update ...

type IopRepository added in v1.0.0

type IopRepository struct {
	DB *gorm.DB
}

func ProvideIopRepository added in v1.0.0

func ProvideIopRepository(DB *gorm.DB) IopRepository

func (*IopRepository) Get added in v1.0.0

func (r *IopRepository) Get(m *models.Iop, filter models.Iop) error

Get ...

func (*IopRepository) GetByPatientChart added in v1.0.0

func (r *IopRepository) GetByPatientChart(m *models.Iop, ID int) error

GetByPatientChart ...

func (*IopRepository) Save added in v1.0.0

func (r *IopRepository) Save(m *models.Iop) error

Save ...

func (*IopRepository) SaveForPatientChart added in v1.0.0

func (r *IopRepository) SaveForPatientChart(m *models.Iop) error

SaveForPatientChart ...

func (*IopRepository) Update added in v1.0.0

func (r *IopRepository) Update(m *models.Iop) error

Update ...

type LabOrderRepository added in v1.0.0

type LabOrderRepository struct {
	DB *gorm.DB
}

func ProvideLabOrderRepository added in v1.0.0

func ProvideLabOrderRepository(DB *gorm.DB) LabOrderRepository

func (*LabOrderRepository) Confirm added in v1.0.0

func (r *LabOrderRepository) Confirm(m *models.LabOrder, id int, invoiceNo string) error

Confirm ...

func (*LabOrderRepository) Delete added in v1.0.0

func (r *LabOrderRepository) Delete(m *models.LabOrder, ID int) error

Delete ...

func (*LabOrderRepository) Get added in v1.0.0

func (r *LabOrderRepository) Get(m *models.LabOrder, ID int) error

Get ...

func (*LabOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*LabOrderRepository) GetByPatientChartID added in v1.0.0

func (r *LabOrderRepository) GetByPatientChartID(m *models.LabOrder, patientChartID int) error

GetByPatientChartID ...

func (*LabOrderRepository) GetCount added in v1.0.0

func (r *LabOrderRepository) GetCount(filter *models.LabOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*LabOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *LabOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*LabOrderRepository) Save added in v1.0.0

func (r *LabOrderRepository) Save(m *models.LabOrder, labTypeID int, patientChartID int, patientID int, billingIds []int, user models.User, orderNote string, receptionNote string) error

NewOrder ...

func (*LabOrderRepository) Search added in v1.0.0

func (r *LabOrderRepository) Search(p models.PaginationInput, filter *models.LabOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.LabOrder, int64, error)

Search ...

func (*LabOrderRepository) Update added in v1.0.0

func (r *LabOrderRepository) Update(m *models.LabOrder) error

Update ...

type LabRepository added in v1.0.0

type LabRepository struct {
	DB *gorm.DB
}

func ProvideLabRepository added in v1.0.0

func ProvideLabRepository(DB *gorm.DB) LabRepository

func (*LabRepository) ClearAssociation added in v1.0.0

func (r *LabRepository) ClearAssociation(association string, labID int) error

ClearAssociation ...

func (*LabRepository) Delete added in v1.0.0

func (r *LabRepository) Delete(ID int) error

Delete ...

func (*LabRepository) DeleteFile added in v1.0.0

func (r *LabRepository) DeleteFile(association string, LabID int, fileID int) error

DeleteFile ...

func (*LabRepository) Get added in v1.0.0

func (r *LabRepository) Get(m *models.Lab, ID int) error

Get ...

func (*LabRepository) GetAll added in v1.0.0

func (r *LabRepository) GetAll(p models.PaginationInput, filter *models.Lab) ([]models.Lab, int64, error)

GetAll ...

func (*LabRepository) GetByPatientChartID added in v1.0.0

func (r *LabRepository) GetByPatientChartID(m *models.Lab, ID int) error

GetByPatientChartID ...

func (*LabRepository) Save added in v1.0.0

func (r *LabRepository) Save(m *models.Lab) error

Save ...

func (*LabRepository) Update added in v1.0.0

func (r *LabRepository) Update(m *models.Lab) error

Update ...

type LabTypeRepository added in v1.0.0

type LabTypeRepository struct {
	DB *gorm.DB
}

func ProvideLabTypeRepository added in v1.0.0

func ProvideLabTypeRepository(DB *gorm.DB) LabTypeRepository

func (*LabTypeRepository) Delete added in v1.0.0

func (r *LabTypeRepository) Delete(ID int) error

Delete ...

func (*LabTypeRepository) Get added in v1.0.0

func (r *LabTypeRepository) Get(m *models.LabType, ID int) error

Get ...

func (*LabTypeRepository) GetAll added in v1.0.0

func (r *LabTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.LabType, int64, error)

GetAll ...

func (*LabTypeRepository) GetByTitle added in v1.0.0

func (r *LabTypeRepository) GetByTitle(m *models.LabType, title string) error

GetByTitle ...

func (*LabTypeRepository) Save added in v1.0.0

func (r *LabTypeRepository) Save(m *models.LabType) error

Save ...

func (*LabTypeRepository) Update added in v1.0.0

func (r *LabTypeRepository) Update(m *models.LabType) error

Update ...

type LifestyleRepository added in v1.0.0

type LifestyleRepository struct {
	DB *gorm.DB
}

func ProvideLifestyleRepository added in v1.0.0

func ProvideLifestyleRepository(DB *gorm.DB) LifestyleRepository

func (*LifestyleRepository) Delete added in v1.0.0

func (r *LifestyleRepository) Delete(ID int) error

Delete ...

func (*LifestyleRepository) Get added in v1.0.0

func (r *LifestyleRepository) Get(m *models.Lifestyle, ID int) error

Get ...

func (*LifestyleRepository) GetByPatientHistoryID added in v1.0.0

func (r *LifestyleRepository) GetByPatientHistoryID(ID int) ([]*models.Lifestyle, error)

GetByPatientHistoryID ...

func (*LifestyleRepository) Save added in v1.0.0

Save ...

func (*LifestyleRepository) Update added in v1.0.0

func (r *LifestyleRepository) Update(m *models.Lifestyle) error

Update ...

type LifestyleTypeRepository added in v1.0.0

type LifestyleTypeRepository struct {
	DB *gorm.DB
}

func ProvideLifestyleTypeRepository added in v1.0.0

func ProvideLifestyleTypeRepository(DB *gorm.DB) LifestyleTypeRepository

func (*LifestyleTypeRepository) Delete added in v1.0.0

func (r *LifestyleTypeRepository) Delete(ID int) error

Delete ...

func (*LifestyleTypeRepository) Get added in v1.0.0

Get ...

func (*LifestyleTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*LifestyleTypeRepository) GetByTitle added in v1.0.0

func (r *LifestyleTypeRepository) GetByTitle(m *models.LifestyleType, title string) error

GetByTitle ...

func (*LifestyleTypeRepository) Save added in v1.0.0

Save ...

func (*LifestyleTypeRepository) Update added in v1.0.0

Update ...

type MedicalPrescriptionOrderRepository added in v1.0.0

type MedicalPrescriptionOrderRepository struct {
	DB *gorm.DB
}

func ProvideMedicalPrescriptionOrderRepository added in v1.0.0

func ProvideMedicalPrescriptionOrderRepository(DB *gorm.DB) MedicalPrescriptionOrderRepository

func (*MedicalPrescriptionOrderRepository) Delete added in v1.0.0

Delete ...

func (*MedicalPrescriptionOrderRepository) Get added in v1.0.0

Get ...

func (*MedicalPrescriptionOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*MedicalPrescriptionOrderRepository) GetByPatientChartID added in v1.0.0

func (r *MedicalPrescriptionOrderRepository) GetByPatientChartID(m *models.MedicalPrescriptionOrder, patientChartID int) error

GetByPatientChartID ...

func (*MedicalPrescriptionOrderRepository) SaveMedicalPrescription added in v1.0.0

func (r *MedicalPrescriptionOrderRepository) SaveMedicalPrescription(m *models.MedicalPrescriptionOrder, medicalPrescription models.MedicalPrescription, patientID int) error

SaveMedicalPrescription ...

func (*MedicalPrescriptionOrderRepository) Search added in v1.0.0

Search ...

func (*MedicalPrescriptionOrderRepository) Update added in v1.0.0

Update ...

type MedicalPrescriptionRepository added in v1.0.0

type MedicalPrescriptionRepository struct {
	DB *gorm.DB
}

func ProvideMedicalPrescriptionRepository added in v1.0.0

func ProvideMedicalPrescriptionRepository(DB *gorm.DB) MedicalPrescriptionRepository

func (*MedicalPrescriptionRepository) Delete added in v1.0.0

Delete ...

func (*MedicalPrescriptionRepository) Get added in v1.0.0

Get ...

func (*MedicalPrescriptionRepository) GetAll added in v1.0.0

GetAll ...

func (*MedicalPrescriptionRepository) Save added in v1.0.0

Save ...

func (*MedicalPrescriptionRepository) Search added in v1.0.0

Search ...

func (*MedicalPrescriptionRepository) Update added in v1.0.0

Update ...

type OcularMotilityRepository added in v1.0.0

type OcularMotilityRepository struct {
	DB *gorm.DB
}

func ProvideOcularMotilityRepository added in v1.0.0

func ProvideOcularMotilityRepository(DB *gorm.DB) OcularMotilityRepository

func (*OcularMotilityRepository) Get added in v1.0.0

Get ...

func (*OcularMotilityRepository) GetByPatientChart added in v1.0.0

func (r *OcularMotilityRepository) GetByPatientChart(m *models.OcularMotility, ID int) error

GetByPatientChart ...

func (*OcularMotilityRepository) Save added in v1.0.0

Save ...

func (*OcularMotilityRepository) SaveForPatientChart added in v1.0.0

func (r *OcularMotilityRepository) SaveForPatientChart(m *models.OcularMotility) error

SaveForPatientChart ...

func (*OcularMotilityRepository) Update added in v1.0.0

Update ...

type OpthalmologyExamRepository added in v1.0.0

type OpthalmologyExamRepository struct {
	DB *gorm.DB
}

func ProvideOpthalmologyExamRepository added in v1.0.0

func ProvideOpthalmologyExamRepository(DB *gorm.DB) OpthalmologyExamRepository

func (*OpthalmologyExamRepository) Get added in v1.0.0

Get ...

func (*OpthalmologyExamRepository) GetByPatientChart added in v1.0.0

func (r *OpthalmologyExamRepository) GetByPatientChart(m *models.OpthalmologyExam, ID int) error

GetByPatientChart ...

func (*OpthalmologyExamRepository) Save added in v1.0.0

Save ...

func (*OpthalmologyExamRepository) Update added in v1.0.0

Update ...

type OpticDiscRepository added in v1.0.0

type OpticDiscRepository struct {
	DB *gorm.DB
}

func ProvideOpticDiscRepository added in v1.0.0

func ProvideOpticDiscRepository(DB *gorm.DB) OpticDiscRepository

func (*OpticDiscRepository) Get added in v1.0.0

Get ...

func (*OpticDiscRepository) GetByPatientChart added in v1.0.0

func (r *OpticDiscRepository) GetByPatientChart(m *models.OpticDisc, ID int) error

GetByPatientChart ...

func (*OpticDiscRepository) Save added in v1.0.0

Save ...

func (*OpticDiscRepository) SaveForPatientChart added in v1.0.0

func (r *OpticDiscRepository) SaveForPatientChart(m *models.OpticDisc) error

SaveForPatientChart ...

func (*OpticDiscRepository) Update added in v1.0.0

func (r *OpticDiscRepository) Update(m *models.OpticDisc) error

Update ...

type OrganizationDetailsRepository added in v1.0.0

type OrganizationDetailsRepository struct {
	DB *gorm.DB
}

func ProvideOrganizationDetailsRepository added in v1.0.0

func ProvideOrganizationDetailsRepository(DB *gorm.DB) OrganizationDetailsRepository

func (*OrganizationDetailsRepository) Get added in v1.0.0

Get ...

func (*OrganizationDetailsRepository) Save added in v1.0.0

Save ...

func (*OrganizationDetailsRepository) Update added in v1.0.0

Update ...

type PaginationInput

type PaginationInput struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

PaginationInput ...

type PastHospitalizationRepository added in v1.0.0

type PastHospitalizationRepository struct {
	DB *gorm.DB
}

func ProvidePastHospitalizationRepository added in v1.0.0

func ProvidePastHospitalizationRepository(DB *gorm.DB) PastHospitalizationRepository

func (*PastHospitalizationRepository) Delete added in v1.0.0

func (r *PastHospitalizationRepository) Delete(ID int) error

Delete ...

func (*PastHospitalizationRepository) Get added in v1.0.0

Get ...

func (*PastHospitalizationRepository) GetByPatientHistoryID added in v1.0.0

func (r *PastHospitalizationRepository) GetByPatientHistoryID(ID int) ([]*models.PastHospitalization, error)

GetByPatientHistoryID ...

func (*PastHospitalizationRepository) Save added in v1.0.0

Save ...

func (*PastHospitalizationRepository) Update added in v1.0.0

Update ...

type PastIllnessRepository added in v1.0.0

type PastIllnessRepository struct {
	DB *gorm.DB
}

func ProvidePastIllnessRepository added in v1.0.0

func ProvidePastIllnessRepository(DB *gorm.DB) PastIllnessRepository

func (*PastIllnessRepository) Delete added in v1.0.0

func (r *PastIllnessRepository) Delete(ID int) error

Delete ...

func (*PastIllnessRepository) Get added in v1.0.0

Get ...

func (*PastIllnessRepository) GetByPatientHistoryID added in v1.0.0

func (r *PastIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.PastIllness, error)

GetByPatientHistoryID ...

func (*PastIllnessRepository) Save added in v1.0.0

Save ...

func (*PastIllnessRepository) Update added in v1.0.0

Update ...

type PastIllnessTypeRepository added in v1.0.0

type PastIllnessTypeRepository struct {
	DB *gorm.DB
}

func ProvidePastIllnessTypeRepository added in v1.0.0

func ProvidePastIllnessTypeRepository(DB *gorm.DB) PastIllnessTypeRepository

func (*PastIllnessTypeRepository) Delete added in v1.0.0

func (r *PastIllnessTypeRepository) Delete(ID int) error

Delete ...

func (*PastIllnessTypeRepository) Get added in v1.0.0

Get ...

func (*PastIllnessTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*PastIllnessTypeRepository) GetByTitle added in v1.0.0

func (r *PastIllnessTypeRepository) GetByTitle(m *models.PastIllnessType, title string) error

GetByTitle ...

func (*PastIllnessTypeRepository) Save added in v1.0.0

Save ...

func (*PastIllnessTypeRepository) Update added in v1.0.0

Update ...

type PastInjuryRepository added in v1.0.0

type PastInjuryRepository struct {
	DB *gorm.DB
}

func ProvidePastInjuryRepository added in v1.0.0

func ProvidePastInjuryRepository(DB *gorm.DB) PastInjuryRepository

func (*PastInjuryRepository) Delete added in v1.0.0

func (r *PastInjuryRepository) Delete(ID int) error

Delete ...

func (*PastInjuryRepository) Get added in v1.0.0

Get ...

func (*PastInjuryRepository) GetByPatientHistoryID added in v1.0.0

func (r *PastInjuryRepository) GetByPatientHistoryID(ID int) ([]*models.PastInjury, error)

GetByPatientHistoryID ...

func (*PastInjuryRepository) Save added in v1.0.0

Save ...

func (*PastInjuryRepository) Update added in v1.0.0

Update ...

type PastOptSurgeryRepository added in v1.0.0

type PastOptSurgeryRepository struct {
	DB *gorm.DB
}

func ProvidePastOptSurgeryRepository added in v1.0.0

func ProvidePastOptSurgeryRepository(DB *gorm.DB) PastOptSurgeryRepository

func (*PastOptSurgeryRepository) Delete added in v1.0.0

func (r *PastOptSurgeryRepository) Delete(ID int) error

Delete ...

func (*PastOptSurgeryRepository) Get added in v1.0.0

Get ...

func (*PastOptSurgeryRepository) Save added in v1.0.0

Save ...

func (*PastOptSurgeryRepository) Update added in v1.0.0

Update ...

type PastSurgeryRepository added in v1.0.0

type PastSurgeryRepository struct {
	DB *gorm.DB
}

func ProvidePastSurgeryRepository added in v1.0.0

func ProvidePastSurgeryRepository(DB *gorm.DB) PastSurgeryRepository

func (*PastSurgeryRepository) Delete added in v1.0.0

func (r *PastSurgeryRepository) Delete(ID int) error

Delete ...

func (*PastSurgeryRepository) Get added in v1.0.0

Get ...

func (*PastSurgeryRepository) GetByPatientHistoryID added in v1.0.0

func (r *PastSurgeryRepository) GetByPatientHistoryID(ID int) ([]*models.PastSurgery, error)

GetByPatientHistoryID ...

func (*PastSurgeryRepository) Save added in v1.0.0

Save ...

func (*PastSurgeryRepository) Update added in v1.0.0

Update ...

type PatientChartRepository added in v1.0.0

type PatientChartRepository struct {
	DB *gorm.DB
}

func ProvidePatientChartRepository added in v1.0.0

func ProvidePatientChartRepository(DB *gorm.DB) PatientChartRepository

func (*PatientChartRepository) Get added in v1.0.0

Get ...

func (*PatientChartRepository) GetByAppointmentID added in v1.0.0

func (r *PatientChartRepository) GetByAppointmentID(m *models.PatientChart, appointmentID int) error

GetByAppointmentID ...

func (*PatientChartRepository) GetWithDetails added in v1.0.0

func (r *PatientChartRepository) GetWithDetails(m *models.PatientChart, ID int) error

Get ...

func (*PatientChartRepository) Save added in v1.0.0

Save ...

func (*PatientChartRepository) SignAndLock added in v1.0.0

func (r *PatientChartRepository) SignAndLock(m *models.PatientChart, patientChartID int, userID *int) error

SignAndLock ...

func (*PatientChartRepository) Update added in v1.0.0

Update ...

type PatientDiagnosisRepository added in v1.0.0

type PatientDiagnosisRepository struct {
	DB *gorm.DB
}

func ProvidePatientDiagnosisRepository added in v1.0.0

func ProvidePatientDiagnosisRepository(DB *gorm.DB) PatientDiagnosisRepository

func (*PatientDiagnosisRepository) Delete added in v1.0.0

func (r *PatientDiagnosisRepository) Delete(ID int) error

Delete ...

func (*PatientDiagnosisRepository) Get added in v1.0.0

Get ...

func (*PatientDiagnosisRepository) GetAll added in v1.0.0

GetAll ...

func (*PatientDiagnosisRepository) GetByPatientChartID added in v1.0.0

func (r *PatientDiagnosisRepository) GetByPatientChartID(m *models.PatientDiagnosis, ID int) error

GetByPatientChartID ...

func (*PatientDiagnosisRepository) Save added in v1.0.0

func (r *PatientDiagnosisRepository) Save(m *models.PatientDiagnosis, diagnosisID int) error

Save ...

func (*PatientDiagnosisRepository) Update added in v1.0.0

Update ...

type PatientEncounterLimitRepository added in v1.0.0

type PatientEncounterLimitRepository struct {
	DB *gorm.DB
}

func ProvidePatientEncounterLimitRepository added in v1.0.0

func ProvidePatientEncounterLimitRepository(DB *gorm.DB) PatientEncounterLimitRepository

func (*PatientEncounterLimitRepository) Delete added in v1.0.0

Delete ...

func (*PatientEncounterLimitRepository) Get added in v1.0.0

Get ...

func (*PatientEncounterLimitRepository) GetAll added in v1.0.0

GetAll ...

func (*PatientEncounterLimitRepository) GetByUser added in v1.0.0

GetByUser ...

func (*PatientEncounterLimitRepository) Save added in v1.0.0

Save ...

func (*PatientEncounterLimitRepository) Update added in v1.0.0

Update ...

type PatientHistoryRepository added in v1.0.0

type PatientHistoryRepository struct {
	DB *gorm.DB
}

func ProvidePatientHistoryRepository added in v1.0.0

func ProvidePatientHistoryRepository(DB *gorm.DB) PatientHistoryRepository

func (*PatientHistoryRepository) Delete added in v1.0.0

func (r *PatientHistoryRepository) Delete(ID int) error

Delete ...

func (*PatientHistoryRepository) Get added in v1.0.0

Get ...

func (*PatientHistoryRepository) GetByPatientID added in v1.0.0

func (r *PatientHistoryRepository) GetByPatientID(m *models.PatientHistory, ID int) error

GetByPatientID ...

func (*PatientHistoryRepository) GetByPatientIDWithDetails added in v1.0.0

func (r *PatientHistoryRepository) GetByPatientIDWithDetails(m *models.PatientHistory, ID int) error

GetByPatientIDWithDetails ...

func (*PatientHistoryRepository) Save added in v1.0.0

Save ...

func (*PatientHistoryRepository) Update added in v1.0.0

Update ...

type PatientQueueRepository added in v1.0.0

type PatientQueueRepository struct {
	DB *gorm.DB
}

func ProvidePatientQueueRepository added in v1.0.0

func ProvidePatientQueueRepository(DB *gorm.DB) PatientQueueRepository

func (*PatientQueueRepository) AddToQueue added in v1.0.0

func (r *PatientQueueRepository) AddToQueue(m *models.PatientQueue, toQueueName string, appointmentID int, queueType string) error

AddToQueue

func (*PatientQueueRepository) ClearExpired added in v1.0.0

func (r *PatientQueueRepository) ClearExpired() error

ClearExpired ...

func (*PatientQueueRepository) DeleteFromQueue added in v1.0.0

func (r *PatientQueueRepository) DeleteFromQueue(m *models.PatientQueue, patientQueueID int, appointmentID int) error

DeleteFromQueue ...

func (*PatientQueueRepository) Get added in v1.0.0

Get ...

func (*PatientQueueRepository) GetAll added in v1.0.0

func (r *PatientQueueRepository) GetAll() ([]*models.PatientQueue, error)

GetAll

func (*PatientQueueRepository) GetByQueueName added in v1.0.0

func (r *PatientQueueRepository) GetByQueueName(m *models.PatientQueue, queueName string) error

GetByQueueName ...

func (*PatientQueueRepository) Move added in v1.0.0

func (r *PatientQueueRepository) Move(m *models.PatientQueue, fromQueueID int, toQueueID int, appointmentID int) error

Move ...

func (*PatientQueueRepository) MoveToQueueName added in v1.0.0

func (r *PatientQueueRepository) MoveToQueueName(fromQueueID int, toQueueName string, appointmentID int, queueType string) error

MoveToQueueName ...

func (*PatientQueueRepository) Save added in v1.0.0

Save

func (*PatientQueueRepository) Seed added in v1.1.0

func (r *PatientQueueRepository) Seed()

Seed ...

func (*PatientQueueRepository) UpdateQueue added in v1.0.0

func (r *PatientQueueRepository) UpdateQueue(queueName string, queue datatypes.JSON) error

GetByQueueName ...

type PatientRepository added in v1.0.0

type PatientRepository struct {
	DB *gorm.DB
}

func ProvidePatientRepository added in v1.0.0

func ProvidePatientRepository(DB *gorm.DB) PatientRepository

func (*PatientRepository) Clean added in v1.0.0

func (r *PatientRepository) Clean() error

Clean ...

func (*PatientRepository) Delete added in v1.0.0

func (r *PatientRepository) Delete(ID int) error

Delete ...

func (*PatientRepository) FindByCardNo added in v1.0.0

func (r *PatientRepository) FindByCardNo(m *models.Patient, cardNo string) error

FindByCardNo ...

func (*PatientRepository) FindByName added in v1.0.0

func (r *PatientRepository) FindByName(firstName string, lastName string) ([]*models.Patient, error)

FindByName ...

func (*PatientRepository) FindByPhoneNo added in v1.0.0

func (r *PatientRepository) FindByPhoneNo(phoneNo string) ([]*models.Patient, error)

FindByPhoneNo ...

func (*PatientRepository) Get added in v1.0.0

func (r *PatientRepository) Get(m *models.Patient, ID int) error

Get ...

func (*PatientRepository) GetAll added in v1.0.0

GetAll ...

func (*PatientRepository) GetAllProgress added in v1.0.0

func (r *PatientRepository) GetAllProgress(patientID int) (*models.PatientHistory, []*models.Appointment, error)

GetAllProgress ...

func (*PatientRepository) GetAllProgressNotes added in v1.0.0

func (r *PatientRepository) GetAllProgressNotes(appointmentID int) (*models.PatientHistory, []*models.Appointment, error)

GetAllProgressNotes ...

func (*PatientRepository) GetPatientDiagnosticProcedures added in v1.0.0

func (r *PatientRepository) GetPatientDiagnosticProcedures(patientID int, diagnosticProcedureTypeTitle string) ([]*models.Appointment, error)

GetPatientDiagnosticProcedures ...

func (*PatientRepository) GetPatientFiles added in v1.0.0

func (r *PatientRepository) GetPatientFiles(patientID int) ([]*models.File, error)

GetPatientFiles ...

func (*PatientRepository) GetVitalSignsProgress added in v1.0.0

func (r *PatientRepository) GetVitalSignsProgress(patientID int) ([]*models.Appointment, error)

GetVisionProgress ...

func (*PatientRepository) Save added in v1.0.0

func (r *PatientRepository) Save(m *models.Patient) error

Save ...

func (*PatientRepository) Search added in v1.0.0

func (r *PatientRepository) Search(term string) ([]*models.Patient, error)

Search ...

func (*PatientRepository) Update added in v1.0.0

func (r *PatientRepository) Update(m *models.Patient) error

Update ...

type PaymentRepository added in v1.0.0

type PaymentRepository struct {
	DB *gorm.DB
}

func ProvidePaymentRepository added in v1.0.0

func ProvidePaymentRepository(DB *gorm.DB) PaymentRepository

func (*PaymentRepository) BatchUpdate added in v1.0.0

func (r *PaymentRepository) BatchUpdate(ids []int, e models.Payment) error

BatchUpdate ...

func (*PaymentRepository) Delete added in v1.0.0

func (r *PaymentRepository) Delete(ID int) error

Delete ...

func (*PaymentRepository) Get added in v1.0.0

func (r *PaymentRepository) Get(m *models.Payment, ID int) error

Get ...

func (*PaymentRepository) GetByIds added in v1.0.0

func (r *PaymentRepository) GetByIds(ids []int) ([]models.Payment, error)

Get ...

func (*PaymentRepository) RequestWaiver added in v1.0.0

func (r *PaymentRepository) RequestWaiver(m *models.Payment, paymentID int, patientID int, userID int) error

RequestWaiver ...

func (*PaymentRepository) RequestWaiverBatch added in v1.0.0

func (r *PaymentRepository) RequestWaiverBatch(paymentIds []int, patientId int, userId int) error

RequestWaiverBatch ...

func (*PaymentRepository) Save added in v1.0.0

func (r *PaymentRepository) Save(m *models.Payment) error

Save ...

func (*PaymentRepository) Update added in v1.0.0

func (r *PaymentRepository) Update(m *models.Payment) error

Update ...

type PaymentWaiverRepository added in v1.0.0

type PaymentWaiverRepository struct {
	DB *gorm.DB
}

func ProvidePaymentWaiverRepository added in v1.0.0

func ProvidePaymentWaiverRepository(DB *gorm.DB) PaymentWaiverRepository

func (*PaymentWaiverRepository) ApproveWaiver added in v1.0.0

func (r *PaymentWaiverRepository) ApproveWaiver(m *models.PaymentWaiver, id int, approve bool) error

ApproveWaiver ...

func (*PaymentWaiverRepository) BatchSave added in v1.0.0

func (r *PaymentWaiverRepository) BatchSave(waivers []models.PaymentWaiver) error

BatchSave ...

func (*PaymentWaiverRepository) Delete added in v1.0.0

func (r *PaymentWaiverRepository) Delete(ID int) error

Delete ...

func (*PaymentWaiverRepository) Get added in v1.0.0

Get ...

func (*PaymentWaiverRepository) GetAll added in v1.0.0

GetAll ...

func (*PaymentWaiverRepository) GetApprovedCount added in v1.0.0

func (r *PaymentWaiverRepository) GetApprovedCount() (int, error)

GetCount ...

func (*PaymentWaiverRepository) Save added in v1.0.0

Save ...

func (*PaymentWaiverRepository) Update added in v1.0.0

Update ...

type PharmacyRepository added in v1.0.0

type PharmacyRepository struct {
	DB *gorm.DB
}

func ProvidePharmacyRepository added in v1.0.0

func ProvidePharmacyRepository(DB *gorm.DB) PharmacyRepository

func (*PharmacyRepository) Delete added in v1.0.0

func (r *PharmacyRepository) Delete(ID int) error

Delete ...

func (*PharmacyRepository) Get added in v1.0.0

func (r *PharmacyRepository) Get(m *models.Pharmacy, ID int) error

Get ...

func (*PharmacyRepository) GetAll added in v1.0.0

GetAll ...

func (*PharmacyRepository) Save added in v1.0.0

Save ...

func (*PharmacyRepository) Update added in v1.0.0

func (r *PharmacyRepository) Update(m *models.Pharmacy) error

Update ...

type PhysicalExamFindingRepository added in v1.0.0

type PhysicalExamFindingRepository struct {
	DB *gorm.DB
}

func ProvidePhysicalExamFindingRepository added in v1.0.0

func ProvidePhysicalExamFindingRepository(DB *gorm.DB) PhysicalExamFindingRepository

func (*PhysicalExamFindingRepository) Delete added in v1.0.0

func (r *PhysicalExamFindingRepository) Delete(ID int) error

Delete ...

func (*PhysicalExamFindingRepository) DeleteExamCategory added in v1.0.0

func (r *PhysicalExamFindingRepository) DeleteExamCategory(m *models.PhysicalExamFinding, physicalExamFindingID int, examCategoryID int) error

DeleteExamCategory

func (*PhysicalExamFindingRepository) Get added in v1.0.0

Get ...

func (*PhysicalExamFindingRepository) GetAll added in v1.0.0

GetAll ...

func (*PhysicalExamFindingRepository) GetByPatientChartID added in v1.0.0

func (r *PhysicalExamFindingRepository) GetByPatientChartID(m *models.PhysicalExamFinding, id string) error

GetByTitle ...

func (*PhysicalExamFindingRepository) Save added in v1.0.0

Save ...

func (*PhysicalExamFindingRepository) Update added in v1.0.0

Update ...

type PupilsRepository added in v1.0.0

type PupilsRepository struct {
	DB *gorm.DB
}

func ProvidePupilsRepository added in v1.0.0

func ProvidePupilsRepository(DB *gorm.DB) PupilsRepository

func (*PupilsRepository) Get added in v1.0.0

func (r *PupilsRepository) Get(m *models.Pupils, filter models.Pupils) error

Get ...

func (*PupilsRepository) GetByPatientChart added in v1.0.0

func (r *PupilsRepository) GetByPatientChart(m *models.Pupils, ID int) error

GetByPatientChart ...

func (*PupilsRepository) Save added in v1.0.0

func (r *PupilsRepository) Save(m *models.Pupils) error

Save ...

func (*PupilsRepository) SaveForPatientChart added in v1.0.0

func (r *PupilsRepository) SaveForPatientChart(m *models.Pupils) error

SaveForPatientChart ...

func (*PupilsRepository) Update added in v1.0.0

func (r *PupilsRepository) Update(m *models.Pupils) error

Update ...

type QueueDestinationRepository added in v1.0.0

type QueueDestinationRepository struct {
	DB *gorm.DB
}

func ProvideQueueDestinationRepository added in v1.0.0

func ProvideQueueDestinationRepository(DB *gorm.DB) QueueDestinationRepository

func (*QueueDestinationRepository) Delete added in v1.0.0

func (r *QueueDestinationRepository) Delete(ID int) error

Delete ...

func (*QueueDestinationRepository) Get added in v1.0.0

Get ...

func (*QueueDestinationRepository) GetAll added in v1.0.0

GetAll ...

func (*QueueDestinationRepository) GetByTitle added in v1.0.0

GetByTitle ...

func (*QueueDestinationRepository) GetUserTypeFromDestination added in v1.0.0

func (r *QueueDestinationRepository) GetUserTypeFromDestination(destination string) string

GetUserTypeFromDestination ...

func (*QueueDestinationRepository) Save added in v1.0.0

Save ...

func (*QueueDestinationRepository) Seed added in v1.0.0

func (r *QueueDestinationRepository) Seed()

Seed ...

func (*QueueDestinationRepository) Update added in v1.0.0

Update ...

type QueueSubscriptionRepository added in v1.0.0

type QueueSubscriptionRepository struct {
	DB *gorm.DB
}

func ProvideQueueSubscriptionRepository added in v1.0.0

func ProvideQueueSubscriptionRepository(DB *gorm.DB) QueueSubscriptionRepository

func (*QueueSubscriptionRepository) GetByUserId added in v1.0.0

func (r *QueueSubscriptionRepository) GetByUserId(m *models.QueueSubscription, userID int) error

GetByUserId ...

func (*QueueSubscriptionRepository) Save added in v1.0.0

Save

func (*QueueSubscriptionRepository) Subscribe added in v1.0.0

func (r *QueueSubscriptionRepository) Subscribe(m *models.QueueSubscription, userId int, patientQueueId int) error

Subscribe ...

func (*QueueSubscriptionRepository) Unsubscribe added in v1.0.0

func (r *QueueSubscriptionRepository) Unsubscribe(m *models.QueueSubscription, userId int, patientQueueId int) error

Unsubscribe ...

type ReferralOrderRepository added in v1.0.0

type ReferralOrderRepository struct {
	DB *gorm.DB
}

func ProvideReferralOrderRepository added in v1.0.0

func ProvideReferralOrderRepository(DB *gorm.DB) ReferralOrderRepository

func (*ReferralOrderRepository) ConfirmOrder added in v1.0.0

func (r *ReferralOrderRepository) ConfirmOrder(m *models.ReferralOrder, referralOrderID int, referralID int, billingID *int, invoiceNo *string, roomID *int, checkInTime *time.Time) error

ConfirmOrder ...

func (*ReferralOrderRepository) Delete added in v1.0.0

func (r *ReferralOrderRepository) Delete(ID int) error

Delete ...

func (*ReferralOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*ReferralOrderRepository) GetByPatientChartID added in v1.0.0

func (r *ReferralOrderRepository) GetByPatientChartID(m *models.ReferralOrder, patientChartID int) error

GetByPatientChartID ...

func (*ReferralOrderRepository) GetCount added in v1.0.0

func (r *ReferralOrderRepository) GetCount(filter *models.ReferralOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*ReferralOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *ReferralOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*ReferralOrderRepository) Save added in v1.0.0

func (r *ReferralOrderRepository) Save(m *models.ReferralOrder, patientChartID int, patientID int, orderedToID *int, referralType models.ReferralType, user models.User, receptionNote *string, reason string, providerName *string) error

Save ...

func (*ReferralOrderRepository) Search added in v1.0.0

func (r *ReferralOrderRepository) Search(p models.PaginationInput, filter *models.ReferralOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.ReferralOrder, int64, error)

Search ...

func (*ReferralOrderRepository) Update added in v1.0.0

Update ...

type ReferralRepository added in v1.0.0

type ReferralRepository struct {
	DB *gorm.DB
}

func ProvideReferralRepository added in v1.0.0

func ProvideReferralRepository(DB *gorm.DB) ReferralRepository

func (*ReferralRepository) Delete added in v1.0.0

func (r *ReferralRepository) Delete(m *models.Referral, ID int) error

Delete ...

func (*ReferralRepository) Get added in v1.0.0

func (r *ReferralRepository) Get(m *models.Referral, ID int) error

Get ...

func (*ReferralRepository) GetAll added in v1.0.0

GetAll ...

func (*ReferralRepository) GetByOrderID added in v1.0.0

func (r *ReferralRepository) GetByOrderID(m *models.Referral, ID int) error

Get ...

func (*ReferralRepository) Save added in v1.0.0

Save ...

func (*ReferralRepository) Update added in v1.0.0

func (r *ReferralRepository) Update(m *models.Referral) error

Update ...

type ReviewOfSystemRepository added in v1.0.0

type ReviewOfSystemRepository struct {
	DB *gorm.DB
}

func ProvideReviewOfSystemRepository added in v1.0.0

func ProvideReviewOfSystemRepository(DB *gorm.DB) ReviewOfSystemRepository

func (*ReviewOfSystemRepository) Delete added in v1.0.0

func (r *ReviewOfSystemRepository) Delete(ID int) error

Delete ...

func (*ReviewOfSystemRepository) Get added in v1.0.0

Get ...

func (*ReviewOfSystemRepository) GetAll added in v1.0.0

GetAll ...

func (*ReviewOfSystemRepository) GetByPatientHistoryID added in v1.0.0

func (r *ReviewOfSystemRepository) GetByPatientHistoryID(m *models.ReviewOfSystem, ID string) error

GetByTitle ...

func (*ReviewOfSystemRepository) Save added in v1.0.0

Save ...

func (*ReviewOfSystemRepository) Update added in v1.0.0

Update ...

type RoomRepository added in v1.0.0

type RoomRepository struct {
	DB *gorm.DB
}

func ProvideRoomRepository added in v1.0.0

func ProvideRoomRepository(DB *gorm.DB) RoomRepository

func (*RoomRepository) Delete added in v1.0.0

func (r *RoomRepository) Delete(ID int) error

Delete ...

func (*RoomRepository) Get added in v1.0.0

func (r *RoomRepository) Get(m *models.Room, ID int) error

Get ...

func (*RoomRepository) GetAll added in v1.0.0

GetAll ...

func (*RoomRepository) GetByTitle added in v1.0.0

func (r *RoomRepository) GetByTitle(m *models.Room, title string) error

GetByTitle ...

func (*RoomRepository) Save added in v1.0.0

func (r *RoomRepository) Save(m *models.Room) error

Save ...

func (*RoomRepository) Seed added in v1.1.0

func (r *RoomRepository) Seed()

Seed ...

func (*RoomRepository) Update added in v1.0.0

func (r *RoomRepository) Update(m *models.Room) error

Update ...

type SlitLampExamRepository added in v1.0.0

type SlitLampExamRepository struct {
	DB *gorm.DB
}

func ProvideSlitLampExamRepository added in v1.0.0

func ProvideSlitLampExamRepository(DB *gorm.DB) SlitLampExamRepository

func (*SlitLampExamRepository) Get added in v1.0.0

Get ...

func (*SlitLampExamRepository) GetByPatientChart added in v1.0.0

func (r *SlitLampExamRepository) GetByPatientChart(m *models.SlitLampExam, ID int) error

GetByPatientChart ...

func (*SlitLampExamRepository) Save added in v1.0.0

Save ...

func (*SlitLampExamRepository) SaveForPatientChart added in v1.0.0

func (r *SlitLampExamRepository) SaveForPatientChart(m *models.SlitLampExam) error

SaveForPatientChart ...

func (*SlitLampExamRepository) Update added in v1.0.0

Update ...

type SupplyRepository added in v1.0.0

type SupplyRepository struct {
	DB *gorm.DB
}

func ProvideSupplyRepository added in v1.0.0

func ProvideSupplyRepository(DB *gorm.DB) SupplyRepository

func (*SupplyRepository) Delete added in v1.0.0

func (r *SupplyRepository) Delete(ID int) error

Delete ...

func (*SupplyRepository) Get added in v1.0.0

func (r *SupplyRepository) Get(m *models.Supply, ID int) error

Get ...

func (*SupplyRepository) GetAll added in v1.0.0

func (r *SupplyRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Supply, int64, error)

GetAll ...

func (*SupplyRepository) GetByIds added in v1.0.0

func (r *SupplyRepository) GetByIds(ids []*int) ([]models.Supply, error)

GetByIds ...

func (*SupplyRepository) GetByTitle added in v1.0.0

func (r *SupplyRepository) GetByTitle(m *models.Supply, title string) error

GetByTitle ...

func (*SupplyRepository) Save added in v1.0.0

func (r *SupplyRepository) Save(m *models.Supply) error

Save ...

func (*SupplyRepository) Update added in v1.0.0

func (r *SupplyRepository) Update(m *models.Supply) error

Update ...

type SurgicalOrderRepository added in v1.0.0

type SurgicalOrderRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalOrderRepository added in v1.0.0

func ProvideSurgicalOrderRepository(DB *gorm.DB) SurgicalOrderRepository

func (*SurgicalOrderRepository) ConfirmOrder added in v1.0.0

func (r *SurgicalOrderRepository) ConfirmOrder(m *models.SurgicalOrder, surgicalOrderID int, surgicalProcedureID int, invoiceNo string, roomID int, checkInTime time.Time) error

ConfirmOrder ...

func (*SurgicalOrderRepository) Delete added in v1.0.0

func (r *SurgicalOrderRepository) Delete(ID int) error

Delete ...

func (*SurgicalOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*SurgicalOrderRepository) GetByPatientChartID added in v1.0.0

func (r *SurgicalOrderRepository) GetByPatientChartID(m *models.SurgicalOrder, patientChartID int) error

GetByPatientChartID ...

func (*SurgicalOrderRepository) GetCount added in v1.0.0

func (r *SurgicalOrderRepository) GetCount(filter *models.SurgicalOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*SurgicalOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *SurgicalOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*SurgicalOrderRepository) SaveOpthalmologyOrder added in v1.0.0

func (r *SurgicalOrderRepository) SaveOpthalmologyOrder(m *models.SurgicalOrder, surgicalProcedureTypeID int, patientChartID int, patientID int, billingID int, user models.User, performOnEye string, orderNote string, receptionNote string) error

SaveOpthalmologyOrder ...

func (*SurgicalOrderRepository) Search added in v1.0.0

func (r *SurgicalOrderRepository) Search(p models.PaginationInput, filter *models.SurgicalOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.SurgicalOrder, int64, error)

Search ...

func (*SurgicalOrderRepository) Update added in v1.0.0

Update ...

type SurgicalProcedureRepository added in v1.0.0

type SurgicalProcedureRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalProcedureRepository added in v1.0.0

func ProvideSurgicalProcedureRepository(DB *gorm.DB) SurgicalProcedureRepository

func (*SurgicalProcedureRepository) Delete added in v1.0.0

func (r *SurgicalProcedureRepository) Delete(ID int) error

Delete ...

func (*SurgicalProcedureRepository) DeleteFile added in v1.0.0

func (r *SurgicalProcedureRepository) DeleteFile(association string, surgicalProcedureID int, fileID int) error

DeleteFile ...

func (*SurgicalProcedureRepository) Get added in v1.0.0

Get ...

func (*SurgicalProcedureRepository) GetAll added in v1.0.0

GetAll ...

func (*SurgicalProcedureRepository) GetByPatient added in v1.0.0

GetByPatient ...

func (*SurgicalProcedureRepository) GetByPatientChart added in v1.0.0

func (r *SurgicalProcedureRepository) GetByPatientChart(m *models.SurgicalProcedure, ID int) error

GetByPatientChart ...

func (*SurgicalProcedureRepository) Save added in v1.0.0

Save ...

func (*SurgicalProcedureRepository) Update added in v1.0.0

Update ...

type SurgicalProcedureTypeRepository added in v1.0.0

type SurgicalProcedureTypeRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalProcedureTypeRepository added in v1.0.0

func ProvideSurgicalProcedureTypeRepository(DB *gorm.DB) SurgicalProcedureTypeRepository

func (*SurgicalProcedureTypeRepository) Delete added in v1.0.0

Delete ...

func (*SurgicalProcedureTypeRepository) Get added in v1.0.0

Get ...

func (*SurgicalProcedureTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*SurgicalProcedureTypeRepository) GetByTitle added in v1.0.0

GetByTitle ...

func (*SurgicalProcedureTypeRepository) Save added in v1.0.0

Save ...

func (*SurgicalProcedureTypeRepository) Update added in v1.0.0

Update ...

type SystemRepository added in v1.0.0

type SystemRepository struct {
	DB *gorm.DB
}

func ProvideSystemRepository added in v1.0.0

func ProvideSystemRepository(DB *gorm.DB) SystemRepository

func (*SystemRepository) Delete added in v1.0.0

func (r *SystemRepository) Delete(m *models.System, ID int) error

Delete ...

func (*SystemRepository) Get added in v1.0.0

func (r *SystemRepository) Get(m *models.System, ID int) error

Get ...

func (*SystemRepository) GetAll added in v1.0.0

func (r *SystemRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.System, int64, error)

GetAll ...

func (*SystemRepository) GetByTitle added in v1.0.0

func (r *SystemRepository) GetByTitle(m *models.System, title string) error

GetByTitle ...

func (*SystemRepository) Save added in v1.0.0

func (r *SystemRepository) Save(m *models.System) error

Save ...

func (*SystemRepository) Update added in v1.0.0

func (r *SystemRepository) Update(m *models.System) error

Update ...

type SystemSymptomRepository added in v1.0.0

type SystemSymptomRepository struct {
	DB *gorm.DB
}

func ProvideSystemSymptomRepository added in v1.0.0

func ProvideSystemSymptomRepository(DB *gorm.DB) SystemSymptomRepository

func (*SystemSymptomRepository) Delete added in v1.0.0

func (r *SystemSymptomRepository) Delete(ID int) error

Delete ...

func (*SystemSymptomRepository) Get added in v1.0.0

Get ...

func (*SystemSymptomRepository) GetAll added in v1.0.0

GetAll ...

func (*SystemSymptomRepository) GetByTitle added in v1.0.0

func (r *SystemSymptomRepository) GetByTitle(m *models.SystemSymptom, title string) error

GetByTitle ...

func (*SystemSymptomRepository) Save added in v1.0.0

Save ...

func (*SystemSymptomRepository) Update added in v1.0.0

Update ...

type TreatmentOrderRepository added in v1.0.0

type TreatmentOrderRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentOrderRepository added in v1.0.0

func ProvideTreatmentOrderRepository(DB *gorm.DB) TreatmentOrderRepository

func (*TreatmentOrderRepository) ConfirmOrder added in v1.0.0

func (r *TreatmentOrderRepository) ConfirmOrder(m *models.TreatmentOrder, treatmentOrderID int, treatmentID int, invoiceNo string, roomID int, checkInTime time.Time) error

ConfirmOrder ...

func (*TreatmentOrderRepository) Delete added in v1.0.0

func (r *TreatmentOrderRepository) Delete(ID int) error

Delete ...

func (*TreatmentOrderRepository) GetAll added in v1.0.0

GetAll ...

func (*TreatmentOrderRepository) GetByPatientChartID added in v1.0.0

func (r *TreatmentOrderRepository) GetByPatientChartID(m *models.TreatmentOrder, patientChartID int) error

GetByPatientChartID ...

func (*TreatmentOrderRepository) GetCount added in v1.0.0

func (r *TreatmentOrderRepository) GetCount(filter *models.TreatmentOrder, date *time.Time, searchTerm *string) (int64, error)

GetCount ...

func (*TreatmentOrderRepository) GetTodaysOrderedCount added in v1.0.0

func (r *TreatmentOrderRepository) GetTodaysOrderedCount() (count int)

GetTodaysOrderedCount ...

func (*TreatmentOrderRepository) SaveOpthalmologyTreatment added in v1.0.0

func (r *TreatmentOrderRepository) SaveOpthalmologyTreatment(m *models.TreatmentOrder, treatmentTypeID int, patientChartID int, patientID int, billingID int, user models.User, treatmentNote string, orderNote string) error

SaveOpthalmologyTreatment ...

func (*TreatmentOrderRepository) Search added in v1.0.0

func (r *TreatmentOrderRepository) Search(p models.PaginationInput, filter *models.TreatmentOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.TreatmentOrder, int64, error)

Search ...

func (*TreatmentOrderRepository) Update added in v1.0.0

Update ...

type TreatmentRepository added in v1.0.0

type TreatmentRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentRepository added in v1.0.0

func ProvideTreatmentRepository(DB *gorm.DB) TreatmentRepository

func (*TreatmentRepository) Delete added in v1.0.0

func (r *TreatmentRepository) Delete(ID int) error

Delete ...

func (*TreatmentRepository) Get added in v1.0.0

func (r *TreatmentRepository) Get(m *models.Treatment, ID int) error

Get ...

func (*TreatmentRepository) GetAll added in v1.0.0

GetAll ...

func (*TreatmentRepository) GetByPatient added in v1.0.0

func (r *TreatmentRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.Treatment, int64, error)

GetByPatient ...

func (*TreatmentRepository) GetByPatientChart added in v1.0.0

func (r *TreatmentRepository) GetByPatientChart(m *models.Treatment, ID int) error

GetByPatientChart ...

func (*TreatmentRepository) Save added in v1.0.0

Save ...

func (*TreatmentRepository) Update added in v1.0.0

func (r *TreatmentRepository) Update(m *models.Treatment) error

Update ...

type TreatmentStatus

type TreatmentStatus string

TreatmentStatus ...

const (
	TreatmentStatusOrdered   TreatmentStatus = "ORDERED"
	TreatmentStatusCompleted TreatmentStatus = "COMPLETED"
)

SurgicalProcedureOrder statuses ...

type TreatmentTypeRepository added in v1.0.0

type TreatmentTypeRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentTypeRepository added in v1.0.0

func ProvideTreatmentTypeRepository(DB *gorm.DB) TreatmentTypeRepository

func (*TreatmentTypeRepository) Delete added in v1.0.0

func (r *TreatmentTypeRepository) Delete(ID int) error

Delete ...

func (*TreatmentTypeRepository) Get added in v1.0.0

Get ...

func (*TreatmentTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*TreatmentTypeRepository) GetByTitle added in v1.0.0

func (r *TreatmentTypeRepository) GetByTitle(m *models.TreatmentType, title string) error

GetByTitle ...

func (*TreatmentTypeRepository) Save added in v1.0.0

Save ...

func (*TreatmentTypeRepository) Update added in v1.0.0

Update ...

type UserRepository added in v1.0.0

type UserRepository struct {
	DB                 *gorm.DB
	UserTypeRepository UserTypeRepository
}

func ProvideUserRepository added in v1.0.0

func ProvideUserRepository(DB *gorm.DB, userTypeRepository UserTypeRepository) UserRepository

func (*UserRepository) CheckIfUserLegacy added in v1.0.0

func (r *UserRepository) CheckIfUserLegacy(m *models.User, oldUserName string) error

CheckIfUserLegacy ...

func (*UserRepository) Get added in v1.0.0

func (r *UserRepository) Get(m *models.User, ID int) error

Get ...

func (*UserRepository) GetAll added in v1.0.0

func (r *UserRepository) GetAll(p PaginationInput) ([]models.User, int64, error)

GetAll ...

func (*UserRepository) GetByEmail added in v1.0.0

func (r *UserRepository) GetByEmail(m *models.User, email string) error

GetByEmail ...

func (*UserRepository) GetByOldUserName added in v1.0.0

func (r *UserRepository) GetByOldUserName(m *models.User, userName string) error

GetByOldUserName ...

func (*UserRepository) GetByUserType added in v1.0.0

func (r *UserRepository) GetByUserType(m *models.User, userTypeID int) (users []models.User, err error)

GetByUserType ...

func (*UserRepository) GetByUserTypeTitle added in v1.0.0

func (r *UserRepository) GetByUserTypeTitle(userTypeTitle string) ([]*models.User, error)

GetByUserTypeTitle ...

func (*UserRepository) Ping added in v1.0.0

func (r *UserRepository) Ping() error

Ping ...

func (*UserRepository) Save added in v1.0.0

func (r *UserRepository) Save(m *models.User, userTypes []models.UserType) error

Save ...

func (*UserRepository) Search added in v1.0.0

func (r *UserRepository) Search(p models.PaginationInput, filter *models.User, searchTerm *string) ([]models.User, int64, error)

Search ...

func (*UserRepository) SearchPhysicians added in v1.0.0

func (r *UserRepository) SearchPhysicians(searchTerm string) ([]*models.User, error)

Search ...

func (*UserRepository) Seed added in v1.0.0

func (r *UserRepository) Seed()

Seed ...

func (*UserRepository) Update added in v1.0.0

func (r *UserRepository) Update(m *models.User, userTypes []models.UserType) error

Update ...

type UserTypeRepository added in v1.0.0

type UserTypeRepository struct {
	DB *gorm.DB
}

func ProvideUserTypeRepository added in v1.0.0

func ProvideUserTypeRepository(DB *gorm.DB) UserTypeRepository

func (*UserTypeRepository) Delete added in v1.0.0

func (r *UserTypeRepository) Delete(ID int) error

Delete ...

func (*UserTypeRepository) Get added in v1.0.0

func (r *UserTypeRepository) Get(m *models.UserType, ID int) error

Get ...

func (*UserTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*UserTypeRepository) GetByIds added in v1.0.0

func (r *UserTypeRepository) GetByIds(ids []*int) ([]models.UserType, error)

GetByIds

func (*UserTypeRepository) GetByTitle added in v1.0.0

func (r *UserTypeRepository) GetByTitle(m *models.UserType, title string) error

GetByTitle ...

func (*UserTypeRepository) Save added in v1.0.0

Save ...

func (*UserTypeRepository) Seed added in v1.0.0

func (r *UserTypeRepository) Seed()

Seed ...

func (*UserTypeRepository) Update added in v1.0.0

func (r *UserTypeRepository) Update(m *models.UserType) error

Update ...

type VisitTypeRepository added in v1.0.0

type VisitTypeRepository struct {
	DB *gorm.DB
}

func ProvideVisitTypeRepository added in v1.0.0

func ProvideVisitTypeRepository(DB *gorm.DB) VisitTypeRepository

func (*VisitTypeRepository) Count added in v1.0.0

func (r *VisitTypeRepository) Count(dbString string) (int64, error)

Count ...

func (*VisitTypeRepository) Delete added in v1.0.0

func (r *VisitTypeRepository) Delete(ID int) error

Delete ...

func (*VisitTypeRepository) Get added in v1.0.0

func (r *VisitTypeRepository) Get(m *models.VisitType, ID int) error

Get ...

func (*VisitTypeRepository) GetAll added in v1.0.0

GetAll ...

func (*VisitTypeRepository) GetByTitle added in v1.0.0

func (r *VisitTypeRepository) GetByTitle(m *models.VisitType, title string) error

GetByTitle ...

func (*VisitTypeRepository) GetByTitles added in v1.0.0

func (r *VisitTypeRepository) GetByTitles(titles []string) ([]models.VisitType, error)

GetByTitles ...

func (*VisitTypeRepository) Save added in v1.0.0

Save ...

func (*VisitTypeRepository) Seed added in v1.0.0

func (r *VisitTypeRepository) Seed()

Seed ...

func (*VisitTypeRepository) Update added in v1.0.0

func (r *VisitTypeRepository) Update(m *models.VisitType) error

Update ...

type VisualAcuityRepository added in v1.0.0

type VisualAcuityRepository struct {
	DB *gorm.DB
}

func ProvideVisualAcuityRepository added in v1.0.0

func ProvideVisualAcuityRepository(DB *gorm.DB) VisualAcuityRepository

func (*VisualAcuityRepository) Get added in v1.0.0

Get ...

func (*VisualAcuityRepository) GetByPatientChart added in v1.0.0

func (r *VisualAcuityRepository) GetByPatientChart(m *models.VisualAcuity, ID int) error

GetByPatientChart ...

func (*VisualAcuityRepository) Save added in v1.0.0

Save ...

func (*VisualAcuityRepository) SaveForPatientChart added in v1.0.0

func (r *VisualAcuityRepository) SaveForPatientChart(m *models.VisualAcuity) error

SaveForPatientChart ...

func (*VisualAcuityRepository) Update added in v1.0.0

Update ...

type VitalSignsRepository added in v1.0.0

type VitalSignsRepository struct {
	DB *gorm.DB
}

func ProvideVitalSignsRepository added in v1.0.0

func ProvideVitalSignsRepository(DB *gorm.DB) VitalSignsRepository

func (*VitalSignsRepository) Get added in v1.0.0

Get ...

func (*VitalSignsRepository) GetByPatientChart added in v1.0.0

func (r *VitalSignsRepository) GetByPatientChart(m *models.VitalSigns, ID int) error

GetByPatientChart ...

func (*VitalSignsRepository) Save added in v1.0.0

Save ...

func (*VitalSignsRepository) Update added in v1.0.0

Update ...

Source Files

Jump to

Keyboard shortcuts

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