repository

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: GPL-2.0 Imports: 10 Imported by: 1

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

type AllergyRepository struct {
	DB *gorm.DB
}

func ProvideAllergyRepository

func ProvideAllergyRepository(DB *gorm.DB) AllergyRepository

func (*AllergyRepository) Delete

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

Delete ...

func (*AllergyRepository) Get

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

Get ...

func (*AllergyRepository) GetAll

GetAll ...

func (*AllergyRepository) Save

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

Save ...

func (*AllergyRepository) Update

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

Update ...

type AmendmentRepository

type AmendmentRepository struct {
	DB *gorm.DB
}

func ProvideAmendmentRepository

func ProvideAmendmentRepository(DB *gorm.DB) AmendmentRepository

func (*AmendmentRepository) Create

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

Create ...

func (*AmendmentRepository) Delete

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

Delete ...

func (*AmendmentRepository) Get

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

Get ...

func (*AmendmentRepository) GetAll

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

GetAll ...

func (*AmendmentRepository) Update

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

Update ...

type AppointmentQueueRepository

type AppointmentQueueRepository struct {
	DB *gorm.DB
}

func ProvideAppointmentQueueRepository

func ProvideAppointmentQueueRepository(DB *gorm.DB) AppointmentQueueRepository

func (*AppointmentQueueRepository) Delete

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

Delete ...

func (*AppointmentQueueRepository) FindByAppointment

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

FindByAppointment ...

func (*AppointmentQueueRepository) FindTodaysAppointments

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

FindTodaysAppointments ...

func (*AppointmentQueueRepository) Get

Get ...

func (*AppointmentQueueRepository) Save

Save ...

func (*AppointmentQueueRepository) Update

Update ...

type AppointmentRepository

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

func ProvideAppointmentRepository

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

func (*AppointmentRepository) CreateNewAppointment

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

CreateNewAppointment ... Creates a new appointment along with PatientChart

func (*AppointmentRepository) Delete

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

Delete ...

func (*AppointmentRepository) FindAppointmentsByPatientAndRange

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

FindAppointmentsByPatientAndRange ...

func (*AppointmentRepository) FindByProvider

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

FindByProvider ...

func (*AppointmentRepository) FindByUserSubscriptions

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

GetByIds ...

func (*AppointmentRepository) FindTodaysAppointments

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

FindTodaysAppointments ...

func (*AppointmentRepository) FindTodaysCheckedInAppointments

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

FindTodaysCheckedInAppointments ...

func (*AppointmentRepository) Get

Get ...

func (*AppointmentRepository) GetAll

GetAll ...

func (*AppointmentRepository) GetByIds

GetByIds ...

func (*AppointmentRepository) GetWithDetails

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

GetWithDetails ...

func (*AppointmentRepository) NurseHomeStats

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

NurseHomeStats ...

func (*AppointmentRepository) PatientsAppointmentToday

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

PatientsAppointmentsToday ...

func (*AppointmentRepository) PayForConsultation

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

PayForConsultation ...

func (*AppointmentRepository) PhysicianHomeStats

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

PhysicianHomeStats ...

func (*AppointmentRepository) ReceptionHomeStats

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

ReceptionHomeStats ...

func (*AppointmentRepository) Save

Save ...

func (*AppointmentRepository) SchedulePostOp

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

SchedulePostOp ...

func (*AppointmentRepository) SearchAppointments

SearchAppointments ...

func (*AppointmentRepository) Update

Update ...

type AppointmentStatusRepository

type AppointmentStatusRepository struct {
	DB *gorm.DB
}

func ProvideAppointmentStatusRepository

func ProvideAppointmentStatusRepository(DB *gorm.DB) AppointmentStatusRepository

func (*AppointmentStatusRepository) Delete

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

Delete ...

func (*AppointmentStatusRepository) Get

Get ...

func (*AppointmentStatusRepository) GetAll

GetAll ...

func (*AppointmentStatusRepository) GetByTitle

GetByTitle ...

func (*AppointmentStatusRepository) Save

Save ...

func (*AppointmentStatusRepository) Seed

func (r *AppointmentStatusRepository) Seed()

Seed ...

func (*AppointmentStatusRepository) Update

Update ...

type AutoRefractionRepository

type AutoRefractionRepository struct {
	DB *gorm.DB
}

func ProvideAutoRefractionRepository

func ProvideAutoRefractionRepository(DB *gorm.DB) AutoRefractionRepository

func (*AutoRefractionRepository) Get

Get ...

func (*AutoRefractionRepository) GetByPatientChart

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

GetByPatientChart ...

func (*AutoRefractionRepository) Save

Save ...

func (*AutoRefractionRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*AutoRefractionRepository) Update

Update ...

type BillingRepository

type BillingRepository struct {
	DB *gorm.DB
}

func ProvideBillingRepository

func ProvideBillingRepository(DB *gorm.DB) BillingRepository

func (*BillingRepository) Delete

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

Delete ...

func (*BillingRepository) Get

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

Get ...

func (*BillingRepository) GetAll

GetAll ...

func (*BillingRepository) GetByIds

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

GetByIds ...

func (*BillingRepository) GetConsultationBillings

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

GetConsultationBillings ...

func (*BillingRepository) Save

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

Save ...

func (*BillingRepository) Search

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

Search ...

func (*BillingRepository) Seed

func (r *BillingRepository) Seed()

Seed ...

func (*BillingRepository) Update

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

Update ...

type ChatDeleteRepository

type ChatDeleteRepository struct {
	DB *gorm.DB
}

func ProvideChatDeleteRepository

func ProvideChatDeleteRepository(DB *gorm.DB) ChatDeleteRepository

func (*ChatDeleteRepository) Delete

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

Delete ...

func (*ChatDeleteRepository) Get

Get ...

func (*ChatDeleteRepository) Save

Save ...

func (*ChatDeleteRepository) Update

Update ...

type ChatMemberRepository

type ChatMemberRepository struct {
	DB *gorm.DB
}

func ProvideChatMemberRepository

func ProvideChatMemberRepository(DB *gorm.DB) ChatMemberRepository

func (*ChatMemberRepository) Delete

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

Delete ...

func (*ChatMemberRepository) FindCommonChatID

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

FindCommonChatID ...

func (*ChatMemberRepository) Get

Get ...

func (*ChatMemberRepository) GetByChatID

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

GetByChatID ...

func (*ChatMemberRepository) Save

Save ...

func (*ChatMemberRepository) Update

Update ...

type ChatMessageRepository

type ChatMessageRepository struct {
	DB *gorm.DB
}

func ProvideChatMessageRepository

func ProvideChatMessageRepository(DB *gorm.DB) ChatMessageRepository

func (*ChatMessageRepository) Get

Get ...

func (*ChatMessageRepository) GetByChatID

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

GetByChatID ...

func (*ChatMessageRepository) Save

Save ...

func (*ChatMessageRepository) Update

Update ...

type ChatMuteRepository

type ChatMuteRepository struct {
	DB *gorm.DB
}

func ProvideChatMuteRepository

func ProvideChatMuteRepository(DB *gorm.DB) ChatMuteRepository

func (*ChatMuteRepository) Delete

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

Delete ...

func (*ChatMuteRepository) Get

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

Get ...

func (*ChatMuteRepository) Save

Save ...

func (*ChatMuteRepository) Update

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

Update ...

type ChatRepository

type ChatRepository struct {
	DB *gorm.DB
}

func ProvideChatRepository

func ProvideChatRepository(DB *gorm.DB) ChatRepository

func (*ChatRepository) Delete

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

Delete ...

func (*ChatRepository) Get

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

Get ...

func (*ChatRepository) GetUserChats

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

GetUserChats ...

func (*ChatRepository) Save

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

Save ...

func (*ChatRepository) Update

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

Update ...

type ChatUnreadRepository

type ChatUnreadRepository struct {
	DB *gorm.DB
}

func ProvideChatUnreadRepository

func ProvideChatUnreadRepository(DB *gorm.DB) ChatUnreadRepository

func (*ChatUnreadRepository) Delete

Delete ...

func (*ChatUnreadRepository) DeleteForUserChat

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

Delete ...

func (*ChatUnreadRepository) Get

Get ...

func (*ChatUnreadRepository) GetByUserID

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

GetByUserID ...

func (*ChatUnreadRepository) Save

Save ...

func (*ChatUnreadRepository) Update

Update ...

type ChiefComplaintRepository

type ChiefComplaintRepository struct {
	DB *gorm.DB
}

func ProvideChiefComplaintRepository

func ProvideChiefComplaintRepository(DB *gorm.DB) ChiefComplaintRepository

func (*ChiefComplaintRepository) Delete

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

Delete ...

func (*ChiefComplaintRepository) Get

Get ...

func (*ChiefComplaintRepository) GetAll

GetAll ...

func (*ChiefComplaintRepository) Save

Save ...

func (*ChiefComplaintRepository) Search

Search ...

func (*ChiefComplaintRepository) Update

Update ...

type ChiefComplaintTypeRepository

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

func ProvideChiefComplaintTypeRepository

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

func (*ChiefComplaintTypeRepository) Delete

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

Delete ...

func (*ChiefComplaintTypeRepository) Get

Get ...

func (*ChiefComplaintTypeRepository) GetAll

GetAll ...

func (*ChiefComplaintTypeRepository) GetByTitle

GetByTitle ...

func (*ChiefComplaintTypeRepository) GetFavorites

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

GetFavorites ...

func (*ChiefComplaintTypeRepository) Save

Save ...

func (*ChiefComplaintTypeRepository) Update

Update ...

type CoverTestRepository

type CoverTestRepository struct {
	DB *gorm.DB
}

func ProvideCoverTestRepository

func ProvideCoverTestRepository(DB *gorm.DB) CoverTestRepository

func (*CoverTestRepository) Get

Get ...

func (*CoverTestRepository) GetByPatientChart

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

GetByPatientChart ...

func (*CoverTestRepository) Save

Save ...

func (*CoverTestRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*CoverTestRepository) Update

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

Update ...

type DiagnosisRepository

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

func ProvideDiagnosisRepository

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

func (*DiagnosisRepository) Delete

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

Delete ...

func (*DiagnosisRepository) Get

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

Get ...

func (*DiagnosisRepository) GetAll

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

GetAll ...

func (*DiagnosisRepository) GetByTitle

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

GetByTitle ...

func (*DiagnosisRepository) GetFavorites

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

GetFavorites ...

func (*DiagnosisRepository) Save

Save ...

func (*DiagnosisRepository) Update

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

Update ...

type DiagnosticProcedureOrderRepository

type DiagnosticProcedureOrderRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureOrderRepository

func ProvideDiagnosticProcedureOrderRepository(DB *gorm.DB) DiagnosticProcedureOrderRepository

func (*DiagnosticProcedureOrderRepository) Confirm

Confirm ...

func (*DiagnosticProcedureOrderRepository) Delete

Delete ...

func (*DiagnosticProcedureOrderRepository) Get added in v0.1.11

Get ...

func (*DiagnosticProcedureOrderRepository) GetAll

GetAll ...

func (*DiagnosticProcedureOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*DiagnosticProcedureOrderRepository) GetCount

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

GetCount ...

func (*DiagnosticProcedureOrderRepository) GetOrderPayments added in v0.1.10

func (r *DiagnosticProcedureOrderRepository) GetOrderPayments(id int) ([]models.Payment, error)

GetOrderPayments ...

func (*DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles

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

GetPatientDiagnosticOrderTitles ...

func (*DiagnosticProcedureOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*DiagnosticProcedureOrderRepository) GetWithProcedures added in v0.1.16

GetWithProcedures ...

func (*DiagnosticProcedureOrderRepository) OrderAndConfirm

func (r *DiagnosticProcedureOrderRepository) OrderAndConfirm()

OrderAndConfirm ...

func (*DiagnosticProcedureOrderRepository) Save

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

Save ...

func (*DiagnosticProcedureOrderRepository) Search

Search ...

func (*DiagnosticProcedureOrderRepository) Update

Update ...

type DiagnosticProcedureRepository

type DiagnosticProcedureRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureRepository

func ProvideDiagnosticProcedureRepository(DB *gorm.DB) DiagnosticProcedureRepository

func (*DiagnosticProcedureRepository) ClearAssociation

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

ClearAssociation ...

func (*DiagnosticProcedureRepository) Delete

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

Delete ...

func (*DiagnosticProcedureRepository) DeleteFile

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

DeleteFile ...

func (*DiagnosticProcedureRepository) Get

Get ...

func (*DiagnosticProcedureRepository) GetAll

GetAll ...

func (*DiagnosticProcedureRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*DiagnosticProcedureRepository) GetRefraction

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

GetRefraction ...

func (*DiagnosticProcedureRepository) GetWithPayments added in v0.1.12

GetWithPayments ...

func (*DiagnosticProcedureRepository) Save

Save ...

func (*DiagnosticProcedureRepository) Update

Update ...

type DiagnosticProcedureTypeRepository

type DiagnosticProcedureTypeRepository struct {
	DB *gorm.DB
}

func ProvideDiagnosticProcedureTypeRepository

func ProvideDiagnosticProcedureTypeRepository(DB *gorm.DB) DiagnosticProcedureTypeRepository

func (*DiagnosticProcedureTypeRepository) Delete

Delete ...

func (*DiagnosticProcedureTypeRepository) Get

Get ...

func (*DiagnosticProcedureTypeRepository) GetAll

GetAll ...

func (*DiagnosticProcedureTypeRepository) GetByTitle

GetByTitle ...

func (*DiagnosticProcedureTypeRepository) Save

Save ...

func (*DiagnosticProcedureTypeRepository) Update

Update ...

type ExamCategoryRepository

type ExamCategoryRepository struct {
	DB *gorm.DB
}

func ProvideExamCategoryRepository

func ProvideExamCategoryRepository(DB *gorm.DB) ExamCategoryRepository

func (*ExamCategoryRepository) Delete

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

Delete ...

func (*ExamCategoryRepository) Get

Get ...

func (*ExamCategoryRepository) GetAll

GetAll ...

func (*ExamCategoryRepository) GetByTitle

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

GetByTitle ...

func (*ExamCategoryRepository) Save

Save ...

func (*ExamCategoryRepository) Update

Update ...

type ExamFindingRepository

type ExamFindingRepository struct {
	DB *gorm.DB
}

func ProvideExamFindingRepository

func ProvideExamFindingRepository(DB *gorm.DB) ExamFindingRepository

func (*ExamFindingRepository) Delete

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

Delete ...

func (*ExamFindingRepository) Get

Get ...

func (*ExamFindingRepository) GetAll

GetAll ...

func (*ExamFindingRepository) GetByTitle

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

GetByTitle ...

func (*ExamFindingRepository) Save

Save ...

func (*ExamFindingRepository) Update

Update ...

type ExternalExamRepository

type ExternalExamRepository struct {
	DB *gorm.DB
}

func ProvideExternalExamRepository

func ProvideExternalExamRepository(DB *gorm.DB) ExternalExamRepository

func (*ExternalExamRepository) Get

Get ...

func (*ExternalExamRepository) GetByPatientChart

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

GetByPatientChart ...

func (*ExternalExamRepository) Save

Save ...

func (*ExternalExamRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*ExternalExamRepository) Update

Update ...

type EyewearPrescriptionOrderRepository

type EyewearPrescriptionOrderRepository struct {
	DB *gorm.DB
}

func ProvideEyewearPrescriptionOrderRepository

func ProvideEyewearPrescriptionOrderRepository(DB *gorm.DB) EyewearPrescriptionOrderRepository

func (*EyewearPrescriptionOrderRepository) Delete

Delete ...

func (*EyewearPrescriptionOrderRepository) Get

Get ...

func (*EyewearPrescriptionOrderRepository) GetAll

GetAll ...

func (*EyewearPrescriptionOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*EyewearPrescriptionOrderRepository) Save

Save ...

func (*EyewearPrescriptionOrderRepository) SaveEyewearPrescription

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

SaveEyewearPrescription ...

func (*EyewearPrescriptionOrderRepository) Search

Search ...

func (*EyewearPrescriptionOrderRepository) Update

Update ...

type EyewearPrescriptionRepository

type EyewearPrescriptionRepository struct {
	DB *gorm.DB
}

func ProvideEyewearPrescriptionRepository

func ProvideEyewearPrescriptionRepository(DB *gorm.DB) EyewearPrescriptionRepository

func (*EyewearPrescriptionRepository) Delete

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

Delete ...

func (*EyewearPrescriptionRepository) Get

Get ...

func (*EyewearPrescriptionRepository) GetAll

GetAll ...

func (*EyewearPrescriptionRepository) Save

Save ...

func (*EyewearPrescriptionRepository) Update

Update ...

type EyewearShopRepository

type EyewearShopRepository struct {
	DB *gorm.DB
}

func ProvideEyewearShopRepository

func ProvideEyewearShopRepository(DB *gorm.DB) EyewearShopRepository

func (*EyewearShopRepository) Delete

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

Delete ...

func (*EyewearShopRepository) Get

Get ...

func (*EyewearShopRepository) GetAll

GetAll ...

func (*EyewearShopRepository) Save

Save ...

func (*EyewearShopRepository) Update

Update ...

type FamilyIllnessRepository

type FamilyIllnessRepository struct {
	DB *gorm.DB
}

func ProvideFamilyIllnessRepository

func ProvideFamilyIllnessRepository(DB *gorm.DB) FamilyIllnessRepository

func (*FamilyIllnessRepository) Delete

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

Delete ...

func (*FamilyIllnessRepository) Get

Get ...

func (*FamilyIllnessRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*FamilyIllnessRepository) Save

Save ...

func (*FamilyIllnessRepository) Update

Update ...

type FavoriteChiefComplaintRepository

type FavoriteChiefComplaintRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteChiefComplaintRepository

func ProvideFavoriteChiefComplaintRepository(DB *gorm.DB) FavoriteChiefComplaintRepository

func (*FavoriteChiefComplaintRepository) Delete

Delete ...

func (*FavoriteChiefComplaintRepository) Get

Get ...

func (*FavoriteChiefComplaintRepository) GetByUser

GetByUser ...

func (*FavoriteChiefComplaintRepository) Save

Save ...

func (*FavoriteChiefComplaintRepository) Update

Update ...

type FavoriteDiagnosisRepository

type FavoriteDiagnosisRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteDiagnosisRepository

func ProvideFavoriteDiagnosisRepository(DB *gorm.DB) FavoriteDiagnosisRepository

func (*FavoriteDiagnosisRepository) Delete

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

Delete ...

func (*FavoriteDiagnosisRepository) Get

Get ...

func (*FavoriteDiagnosisRepository) GetByUser

GetByUser ...

func (*FavoriteDiagnosisRepository) Save

Save ...

func (*FavoriteDiagnosisRepository) Update

Update ...

type FavoriteMedicationRepository

type FavoriteMedicationRepository struct {
	DB *gorm.DB
}

func ProvideFavoriteMedicationRepository

func ProvideFavoriteMedicationRepository(DB *gorm.DB) FavoriteMedicationRepository

func (*FavoriteMedicationRepository) Delete

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

Delete ...

func (*FavoriteMedicationRepository) Get

Get ...

func (*FavoriteMedicationRepository) GetAll

GetAll ...

func (*FavoriteMedicationRepository) Save

Save ...

func (*FavoriteMedicationRepository) Search

Search ...

func (*FavoriteMedicationRepository) Update

Update ...

type FileRepository

type FileRepository struct {
	DB *gorm.DB
}

func ProvideFileRepository

func ProvideFileRepository(DB *gorm.DB) FileRepository

func (*FileRepository) Get

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

Get ...

func (*FileRepository) Save

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

Save ...

func (*FileRepository) Update

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

Update ...

type FollowUpOrderRepository

type FollowUpOrderRepository struct {
	DB *gorm.DB
}

func ProvideFollowUpOrderRepository

func ProvideFollowUpOrderRepository(DB *gorm.DB) FollowUpOrderRepository

func (*FollowUpOrderRepository) ConfirmOrder

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

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

Delete ...

func (*FollowUpOrderRepository) GetAll

GetAll ...

func (*FollowUpOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*FollowUpOrderRepository) GetCount

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

GetCount ...

func (*FollowUpOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*FollowUpOrderRepository) Save

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

Save ...

func (*FollowUpOrderRepository) Search

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

Update ...

type FollowUpRepository

type FollowUpRepository struct {
	DB *gorm.DB
}

func ProvideFollowUpRepository

func ProvideFollowUpRepository(DB *gorm.DB) FollowUpRepository

func (*FollowUpRepository) Delete

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

Delete ...

func (*FollowUpRepository) Get

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

Get ...

func (*FollowUpRepository) GetAll

GetAll ...

func (*FollowUpRepository) GetByPatientChart

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

GetByPatientChart ...

func (*FollowUpRepository) Save

Save ...

func (*FollowUpRepository) Update

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

Update ...

type FunduscopyRepository

type FunduscopyRepository struct {
	DB *gorm.DB
}

func ProvideFunduscopyRepository

func ProvideFunduscopyRepository(DB *gorm.DB) FunduscopyRepository

func (*FunduscopyRepository) Get

Get ...

func (*FunduscopyRepository) GetByPatientChart

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

GetByPatientChart ...

func (*FunduscopyRepository) Save

Save ...

func (*FunduscopyRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*FunduscopyRepository) Update

Update ...

type HpiComponentRepository

type HpiComponentRepository struct {
	DB *gorm.DB
}

func ProvideHpiComponentRepository

func ProvideHpiComponentRepository(DB *gorm.DB) HpiComponentRepository

func (*HpiComponentRepository) Delete

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

Delete ...

func (*HpiComponentRepository) Get

Get ...

func (*HpiComponentRepository) GetAll

GetAll ...

func (*HpiComponentRepository) GetByIds

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

GetByIds ...

func (*HpiComponentRepository) Save

Save ...

func (*HpiComponentRepository) Search

Search ...

func (*HpiComponentRepository) Update

Update ...

type HpiComponentTypeRepository

type HpiComponentTypeRepository struct {
	DB *gorm.DB
}

func ProvideHpiComponentTypeRepository

func ProvideHpiComponentTypeRepository(DB *gorm.DB) HpiComponentTypeRepository

func (*HpiComponentTypeRepository) Count

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

Count ...

func (*HpiComponentTypeRepository) Delete

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

Delete ...

func (*HpiComponentTypeRepository) Get

Get ...

func (*HpiComponentTypeRepository) GetAll

GetAll ...

func (*HpiComponentTypeRepository) Save

Save ...

func (*HpiComponentTypeRepository) Update

Update ...

type IopRepository

type IopRepository struct {
	DB *gorm.DB
}

func ProvideIopRepository

func ProvideIopRepository(DB *gorm.DB) IopRepository

func (*IopRepository) Get

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

Get ...

func (*IopRepository) GetByPatientChart

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

GetByPatientChart ...

func (*IopRepository) Save

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

Save ...

func (*IopRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*IopRepository) Update

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

Update ...

type LabOrderRepository

type LabOrderRepository struct {
	DB *gorm.DB
}

func ProvideLabOrderRepository

func ProvideLabOrderRepository(DB *gorm.DB) LabOrderRepository

func (*LabOrderRepository) Confirm

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

Confirm ...

func (*LabOrderRepository) Delete

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

Delete ...

func (*LabOrderRepository) Get

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

Get ...

func (*LabOrderRepository) GetAll

GetAll ...

func (*LabOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*LabOrderRepository) GetCount

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

GetCount ...

func (*LabOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*LabOrderRepository) Save

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

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

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

Update ...

type LabRepository

type LabRepository struct {
	DB *gorm.DB
}

func ProvideLabRepository

func ProvideLabRepository(DB *gorm.DB) LabRepository

func (*LabRepository) ClearAssociation

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

ClearAssociation ...

func (*LabRepository) Delete

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

Delete ...

func (*LabRepository) DeleteFile

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

DeleteFile ...

func (*LabRepository) Get

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

Get ...

func (*LabRepository) GetAll

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

GetAll ...

func (*LabRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*LabRepository) Save

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

Save ...

func (*LabRepository) Update

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

Update ...

type LabTypeRepository

type LabTypeRepository struct {
	DB *gorm.DB
}

func ProvideLabTypeRepository

func ProvideLabTypeRepository(DB *gorm.DB) LabTypeRepository

func (*LabTypeRepository) Delete

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

Delete ...

func (*LabTypeRepository) Get

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

Get ...

func (*LabTypeRepository) GetAll

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

GetAll ...

func (*LabTypeRepository) GetByTitle

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

GetByTitle ...

func (*LabTypeRepository) Save

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

Save ...

func (*LabTypeRepository) Update

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

Update ...

type LifestyleRepository

type LifestyleRepository struct {
	DB *gorm.DB
}

func ProvideLifestyleRepository

func ProvideLifestyleRepository(DB *gorm.DB) LifestyleRepository

func (*LifestyleRepository) Delete

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

Delete ...

func (*LifestyleRepository) Get

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

Get ...

func (*LifestyleRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*LifestyleRepository) Save

Save ...

func (*LifestyleRepository) Update

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

Update ...

type LifestyleTypeRepository

type LifestyleTypeRepository struct {
	DB *gorm.DB
}

func ProvideLifestyleTypeRepository

func ProvideLifestyleTypeRepository(DB *gorm.DB) LifestyleTypeRepository

func (*LifestyleTypeRepository) Delete

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

Delete ...

func (*LifestyleTypeRepository) Get

Get ...

func (*LifestyleTypeRepository) GetAll

GetAll ...

func (*LifestyleTypeRepository) GetByTitle

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

GetByTitle ...

func (*LifestyleTypeRepository) Save

Save ...

func (*LifestyleTypeRepository) Update

Update ...

type MedicalPrescriptionOrderRepository

type MedicalPrescriptionOrderRepository struct {
	DB *gorm.DB
}

func ProvideMedicalPrescriptionOrderRepository

func ProvideMedicalPrescriptionOrderRepository(DB *gorm.DB) MedicalPrescriptionOrderRepository

func (*MedicalPrescriptionOrderRepository) Delete

Delete ...

func (*MedicalPrescriptionOrderRepository) Get

Get ...

func (*MedicalPrescriptionOrderRepository) GetAll

GetAll ...

func (*MedicalPrescriptionOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*MedicalPrescriptionOrderRepository) SaveMedicalPrescription

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

SaveMedicalPrescription ...

func (*MedicalPrescriptionOrderRepository) Search

Search ...

func (*MedicalPrescriptionOrderRepository) Update

Update ...

type MedicalPrescriptionRepository

type MedicalPrescriptionRepository struct {
	DB *gorm.DB
}

func ProvideMedicalPrescriptionRepository

func ProvideMedicalPrescriptionRepository(DB *gorm.DB) MedicalPrescriptionRepository

func (*MedicalPrescriptionRepository) Delete

Delete ...

func (*MedicalPrescriptionRepository) Get

Get ...

func (*MedicalPrescriptionRepository) GetAll

GetAll ...

func (*MedicalPrescriptionRepository) Save

Save ...

func (*MedicalPrescriptionRepository) Search

Search ...

func (*MedicalPrescriptionRepository) Update

Update ...

type ModalityRepository added in v0.1.7

type ModalityRepository struct {
	DB *gorm.DB
}

func ProvideModalityRepository added in v0.1.7

func ProvideModalityRepository(DB *gorm.DB) ModalityRepository

func (*ModalityRepository) GetAll added in v0.1.7

GetAll ...

func (*ModalityRepository) Save added in v0.1.7

Save ...

func (*ModalityRepository) Update added in v0.1.7

func (r *ModalityRepository) Update(m *models.Modality) error

Update ...

type OcularMotilityRepository

type OcularMotilityRepository struct {
	DB *gorm.DB
}

func ProvideOcularMotilityRepository

func ProvideOcularMotilityRepository(DB *gorm.DB) OcularMotilityRepository

func (*OcularMotilityRepository) Get

Get ...

func (*OcularMotilityRepository) GetByPatientChart

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

GetByPatientChart ...

func (*OcularMotilityRepository) Save

Save ...

func (*OcularMotilityRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*OcularMotilityRepository) Update

Update ...

type OpthalmologyExamRepository

type OpthalmologyExamRepository struct {
	DB *gorm.DB
}

func ProvideOpthalmologyExamRepository

func ProvideOpthalmologyExamRepository(DB *gorm.DB) OpthalmologyExamRepository

func (*OpthalmologyExamRepository) Get

Get ...

func (*OpthalmologyExamRepository) GetByPatientChart

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

GetByPatientChart ...

func (*OpthalmologyExamRepository) Save

Save ...

func (*OpthalmologyExamRepository) Update

Update ...

type OpticDiscRepository

type OpticDiscRepository struct {
	DB *gorm.DB
}

func ProvideOpticDiscRepository

func ProvideOpticDiscRepository(DB *gorm.DB) OpticDiscRepository

func (*OpticDiscRepository) Get

Get ...

func (*OpticDiscRepository) GetByPatientChart

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

GetByPatientChart ...

func (*OpticDiscRepository) Save

Save ...

func (*OpticDiscRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*OpticDiscRepository) Update

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

Update ...

type OrganizationDetailsRepository

type OrganizationDetailsRepository struct {
	DB *gorm.DB
}

func ProvideOrganizationDetailsRepository

func ProvideOrganizationDetailsRepository(DB *gorm.DB) OrganizationDetailsRepository

func (*OrganizationDetailsRepository) Get

Get ...

func (*OrganizationDetailsRepository) Save

Save ...

func (*OrganizationDetailsRepository) Update

Update ...

type PaginationInput

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

PaginationInput ...

type PastHospitalizationRepository

type PastHospitalizationRepository struct {
	DB *gorm.DB
}

func ProvidePastHospitalizationRepository

func ProvidePastHospitalizationRepository(DB *gorm.DB) PastHospitalizationRepository

func (*PastHospitalizationRepository) Delete

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

Delete ...

func (*PastHospitalizationRepository) Get

Get ...

func (*PastHospitalizationRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*PastHospitalizationRepository) Save

Save ...

func (*PastHospitalizationRepository) Update

Update ...

type PastIllnessRepository

type PastIllnessRepository struct {
	DB *gorm.DB
}

func ProvidePastIllnessRepository

func ProvidePastIllnessRepository(DB *gorm.DB) PastIllnessRepository

func (*PastIllnessRepository) Delete

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

Delete ...

func (*PastIllnessRepository) Get

Get ...

func (*PastIllnessRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*PastIllnessRepository) Save

Save ...

func (*PastIllnessRepository) Update

Update ...

type PastIllnessTypeRepository

type PastIllnessTypeRepository struct {
	DB *gorm.DB
}

func ProvidePastIllnessTypeRepository

func ProvidePastIllnessTypeRepository(DB *gorm.DB) PastIllnessTypeRepository

func (*PastIllnessTypeRepository) Delete

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

Delete ...

func (*PastIllnessTypeRepository) Get

Get ...

func (*PastIllnessTypeRepository) GetAll

GetAll ...

func (*PastIllnessTypeRepository) GetByTitle

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

GetByTitle ...

func (*PastIllnessTypeRepository) Save

Save ...

func (*PastIllnessTypeRepository) Update

Update ...

type PastInjuryRepository

type PastInjuryRepository struct {
	DB *gorm.DB
}

func ProvidePastInjuryRepository

func ProvidePastInjuryRepository(DB *gorm.DB) PastInjuryRepository

func (*PastInjuryRepository) Delete

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

Delete ...

func (*PastInjuryRepository) Get

Get ...

func (*PastInjuryRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*PastInjuryRepository) Save

Save ...

func (*PastInjuryRepository) Update

Update ...

type PastOptSurgeryRepository

type PastOptSurgeryRepository struct {
	DB *gorm.DB
}

func ProvidePastOptSurgeryRepository

func ProvidePastOptSurgeryRepository(DB *gorm.DB) PastOptSurgeryRepository

func (*PastOptSurgeryRepository) Delete

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

Delete ...

func (*PastOptSurgeryRepository) Get

Get ...

func (*PastOptSurgeryRepository) Save

Save ...

func (*PastOptSurgeryRepository) Update

Update ...

type PastSurgeryRepository

type PastSurgeryRepository struct {
	DB *gorm.DB
}

func ProvidePastSurgeryRepository

func ProvidePastSurgeryRepository(DB *gorm.DB) PastSurgeryRepository

func (*PastSurgeryRepository) Delete

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

Delete ...

func (*PastSurgeryRepository) Get

Get ...

func (*PastSurgeryRepository) GetByPatientHistoryID

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

GetByPatientHistoryID ...

func (*PastSurgeryRepository) Save

Save ...

func (*PastSurgeryRepository) Update

Update ...

type PatientChartRepository

type PatientChartRepository struct {
	DB *gorm.DB
}

func ProvidePatientChartRepository

func ProvidePatientChartRepository(DB *gorm.DB) PatientChartRepository

func (*PatientChartRepository) Get

Get ...

func (*PatientChartRepository) GetByAppointmentID

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

GetByAppointmentID ...

func (*PatientChartRepository) GetWithDetails

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

Get ...

func (*PatientChartRepository) Save

Save ...

func (*PatientChartRepository) SignAndLock

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

SignAndLock ...

func (*PatientChartRepository) Update

Update ...

type PatientDiagnosisRepository

type PatientDiagnosisRepository struct {
	DB *gorm.DB
}

func ProvidePatientDiagnosisRepository

func ProvidePatientDiagnosisRepository(DB *gorm.DB) PatientDiagnosisRepository

func (*PatientDiagnosisRepository) Delete

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

Delete ...

func (*PatientDiagnosisRepository) Get

Get ...

func (*PatientDiagnosisRepository) GetAll

GetAll ...

func (*PatientDiagnosisRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*PatientDiagnosisRepository) Save

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

Save ...

func (*PatientDiagnosisRepository) Update

Update ...

type PatientEncounterLimitRepository

type PatientEncounterLimitRepository struct {
	DB *gorm.DB
}

func ProvidePatientEncounterLimitRepository

func ProvidePatientEncounterLimitRepository(DB *gorm.DB) PatientEncounterLimitRepository

func (*PatientEncounterLimitRepository) Delete

Delete ...

func (*PatientEncounterLimitRepository) Get

Get ...

func (*PatientEncounterLimitRepository) GetAll

GetAll ...

func (*PatientEncounterLimitRepository) GetByUser

GetByUser ...

func (*PatientEncounterLimitRepository) Save

Save ...

func (*PatientEncounterLimitRepository) Update

Update ...

type PatientHistoryRepository

type PatientHistoryRepository struct {
	DB *gorm.DB
}

func ProvidePatientHistoryRepository

func ProvidePatientHistoryRepository(DB *gorm.DB) PatientHistoryRepository

func (*PatientHistoryRepository) Delete

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

Delete ...

func (*PatientHistoryRepository) Get

Get ...

func (*PatientHistoryRepository) GetByPatientID

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

GetByPatientID ...

func (*PatientHistoryRepository) GetByPatientIDWithDetails

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

GetByPatientIDWithDetails ...

func (*PatientHistoryRepository) Save

Save ...

func (*PatientHistoryRepository) Update

Update ...

type PatientQueueRepository

type PatientQueueRepository struct {
	DB *gorm.DB
}

func ProvidePatientQueueRepository

func ProvidePatientQueueRepository(DB *gorm.DB) PatientQueueRepository

func (*PatientQueueRepository) AddToQueue

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

AddToQueue

func (*PatientQueueRepository) ClearExpired

func (r *PatientQueueRepository) ClearExpired() error

ClearExpired ...

func (*PatientQueueRepository) DeleteFromQueue

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

DeleteFromQueue ...

func (*PatientQueueRepository) Get

Get ...

func (*PatientQueueRepository) GetAll

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

GetAll

func (*PatientQueueRepository) GetByQueueName

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

GetByQueueName ...

func (*PatientQueueRepository) Move

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

Move ...

func (*PatientQueueRepository) MoveToQueueName

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

MoveToQueueName ...

func (*PatientQueueRepository) Save

Save

func (*PatientQueueRepository) Seed

func (r *PatientQueueRepository) Seed()

Seed ...

func (*PatientQueueRepository) UpdateQueue

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

GetByQueueName ...

type PatientRepository

type PatientRepository struct {
	DB *gorm.DB
}

func ProvidePatientRepository

func ProvidePatientRepository(DB *gorm.DB) PatientRepository

func (*PatientRepository) Clean

func (r *PatientRepository) Clean() error

Clean ...

func (*PatientRepository) Delete

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

Delete ...

func (*PatientRepository) FindByCardNo

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

FindByCardNo ...

func (*PatientRepository) FindByName

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

FindByName ...

func (*PatientRepository) FindByPhoneNo

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

FindByPhoneNo ...

func (*PatientRepository) Get

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

Get ...

func (*PatientRepository) GetAll

GetAll ...

func (*PatientRepository) GetAllProgress

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

GetAllProgress ...

func (*PatientRepository) GetAllProgressNotes

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

GetAllProgressNotes ...

func (*PatientRepository) GetPatientDiagnosticProcedures

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

GetPatientDiagnosticProcedures ...

func (*PatientRepository) GetPatientFiles

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

GetPatientFiles ...

func (*PatientRepository) GetVitalSignsProgress

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

GetVisionProgress ...

func (*PatientRepository) Save

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

Save ...

func (*PatientRepository) Search

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

Search ...

func (*PatientRepository) Update

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

Update ...

type PaymentOrderWaiverRepository added in v0.1.17

type PaymentOrderWaiverRepository struct {
	DB *gorm.DB
}

func ProvidePaymentOrderWaiverRepository added in v0.1.17

func ProvidePaymentOrderWaiverRepository(DB *gorm.DB) PaymentOrderWaiverRepository

func (*PaymentOrderWaiverRepository) ApproveWaiver added in v0.1.17

func (r *PaymentOrderWaiverRepository) ApproveWaiver(m *models.PaymentOrderWaiver, id int, approve bool) error

ApproveWaiver ...

func (*PaymentOrderWaiverRepository) BatchSave added in v0.1.17

BatchSave ...

func (*PaymentOrderWaiverRepository) Delete added in v0.1.17

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

Delete ...

func (*PaymentOrderWaiverRepository) Get added in v0.1.17

Get ...

func (*PaymentOrderWaiverRepository) GetAll added in v0.1.17

GetAll ...

func (*PaymentOrderWaiverRepository) GetApprovedCount added in v0.1.17

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

GetCount ...

func (*PaymentOrderWaiverRepository) Save added in v0.1.17

Save ...

func (*PaymentOrderWaiverRepository) Update added in v0.1.17

Update ...

type PaymentRepository

type PaymentRepository struct {
	DB *gorm.DB
}

func ProvidePaymentRepository

func ProvidePaymentRepository(DB *gorm.DB) PaymentRepository

func (*PaymentRepository) BatchUpdate

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

BatchUpdate ...

func (*PaymentRepository) Delete

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

Delete ...

func (*PaymentRepository) Get

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

Get ...

func (*PaymentRepository) GetByIds

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

Get ...

func (*PaymentRepository) RequestWaiver

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

RequestWaiver ...

func (*PaymentRepository) RequestWaiverBatch

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

RequestWaiverBatch ...

func (*PaymentRepository) Save

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

Save ...

func (*PaymentRepository) Update

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

Update ...

type PaymentWaiverRepository

type PaymentWaiverRepository struct {
	DB *gorm.DB
}

func ProvidePaymentWaiverRepository

func ProvidePaymentWaiverRepository(DB *gorm.DB) PaymentWaiverRepository

func (*PaymentWaiverRepository) ApproveWaiver

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

ApproveWaiver ...

func (*PaymentWaiverRepository) BatchSave

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

BatchSave ...

func (*PaymentWaiverRepository) Delete

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

Delete ...

func (*PaymentWaiverRepository) Get

Get ...

func (*PaymentWaiverRepository) GetAll

GetAll ...

func (*PaymentWaiverRepository) GetApprovedCount

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

GetCount ...

func (*PaymentWaiverRepository) Save

Save ...

func (*PaymentWaiverRepository) Update

Update ...

type PharmacyRepository

type PharmacyRepository struct {
	DB *gorm.DB
}

func ProvidePharmacyRepository

func ProvidePharmacyRepository(DB *gorm.DB) PharmacyRepository

func (*PharmacyRepository) Delete

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

Delete ...

func (*PharmacyRepository) Get

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

Get ...

func (*PharmacyRepository) GetAll

GetAll ...

func (*PharmacyRepository) Save

Save ...

func (*PharmacyRepository) Update

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

Update ...

type PhysicalExamFindingRepository

type PhysicalExamFindingRepository struct {
	DB *gorm.DB
}

func ProvidePhysicalExamFindingRepository

func ProvidePhysicalExamFindingRepository(DB *gorm.DB) PhysicalExamFindingRepository

func (*PhysicalExamFindingRepository) Delete

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

Delete ...

func (*PhysicalExamFindingRepository) DeleteExamCategory

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

DeleteExamCategory

func (*PhysicalExamFindingRepository) Get

Get ...

func (*PhysicalExamFindingRepository) GetAll

GetAll ...

func (*PhysicalExamFindingRepository) GetByPatientChartID

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

GetByTitle ...

func (*PhysicalExamFindingRepository) Save

Save ...

func (*PhysicalExamFindingRepository) Update

Update ...

type PupilsRepository

type PupilsRepository struct {
	DB *gorm.DB
}

func ProvidePupilsRepository

func ProvidePupilsRepository(DB *gorm.DB) PupilsRepository

func (*PupilsRepository) Get

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

Get ...

func (*PupilsRepository) GetByPatientChart

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

GetByPatientChart ...

func (*PupilsRepository) Save

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

Save ...

func (*PupilsRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*PupilsRepository) Update

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

Update ...

type QueueDestinationRepository

type QueueDestinationRepository struct {
	DB *gorm.DB
}

func ProvideQueueDestinationRepository

func ProvideQueueDestinationRepository(DB *gorm.DB) QueueDestinationRepository

func (*QueueDestinationRepository) Delete

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

Delete ...

func (*QueueDestinationRepository) Get

Get ...

func (*QueueDestinationRepository) GetAll

GetAll ...

func (*QueueDestinationRepository) GetByTitle

GetByTitle ...

func (*QueueDestinationRepository) GetUserTypeFromDestination

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

GetUserTypeFromDestination ...

func (*QueueDestinationRepository) Save

Save ...

func (*QueueDestinationRepository) Seed

func (r *QueueDestinationRepository) Seed()

Seed ...

func (*QueueDestinationRepository) Update

Update ...

type QueueSubscriptionRepository

type QueueSubscriptionRepository struct {
	DB *gorm.DB
}

func ProvideQueueSubscriptionRepository

func ProvideQueueSubscriptionRepository(DB *gorm.DB) QueueSubscriptionRepository

func (*QueueSubscriptionRepository) GetByUserId

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

GetByUserId ...

func (*QueueSubscriptionRepository) Save

Save

func (*QueueSubscriptionRepository) Subscribe

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

Subscribe ...

func (*QueueSubscriptionRepository) Unsubscribe

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

Unsubscribe ...

type ReferralOrderRepository

type ReferralOrderRepository struct {
	DB *gorm.DB
}

func ProvideReferralOrderRepository

func ProvideReferralOrderRepository(DB *gorm.DB) ReferralOrderRepository

func (*ReferralOrderRepository) ConfirmOrder

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

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

Delete ...

func (*ReferralOrderRepository) GetAll

GetAll ...

func (*ReferralOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*ReferralOrderRepository) GetCount

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

GetCount ...

func (*ReferralOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*ReferralOrderRepository) Save

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

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

Update ...

type ReferralRepository

type ReferralRepository struct {
	DB *gorm.DB
}

func ProvideReferralRepository

func ProvideReferralRepository(DB *gorm.DB) ReferralRepository

func (*ReferralRepository) Delete

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

Delete ...

func (*ReferralRepository) Get

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

Get ...

func (*ReferralRepository) GetAll

GetAll ...

func (*ReferralRepository) GetByOrderID

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

Get ...

func (*ReferralRepository) Save

Save ...

func (*ReferralRepository) Update

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

Update ...

type ReviewOfSystemRepository

type ReviewOfSystemRepository struct {
	DB *gorm.DB
}

func ProvideReviewOfSystemRepository

func ProvideReviewOfSystemRepository(DB *gorm.DB) ReviewOfSystemRepository

func (*ReviewOfSystemRepository) Delete

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

Delete ...

func (*ReviewOfSystemRepository) Get

Get ...

func (*ReviewOfSystemRepository) GetAll

GetAll ...

func (*ReviewOfSystemRepository) GetByPatientHistoryID

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

GetByTitle ...

func (*ReviewOfSystemRepository) Save

Save ...

func (*ReviewOfSystemRepository) Update

Update ...

type RoomRepository

type RoomRepository struct {
	DB *gorm.DB
}

func ProvideRoomRepository

func ProvideRoomRepository(DB *gorm.DB) RoomRepository

func (*RoomRepository) Delete

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

Delete ...

func (*RoomRepository) Get

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

Get ...

func (*RoomRepository) GetAll

GetAll ...

func (*RoomRepository) GetByTitle

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

GetByTitle ...

func (*RoomRepository) Save

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

Save ...

func (*RoomRepository) Seed

func (r *RoomRepository) Seed()

Seed ...

func (*RoomRepository) Update

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

Update ...

type SlitLampExamRepository

type SlitLampExamRepository struct {
	DB *gorm.DB
}

func ProvideSlitLampExamRepository

func ProvideSlitLampExamRepository(DB *gorm.DB) SlitLampExamRepository

func (*SlitLampExamRepository) Get

Get ...

func (*SlitLampExamRepository) GetByPatientChart

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

GetByPatientChart ...

func (*SlitLampExamRepository) Save

Save ...

func (*SlitLampExamRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*SlitLampExamRepository) Update

Update ...

type SupplyRepository

type SupplyRepository struct {
	DB *gorm.DB
}

func ProvideSupplyRepository

func ProvideSupplyRepository(DB *gorm.DB) SupplyRepository

func (*SupplyRepository) Delete

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

Delete ...

func (*SupplyRepository) Get

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

Get ...

func (*SupplyRepository) GetAll

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

GetAll ...

func (*SupplyRepository) GetByIds

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

GetByIds ...

func (*SupplyRepository) GetByTitle

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

GetByTitle ...

func (*SupplyRepository) Save

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

Save ...

func (*SupplyRepository) Update

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

Update ...

type SurgicalOrderRepository

type SurgicalOrderRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalOrderRepository

func ProvideSurgicalOrderRepository(DB *gorm.DB) SurgicalOrderRepository

func (*SurgicalOrderRepository) ConfirmOrder

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

ConfirmOrder ...

func (*SurgicalOrderRepository) Delete

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

Delete ...

func (*SurgicalOrderRepository) Get added in v0.1.21

Get ...

func (*SurgicalOrderRepository) GetAll

GetAll ...

func (*SurgicalOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*SurgicalOrderRepository) GetCount

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

GetCount ...

func (*SurgicalOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*SurgicalOrderRepository) GetWithProcedures added in v0.1.16

func (r *SurgicalOrderRepository) GetWithProcedures(m *models.SurgicalOrder, ID int) error

GetWithProcedures ...

func (*SurgicalOrderRepository) SaveOpthalmologyOrder

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

SaveOpthalmologyOrder ...

func (*SurgicalOrderRepository) Search

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

Update ...

type SurgicalProcedureRepository

type SurgicalProcedureRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalProcedureRepository

func ProvideSurgicalProcedureRepository(DB *gorm.DB) SurgicalProcedureRepository

func (*SurgicalProcedureRepository) Delete

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

Delete ...

func (*SurgicalProcedureRepository) DeleteFile

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

DeleteFile ...

func (*SurgicalProcedureRepository) Get

Get ...

func (*SurgicalProcedureRepository) GetAll

GetAll ...

func (*SurgicalProcedureRepository) GetByPatient

GetByPatient ...

func (*SurgicalProcedureRepository) GetByPatientChart

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

GetByPatientChart ...

func (*SurgicalProcedureRepository) GetWithPayments added in v0.1.12

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

GetWithPayments ...

func (*SurgicalProcedureRepository) Save

Save ...

func (*SurgicalProcedureRepository) Update

Update ...

type SurgicalProcedureTypeRepository

type SurgicalProcedureTypeRepository struct {
	DB *gorm.DB
}

func ProvideSurgicalProcedureTypeRepository

func ProvideSurgicalProcedureTypeRepository(DB *gorm.DB) SurgicalProcedureTypeRepository

func (*SurgicalProcedureTypeRepository) Delete

Delete ...

func (*SurgicalProcedureTypeRepository) Get

Get ...

func (*SurgicalProcedureTypeRepository) GetAll

GetAll ...

func (*SurgicalProcedureTypeRepository) GetByTitle

GetByTitle ...

func (*SurgicalProcedureTypeRepository) Save

Save ...

func (*SurgicalProcedureTypeRepository) Update

Update ...

type SystemRepository

type SystemRepository struct {
	DB *gorm.DB
}

func ProvideSystemRepository

func ProvideSystemRepository(DB *gorm.DB) SystemRepository

func (*SystemRepository) Delete

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

Delete ...

func (*SystemRepository) Get

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

Get ...

func (*SystemRepository) GetAll

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

GetAll ...

func (*SystemRepository) GetByTitle

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

GetByTitle ...

func (*SystemRepository) Save

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

Save ...

func (*SystemRepository) Update

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

Update ...

type SystemSymptomRepository

type SystemSymptomRepository struct {
	DB *gorm.DB
}

func ProvideSystemSymptomRepository

func ProvideSystemSymptomRepository(DB *gorm.DB) SystemSymptomRepository

func (*SystemSymptomRepository) Delete

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

Delete ...

func (*SystemSymptomRepository) Get

Get ...

func (*SystemSymptomRepository) GetAll

GetAll ...

func (*SystemSymptomRepository) GetByTitle

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

GetByTitle ...

func (*SystemSymptomRepository) Save

Save ...

func (*SystemSymptomRepository) Update

Update ...

type TreatmentOrderRepository

type TreatmentOrderRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentOrderRepository

func ProvideTreatmentOrderRepository(DB *gorm.DB) TreatmentOrderRepository

func (*TreatmentOrderRepository) ConfirmOrder

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

ConfirmOrder ...

func (*TreatmentOrderRepository) Delete

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

Delete ...

func (*TreatmentOrderRepository) Get added in v0.1.21

Get ...

func (*TreatmentOrderRepository) GetAll

GetAll ...

func (*TreatmentOrderRepository) GetByPatientChartID

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

GetByPatientChartID ...

func (*TreatmentOrderRepository) GetCount

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

GetCount ...

func (*TreatmentOrderRepository) GetTodaysOrderedCount

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

GetTodaysOrderedCount ...

func (*TreatmentOrderRepository) GetWithTreatments added in v0.1.16

func (r *TreatmentOrderRepository) GetWithTreatments(m *models.TreatmentOrder, ID int) error

GetWithTreatments ...

func (*TreatmentOrderRepository) SaveOpthalmologyTreatment

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

SaveOpthalmologyTreatment ...

func (*TreatmentOrderRepository) Search

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

Update ...

type TreatmentRepository

type TreatmentRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentRepository

func ProvideTreatmentRepository(DB *gorm.DB) TreatmentRepository

func (*TreatmentRepository) Delete

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

Delete ...

func (*TreatmentRepository) Get

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

Get ...

func (*TreatmentRepository) GetAll

GetAll ...

func (*TreatmentRepository) GetByPatient

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

GetByPatient ...

func (*TreatmentRepository) GetByPatientChart

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

GetByPatientChart ...

func (*TreatmentRepository) GetWithPayments added in v0.1.12

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

GetWithPayments ...

func (*TreatmentRepository) Save

Save ...

func (*TreatmentRepository) Update

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

type TreatmentTypeRepository struct {
	DB *gorm.DB
}

func ProvideTreatmentTypeRepository

func ProvideTreatmentTypeRepository(DB *gorm.DB) TreatmentTypeRepository

func (*TreatmentTypeRepository) Delete

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

Delete ...

func (*TreatmentTypeRepository) Get

Get ...

func (*TreatmentTypeRepository) GetAll

GetAll ...

func (*TreatmentTypeRepository) GetByTitle

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

GetByTitle ...

func (*TreatmentTypeRepository) Save

Save ...

func (*TreatmentTypeRepository) Update

Update ...

type UserRepository

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

func ProvideUserRepository

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

func (*UserRepository) CheckIfUserLegacy

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

CheckIfUserLegacy ...

func (*UserRepository) Get

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

Get ...

func (*UserRepository) GetAll

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

GetAll ...

func (*UserRepository) GetByEmail

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

GetByEmail ...

func (*UserRepository) GetByOldUserName

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

GetByOldUserName ...

func (*UserRepository) GetByUserType

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

GetByUserType ...

func (*UserRepository) GetByUserTypeTitle

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

GetByUserTypeTitle ...

func (*UserRepository) Ping

func (r *UserRepository) Ping() error

Ping ...

func (*UserRepository) Save

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

Save ...

func (*UserRepository) Search

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

Search ...

func (*UserRepository) SearchPhysicians

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

Search ...

func (*UserRepository) Seed

func (r *UserRepository) Seed()

Seed ...

func (*UserRepository) Update

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

Update ...

type UserTypeRepository

type UserTypeRepository struct {
	DB *gorm.DB
}

func ProvideUserTypeRepository

func ProvideUserTypeRepository(DB *gorm.DB) UserTypeRepository

func (*UserTypeRepository) Delete

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

Delete ...

func (*UserTypeRepository) Get

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

Get ...

func (*UserTypeRepository) GetAll

GetAll ...

func (*UserTypeRepository) GetByIds

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

GetByIds

func (*UserTypeRepository) GetByTitle

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

GetByTitle ...

func (*UserTypeRepository) Save

Save ...

func (*UserTypeRepository) Seed

func (r *UserTypeRepository) Seed()

Seed ...

func (*UserTypeRepository) Update

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

Update ...

type VisitTypeRepository

type VisitTypeRepository struct {
	DB *gorm.DB
}

func ProvideVisitTypeRepository

func ProvideVisitTypeRepository(DB *gorm.DB) VisitTypeRepository

func (*VisitTypeRepository) Count

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

Count ...

func (*VisitTypeRepository) Delete

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

Delete ...

func (*VisitTypeRepository) Get

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

Get ...

func (*VisitTypeRepository) GetAll

GetAll ...

func (*VisitTypeRepository) GetByTitle

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

GetByTitle ...

func (*VisitTypeRepository) GetByTitles

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

GetByTitles ...

func (*VisitTypeRepository) Save

Save ...

func (*VisitTypeRepository) Seed

func (r *VisitTypeRepository) Seed()

Seed ...

func (*VisitTypeRepository) Update

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

Update ...

type VisualAcuityRepository

type VisualAcuityRepository struct {
	DB *gorm.DB
}

func ProvideVisualAcuityRepository

func ProvideVisualAcuityRepository(DB *gorm.DB) VisualAcuityRepository

func (*VisualAcuityRepository) Get

Get ...

func (*VisualAcuityRepository) GetByPatientChart

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

GetByPatientChart ...

func (*VisualAcuityRepository) Save

Save ...

func (*VisualAcuityRepository) SaveForPatientChart

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

SaveForPatientChart ...

func (*VisualAcuityRepository) Update

Update ...

type VitalSignsRepository

type VitalSignsRepository struct {
	DB *gorm.DB
}

func ProvideVitalSignsRepository

func ProvideVitalSignsRepository(DB *gorm.DB) VitalSignsRepository

func (*VitalSignsRepository) Get

Get ...

func (*VitalSignsRepository) GetByPatientChart

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

GetByPatientChart ...

func (*VitalSignsRepository) Save

Save ...

func (*VitalSignsRepository) Update

Update ...

Source Files

Jump to

Keyboard shortcuts

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