Documentation ¶
Index ¶
- func Paginate(p *PaginationInput) func(db *gorm.DB) *gorm.DB
- type AllergyRepository
- func (r *AllergyRepository) Delete(ID int) error
- func (r *AllergyRepository) Get(m *models.Allergy, ID int) error
- func (r *AllergyRepository) GetAll(p models.PaginationInput, filter *models.Allergy) ([]models.Allergy, int64, error)
- func (r *AllergyRepository) Save(m *models.Allergy) error
- func (r *AllergyRepository) Update(m *models.Allergy) error
- type AmendmentRepository
- func (r *AmendmentRepository) Create(m *models.Amendment) error
- func (r *AmendmentRepository) Delete(ID int) error
- func (r *AmendmentRepository) Get(m *models.Amendment, ID int) error
- func (r *AmendmentRepository) GetAll(filter *models.Amendment) ([]*models.Amendment, error)
- func (r *AmendmentRepository) Update(m *models.Amendment) error
- type AppointmentQueueRepository
- func (r *AppointmentQueueRepository) Delete(ID int) error
- func (r *AppointmentQueueRepository) FindByAppointment(p PaginationInput, userID int) ([]models.AppointmentQueue, int64, error)
- func (r *AppointmentQueueRepository) FindTodaysAppointments(appointmentID int) ([]models.AppointmentQueue, error)
- func (r *AppointmentQueueRepository) Get(ID int, m *models.AppointmentQueue) error
- func (r *AppointmentQueueRepository) Save(m *models.AppointmentQueue) error
- func (r *AppointmentQueueRepository) Update(m *models.AppointmentQueue) error
- type AppointmentRepository
- func (r *AppointmentRepository) CreateNewAppointment(m *models.Appointment, billingID *int, invoiceNo *string) error
- func (r *AppointmentRepository) Delete(ID int) error
- func (r *AppointmentRepository) FindAppointmentsByPatientAndRange(patientID int, start time.Time, end time.Time) ([]*models.Appointment, error)
- func (r *AppointmentRepository) FindByProvider(p models.PaginationInput, searchTerm *string, visitTypes []string, userID int) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) FindByUserSubscriptions(ids []int, searchTerm *string, visitTypes []string, p models.PaginationInput) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) FindTodaysAppointments(p models.PaginationInput, searchTerm *string) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) FindTodaysCheckedInAppointments(p models.PaginationInput, searchTerm *string, visitTypes []string) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) Get(m *models.Appointment, ID int) error
- func (r *AppointmentRepository) GetAll(p models.PaginationInput, filter *models.Appointment) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) GetByIds(ids []int, p models.PaginationInput) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) GetWithDetails(m *models.Appointment, ID int) error
- func (r *AppointmentRepository) NurseHomeStats() (int, int, int, error)
- func (r *AppointmentRepository) PatientsAppointmentToday(patientID int, checkedIn *bool, paid *bool) (models.Appointment, error)
- func (r *AppointmentRepository) PayForConsultation(patientID int, date *time.Time) (bool, error)
- func (r *AppointmentRepository) PhysicianHomeStats(userId int) (int, int, int, error)
- func (r *AppointmentRepository) ReceptionHomeStats() (int, int, int, error)
- func (r *AppointmentRepository) Save(m *models.Appointment) error
- func (r *AppointmentRepository) SchedulePostOp(m *models.Appointment, appointment models.Appointment) error
- func (r *AppointmentRepository) SearchAppointments(page models.PaginationInput, p models.AppointmentSearchInput) ([]models.Appointment, int64, error)
- func (r *AppointmentRepository) Update(m *models.Appointment) error
- type AppointmentStatusRepository
- func (r *AppointmentStatusRepository) Delete(ID int) error
- func (r *AppointmentStatusRepository) Get(m *models.AppointmentStatus, ID int) error
- func (r *AppointmentStatusRepository) GetAll(p models.PaginationInput) ([]models.AppointmentStatus, int64, error)
- func (r *AppointmentStatusRepository) GetByTitle(m *models.AppointmentStatus, title string) error
- func (r *AppointmentStatusRepository) Save(m *models.AppointmentStatus) error
- func (r *AppointmentStatusRepository) Seed()
- func (r *AppointmentStatusRepository) Update(m *models.AppointmentStatus) error
- type AutoRefractionRepository
- func (r *AutoRefractionRepository) Get(m *models.AutoRefraction, filter models.AutoRefraction) error
- func (r *AutoRefractionRepository) GetByPatientChart(m *models.AutoRefraction, ID int) error
- func (r *AutoRefractionRepository) Save(m *models.AutoRefraction) error
- func (r *AutoRefractionRepository) SaveForPatientChart(m *models.AutoRefraction) error
- func (r *AutoRefractionRepository) Update(m *models.AutoRefraction) error
- type BillingRepository
- func (r *BillingRepository) Delete(ID int) error
- func (r *BillingRepository) Get(m *models.Billing, ID int) error
- func (r *BillingRepository) GetAll(p PaginationInput) ([]models.Billing, int64, error)
- func (r *BillingRepository) GetByIds(ids []*int) ([]models.Billing, error)
- func (r *BillingRepository) GetConsultationBillings() ([]*models.Billing, error)
- func (r *BillingRepository) Save(m *models.Billing) error
- func (r *BillingRepository) Search(p models.PaginationInput, filter *models.Billing, searchTerm *string) ([]models.Billing, int64, error)
- func (r *BillingRepository) Seed()
- func (r *BillingRepository) Update(m *models.Billing) error
- type ChatDeleteRepository
- type ChatMemberRepository
- func (r *ChatMemberRepository) Delete(userID int, chatID int) error
- func (r *ChatMemberRepository) FindCommonChatID(userID int, recipientID int) (int, error)
- func (r *ChatMemberRepository) Get(m *models.ChatMember, ID int) error
- func (r *ChatMemberRepository) GetByChatID(ID int) ([]*models.ChatMember, error)
- func (r *ChatMemberRepository) Save(m *models.ChatMember) error
- func (r *ChatMemberRepository) Update(m *models.ChatMember) error
- type ChatMessageRepository
- type ChatMuteRepository
- type ChatRepository
- type ChatUnreadRepository
- func (r *ChatUnreadRepository) Delete(m *models.ChatUnreadMessage, ID int) error
- func (r *ChatUnreadRepository) DeleteForUserChat(userID int, chatID int) error
- func (r *ChatUnreadRepository) Get(m *models.ChatUnreadMessage, ID int) error
- func (r *ChatUnreadRepository) GetByUserID(ID int) ([]*models.ChatUnreadMessage, error)
- func (r *ChatUnreadRepository) Save(m *models.ChatUnreadMessage) error
- func (r *ChatUnreadRepository) Update(m *models.ChatUnreadMessage) error
- type ChiefComplaintRepository
- func (r *ChiefComplaintRepository) Delete(ID int) error
- func (r *ChiefComplaintRepository) Get(m *models.ChiefComplaint, ID int) error
- func (r *ChiefComplaintRepository) GetAll(p models.PaginationInput, filter *models.ChiefComplaint) ([]models.ChiefComplaint, int64, error)
- func (r *ChiefComplaintRepository) Save(m *models.ChiefComplaint) error
- func (r *ChiefComplaintRepository) Search(p models.PaginationInput, searchTerm string) ([]models.ChiefComplaint, int64, error)
- func (r *ChiefComplaintRepository) Update(m *models.ChiefComplaint) error
- type ChiefComplaintTypeRepository
- func (r *ChiefComplaintTypeRepository) Delete(ID int) error
- func (r *ChiefComplaintTypeRepository) Get(m *models.ChiefComplaintType, ID int) error
- func (r *ChiefComplaintTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ChiefComplaintType, int64, error)
- func (r *ChiefComplaintTypeRepository) GetByTitle(m *models.ChiefComplaintType, title string) error
- func (r *ChiefComplaintTypeRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.ChiefComplaintType, int64, error)
- func (r *ChiefComplaintTypeRepository) Save(m *models.ChiefComplaintType) error
- func (r *ChiefComplaintTypeRepository) Update(m *models.ChiefComplaintType) error
- type CoverTestRepository
- func (r *CoverTestRepository) Get(m *models.CoverTest, filter models.CoverTest) error
- func (r *CoverTestRepository) GetByPatientChart(m *models.CoverTest, ID int) error
- func (r *CoverTestRepository) Save(m *models.CoverTest) error
- func (r *CoverTestRepository) SaveForPatientChart(m *models.CoverTest) error
- func (r *CoverTestRepository) Update(m *models.CoverTest) error
- type DiagnosisRepository
- func (r *DiagnosisRepository) Delete(ID int) error
- func (r *DiagnosisRepository) Get(m *models.Diagnosis, ID int) error
- func (r *DiagnosisRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Diagnosis, int64, error)
- func (r *DiagnosisRepository) GetByTitle(m *models.Diagnosis, title string) error
- func (r *DiagnosisRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.Diagnosis, int64, error)
- func (r *DiagnosisRepository) Save(m *models.Diagnosis) error
- func (r *DiagnosisRepository) Update(m *models.Diagnosis) error
- type DiagnosticProcedureOrderRepository
- func (r *DiagnosticProcedureOrderRepository) Confirm(m *models.DiagnosticProcedureOrder, id int, invoiceNo string) error
- func (r *DiagnosticProcedureOrderRepository) Delete(ID int) error
- func (r *DiagnosticProcedureOrderRepository) Get(m *models.DiagnosticProcedureOrder, ID int) error
- func (r *DiagnosticProcedureOrderRepository) GetAll(p PaginationInput, filter *models.DiagnosticProcedureOrder) ([]models.DiagnosticProcedureOrder, int64, error)
- func (r *DiagnosticProcedureOrderRepository) GetByPatientChartID(m *models.DiagnosticProcedureOrder, patientChartID int) error
- func (r *DiagnosticProcedureOrderRepository) GetCount(filter *models.DiagnosticProcedureOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *DiagnosticProcedureOrderRepository) GetOrderPayments(id int) ([]models.Payment, error)
- func (r *DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles(patientID int) ([]string, error)
- func (r *DiagnosticProcedureOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *DiagnosticProcedureOrderRepository) GetWithProcedures(m *models.DiagnosticProcedureOrder, ID int) error
- func (r *DiagnosticProcedureOrderRepository) OrderAndConfirm()
- func (r *DiagnosticProcedureOrderRepository) Save(m *models.DiagnosticProcedureOrder, ...) error
- func (r *DiagnosticProcedureOrderRepository) Search(p models.PaginationInput, filter *models.DiagnosticProcedureOrder, ...) ([]models.DiagnosticProcedureOrder, int64, error)
- func (r *DiagnosticProcedureOrderRepository) Update(m *models.DiagnosticProcedureOrder) error
- type DiagnosticProcedureRepository
- func (r *DiagnosticProcedureRepository) ClearAssociation(association string, diagnosticProcedureID int) error
- func (r *DiagnosticProcedureRepository) Delete(ID int) error
- func (r *DiagnosticProcedureRepository) DeleteFile(association string, diagnosticProcedureID int, fileID int) error
- func (r *DiagnosticProcedureRepository) Get(m *models.DiagnosticProcedure, ID int) error
- func (r *DiagnosticProcedureRepository) GetAll(p models.PaginationInput, filter *models.DiagnosticProcedure) ([]models.DiagnosticProcedure, int64, error)
- func (r *DiagnosticProcedureRepository) GetByPatientChartID(m *models.DiagnosticProcedure, ID int) error
- func (r *DiagnosticProcedureRepository) GetRefraction(m *models.DiagnosticProcedure, patientChartID int) error
- func (r *DiagnosticProcedureRepository) GetWithPayments(m *models.DiagnosticProcedure, ID int) error
- func (r *DiagnosticProcedureRepository) Save(m *models.DiagnosticProcedure) error
- func (r *DiagnosticProcedureRepository) Update(m *models.DiagnosticProcedure) error
- type DiagnosticProcedureTypeRepository
- func (r *DiagnosticProcedureTypeRepository) Delete(ID int) error
- func (r *DiagnosticProcedureTypeRepository) Get(m *models.DiagnosticProcedureType, ID int) error
- func (r *DiagnosticProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.DiagnosticProcedureType, int64, error)
- func (r *DiagnosticProcedureTypeRepository) GetByTitle(m *models.DiagnosticProcedureType, title string) error
- func (r *DiagnosticProcedureTypeRepository) Save(m *models.DiagnosticProcedureType) error
- func (r *DiagnosticProcedureTypeRepository) Update(m *models.DiagnosticProcedureType) error
- type ExamCategoryRepository
- func (r *ExamCategoryRepository) Delete(ID int) error
- func (r *ExamCategoryRepository) Get(m *models.ExamCategory, ID int) error
- func (r *ExamCategoryRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamCategory, int64, error)
- func (r *ExamCategoryRepository) GetByTitle(m *models.ExamCategory, title string) error
- func (r *ExamCategoryRepository) Save(m *models.ExamCategory) error
- func (r *ExamCategoryRepository) Update(m *models.ExamCategory) error
- type ExamFindingRepository
- func (r *ExamFindingRepository) Delete(ID int) error
- func (r *ExamFindingRepository) Get(m *models.ExamFinding, ID int) error
- func (r *ExamFindingRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamFinding, int64, error)
- func (r *ExamFindingRepository) GetByTitle(m *models.ExamFinding, title string) error
- func (r *ExamFindingRepository) Save(m *models.ExamFinding) error
- func (r *ExamFindingRepository) Update(m *models.ExamFinding) error
- type ExternalExamRepository
- func (r *ExternalExamRepository) Get(m *models.ExternalExam, filter models.ExternalExam) error
- func (r *ExternalExamRepository) GetByPatientChart(m *models.ExternalExam, ID int) error
- func (r *ExternalExamRepository) Save(m *models.ExternalExam) error
- func (r *ExternalExamRepository) SaveForPatientChart(m *models.ExternalExam) error
- func (r *ExternalExamRepository) Update(m *models.ExternalExam) error
- type EyewearPrescriptionOrderRepository
- func (r *EyewearPrescriptionOrderRepository) Delete(m *models.EyewearPrescriptionOrder, ID int) error
- func (r *EyewearPrescriptionOrderRepository) Get(m *models.EyewearPrescriptionOrder, ID int) error
- func (r *EyewearPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.EyewearPrescriptionOrder) ([]models.EyewearPrescriptionOrder, int64, error)
- func (r *EyewearPrescriptionOrderRepository) GetByPatientChartID(m *models.EyewearPrescriptionOrder, patientChartID int) error
- func (r *EyewearPrescriptionOrderRepository) Save(m *models.EyewearPrescriptionOrder) error
- func (r *EyewearPrescriptionOrderRepository) SaveEyewearPrescription(m *models.EyewearPrescriptionOrder, ...) error
- func (r *EyewearPrescriptionOrderRepository) Search(p models.PaginationInput, filter *models.EyewearPrescriptionOrder, ...) ([]models.EyewearPrescriptionOrder, int64, error)
- func (r *EyewearPrescriptionOrderRepository) Update(m *models.EyewearPrescriptionOrder) error
- type EyewearPrescriptionRepository
- func (r *EyewearPrescriptionRepository) Delete(ID int) error
- func (r *EyewearPrescriptionRepository) Get(m *models.EyewearPrescription, ID int) error
- func (r *EyewearPrescriptionRepository) GetAll(p PaginationInput, filter *models.EyewearPrescription) ([]models.EyewearPrescription, int64, error)
- func (r *EyewearPrescriptionRepository) Save(m *models.EyewearPrescription) error
- func (r *EyewearPrescriptionRepository) Update(m *models.EyewearPrescription) error
- type EyewearShopRepository
- func (r *EyewearShopRepository) Delete(ID int) error
- func (r *EyewearShopRepository) Get(m *models.EyewearShop, ID int) error
- func (r *EyewearShopRepository) GetAll(p models.PaginationInput, filter *models.EyewearShop) ([]models.EyewearShop, int64, error)
- func (r *EyewearShopRepository) Save(m *models.EyewearShop) error
- func (r *EyewearShopRepository) Update(m *models.EyewearShop) error
- type FamilyIllnessRepository
- func (r *FamilyIllnessRepository) Delete(ID int) error
- func (r *FamilyIllnessRepository) Get(m *models.FamilyIllness, ID int) error
- func (r *FamilyIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.FamilyIllness, error)
- func (r *FamilyIllnessRepository) Save(m *models.FamilyIllness) error
- func (r *FamilyIllnessRepository) Update(m *models.FamilyIllness) error
- type FavoriteChiefComplaintRepository
- func (r *FavoriteChiefComplaintRepository) Delete(id int) error
- func (r *FavoriteChiefComplaintRepository) Get(m *models.FavoriteChiefComplaint, ID int) error
- func (r *FavoriteChiefComplaintRepository) GetByUser(ID int) ([]*models.FavoriteChiefComplaint, error)
- func (r *FavoriteChiefComplaintRepository) Save(m *models.FavoriteChiefComplaint) error
- func (r *FavoriteChiefComplaintRepository) Update(m *models.FavoriteChiefComplaint) error
- type FavoriteDiagnosisRepository
- func (r *FavoriteDiagnosisRepository) Delete(id int) error
- func (r *FavoriteDiagnosisRepository) Get(m *models.FavoriteDiagnosis, ID int) error
- func (r *FavoriteDiagnosisRepository) GetByUser(ID int) ([]*models.FavoriteDiagnosis, error)
- func (r *FavoriteDiagnosisRepository) Save(m *models.FavoriteDiagnosis) error
- func (r *FavoriteDiagnosisRepository) Update(m *models.FavoriteDiagnosis) error
- type FavoriteMedicationRepository
- func (r *FavoriteMedicationRepository) Delete(ID int) error
- func (r *FavoriteMedicationRepository) Get(m *models.FavoriteMedication, ID int) error
- func (r *FavoriteMedicationRepository) GetAll(p models.PaginationInput, filter *models.FavoriteMedication, ...) ([]models.FavoriteMedication, int64, error)
- func (r *FavoriteMedicationRepository) Save(m *models.FavoriteMedication) error
- func (r *FavoriteMedicationRepository) Search(p models.PaginationInput, searchTerm string) ([]models.FavoriteMedication, int64, error)
- func (r *FavoriteMedicationRepository) Update(m *models.FavoriteMedication) error
- type FileRepository
- type FollowUpOrderRepository
- func (r *FollowUpOrderRepository) ConfirmOrder(m *models.FollowUpOrder, followUpOrderID int, followUpID int, billingID *int, ...) error
- func (r *FollowUpOrderRepository) Delete(ID int) error
- func (r *FollowUpOrderRepository) GetAll(p PaginationInput, filter *models.FollowUpOrder) ([]models.FollowUpOrder, int64, error)
- func (r *FollowUpOrderRepository) GetByPatientChartID(m *models.FollowUpOrder, patientChartID int) error
- func (r *FollowUpOrderRepository) GetCount(filter *models.FollowUpOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *FollowUpOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *FollowUpOrderRepository) Save(m *models.FollowUpOrder, patientChartID int, patientID int, user models.User, ...) error
- func (r *FollowUpOrderRepository) Search(p models.PaginationInput, filter *models.FollowUpOrder, date *time.Time, ...) ([]models.FollowUpOrder, int64, error)
- func (r *FollowUpOrderRepository) Update(m *models.FollowUpOrder) error
- type FollowUpRepository
- func (r *FollowUpRepository) Delete(ID int) error
- func (r *FollowUpRepository) Get(m *models.FollowUp, ID int) error
- func (r *FollowUpRepository) GetAll(p models.PaginationInput, filter *models.FollowUp) ([]models.FollowUp, int64, error)
- func (r *FollowUpRepository) GetByPatientChart(m *models.FollowUp, ID int) error
- func (r *FollowUpRepository) Save(m *models.FollowUp) error
- func (r *FollowUpRepository) Update(m *models.FollowUp) error
- type FunduscopyRepository
- func (r *FunduscopyRepository) Get(m *models.Funduscopy, filter models.Funduscopy) error
- func (r *FunduscopyRepository) GetByPatientChart(m *models.Funduscopy, ID int) error
- func (r *FunduscopyRepository) Save(m *models.Funduscopy) error
- func (r *FunduscopyRepository) SaveForPatientChart(m *models.Funduscopy) error
- func (r *FunduscopyRepository) Update(m *models.Funduscopy) error
- type HpiComponentRepository
- func (r *HpiComponentRepository) Delete(ID int) error
- func (r *HpiComponentRepository) Get(m *models.HpiComponent, ID int) error
- func (r *HpiComponentRepository) GetAll(p models.PaginationInput, filter *models.HpiComponent) ([]models.HpiComponent, int64, error)
- func (r *HpiComponentRepository) GetByIds(ids []*int) ([]models.HpiComponent, error)
- func (r *HpiComponentRepository) Save(m *models.HpiComponent) error
- func (r *HpiComponentRepository) Search(p models.PaginationInput, filter *models.HpiComponent, searchTerm *string) ([]models.HpiComponent, int64, error)
- func (r *HpiComponentRepository) Update(m *models.HpiComponent) error
- type HpiComponentTypeRepository
- func (r *HpiComponentTypeRepository) Count(dbString string) (int64, error)
- func (r *HpiComponentTypeRepository) Delete(ID int) error
- func (r *HpiComponentTypeRepository) Get(m *models.HpiComponentType, ID int) error
- func (r *HpiComponentTypeRepository) GetAll(p models.PaginationInput) ([]models.HpiComponentType, int64, error)
- func (r *HpiComponentTypeRepository) Save(m *models.HpiComponentType) error
- func (r *HpiComponentTypeRepository) Update(m *models.HpiComponentType) error
- type IopRepository
- func (r *IopRepository) Get(m *models.Iop, filter models.Iop) error
- func (r *IopRepository) GetByPatientChart(m *models.Iop, ID int) error
- func (r *IopRepository) Save(m *models.Iop) error
- func (r *IopRepository) SaveForPatientChart(m *models.Iop) error
- func (r *IopRepository) Update(m *models.Iop) error
- type LabOrderRepository
- func (r *LabOrderRepository) Confirm(m *models.LabOrder, id int, invoiceNo string) error
- func (r *LabOrderRepository) Delete(m *models.LabOrder, ID int) error
- func (r *LabOrderRepository) Get(m *models.LabOrder, ID int) error
- func (r *LabOrderRepository) GetAll(p PaginationInput, filter *models.LabOrder) ([]models.LabOrder, int64, error)
- func (r *LabOrderRepository) GetByPatientChartID(m *models.LabOrder, patientChartID int) error
- func (r *LabOrderRepository) GetCount(filter *models.LabOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *LabOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *LabOrderRepository) Save(m *models.LabOrder, labTypeID int, patientChartID int, patientID int, ...) error
- func (r *LabOrderRepository) Search(p models.PaginationInput, filter *models.LabOrder, date *time.Time, ...) ([]models.LabOrder, int64, error)
- func (r *LabOrderRepository) Update(m *models.LabOrder) error
- type LabRepository
- func (r *LabRepository) ClearAssociation(association string, labID int) error
- func (r *LabRepository) Delete(ID int) error
- func (r *LabRepository) DeleteFile(association string, LabID int, fileID int) error
- func (r *LabRepository) Get(m *models.Lab, ID int) error
- func (r *LabRepository) GetAll(p models.PaginationInput, filter *models.Lab) ([]models.Lab, int64, error)
- func (r *LabRepository) GetByPatientChartID(m *models.Lab, ID int) error
- func (r *LabRepository) Save(m *models.Lab) error
- func (r *LabRepository) Update(m *models.Lab) error
- type LabTypeRepository
- func (r *LabTypeRepository) Delete(ID int) error
- func (r *LabTypeRepository) Get(m *models.LabType, ID int) error
- func (r *LabTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.LabType, int64, error)
- func (r *LabTypeRepository) GetByTitle(m *models.LabType, title string) error
- func (r *LabTypeRepository) Save(m *models.LabType) error
- func (r *LabTypeRepository) Update(m *models.LabType) error
- type LifestyleRepository
- func (r *LifestyleRepository) Delete(ID int) error
- func (r *LifestyleRepository) Get(m *models.Lifestyle, ID int) error
- func (r *LifestyleRepository) GetByPatientHistoryID(ID int) ([]*models.Lifestyle, error)
- func (r *LifestyleRepository) Save(m *models.Lifestyle) error
- func (r *LifestyleRepository) Update(m *models.Lifestyle) error
- type LifestyleTypeRepository
- func (r *LifestyleTypeRepository) Delete(ID int) error
- func (r *LifestyleTypeRepository) Get(m *models.LifestyleType, ID int) error
- func (r *LifestyleTypeRepository) GetAll(p models.PaginationInput) ([]models.LifestyleType, int64, error)
- func (r *LifestyleTypeRepository) GetByTitle(m *models.LifestyleType, title string) error
- func (r *LifestyleTypeRepository) Save(m *models.LifestyleType) error
- func (r *LifestyleTypeRepository) Update(m *models.LifestyleType) error
- type MedicalPrescriptionOrderRepository
- func (r *MedicalPrescriptionOrderRepository) Delete(m *models.MedicalPrescriptionOrder, ID int) error
- func (r *MedicalPrescriptionOrderRepository) Get(m *models.MedicalPrescriptionOrder, ID int) error
- func (r *MedicalPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.MedicalPrescriptionOrder) ([]models.MedicalPrescriptionOrder, int64, error)
- func (r *MedicalPrescriptionOrderRepository) GetByPatientChartID(m *models.MedicalPrescriptionOrder, patientChartID int) error
- func (r *MedicalPrescriptionOrderRepository) SaveMedicalPrescription(m *models.MedicalPrescriptionOrder, ...) error
- func (r *MedicalPrescriptionOrderRepository) Search(p models.PaginationInput, filter *models.MedicalPrescriptionOrder, ...) ([]models.MedicalPrescriptionOrder, int64, error)
- func (r *MedicalPrescriptionOrderRepository) Update(m *models.MedicalPrescriptionOrder) error
- type MedicalPrescriptionRepository
- func (r *MedicalPrescriptionRepository) Delete(m *models.MedicalPrescription, ID int) error
- func (r *MedicalPrescriptionRepository) Get(m *models.MedicalPrescription, ID int) error
- func (r *MedicalPrescriptionRepository) GetAll(p PaginationInput, filter *models.MedicalPrescription) ([]models.MedicalPrescription, int64, error)
- func (r *MedicalPrescriptionRepository) Save(m *models.MedicalPrescription) error
- func (r *MedicalPrescriptionRepository) Search(p models.PaginationInput, filter *models.MedicalPrescription, date *time.Time, ...) ([]models.MedicalPrescription, int64, error)
- func (r *MedicalPrescriptionRepository) Update(m *models.MedicalPrescription) error
- type ModalityRepository
- type OcularMotilityRepository
- func (r *OcularMotilityRepository) Get(m *models.OcularMotility, filter models.OcularMotility) error
- func (r *OcularMotilityRepository) GetByPatientChart(m *models.OcularMotility, ID int) error
- func (r *OcularMotilityRepository) Save(m *models.OcularMotility) error
- func (r *OcularMotilityRepository) SaveForPatientChart(m *models.OcularMotility) error
- func (r *OcularMotilityRepository) Update(m *models.OcularMotility) error
- type OpthalmologyExamRepository
- func (r *OpthalmologyExamRepository) Get(m *models.OpthalmologyExam, filter models.OpthalmologyExam) error
- func (r *OpthalmologyExamRepository) GetByPatientChart(m *models.OpthalmologyExam, ID int) error
- func (r *OpthalmologyExamRepository) Save(m *models.OpthalmologyExam) error
- func (r *OpthalmologyExamRepository) Update(m *models.OpthalmologyExam) error
- type OpticDiscRepository
- func (r *OpticDiscRepository) Get(m *models.OpticDisc, filter models.OpticDisc) error
- func (r *OpticDiscRepository) GetByPatientChart(m *models.OpticDisc, ID int) error
- func (r *OpticDiscRepository) Save(m *models.OpticDisc) error
- func (r *OpticDiscRepository) SaveForPatientChart(m *models.OpticDisc) error
- func (r *OpticDiscRepository) Update(m *models.OpticDisc) error
- type OrganizationDetailsRepository
- type PaginationInput
- type PastHospitalizationRepository
- func (r *PastHospitalizationRepository) Delete(ID int) error
- func (r *PastHospitalizationRepository) Get(m *models.PastHospitalization, ID int) error
- func (r *PastHospitalizationRepository) GetByPatientHistoryID(ID int) ([]*models.PastHospitalization, error)
- func (r *PastHospitalizationRepository) Save(m *models.PastHospitalization) error
- func (r *PastHospitalizationRepository) Update(m *models.PastHospitalization) error
- type PastIllnessRepository
- func (r *PastIllnessRepository) Delete(ID int) error
- func (r *PastIllnessRepository) Get(m *models.PastIllness, ID int) error
- func (r *PastIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.PastIllness, error)
- func (r *PastIllnessRepository) Save(m *models.PastIllness) error
- func (r *PastIllnessRepository) Update(m *models.PastIllness) error
- type PastIllnessTypeRepository
- func (r *PastIllnessTypeRepository) Delete(ID int) error
- func (r *PastIllnessTypeRepository) Get(m *models.PastIllnessType, ID int) error
- func (r *PastIllnessTypeRepository) GetAll(p models.PaginationInput) ([]models.PastIllnessType, int64, error)
- func (r *PastIllnessTypeRepository) GetByTitle(m *models.PastIllnessType, title string) error
- func (r *PastIllnessTypeRepository) Save(m *models.PastIllnessType) error
- func (r *PastIllnessTypeRepository) Update(m *models.PastIllnessType) error
- type PastInjuryRepository
- func (r *PastInjuryRepository) Delete(ID int) error
- func (r *PastInjuryRepository) Get(m *models.PastInjury, ID int) error
- func (r *PastInjuryRepository) GetByPatientHistoryID(ID int) ([]*models.PastInjury, error)
- func (r *PastInjuryRepository) Save(m *models.PastInjury) error
- func (r *PastInjuryRepository) Update(m *models.PastInjury) error
- type PastOptSurgeryRepository
- type PastSurgeryRepository
- func (r *PastSurgeryRepository) Delete(ID int) error
- func (r *PastSurgeryRepository) Get(m *models.PastSurgery, ID int) error
- func (r *PastSurgeryRepository) GetByPatientHistoryID(ID int) ([]*models.PastSurgery, error)
- func (r *PastSurgeryRepository) Save(m *models.PastSurgery) error
- func (r *PastSurgeryRepository) Update(m *models.PastSurgery) error
- type PatientChartRepository
- func (r *PatientChartRepository) Get(m *models.PatientChart, ID int) error
- func (r *PatientChartRepository) GetByAppointmentID(m *models.PatientChart, appointmentID int) error
- func (r *PatientChartRepository) GetWithDetails(m *models.PatientChart, ID int) error
- func (r *PatientChartRepository) Save(m *models.PatientChart) error
- func (r *PatientChartRepository) SignAndLock(m *models.PatientChart, patientChartID int, userID *int) error
- func (r *PatientChartRepository) Update(m *models.PatientChart) error
- type PatientDiagnosisRepository
- func (r *PatientDiagnosisRepository) Delete(ID int) error
- func (r *PatientDiagnosisRepository) Get(m *models.PatientDiagnosis, ID int) error
- func (r *PatientDiagnosisRepository) GetAll(p models.PaginationInput, filter *models.PatientDiagnosis) ([]models.PatientDiagnosis, int64, error)
- func (r *PatientDiagnosisRepository) GetByPatientChartID(m *models.PatientDiagnosis, ID int) error
- func (r *PatientDiagnosisRepository) Save(m *models.PatientDiagnosis, diagnosisID int) error
- func (r *PatientDiagnosisRepository) Update(m *models.PatientDiagnosis) error
- type PatientEncounterLimitRepository
- func (r *PatientEncounterLimitRepository) Delete(ID int) error
- func (r *PatientEncounterLimitRepository) Get(m *models.PatientEncounterLimit, ID int) error
- func (r *PatientEncounterLimitRepository) GetAll(p models.PaginationInput) ([]models.PatientEncounterLimit, int64, error)
- func (r *PatientEncounterLimitRepository) GetByUser(m *models.PatientEncounterLimit, userID int) error
- func (r *PatientEncounterLimitRepository) Save(m *models.PatientEncounterLimit) error
- func (r *PatientEncounterLimitRepository) Update(m *models.PatientEncounterLimit) error
- type PatientHistoryRepository
- func (r *PatientHistoryRepository) Delete(ID int) error
- func (r *PatientHistoryRepository) Get(m *models.PatientHistory, ID int) error
- func (r *PatientHistoryRepository) GetByPatientID(m *models.PatientHistory, ID int) error
- func (r *PatientHistoryRepository) GetByPatientIDWithDetails(m *models.PatientHistory, ID int) error
- func (r *PatientHistoryRepository) Save(m *models.PatientHistory) error
- func (r *PatientHistoryRepository) Update(m *models.PatientHistory) error
- type PatientQueueRepository
- func (r *PatientQueueRepository) AddToQueue(m *models.PatientQueue, toQueueName string, appointmentID int, ...) error
- func (r *PatientQueueRepository) ClearExpired() error
- func (r *PatientQueueRepository) DeleteFromQueue(m *models.PatientQueue, patientQueueID int, appointmentID int) error
- func (r *PatientQueueRepository) Get(m *models.PatientQueue, id int) error
- func (r *PatientQueueRepository) GetAll() ([]*models.PatientQueue, error)
- func (r *PatientQueueRepository) GetByQueueName(m *models.PatientQueue, queueName string) error
- func (r *PatientQueueRepository) Move(m *models.PatientQueue, fromQueueID int, toQueueID int, appointmentID int) error
- func (r *PatientQueueRepository) MoveToQueueName(fromQueueID int, toQueueName string, appointmentID int, queueType string) error
- func (r *PatientQueueRepository) Save(m *models.PatientQueue) error
- func (r *PatientQueueRepository) Seed()
- func (r *PatientQueueRepository) UpdateQueue(queueName string, queue datatypes.JSON) error
- type PatientRepository
- func (r *PatientRepository) Clean() error
- func (r *PatientRepository) Delete(ID int) error
- func (r *PatientRepository) FindByCardNo(m *models.Patient, cardNo string) error
- func (r *PatientRepository) FindByName(firstName string, lastName string) ([]*models.Patient, error)
- func (r *PatientRepository) FindByPhoneNo(phoneNo string) ([]*models.Patient, error)
- func (r *PatientRepository) Get(m *models.Patient, ID int) error
- func (r *PatientRepository) GetAll(p models.PaginationInput) ([]models.Patient, int64, error)
- func (r *PatientRepository) GetAllProgress(patientID int) (*models.PatientHistory, []*models.Appointment, error)
- func (r *PatientRepository) GetAllProgressNotes(appointmentID int) (*models.PatientHistory, []*models.Appointment, error)
- func (r *PatientRepository) GetPatientDiagnosticProcedures(patientID int, diagnosticProcedureTypeTitle string) ([]*models.Appointment, error)
- func (r *PatientRepository) GetPatientFiles(patientID int) ([]*models.File, error)
- func (r *PatientRepository) GetVitalSignsProgress(patientID int) ([]*models.Appointment, error)
- func (r *PatientRepository) Save(m *models.Patient) error
- func (r *PatientRepository) Search(term string) ([]*models.Patient, error)
- func (r *PatientRepository) Update(m *models.Patient) error
- type PaymentOrderWaiverRepository
- func (r *PaymentOrderWaiverRepository) ApproveWaiver(m *models.PaymentOrderWaiver, id int, approve bool) error
- func (r *PaymentOrderWaiverRepository) BatchSave(waivers []models.PaymentOrderWaiver) error
- func (r *PaymentOrderWaiverRepository) Delete(ID int) error
- func (r *PaymentOrderWaiverRepository) Get(m *models.PaymentOrderWaiver, ID int) error
- func (r *PaymentOrderWaiverRepository) GetAll(p models.PaginationInput) ([]models.PaymentOrderWaiver, int64, error)
- func (r *PaymentOrderWaiverRepository) GetApprovedCount() (int, error)
- func (r *PaymentOrderWaiverRepository) Save(m *models.PaymentOrderWaiver) error
- func (r *PaymentOrderWaiverRepository) Update(m *models.PaymentOrderWaiver) error
- type PaymentRepository
- func (r *PaymentRepository) BatchUpdate(ids []int, e models.Payment) error
- func (r *PaymentRepository) Delete(ID int) error
- func (r *PaymentRepository) Get(m *models.Payment, ID int) error
- func (r *PaymentRepository) GetByIds(ids []int) ([]models.Payment, error)
- func (r *PaymentRepository) RequestWaiver(m *models.Payment, paymentID int, patientID int, userID int) error
- func (r *PaymentRepository) RequestWaiverBatch(paymentIds []int, patientId int, userId int) error
- func (r *PaymentRepository) Save(m *models.Payment) error
- func (r *PaymentRepository) Update(m *models.Payment) error
- type PaymentWaiverRepository
- func (r *PaymentWaiverRepository) ApproveWaiver(m *models.PaymentWaiver, id int, approve bool) error
- func (r *PaymentWaiverRepository) BatchSave(waivers []models.PaymentWaiver) error
- func (r *PaymentWaiverRepository) Delete(ID int) error
- func (r *PaymentWaiverRepository) Get(m *models.PaymentWaiver, ID int) error
- func (r *PaymentWaiverRepository) GetAll(p models.PaginationInput) ([]models.PaymentWaiver, int64, error)
- func (r *PaymentWaiverRepository) GetApprovedCount() (int, error)
- func (r *PaymentWaiverRepository) Save(m *models.PaymentWaiver) error
- func (r *PaymentWaiverRepository) Update(m *models.PaymentWaiver) error
- type PharmacyRepository
- func (r *PharmacyRepository) Delete(ID int) error
- func (r *PharmacyRepository) Get(m *models.Pharmacy, ID int) error
- func (r *PharmacyRepository) GetAll(p models.PaginationInput, filter *models.Pharmacy) ([]models.Pharmacy, int64, error)
- func (r *PharmacyRepository) Save(m *models.Pharmacy) error
- func (r *PharmacyRepository) Update(m *models.Pharmacy) error
- type PhysicalExamFindingRepository
- func (r *PhysicalExamFindingRepository) Delete(ID int) error
- func (r *PhysicalExamFindingRepository) DeleteExamCategory(m *models.PhysicalExamFinding, physicalExamFindingID int, examCategoryID int) error
- func (r *PhysicalExamFindingRepository) Get(m *models.PhysicalExamFinding, ID int) error
- func (r *PhysicalExamFindingRepository) GetAll(p models.PaginationInput, filter *models.PhysicalExamFinding) ([]models.PhysicalExamFinding, int64, error)
- func (r *PhysicalExamFindingRepository) GetByPatientChartID(m *models.PhysicalExamFinding, id string) error
- func (r *PhysicalExamFindingRepository) Save(m *models.PhysicalExamFinding) error
- func (r *PhysicalExamFindingRepository) Update(m *models.PhysicalExamFinding) error
- type PupilsRepository
- func (r *PupilsRepository) Get(m *models.Pupils, filter models.Pupils) error
- func (r *PupilsRepository) GetByPatientChart(m *models.Pupils, ID int) error
- func (r *PupilsRepository) Save(m *models.Pupils) error
- func (r *PupilsRepository) SaveForPatientChart(m *models.Pupils) error
- func (r *PupilsRepository) Update(m *models.Pupils) error
- type QueueDestinationRepository
- func (r *QueueDestinationRepository) Delete(ID int) error
- func (r *QueueDestinationRepository) Get(m *models.QueueDestination, ID int) error
- func (r *QueueDestinationRepository) GetAll(p PaginationInput) ([]models.QueueDestination, int64, error)
- func (r *QueueDestinationRepository) GetByTitle(m *models.QueueDestination, title string) error
- func (r *QueueDestinationRepository) GetUserTypeFromDestination(destination string) string
- func (r *QueueDestinationRepository) Save(m *models.QueueDestination) error
- func (r *QueueDestinationRepository) Seed()
- func (r *QueueDestinationRepository) Update(m *models.QueueDestination) error
- type QueueSubscriptionRepository
- func (r *QueueSubscriptionRepository) GetByUserId(m *models.QueueSubscription, userID int) error
- func (r *QueueSubscriptionRepository) Save(m *models.QueueSubscription) error
- func (r *QueueSubscriptionRepository) Subscribe(m *models.QueueSubscription, userId int, patientQueueId int) error
- func (r *QueueSubscriptionRepository) Unsubscribe(m *models.QueueSubscription, userId int, patientQueueId int) error
- type ReferralOrderRepository
- func (r *ReferralOrderRepository) ConfirmOrder(m *models.ReferralOrder, referralOrderID int, referralID int, billingID *int, ...) error
- func (r *ReferralOrderRepository) Delete(ID int) error
- func (r *ReferralOrderRepository) GetAll(p models.PaginationInput, filter *models.ReferralOrder) ([]models.ReferralOrder, int64, error)
- func (r *ReferralOrderRepository) GetByPatientChartID(m *models.ReferralOrder, patientChartID int) error
- func (r *ReferralOrderRepository) GetCount(filter *models.ReferralOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *ReferralOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *ReferralOrderRepository) Save(m *models.ReferralOrder, patientChartID int, patientID int, orderedToID *int, ...) error
- func (r *ReferralOrderRepository) Search(p models.PaginationInput, filter *models.ReferralOrder, date *time.Time, ...) ([]models.ReferralOrder, int64, error)
- func (r *ReferralOrderRepository) Update(m *models.ReferralOrder) error
- type ReferralRepository
- func (r *ReferralRepository) Delete(m *models.Referral, ID int) error
- func (r *ReferralRepository) Get(m *models.Referral, ID int) error
- func (r *ReferralRepository) GetAll(p models.PaginationInput, filter *models.Referral) ([]models.Referral, int64, error)
- func (r *ReferralRepository) GetByOrderID(m *models.Referral, ID int) error
- func (r *ReferralRepository) Save(m *models.Referral) error
- func (r *ReferralRepository) Update(m *models.Referral) error
- type ReviewOfSystemRepository
- func (r *ReviewOfSystemRepository) Delete(ID int) error
- func (r *ReviewOfSystemRepository) Get(m *models.ReviewOfSystem, ID int) error
- func (r *ReviewOfSystemRepository) GetAll(p models.PaginationInput, filter *models.ReviewOfSystem) ([]models.ReviewOfSystem, int64, error)
- func (r *ReviewOfSystemRepository) GetByPatientHistoryID(m *models.ReviewOfSystem, ID string) error
- func (r *ReviewOfSystemRepository) Save(m *models.ReviewOfSystem) error
- func (r *ReviewOfSystemRepository) Update(m *models.ReviewOfSystem) error
- type RoomRepository
- func (r *RoomRepository) Delete(ID int) error
- func (r *RoomRepository) Get(m *models.Room, ID int) error
- func (r *RoomRepository) GetAll(p models.PaginationInput) ([]models.Room, int64, error)
- func (r *RoomRepository) GetByTitle(m *models.Room, title string) error
- func (r *RoomRepository) Save(m *models.Room) error
- func (r *RoomRepository) Seed()
- func (r *RoomRepository) Update(m *models.Room) error
- type SlitLampExamRepository
- func (r *SlitLampExamRepository) Get(m *models.SlitLampExam, filter models.SlitLampExam) error
- func (r *SlitLampExamRepository) GetByPatientChart(m *models.SlitLampExam, ID int) error
- func (r *SlitLampExamRepository) Save(m *models.SlitLampExam) error
- func (r *SlitLampExamRepository) SaveForPatientChart(m *models.SlitLampExam) error
- func (r *SlitLampExamRepository) Update(m *models.SlitLampExam) error
- type SupplyRepository
- func (r *SupplyRepository) Delete(ID int) error
- func (r *SupplyRepository) Get(m *models.Supply, ID int) error
- func (r *SupplyRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Supply, int64, error)
- func (r *SupplyRepository) GetByIds(ids []*int) ([]models.Supply, error)
- func (r *SupplyRepository) GetByTitle(m *models.Supply, title string) error
- func (r *SupplyRepository) Save(m *models.Supply) error
- func (r *SupplyRepository) Update(m *models.Supply) error
- type SurgicalOrderRepository
- func (r *SurgicalOrderRepository) ConfirmOrder(m *models.SurgicalOrder, surgicalProcedure *models.SurgicalProcedure, ...) error
- func (r *SurgicalOrderRepository) Delete(ID int) error
- func (r *SurgicalOrderRepository) Get(m *models.SurgicalOrder, ID int) error
- func (r *SurgicalOrderRepository) GetAll(p PaginationInput, filter *models.SurgicalOrder) ([]models.SurgicalOrder, int64, error)
- func (r *SurgicalOrderRepository) GetByPatientChartID(m *models.SurgicalOrder, patientChartID int) error
- func (r *SurgicalOrderRepository) GetCount(filter *models.SurgicalOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *SurgicalOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *SurgicalOrderRepository) GetWithProcedures(m *models.SurgicalOrder, ID int) error
- func (r *SurgicalOrderRepository) SaveOpthalmologyOrder(m *models.SurgicalOrder, surgicalProcedure *models.SurgicalProcedure, ...) error
- func (r *SurgicalOrderRepository) Search(p models.PaginationInput, filter *models.SurgicalOrder, date *time.Time, ...) ([]models.SurgicalOrder, int64, error)
- func (r *SurgicalOrderRepository) Update(m *models.SurgicalOrder) error
- type SurgicalProcedureRepository
- func (r *SurgicalProcedureRepository) Delete(ID int) error
- func (r *SurgicalProcedureRepository) DeleteFile(association string, surgicalProcedureID int, fileID int) error
- func (r *SurgicalProcedureRepository) Get(m *models.SurgicalProcedure, ID int) error
- func (r *SurgicalProcedureRepository) GetAll(p models.PaginationInput, filter *models.SurgicalProcedure) ([]models.SurgicalProcedure, int64, error)
- func (r *SurgicalProcedureRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.SurgicalProcedure, int64, error)
- func (r *SurgicalProcedureRepository) GetByPatientChart(m *models.SurgicalProcedure, ID int) error
- func (r *SurgicalProcedureRepository) GetWithPayments(m *models.SurgicalProcedure, ID int) error
- func (r *SurgicalProcedureRepository) Save(m *models.SurgicalProcedure) error
- func (r *SurgicalProcedureRepository) Update(m *models.SurgicalProcedure) error
- type SurgicalProcedureTypeRepository
- func (r *SurgicalProcedureTypeRepository) Delete(ID int) error
- func (r *SurgicalProcedureTypeRepository) Get(m *models.SurgicalProcedureType, ID int) error
- func (r *SurgicalProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SurgicalProcedureType, int64, error)
- func (r *SurgicalProcedureTypeRepository) GetByTitle(m *models.SurgicalProcedureType, title string) error
- func (r *SurgicalProcedureTypeRepository) Save(m *models.SurgicalProcedureType) error
- func (r *SurgicalProcedureTypeRepository) Update(m *models.SurgicalProcedureType) error
- type SystemRepository
- func (r *SystemRepository) Delete(m *models.System, ID int) error
- func (r *SystemRepository) Get(m *models.System, ID int) error
- func (r *SystemRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.System, int64, error)
- func (r *SystemRepository) GetByTitle(m *models.System, title string) error
- func (r *SystemRepository) Save(m *models.System) error
- func (r *SystemRepository) Update(m *models.System) error
- type SystemSymptomRepository
- func (r *SystemSymptomRepository) Delete(ID int) error
- func (r *SystemSymptomRepository) Get(m *models.SystemSymptom, ID int) error
- func (r *SystemSymptomRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SystemSymptom, int64, error)
- func (r *SystemSymptomRepository) GetByTitle(m *models.SystemSymptom, title string) error
- func (r *SystemSymptomRepository) Save(m *models.SystemSymptom) error
- func (r *SystemSymptomRepository) Update(m *models.SystemSymptom) error
- type TreatmentOrderRepository
- func (r *TreatmentOrderRepository) ConfirmOrder(m *models.TreatmentOrder, treatment *models.Treatment, ...) error
- func (r *TreatmentOrderRepository) Delete(ID int) error
- func (r *TreatmentOrderRepository) Get(m *models.TreatmentOrder, ID int) error
- func (r *TreatmentOrderRepository) GetAll(p PaginationInput, filter *models.TreatmentOrder) ([]models.TreatmentOrder, int64, error)
- func (r *TreatmentOrderRepository) GetByPatientChartID(m *models.TreatmentOrder, patientChartID int) error
- func (r *TreatmentOrderRepository) GetCount(filter *models.TreatmentOrder, date *time.Time, searchTerm *string) (int64, error)
- func (r *TreatmentOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *TreatmentOrderRepository) GetWithTreatments(m *models.TreatmentOrder, ID int) error
- func (r *TreatmentOrderRepository) SaveOpthalmologyTreatment(m *models.TreatmentOrder, treatment *models.Treatment, treatmentTypeID int, ...) error
- func (r *TreatmentOrderRepository) Search(p models.PaginationInput, filter *models.TreatmentOrder, date *time.Time, ...) ([]models.TreatmentOrder, int64, error)
- func (r *TreatmentOrderRepository) Update(m *models.TreatmentOrder) error
- type TreatmentRepository
- func (r *TreatmentRepository) Delete(ID int) error
- func (r *TreatmentRepository) Get(m *models.Treatment, ID int) error
- func (r *TreatmentRepository) GetAll(p models.PaginationInput, filter *models.Treatment) ([]models.Treatment, int64, error)
- func (r *TreatmentRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.Treatment, int64, error)
- func (r *TreatmentRepository) GetByPatientChart(m *models.Treatment, ID int) error
- func (r *TreatmentRepository) GetWithPayments(m *models.Treatment, ID int) error
- func (r *TreatmentRepository) Save(m *models.Treatment) error
- func (r *TreatmentRepository) Update(m *models.Treatment) error
- type TreatmentStatus
- type TreatmentTypeRepository
- func (r *TreatmentTypeRepository) Delete(ID int) error
- func (r *TreatmentTypeRepository) Get(m *models.TreatmentType, ID int) error
- func (r *TreatmentTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.TreatmentType, int64, error)
- func (r *TreatmentTypeRepository) GetByTitle(m *models.TreatmentType, title string) error
- func (r *TreatmentTypeRepository) Save(m *models.TreatmentType) error
- func (r *TreatmentTypeRepository) Update(m *models.TreatmentType) error
- type UserRepository
- func (r *UserRepository) CheckIfUserLegacy(m *models.User, oldUserName string) error
- func (r *UserRepository) Get(m *models.User, ID int) error
- func (r *UserRepository) GetAll(p PaginationInput) ([]models.User, int64, error)
- func (r *UserRepository) GetByEmail(m *models.User, email string) error
- func (r *UserRepository) GetByOldUserName(m *models.User, userName string) error
- func (r *UserRepository) GetByUserType(m *models.User, userTypeID int) (users []models.User, err error)
- func (r *UserRepository) GetByUserTypeTitle(userTypeTitle string) ([]*models.User, error)
- func (r *UserRepository) Ping() error
- func (r *UserRepository) Save(m *models.User, userTypes []models.UserType) error
- func (r *UserRepository) Search(p models.PaginationInput, filter *models.User, searchTerm *string) ([]models.User, int64, error)
- func (r *UserRepository) SearchPhysicians(searchTerm string) ([]*models.User, error)
- func (r *UserRepository) Seed()
- func (r *UserRepository) Update(m *models.User, userTypes []models.UserType) error
- type UserTypeRepository
- func (r *UserTypeRepository) Delete(ID int) error
- func (r *UserTypeRepository) Get(m *models.UserType, ID int) error
- func (r *UserTypeRepository) GetAll(p models.PaginationInput) ([]models.UserType, int64, error)
- func (r *UserTypeRepository) GetByIds(ids []*int) ([]models.UserType, error)
- func (r *UserTypeRepository) GetByTitle(m *models.UserType, title string) error
- func (r *UserTypeRepository) Save(m *models.UserType) error
- func (r *UserTypeRepository) Seed()
- func (r *UserTypeRepository) Update(m *models.UserType) error
- type VisitTypeRepository
- func (r *VisitTypeRepository) Count(dbString string) (int64, error)
- func (r *VisitTypeRepository) Delete(ID int) error
- func (r *VisitTypeRepository) Get(m *models.VisitType, ID int) error
- func (r *VisitTypeRepository) GetAll(p models.PaginationInput) ([]models.VisitType, int64, error)
- func (r *VisitTypeRepository) GetByTitle(m *models.VisitType, title string) error
- func (r *VisitTypeRepository) GetByTitles(titles []string) ([]models.VisitType, error)
- func (r *VisitTypeRepository) Save(m *models.VisitType) error
- func (r *VisitTypeRepository) Seed()
- func (r *VisitTypeRepository) Update(m *models.VisitType) error
- type VisualAcuityRepository
- func (r *VisualAcuityRepository) Get(m *models.VisualAcuity, filter models.VisualAcuity) error
- func (r *VisualAcuityRepository) GetByPatientChart(m *models.VisualAcuity, ID int) error
- func (r *VisualAcuityRepository) Save(m *models.VisualAcuity) error
- func (r *VisualAcuityRepository) SaveForPatientChart(m *models.VisualAcuity) error
- func (r *VisualAcuityRepository) Update(m *models.VisualAcuity) error
- type VitalSignsRepository
- func (r *VitalSignsRepository) Get(m *models.VitalSigns, filter models.VitalSigns) error
- func (r *VitalSignsRepository) GetByPatientChart(m *models.VitalSigns, ID int) error
- func (r *VitalSignsRepository) Save(m *models.VitalSigns) error
- func (r *VitalSignsRepository) Update(m *models.VitalSigns) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllergyRepository ¶
func ProvideAllergyRepository ¶
func ProvideAllergyRepository(DB *gorm.DB) AllergyRepository
func (*AllergyRepository) Get ¶
func (r *AllergyRepository) Get(m *models.Allergy, ID int) error
Get ...
type AmendmentRepository ¶
func ProvideAmendmentRepository ¶
func ProvideAmendmentRepository(DB *gorm.DB) AmendmentRepository
func (*AmendmentRepository) Create ¶
func (r *AmendmentRepository) Create(m *models.Amendment) error
Create ...
func (*AmendmentRepository) Get ¶
func (r *AmendmentRepository) Get(m *models.Amendment, ID int) error
Get ...
type AppointmentQueueRepository ¶
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 ¶
func (r *AppointmentQueueRepository) Get(ID int, m *models.AppointmentQueue) error
Get ...
func (*AppointmentQueueRepository) Save ¶
func (r *AppointmentQueueRepository) Save(m *models.AppointmentQueue) error
Save ...
func (*AppointmentQueueRepository) Update ¶
func (r *AppointmentQueueRepository) Update(m *models.AppointmentQueue) error
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 ¶
func (r *AppointmentRepository) Get(m *models.Appointment, ID int) error
Get ...
func (*AppointmentRepository) GetAll ¶
func (r *AppointmentRepository) GetAll(p models.PaginationInput, filter *models.Appointment) ([]models.Appointment, int64, error)
GetAll ...
func (*AppointmentRepository) GetByIds ¶
func (r *AppointmentRepository) GetByIds(ids []int, p models.PaginationInput) ([]models.Appointment, int64, error)
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 ¶
PayForConsultation ...
func (*AppointmentRepository) PhysicianHomeStats ¶
PhysicianHomeStats ...
func (*AppointmentRepository) ReceptionHomeStats ¶
func (r *AppointmentRepository) ReceptionHomeStats() (int, int, int, error)
ReceptionHomeStats ...
func (*AppointmentRepository) Save ¶
func (r *AppointmentRepository) Save(m *models.Appointment) error
Save ...
func (*AppointmentRepository) SchedulePostOp ¶
func (r *AppointmentRepository) SchedulePostOp(m *models.Appointment, appointment models.Appointment) error
SchedulePostOp ...
func (*AppointmentRepository) SearchAppointments ¶
func (r *AppointmentRepository) SearchAppointments(page models.PaginationInput, p models.AppointmentSearchInput) ([]models.Appointment, int64, error)
SearchAppointments ...
func (*AppointmentRepository) Update ¶
func (r *AppointmentRepository) Update(m *models.Appointment) error
Update ...
type AppointmentStatusRepository ¶
func ProvideAppointmentStatusRepository ¶
func ProvideAppointmentStatusRepository(DB *gorm.DB) AppointmentStatusRepository
func (*AppointmentStatusRepository) Delete ¶
func (r *AppointmentStatusRepository) Delete(ID int) error
Delete ...
func (*AppointmentStatusRepository) Get ¶
func (r *AppointmentStatusRepository) Get(m *models.AppointmentStatus, ID int) error
Get ...
func (*AppointmentStatusRepository) GetAll ¶
func (r *AppointmentStatusRepository) GetAll(p models.PaginationInput) ([]models.AppointmentStatus, int64, error)
GetAll ...
func (*AppointmentStatusRepository) GetByTitle ¶
func (r *AppointmentStatusRepository) GetByTitle(m *models.AppointmentStatus, title string) error
GetByTitle ...
func (*AppointmentStatusRepository) Save ¶
func (r *AppointmentStatusRepository) Save(m *models.AppointmentStatus) error
Save ...
func (*AppointmentStatusRepository) Update ¶
func (r *AppointmentStatusRepository) Update(m *models.AppointmentStatus) error
Update ...
type AutoRefractionRepository ¶
func ProvideAutoRefractionRepository ¶
func ProvideAutoRefractionRepository(DB *gorm.DB) AutoRefractionRepository
func (*AutoRefractionRepository) Get ¶
func (r *AutoRefractionRepository) Get(m *models.AutoRefraction, filter models.AutoRefraction) error
Get ...
func (*AutoRefractionRepository) GetByPatientChart ¶
func (r *AutoRefractionRepository) GetByPatientChart(m *models.AutoRefraction, ID int) error
GetByPatientChart ...
func (*AutoRefractionRepository) Save ¶
func (r *AutoRefractionRepository) Save(m *models.AutoRefraction) error
Save ...
func (*AutoRefractionRepository) SaveForPatientChart ¶
func (r *AutoRefractionRepository) SaveForPatientChart(m *models.AutoRefraction) error
SaveForPatientChart ...
func (*AutoRefractionRepository) Update ¶
func (r *AutoRefractionRepository) Update(m *models.AutoRefraction) error
Update ...
type BillingRepository ¶
func ProvideBillingRepository ¶
func ProvideBillingRepository(DB *gorm.DB) BillingRepository
func (*BillingRepository) Get ¶
func (r *BillingRepository) Get(m *models.Billing, ID int) error
Get ...
func (*BillingRepository) GetAll ¶
func (r *BillingRepository) GetAll(p PaginationInput) ([]models.Billing, int64, error)
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 ...
type ChatDeleteRepository ¶
func ProvideChatDeleteRepository ¶
func ProvideChatDeleteRepository(DB *gorm.DB) ChatDeleteRepository
func (*ChatDeleteRepository) Delete ¶
func (r *ChatDeleteRepository) Delete(userID int, chatID int) error
Delete ...
func (*ChatDeleteRepository) Get ¶
func (r *ChatDeleteRepository) Get(m *models.ChatDelete, ID int) error
Get ...
func (*ChatDeleteRepository) Save ¶
func (r *ChatDeleteRepository) Save(m *models.ChatDelete) error
Save ...
func (*ChatDeleteRepository) Update ¶
func (r *ChatDeleteRepository) Update(m *models.ChatDelete) error
Update ...
type ChatMemberRepository ¶
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 ¶
func (r *ChatMemberRepository) Get(m *models.ChatMember, ID int) error
Get ...
func (*ChatMemberRepository) GetByChatID ¶
func (r *ChatMemberRepository) GetByChatID(ID int) ([]*models.ChatMember, error)
GetByChatID ...
func (*ChatMemberRepository) Save ¶
func (r *ChatMemberRepository) Save(m *models.ChatMember) error
Save ...
func (*ChatMemberRepository) Update ¶
func (r *ChatMemberRepository) Update(m *models.ChatMember) error
Update ...
type ChatMessageRepository ¶
func ProvideChatMessageRepository ¶
func ProvideChatMessageRepository(DB *gorm.DB) ChatMessageRepository
func (*ChatMessageRepository) Get ¶
func (r *ChatMessageRepository) Get(m *models.ChatMessage, ID int) error
Get ...
func (*ChatMessageRepository) GetByChatID ¶
func (r *ChatMessageRepository) GetByChatID(ID int) ([]*models.ChatMessage, error)
GetByChatID ...
func (*ChatMessageRepository) Save ¶
func (r *ChatMessageRepository) Save(m *models.ChatMessage) error
Save ...
func (*ChatMessageRepository) Update ¶
func (r *ChatMessageRepository) Update(m *models.ChatMessage) error
Update ...
type ChatMuteRepository ¶
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 ...
type ChatRepository ¶
func ProvideChatRepository ¶
func ProvideChatRepository(DB *gorm.DB) ChatRepository
func (*ChatRepository) GetUserChats ¶
func (r *ChatRepository) GetUserChats(userID int) ([]*models.Chat, error)
GetUserChats ...
type ChatUnreadRepository ¶
func ProvideChatUnreadRepository ¶
func ProvideChatUnreadRepository(DB *gorm.DB) ChatUnreadRepository
func (*ChatUnreadRepository) Delete ¶
func (r *ChatUnreadRepository) Delete(m *models.ChatUnreadMessage, ID int) error
Delete ...
func (*ChatUnreadRepository) DeleteForUserChat ¶
func (r *ChatUnreadRepository) DeleteForUserChat(userID int, chatID int) error
Delete ...
func (*ChatUnreadRepository) Get ¶
func (r *ChatUnreadRepository) Get(m *models.ChatUnreadMessage, ID int) error
Get ...
func (*ChatUnreadRepository) GetByUserID ¶
func (r *ChatUnreadRepository) GetByUserID(ID int) ([]*models.ChatUnreadMessage, error)
GetByUserID ...
func (*ChatUnreadRepository) Save ¶
func (r *ChatUnreadRepository) Save(m *models.ChatUnreadMessage) error
Save ...
func (*ChatUnreadRepository) Update ¶
func (r *ChatUnreadRepository) Update(m *models.ChatUnreadMessage) error
Update ...
type ChiefComplaintRepository ¶
func ProvideChiefComplaintRepository ¶
func ProvideChiefComplaintRepository(DB *gorm.DB) ChiefComplaintRepository
func (*ChiefComplaintRepository) Delete ¶
func (r *ChiefComplaintRepository) Delete(ID int) error
Delete ...
func (*ChiefComplaintRepository) Get ¶
func (r *ChiefComplaintRepository) Get(m *models.ChiefComplaint, ID int) error
Get ...
func (*ChiefComplaintRepository) GetAll ¶
func (r *ChiefComplaintRepository) GetAll(p models.PaginationInput, filter *models.ChiefComplaint) ([]models.ChiefComplaint, int64, error)
GetAll ...
func (*ChiefComplaintRepository) Save ¶
func (r *ChiefComplaintRepository) Save(m *models.ChiefComplaint) error
Save ...
func (*ChiefComplaintRepository) Search ¶
func (r *ChiefComplaintRepository) Search(p models.PaginationInput, searchTerm string) ([]models.ChiefComplaint, int64, error)
Search ...
func (*ChiefComplaintRepository) Update ¶
func (r *ChiefComplaintRepository) Update(m *models.ChiefComplaint) error
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 ¶
func (r *ChiefComplaintTypeRepository) Get(m *models.ChiefComplaintType, ID int) error
Get ...
func (*ChiefComplaintTypeRepository) GetAll ¶
func (r *ChiefComplaintTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ChiefComplaintType, int64, error)
GetAll ...
func (*ChiefComplaintTypeRepository) GetByTitle ¶
func (r *ChiefComplaintTypeRepository) GetByTitle(m *models.ChiefComplaintType, title string) error
GetByTitle ...
func (*ChiefComplaintTypeRepository) GetFavorites ¶
func (r *ChiefComplaintTypeRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.ChiefComplaintType, int64, error)
GetFavorites ...
func (*ChiefComplaintTypeRepository) Save ¶
func (r *ChiefComplaintTypeRepository) Save(m *models.ChiefComplaintType) error
Save ...
func (*ChiefComplaintTypeRepository) Update ¶
func (r *ChiefComplaintTypeRepository) Update(m *models.ChiefComplaintType) error
Update ...
type CoverTestRepository ¶
func ProvideCoverTestRepository ¶
func ProvideCoverTestRepository(DB *gorm.DB) CoverTestRepository
func (*CoverTestRepository) GetByPatientChart ¶
func (r *CoverTestRepository) GetByPatientChart(m *models.CoverTest, ID int) error
GetByPatientChart ...
func (*CoverTestRepository) Save ¶
func (r *CoverTestRepository) Save(m *models.CoverTest) error
Save ...
func (*CoverTestRepository) SaveForPatientChart ¶
func (r *CoverTestRepository) SaveForPatientChart(m *models.CoverTest) error
SaveForPatientChart ...
type DiagnosisRepository ¶
type DiagnosisRepository struct { DB *gorm.DB FavoriteDiagnosisRepository FavoriteDiagnosisRepository }
func ProvideDiagnosisRepository ¶
func ProvideDiagnosisRepository(DB *gorm.DB, favoriteDiagnosisRepository FavoriteDiagnosisRepository) DiagnosisRepository
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 ...
type DiagnosticProcedureOrderRepository ¶
func ProvideDiagnosticProcedureOrderRepository ¶
func ProvideDiagnosticProcedureOrderRepository(DB *gorm.DB) DiagnosticProcedureOrderRepository
func (*DiagnosticProcedureOrderRepository) Confirm ¶
func (r *DiagnosticProcedureOrderRepository) Confirm(m *models.DiagnosticProcedureOrder, id int, invoiceNo string) error
Confirm ...
func (*DiagnosticProcedureOrderRepository) Delete ¶
func (r *DiagnosticProcedureOrderRepository) Delete(ID int) error
Delete ...
func (*DiagnosticProcedureOrderRepository) Get ¶ added in v0.1.11
func (r *DiagnosticProcedureOrderRepository) Get(m *models.DiagnosticProcedureOrder, ID int) error
Get ...
func (*DiagnosticProcedureOrderRepository) GetAll ¶
func (r *DiagnosticProcedureOrderRepository) GetAll(p PaginationInput, filter *models.DiagnosticProcedureOrder) ([]models.DiagnosticProcedureOrder, int64, error)
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
func (r *DiagnosticProcedureOrderRepository) GetWithProcedures(m *models.DiagnosticProcedureOrder, ID int) error
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 ¶
func (r *DiagnosticProcedureOrderRepository) Search(p models.PaginationInput, filter *models.DiagnosticProcedureOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.DiagnosticProcedureOrder, int64, error)
Search ...
func (*DiagnosticProcedureOrderRepository) Update ¶
func (r *DiagnosticProcedureOrderRepository) Update(m *models.DiagnosticProcedureOrder) error
Update ...
type DiagnosticProcedureRepository ¶
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 ¶
func (r *DiagnosticProcedureRepository) Get(m *models.DiagnosticProcedure, ID int) error
Get ...
func (*DiagnosticProcedureRepository) GetAll ¶
func (r *DiagnosticProcedureRepository) GetAll(p models.PaginationInput, filter *models.DiagnosticProcedure) ([]models.DiagnosticProcedure, int64, error)
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
func (r *DiagnosticProcedureRepository) GetWithPayments(m *models.DiagnosticProcedure, ID int) error
GetWithPayments ...
func (*DiagnosticProcedureRepository) Save ¶
func (r *DiagnosticProcedureRepository) Save(m *models.DiagnosticProcedure) error
Save ...
func (*DiagnosticProcedureRepository) Update ¶
func (r *DiagnosticProcedureRepository) Update(m *models.DiagnosticProcedure) error
Update ...
type DiagnosticProcedureTypeRepository ¶
func ProvideDiagnosticProcedureTypeRepository ¶
func ProvideDiagnosticProcedureTypeRepository(DB *gorm.DB) DiagnosticProcedureTypeRepository
func (*DiagnosticProcedureTypeRepository) Delete ¶
func (r *DiagnosticProcedureTypeRepository) Delete(ID int) error
Delete ...
func (*DiagnosticProcedureTypeRepository) Get ¶
func (r *DiagnosticProcedureTypeRepository) Get(m *models.DiagnosticProcedureType, ID int) error
Get ...
func (*DiagnosticProcedureTypeRepository) GetAll ¶
func (r *DiagnosticProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.DiagnosticProcedureType, int64, error)
GetAll ...
func (*DiagnosticProcedureTypeRepository) GetByTitle ¶
func (r *DiagnosticProcedureTypeRepository) GetByTitle(m *models.DiagnosticProcedureType, title string) error
GetByTitle ...
func (*DiagnosticProcedureTypeRepository) Save ¶
func (r *DiagnosticProcedureTypeRepository) Save(m *models.DiagnosticProcedureType) error
Save ...
func (*DiagnosticProcedureTypeRepository) Update ¶
func (r *DiagnosticProcedureTypeRepository) Update(m *models.DiagnosticProcedureType) error
Update ...
type ExamCategoryRepository ¶
func ProvideExamCategoryRepository ¶
func ProvideExamCategoryRepository(DB *gorm.DB) ExamCategoryRepository
func (*ExamCategoryRepository) Delete ¶
func (r *ExamCategoryRepository) Delete(ID int) error
Delete ...
func (*ExamCategoryRepository) Get ¶
func (r *ExamCategoryRepository) Get(m *models.ExamCategory, ID int) error
Get ...
func (*ExamCategoryRepository) GetAll ¶
func (r *ExamCategoryRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamCategory, int64, error)
GetAll ...
func (*ExamCategoryRepository) GetByTitle ¶
func (r *ExamCategoryRepository) GetByTitle(m *models.ExamCategory, title string) error
GetByTitle ...
func (*ExamCategoryRepository) Save ¶
func (r *ExamCategoryRepository) Save(m *models.ExamCategory) error
Save ...
func (*ExamCategoryRepository) Update ¶
func (r *ExamCategoryRepository) Update(m *models.ExamCategory) error
Update ...
type ExamFindingRepository ¶
func ProvideExamFindingRepository ¶
func ProvideExamFindingRepository(DB *gorm.DB) ExamFindingRepository
func (*ExamFindingRepository) Delete ¶
func (r *ExamFindingRepository) Delete(ID int) error
Delete ...
func (*ExamFindingRepository) Get ¶
func (r *ExamFindingRepository) Get(m *models.ExamFinding, ID int) error
Get ...
func (*ExamFindingRepository) GetAll ¶
func (r *ExamFindingRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamFinding, int64, error)
GetAll ...
func (*ExamFindingRepository) GetByTitle ¶
func (r *ExamFindingRepository) GetByTitle(m *models.ExamFinding, title string) error
GetByTitle ...
func (*ExamFindingRepository) Save ¶
func (r *ExamFindingRepository) Save(m *models.ExamFinding) error
Save ...
func (*ExamFindingRepository) Update ¶
func (r *ExamFindingRepository) Update(m *models.ExamFinding) error
Update ...
type ExternalExamRepository ¶
func ProvideExternalExamRepository ¶
func ProvideExternalExamRepository(DB *gorm.DB) ExternalExamRepository
func (*ExternalExamRepository) Get ¶
func (r *ExternalExamRepository) Get(m *models.ExternalExam, filter models.ExternalExam) error
Get ...
func (*ExternalExamRepository) GetByPatientChart ¶
func (r *ExternalExamRepository) GetByPatientChart(m *models.ExternalExam, ID int) error
GetByPatientChart ...
func (*ExternalExamRepository) Save ¶
func (r *ExternalExamRepository) Save(m *models.ExternalExam) error
Save ...
func (*ExternalExamRepository) SaveForPatientChart ¶
func (r *ExternalExamRepository) SaveForPatientChart(m *models.ExternalExam) error
SaveForPatientChart ...
func (*ExternalExamRepository) Update ¶
func (r *ExternalExamRepository) Update(m *models.ExternalExam) error
Update ...
type EyewearPrescriptionOrderRepository ¶
func ProvideEyewearPrescriptionOrderRepository ¶
func ProvideEyewearPrescriptionOrderRepository(DB *gorm.DB) EyewearPrescriptionOrderRepository
func (*EyewearPrescriptionOrderRepository) Delete ¶
func (r *EyewearPrescriptionOrderRepository) Delete(m *models.EyewearPrescriptionOrder, ID int) error
Delete ...
func (*EyewearPrescriptionOrderRepository) Get ¶
func (r *EyewearPrescriptionOrderRepository) Get(m *models.EyewearPrescriptionOrder, ID int) error
Get ...
func (*EyewearPrescriptionOrderRepository) GetAll ¶
func (r *EyewearPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.EyewearPrescriptionOrder) ([]models.EyewearPrescriptionOrder, int64, error)
GetAll ...
func (*EyewearPrescriptionOrderRepository) GetByPatientChartID ¶
func (r *EyewearPrescriptionOrderRepository) GetByPatientChartID(m *models.EyewearPrescriptionOrder, patientChartID int) error
GetByPatientChartID ...
func (*EyewearPrescriptionOrderRepository) Save ¶
func (r *EyewearPrescriptionOrderRepository) Save(m *models.EyewearPrescriptionOrder) error
Save ...
func (*EyewearPrescriptionOrderRepository) SaveEyewearPrescription ¶
func (r *EyewearPrescriptionOrderRepository) SaveEyewearPrescription(m *models.EyewearPrescriptionOrder, eyewearPrescription models.EyewearPrescription, patientID int) error
SaveEyewearPrescription ...
func (*EyewearPrescriptionOrderRepository) Search ¶
func (r *EyewearPrescriptionOrderRepository) Search(p models.PaginationInput, filter *models.EyewearPrescriptionOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.EyewearPrescriptionOrder, int64, error)
Search ...
func (*EyewearPrescriptionOrderRepository) Update ¶
func (r *EyewearPrescriptionOrderRepository) Update(m *models.EyewearPrescriptionOrder) error
Update ...
type EyewearPrescriptionRepository ¶
func ProvideEyewearPrescriptionRepository ¶
func ProvideEyewearPrescriptionRepository(DB *gorm.DB) EyewearPrescriptionRepository
func (*EyewearPrescriptionRepository) Delete ¶
func (r *EyewearPrescriptionRepository) Delete(ID int) error
Delete ...
func (*EyewearPrescriptionRepository) Get ¶
func (r *EyewearPrescriptionRepository) Get(m *models.EyewearPrescription, ID int) error
Get ...
func (*EyewearPrescriptionRepository) GetAll ¶
func (r *EyewearPrescriptionRepository) GetAll(p PaginationInput, filter *models.EyewearPrescription) ([]models.EyewearPrescription, int64, error)
GetAll ...
func (*EyewearPrescriptionRepository) Save ¶
func (r *EyewearPrescriptionRepository) Save(m *models.EyewearPrescription) error
Save ...
func (*EyewearPrescriptionRepository) Update ¶
func (r *EyewearPrescriptionRepository) Update(m *models.EyewearPrescription) error
Update ...
type EyewearShopRepository ¶
func ProvideEyewearShopRepository ¶
func ProvideEyewearShopRepository(DB *gorm.DB) EyewearShopRepository
func (*EyewearShopRepository) Delete ¶
func (r *EyewearShopRepository) Delete(ID int) error
Delete ...
func (*EyewearShopRepository) Get ¶
func (r *EyewearShopRepository) Get(m *models.EyewearShop, ID int) error
Get ...
func (*EyewearShopRepository) GetAll ¶
func (r *EyewearShopRepository) GetAll(p models.PaginationInput, filter *models.EyewearShop) ([]models.EyewearShop, int64, error)
GetAll ...
func (*EyewearShopRepository) Save ¶
func (r *EyewearShopRepository) Save(m *models.EyewearShop) error
Save ...
func (*EyewearShopRepository) Update ¶
func (r *EyewearShopRepository) Update(m *models.EyewearShop) error
Update ...
type FamilyIllnessRepository ¶
func ProvideFamilyIllnessRepository ¶
func ProvideFamilyIllnessRepository(DB *gorm.DB) FamilyIllnessRepository
func (*FamilyIllnessRepository) Delete ¶
func (r *FamilyIllnessRepository) Delete(ID int) error
Delete ...
func (*FamilyIllnessRepository) Get ¶
func (r *FamilyIllnessRepository) Get(m *models.FamilyIllness, ID int) error
Get ...
func (*FamilyIllnessRepository) GetByPatientHistoryID ¶
func (r *FamilyIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.FamilyIllness, error)
GetByPatientHistoryID ...
func (*FamilyIllnessRepository) Save ¶
func (r *FamilyIllnessRepository) Save(m *models.FamilyIllness) error
Save ...
func (*FamilyIllnessRepository) Update ¶
func (r *FamilyIllnessRepository) Update(m *models.FamilyIllness) error
Update ...
type FavoriteChiefComplaintRepository ¶
func ProvideFavoriteChiefComplaintRepository ¶
func ProvideFavoriteChiefComplaintRepository(DB *gorm.DB) FavoriteChiefComplaintRepository
func (*FavoriteChiefComplaintRepository) Delete ¶
func (r *FavoriteChiefComplaintRepository) Delete(id int) error
Delete ...
func (*FavoriteChiefComplaintRepository) Get ¶
func (r *FavoriteChiefComplaintRepository) Get(m *models.FavoriteChiefComplaint, ID int) error
Get ...
func (*FavoriteChiefComplaintRepository) GetByUser ¶
func (r *FavoriteChiefComplaintRepository) GetByUser(ID int) ([]*models.FavoriteChiefComplaint, error)
GetByUser ...
func (*FavoriteChiefComplaintRepository) Save ¶
func (r *FavoriteChiefComplaintRepository) Save(m *models.FavoriteChiefComplaint) error
Save ...
func (*FavoriteChiefComplaintRepository) Update ¶
func (r *FavoriteChiefComplaintRepository) Update(m *models.FavoriteChiefComplaint) error
Update ...
type FavoriteDiagnosisRepository ¶
func ProvideFavoriteDiagnosisRepository ¶
func ProvideFavoriteDiagnosisRepository(DB *gorm.DB) FavoriteDiagnosisRepository
func (*FavoriteDiagnosisRepository) Delete ¶
func (r *FavoriteDiagnosisRepository) Delete(id int) error
Delete ...
func (*FavoriteDiagnosisRepository) Get ¶
func (r *FavoriteDiagnosisRepository) Get(m *models.FavoriteDiagnosis, ID int) error
Get ...
func (*FavoriteDiagnosisRepository) GetByUser ¶
func (r *FavoriteDiagnosisRepository) GetByUser(ID int) ([]*models.FavoriteDiagnosis, error)
GetByUser ...
func (*FavoriteDiagnosisRepository) Save ¶
func (r *FavoriteDiagnosisRepository) Save(m *models.FavoriteDiagnosis) error
Save ...
func (*FavoriteDiagnosisRepository) Update ¶
func (r *FavoriteDiagnosisRepository) Update(m *models.FavoriteDiagnosis) error
Update ...
type FavoriteMedicationRepository ¶
func ProvideFavoriteMedicationRepository ¶
func ProvideFavoriteMedicationRepository(DB *gorm.DB) FavoriteMedicationRepository
func (*FavoriteMedicationRepository) Delete ¶
func (r *FavoriteMedicationRepository) Delete(ID int) error
Delete ...
func (*FavoriteMedicationRepository) Get ¶
func (r *FavoriteMedicationRepository) Get(m *models.FavoriteMedication, ID int) error
Get ...
func (*FavoriteMedicationRepository) GetAll ¶
func (r *FavoriteMedicationRepository) GetAll(p models.PaginationInput, filter *models.FavoriteMedication, searchTerm *string) ([]models.FavoriteMedication, int64, error)
GetAll ...
func (*FavoriteMedicationRepository) Save ¶
func (r *FavoriteMedicationRepository) Save(m *models.FavoriteMedication) error
Save ...
func (*FavoriteMedicationRepository) Search ¶
func (r *FavoriteMedicationRepository) Search(p models.PaginationInput, searchTerm string) ([]models.FavoriteMedication, int64, error)
Search ...
func (*FavoriteMedicationRepository) Update ¶
func (r *FavoriteMedicationRepository) Update(m *models.FavoriteMedication) error
Update ...
type FileRepository ¶
func ProvideFileRepository ¶
func ProvideFileRepository(DB *gorm.DB) FileRepository
type FollowUpOrderRepository ¶
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 ¶
func (r *FollowUpOrderRepository) GetAll(p PaginationInput, filter *models.FollowUpOrder) ([]models.FollowUpOrder, int64, error)
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 ¶
func (r *FollowUpOrderRepository) Update(m *models.FollowUpOrder) error
Update ...
type FollowUpRepository ¶
func ProvideFollowUpRepository ¶
func ProvideFollowUpRepository(DB *gorm.DB) FollowUpRepository
func (*FollowUpRepository) Get ¶
func (r *FollowUpRepository) Get(m *models.FollowUp, ID int) error
Get ...
func (*FollowUpRepository) GetAll ¶
func (r *FollowUpRepository) GetAll(p models.PaginationInput, filter *models.FollowUp) ([]models.FollowUp, int64, error)
GetAll ...
func (*FollowUpRepository) GetByPatientChart ¶
func (r *FollowUpRepository) GetByPatientChart(m *models.FollowUp, ID int) error
GetByPatientChart ...
type FunduscopyRepository ¶
func ProvideFunduscopyRepository ¶
func ProvideFunduscopyRepository(DB *gorm.DB) FunduscopyRepository
func (*FunduscopyRepository) Get ¶
func (r *FunduscopyRepository) Get(m *models.Funduscopy, filter models.Funduscopy) error
Get ...
func (*FunduscopyRepository) GetByPatientChart ¶
func (r *FunduscopyRepository) GetByPatientChart(m *models.Funduscopy, ID int) error
GetByPatientChart ...
func (*FunduscopyRepository) Save ¶
func (r *FunduscopyRepository) Save(m *models.Funduscopy) error
Save ...
func (*FunduscopyRepository) SaveForPatientChart ¶
func (r *FunduscopyRepository) SaveForPatientChart(m *models.Funduscopy) error
SaveForPatientChart ...
func (*FunduscopyRepository) Update ¶
func (r *FunduscopyRepository) Update(m *models.Funduscopy) error
Update ...
type HpiComponentRepository ¶
func ProvideHpiComponentRepository ¶
func ProvideHpiComponentRepository(DB *gorm.DB) HpiComponentRepository
func (*HpiComponentRepository) Delete ¶
func (r *HpiComponentRepository) Delete(ID int) error
Delete ...
func (*HpiComponentRepository) Get ¶
func (r *HpiComponentRepository) Get(m *models.HpiComponent, ID int) error
Get ...
func (*HpiComponentRepository) GetAll ¶
func (r *HpiComponentRepository) GetAll(p models.PaginationInput, filter *models.HpiComponent) ([]models.HpiComponent, int64, error)
GetAll ...
func (*HpiComponentRepository) GetByIds ¶
func (r *HpiComponentRepository) GetByIds(ids []*int) ([]models.HpiComponent, error)
GetByIds ...
func (*HpiComponentRepository) Save ¶
func (r *HpiComponentRepository) Save(m *models.HpiComponent) error
Save ...
func (*HpiComponentRepository) Search ¶
func (r *HpiComponentRepository) Search(p models.PaginationInput, filter *models.HpiComponent, searchTerm *string) ([]models.HpiComponent, int64, error)
Search ...
func (*HpiComponentRepository) Update ¶
func (r *HpiComponentRepository) Update(m *models.HpiComponent) error
Update ...
type HpiComponentTypeRepository ¶
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 ¶
func (r *HpiComponentTypeRepository) Get(m *models.HpiComponentType, ID int) error
Get ...
func (*HpiComponentTypeRepository) GetAll ¶
func (r *HpiComponentTypeRepository) GetAll(p models.PaginationInput) ([]models.HpiComponentType, int64, error)
GetAll ...
func (*HpiComponentTypeRepository) Save ¶
func (r *HpiComponentTypeRepository) Save(m *models.HpiComponentType) error
Save ...
func (*HpiComponentTypeRepository) Update ¶
func (r *HpiComponentTypeRepository) Update(m *models.HpiComponentType) error
Update ...
type IopRepository ¶
func ProvideIopRepository ¶
func ProvideIopRepository(DB *gorm.DB) IopRepository
func (*IopRepository) GetByPatientChart ¶
func (r *IopRepository) GetByPatientChart(m *models.Iop, ID int) error
GetByPatientChart ...
func (*IopRepository) SaveForPatientChart ¶
func (r *IopRepository) SaveForPatientChart(m *models.Iop) error
SaveForPatientChart ...
type LabOrderRepository ¶
func ProvideLabOrderRepository ¶
func ProvideLabOrderRepository(DB *gorm.DB) LabOrderRepository
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 ¶
func (r *LabOrderRepository) GetAll(p PaginationInput, filter *models.LabOrder) ([]models.LabOrder, int64, error)
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 ...
type LabRepository ¶
func ProvideLabRepository ¶
func ProvideLabRepository(DB *gorm.DB) LabRepository
func (*LabRepository) ClearAssociation ¶
func (r *LabRepository) ClearAssociation(association string, labID int) error
ClearAssociation ...
func (*LabRepository) DeleteFile ¶
func (r *LabRepository) DeleteFile(association string, LabID int, fileID int) error
DeleteFile ...
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 ...
type LabTypeRepository ¶
func ProvideLabTypeRepository ¶
func ProvideLabTypeRepository(DB *gorm.DB) LabTypeRepository
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 ...
type LifestyleRepository ¶
func ProvideLifestyleRepository ¶
func ProvideLifestyleRepository(DB *gorm.DB) LifestyleRepository
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 ...
type LifestyleTypeRepository ¶
func ProvideLifestyleTypeRepository ¶
func ProvideLifestyleTypeRepository(DB *gorm.DB) LifestyleTypeRepository
func (*LifestyleTypeRepository) Delete ¶
func (r *LifestyleTypeRepository) Delete(ID int) error
Delete ...
func (*LifestyleTypeRepository) Get ¶
func (r *LifestyleTypeRepository) Get(m *models.LifestyleType, ID int) error
Get ...
func (*LifestyleTypeRepository) GetAll ¶
func (r *LifestyleTypeRepository) GetAll(p models.PaginationInput) ([]models.LifestyleType, int64, error)
GetAll ...
func (*LifestyleTypeRepository) GetByTitle ¶
func (r *LifestyleTypeRepository) GetByTitle(m *models.LifestyleType, title string) error
GetByTitle ...
func (*LifestyleTypeRepository) Save ¶
func (r *LifestyleTypeRepository) Save(m *models.LifestyleType) error
Save ...
func (*LifestyleTypeRepository) Update ¶
func (r *LifestyleTypeRepository) Update(m *models.LifestyleType) error
Update ...
type MedicalPrescriptionOrderRepository ¶
func ProvideMedicalPrescriptionOrderRepository ¶
func ProvideMedicalPrescriptionOrderRepository(DB *gorm.DB) MedicalPrescriptionOrderRepository
func (*MedicalPrescriptionOrderRepository) Delete ¶
func (r *MedicalPrescriptionOrderRepository) Delete(m *models.MedicalPrescriptionOrder, ID int) error
Delete ...
func (*MedicalPrescriptionOrderRepository) Get ¶
func (r *MedicalPrescriptionOrderRepository) Get(m *models.MedicalPrescriptionOrder, ID int) error
Get ...
func (*MedicalPrescriptionOrderRepository) GetAll ¶
func (r *MedicalPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.MedicalPrescriptionOrder) ([]models.MedicalPrescriptionOrder, int64, error)
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 ¶
func (r *MedicalPrescriptionOrderRepository) Search(p models.PaginationInput, filter *models.MedicalPrescriptionOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.MedicalPrescriptionOrder, int64, error)
Search ...
func (*MedicalPrescriptionOrderRepository) Update ¶
func (r *MedicalPrescriptionOrderRepository) Update(m *models.MedicalPrescriptionOrder) error
Update ...
type MedicalPrescriptionRepository ¶
func ProvideMedicalPrescriptionRepository ¶
func ProvideMedicalPrescriptionRepository(DB *gorm.DB) MedicalPrescriptionRepository
func (*MedicalPrescriptionRepository) Delete ¶
func (r *MedicalPrescriptionRepository) Delete(m *models.MedicalPrescription, ID int) error
Delete ...
func (*MedicalPrescriptionRepository) Get ¶
func (r *MedicalPrescriptionRepository) Get(m *models.MedicalPrescription, ID int) error
Get ...
func (*MedicalPrescriptionRepository) GetAll ¶
func (r *MedicalPrescriptionRepository) GetAll(p PaginationInput, filter *models.MedicalPrescription) ([]models.MedicalPrescription, int64, error)
GetAll ...
func (*MedicalPrescriptionRepository) Save ¶
func (r *MedicalPrescriptionRepository) Save(m *models.MedicalPrescription) error
Save ...
func (*MedicalPrescriptionRepository) Search ¶
func (r *MedicalPrescriptionRepository) Search(p models.PaginationInput, filter *models.MedicalPrescription, date *time.Time, searchTerm *string, ascending bool) ([]models.MedicalPrescription, int64, error)
Search ...
func (*MedicalPrescriptionRepository) Update ¶
func (r *MedicalPrescriptionRepository) Update(m *models.MedicalPrescription) error
Update ...
type ModalityRepository ¶ added in v0.1.7
func ProvideModalityRepository ¶ added in v0.1.7
func ProvideModalityRepository(DB *gorm.DB) ModalityRepository
func (*ModalityRepository) GetAll ¶ added in v0.1.7
func (r *ModalityRepository) GetAll(p models.PaginationInput, filter *models.Modality) ([]models.Modality, int64, error)
GetAll ...
type OcularMotilityRepository ¶
func ProvideOcularMotilityRepository ¶
func ProvideOcularMotilityRepository(DB *gorm.DB) OcularMotilityRepository
func (*OcularMotilityRepository) Get ¶
func (r *OcularMotilityRepository) Get(m *models.OcularMotility, filter models.OcularMotility) error
Get ...
func (*OcularMotilityRepository) GetByPatientChart ¶
func (r *OcularMotilityRepository) GetByPatientChart(m *models.OcularMotility, ID int) error
GetByPatientChart ...
func (*OcularMotilityRepository) Save ¶
func (r *OcularMotilityRepository) Save(m *models.OcularMotility) error
Save ...
func (*OcularMotilityRepository) SaveForPatientChart ¶
func (r *OcularMotilityRepository) SaveForPatientChart(m *models.OcularMotility) error
SaveForPatientChart ...
func (*OcularMotilityRepository) Update ¶
func (r *OcularMotilityRepository) Update(m *models.OcularMotility) error
Update ...
type OpthalmologyExamRepository ¶
func ProvideOpthalmologyExamRepository ¶
func ProvideOpthalmologyExamRepository(DB *gorm.DB) OpthalmologyExamRepository
func (*OpthalmologyExamRepository) Get ¶
func (r *OpthalmologyExamRepository) Get(m *models.OpthalmologyExam, filter models.OpthalmologyExam) error
Get ...
func (*OpthalmologyExamRepository) GetByPatientChart ¶
func (r *OpthalmologyExamRepository) GetByPatientChart(m *models.OpthalmologyExam, ID int) error
GetByPatientChart ...
func (*OpthalmologyExamRepository) Save ¶
func (r *OpthalmologyExamRepository) Save(m *models.OpthalmologyExam) error
Save ...
func (*OpthalmologyExamRepository) Update ¶
func (r *OpthalmologyExamRepository) Update(m *models.OpthalmologyExam) error
Update ...
type OpticDiscRepository ¶
func ProvideOpticDiscRepository ¶
func ProvideOpticDiscRepository(DB *gorm.DB) OpticDiscRepository
func (*OpticDiscRepository) GetByPatientChart ¶
func (r *OpticDiscRepository) GetByPatientChart(m *models.OpticDisc, ID int) error
GetByPatientChart ...
func (*OpticDiscRepository) Save ¶
func (r *OpticDiscRepository) Save(m *models.OpticDisc) error
Save ...
func (*OpticDiscRepository) SaveForPatientChart ¶
func (r *OpticDiscRepository) SaveForPatientChart(m *models.OpticDisc) error
SaveForPatientChart ...
type OrganizationDetailsRepository ¶
func ProvideOrganizationDetailsRepository ¶
func ProvideOrganizationDetailsRepository(DB *gorm.DB) OrganizationDetailsRepository
func (*OrganizationDetailsRepository) Get ¶
func (r *OrganizationDetailsRepository) Get(m *models.OrganizationDetails) error
Get ...
func (*OrganizationDetailsRepository) Save ¶
func (r *OrganizationDetailsRepository) Save(m *models.OrganizationDetails) error
Save ...
func (*OrganizationDetailsRepository) Update ¶
func (r *OrganizationDetailsRepository) Update(m *models.OrganizationDetails) error
Update ...
type PaginationInput ¶
PaginationInput ...
type PastHospitalizationRepository ¶
func ProvidePastHospitalizationRepository ¶
func ProvidePastHospitalizationRepository(DB *gorm.DB) PastHospitalizationRepository
func (*PastHospitalizationRepository) Delete ¶
func (r *PastHospitalizationRepository) Delete(ID int) error
Delete ...
func (*PastHospitalizationRepository) Get ¶
func (r *PastHospitalizationRepository) Get(m *models.PastHospitalization, ID int) error
Get ...
func (*PastHospitalizationRepository) GetByPatientHistoryID ¶
func (r *PastHospitalizationRepository) GetByPatientHistoryID(ID int) ([]*models.PastHospitalization, error)
GetByPatientHistoryID ...
func (*PastHospitalizationRepository) Save ¶
func (r *PastHospitalizationRepository) Save(m *models.PastHospitalization) error
Save ...
func (*PastHospitalizationRepository) Update ¶
func (r *PastHospitalizationRepository) Update(m *models.PastHospitalization) error
Update ...
type PastIllnessRepository ¶
func ProvidePastIllnessRepository ¶
func ProvidePastIllnessRepository(DB *gorm.DB) PastIllnessRepository
func (*PastIllnessRepository) Delete ¶
func (r *PastIllnessRepository) Delete(ID int) error
Delete ...
func (*PastIllnessRepository) Get ¶
func (r *PastIllnessRepository) Get(m *models.PastIllness, ID int) error
Get ...
func (*PastIllnessRepository) GetByPatientHistoryID ¶
func (r *PastIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.PastIllness, error)
GetByPatientHistoryID ...
func (*PastIllnessRepository) Save ¶
func (r *PastIllnessRepository) Save(m *models.PastIllness) error
Save ...
func (*PastIllnessRepository) Update ¶
func (r *PastIllnessRepository) Update(m *models.PastIllness) error
Update ...
type PastIllnessTypeRepository ¶
func ProvidePastIllnessTypeRepository ¶
func ProvidePastIllnessTypeRepository(DB *gorm.DB) PastIllnessTypeRepository
func (*PastIllnessTypeRepository) Delete ¶
func (r *PastIllnessTypeRepository) Delete(ID int) error
Delete ...
func (*PastIllnessTypeRepository) Get ¶
func (r *PastIllnessTypeRepository) Get(m *models.PastIllnessType, ID int) error
Get ...
func (*PastIllnessTypeRepository) GetAll ¶
func (r *PastIllnessTypeRepository) GetAll(p models.PaginationInput) ([]models.PastIllnessType, int64, error)
GetAll ...
func (*PastIllnessTypeRepository) GetByTitle ¶
func (r *PastIllnessTypeRepository) GetByTitle(m *models.PastIllnessType, title string) error
GetByTitle ...
func (*PastIllnessTypeRepository) Save ¶
func (r *PastIllnessTypeRepository) Save(m *models.PastIllnessType) error
Save ...
func (*PastIllnessTypeRepository) Update ¶
func (r *PastIllnessTypeRepository) Update(m *models.PastIllnessType) error
Update ...
type PastInjuryRepository ¶
func ProvidePastInjuryRepository ¶
func ProvidePastInjuryRepository(DB *gorm.DB) PastInjuryRepository
func (*PastInjuryRepository) Delete ¶
func (r *PastInjuryRepository) Delete(ID int) error
Delete ...
func (*PastInjuryRepository) Get ¶
func (r *PastInjuryRepository) Get(m *models.PastInjury, ID int) error
Get ...
func (*PastInjuryRepository) GetByPatientHistoryID ¶
func (r *PastInjuryRepository) GetByPatientHistoryID(ID int) ([]*models.PastInjury, error)
GetByPatientHistoryID ...
func (*PastInjuryRepository) Save ¶
func (r *PastInjuryRepository) Save(m *models.PastInjury) error
Save ...
func (*PastInjuryRepository) Update ¶
func (r *PastInjuryRepository) Update(m *models.PastInjury) error
Update ...
type PastOptSurgeryRepository ¶
func ProvidePastOptSurgeryRepository ¶
func ProvidePastOptSurgeryRepository(DB *gorm.DB) PastOptSurgeryRepository
func (*PastOptSurgeryRepository) Delete ¶
func (r *PastOptSurgeryRepository) Delete(ID int) error
Delete ...
func (*PastOptSurgeryRepository) Get ¶
func (r *PastOptSurgeryRepository) Get(m *models.PastOptSurgery, ID int) error
Get ...
func (*PastOptSurgeryRepository) Save ¶
func (r *PastOptSurgeryRepository) Save(m *models.PastOptSurgery) error
Save ...
func (*PastOptSurgeryRepository) Update ¶
func (r *PastOptSurgeryRepository) Update(m *models.PastOptSurgery) error
Update ...
type PastSurgeryRepository ¶
func ProvidePastSurgeryRepository ¶
func ProvidePastSurgeryRepository(DB *gorm.DB) PastSurgeryRepository
func (*PastSurgeryRepository) Delete ¶
func (r *PastSurgeryRepository) Delete(ID int) error
Delete ...
func (*PastSurgeryRepository) Get ¶
func (r *PastSurgeryRepository) Get(m *models.PastSurgery, ID int) error
Get ...
func (*PastSurgeryRepository) GetByPatientHistoryID ¶
func (r *PastSurgeryRepository) GetByPatientHistoryID(ID int) ([]*models.PastSurgery, error)
GetByPatientHistoryID ...
func (*PastSurgeryRepository) Save ¶
func (r *PastSurgeryRepository) Save(m *models.PastSurgery) error
Save ...
func (*PastSurgeryRepository) Update ¶
func (r *PastSurgeryRepository) Update(m *models.PastSurgery) error
Update ...
type PatientChartRepository ¶
func ProvidePatientChartRepository ¶
func ProvidePatientChartRepository(DB *gorm.DB) PatientChartRepository
func (*PatientChartRepository) Get ¶
func (r *PatientChartRepository) Get(m *models.PatientChart, ID int) error
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 ¶
func (r *PatientChartRepository) Save(m *models.PatientChart) error
Save ...
func (*PatientChartRepository) SignAndLock ¶
func (r *PatientChartRepository) SignAndLock(m *models.PatientChart, patientChartID int, userID *int) error
SignAndLock ...
func (*PatientChartRepository) Update ¶
func (r *PatientChartRepository) Update(m *models.PatientChart) error
Update ...
type PatientDiagnosisRepository ¶
func ProvidePatientDiagnosisRepository ¶
func ProvidePatientDiagnosisRepository(DB *gorm.DB) PatientDiagnosisRepository
func (*PatientDiagnosisRepository) Delete ¶
func (r *PatientDiagnosisRepository) Delete(ID int) error
Delete ...
func (*PatientDiagnosisRepository) Get ¶
func (r *PatientDiagnosisRepository) Get(m *models.PatientDiagnosis, ID int) error
Get ...
func (*PatientDiagnosisRepository) GetAll ¶
func (r *PatientDiagnosisRepository) GetAll(p models.PaginationInput, filter *models.PatientDiagnosis) ([]models.PatientDiagnosis, int64, error)
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 ¶
func (r *PatientDiagnosisRepository) Update(m *models.PatientDiagnosis) error
Update ...
type PatientEncounterLimitRepository ¶
func ProvidePatientEncounterLimitRepository ¶
func ProvidePatientEncounterLimitRepository(DB *gorm.DB) PatientEncounterLimitRepository
func (*PatientEncounterLimitRepository) Delete ¶
func (r *PatientEncounterLimitRepository) Delete(ID int) error
Delete ...
func (*PatientEncounterLimitRepository) Get ¶
func (r *PatientEncounterLimitRepository) Get(m *models.PatientEncounterLimit, ID int) error
Get ...
func (*PatientEncounterLimitRepository) GetAll ¶
func (r *PatientEncounterLimitRepository) GetAll(p models.PaginationInput) ([]models.PatientEncounterLimit, int64, error)
GetAll ...
func (*PatientEncounterLimitRepository) GetByUser ¶
func (r *PatientEncounterLimitRepository) GetByUser(m *models.PatientEncounterLimit, userID int) error
GetByUser ...
func (*PatientEncounterLimitRepository) Save ¶
func (r *PatientEncounterLimitRepository) Save(m *models.PatientEncounterLimit) error
Save ...
func (*PatientEncounterLimitRepository) Update ¶
func (r *PatientEncounterLimitRepository) Update(m *models.PatientEncounterLimit) error
Update ...
type PatientHistoryRepository ¶
func ProvidePatientHistoryRepository ¶
func ProvidePatientHistoryRepository(DB *gorm.DB) PatientHistoryRepository
func (*PatientHistoryRepository) Delete ¶
func (r *PatientHistoryRepository) Delete(ID int) error
Delete ...
func (*PatientHistoryRepository) Get ¶
func (r *PatientHistoryRepository) Get(m *models.PatientHistory, ID int) error
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 ¶
func (r *PatientHistoryRepository) Save(m *models.PatientHistory) error
Save ...
func (*PatientHistoryRepository) Update ¶
func (r *PatientHistoryRepository) Update(m *models.PatientHistory) error
Update ...
type PatientQueueRepository ¶
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 ¶
func (r *PatientQueueRepository) Get(m *models.PatientQueue, id int) error
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 ¶
func (r *PatientQueueRepository) Save(m *models.PatientQueue) error
Save
func (*PatientQueueRepository) UpdateQueue ¶
func (r *PatientQueueRepository) UpdateQueue(queueName string, queue datatypes.JSON) error
GetByQueueName ...
type PatientRepository ¶
func ProvidePatientRepository ¶
func ProvidePatientRepository(DB *gorm.DB) PatientRepository
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 ¶
func (r *PatientRepository) GetAll(p models.PaginationInput) ([]models.Patient, int64, error)
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 ...
type PaymentOrderWaiverRepository ¶ added in v0.1.17
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
func (r *PaymentOrderWaiverRepository) BatchSave(waivers []models.PaymentOrderWaiver) error
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
func (r *PaymentOrderWaiverRepository) Get(m *models.PaymentOrderWaiver, ID int) error
Get ...
func (*PaymentOrderWaiverRepository) GetAll ¶ added in v0.1.17
func (r *PaymentOrderWaiverRepository) GetAll(p models.PaginationInput) ([]models.PaymentOrderWaiver, int64, error)
GetAll ...
func (*PaymentOrderWaiverRepository) GetApprovedCount ¶ added in v0.1.17
func (r *PaymentOrderWaiverRepository) GetApprovedCount() (int, error)
GetCount ...
func (*PaymentOrderWaiverRepository) Save ¶ added in v0.1.17
func (r *PaymentOrderWaiverRepository) Save(m *models.PaymentOrderWaiver) error
Save ...
func (*PaymentOrderWaiverRepository) Update ¶ added in v0.1.17
func (r *PaymentOrderWaiverRepository) Update(m *models.PaymentOrderWaiver) error
Update ...
type PaymentRepository ¶
func ProvidePaymentRepository ¶
func ProvidePaymentRepository(DB *gorm.DB) PaymentRepository
func (*PaymentRepository) BatchUpdate ¶
func (r *PaymentRepository) BatchUpdate(ids []int, e models.Payment) error
BatchUpdate ...
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 ...
type PaymentWaiverRepository ¶
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 ¶
func (r *PaymentWaiverRepository) Get(m *models.PaymentWaiver, ID int) error
Get ...
func (*PaymentWaiverRepository) GetAll ¶
func (r *PaymentWaiverRepository) GetAll(p models.PaginationInput) ([]models.PaymentWaiver, int64, error)
GetAll ...
func (*PaymentWaiverRepository) GetApprovedCount ¶
func (r *PaymentWaiverRepository) GetApprovedCount() (int, error)
GetCount ...
func (*PaymentWaiverRepository) Save ¶
func (r *PaymentWaiverRepository) Save(m *models.PaymentWaiver) error
Save ...
func (*PaymentWaiverRepository) Update ¶
func (r *PaymentWaiverRepository) Update(m *models.PaymentWaiver) error
Update ...
type PharmacyRepository ¶
func ProvidePharmacyRepository ¶
func ProvidePharmacyRepository(DB *gorm.DB) PharmacyRepository
func (*PharmacyRepository) Get ¶
func (r *PharmacyRepository) Get(m *models.Pharmacy, ID int) error
Get ...
func (*PharmacyRepository) GetAll ¶
func (r *PharmacyRepository) GetAll(p models.PaginationInput, filter *models.Pharmacy) ([]models.Pharmacy, int64, error)
GetAll ...
type PhysicalExamFindingRepository ¶
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 ¶
func (r *PhysicalExamFindingRepository) Get(m *models.PhysicalExamFinding, ID int) error
Get ...
func (*PhysicalExamFindingRepository) GetAll ¶
func (r *PhysicalExamFindingRepository) GetAll(p models.PaginationInput, filter *models.PhysicalExamFinding) ([]models.PhysicalExamFinding, int64, error)
GetAll ...
func (*PhysicalExamFindingRepository) GetByPatientChartID ¶
func (r *PhysicalExamFindingRepository) GetByPatientChartID(m *models.PhysicalExamFinding, id string) error
GetByTitle ...
func (*PhysicalExamFindingRepository) Save ¶
func (r *PhysicalExamFindingRepository) Save(m *models.PhysicalExamFinding) error
Save ...
func (*PhysicalExamFindingRepository) Update ¶
func (r *PhysicalExamFindingRepository) Update(m *models.PhysicalExamFinding) error
Update ...
type PupilsRepository ¶
func ProvidePupilsRepository ¶
func ProvidePupilsRepository(DB *gorm.DB) PupilsRepository
func (*PupilsRepository) GetByPatientChart ¶
func (r *PupilsRepository) GetByPatientChart(m *models.Pupils, ID int) error
GetByPatientChart ...
func (*PupilsRepository) SaveForPatientChart ¶
func (r *PupilsRepository) SaveForPatientChart(m *models.Pupils) error
SaveForPatientChart ...
type QueueDestinationRepository ¶
func ProvideQueueDestinationRepository ¶
func ProvideQueueDestinationRepository(DB *gorm.DB) QueueDestinationRepository
func (*QueueDestinationRepository) Delete ¶
func (r *QueueDestinationRepository) Delete(ID int) error
Delete ...
func (*QueueDestinationRepository) Get ¶
func (r *QueueDestinationRepository) Get(m *models.QueueDestination, ID int) error
Get ...
func (*QueueDestinationRepository) GetAll ¶
func (r *QueueDestinationRepository) GetAll(p PaginationInput) ([]models.QueueDestination, int64, error)
GetAll ...
func (*QueueDestinationRepository) GetByTitle ¶
func (r *QueueDestinationRepository) GetByTitle(m *models.QueueDestination, title string) error
GetByTitle ...
func (*QueueDestinationRepository) GetUserTypeFromDestination ¶
func (r *QueueDestinationRepository) GetUserTypeFromDestination(destination string) string
GetUserTypeFromDestination ...
func (*QueueDestinationRepository) Save ¶
func (r *QueueDestinationRepository) Save(m *models.QueueDestination) error
Save ...
func (*QueueDestinationRepository) Update ¶
func (r *QueueDestinationRepository) Update(m *models.QueueDestination) error
Update ...
type QueueSubscriptionRepository ¶
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 ¶
func (r *QueueSubscriptionRepository) Save(m *models.QueueSubscription) error
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 ¶
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 ¶
func (r *ReferralOrderRepository) GetAll(p models.PaginationInput, filter *models.ReferralOrder) ([]models.ReferralOrder, int64, error)
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 ¶
func (r *ReferralOrderRepository) Update(m *models.ReferralOrder) error
Update ...
type ReferralRepository ¶
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 ¶
func (r *ReferralRepository) GetAll(p models.PaginationInput, filter *models.Referral) ([]models.Referral, int64, error)
GetAll ...
func (*ReferralRepository) GetByOrderID ¶
func (r *ReferralRepository) GetByOrderID(m *models.Referral, ID int) error
Get ...
type ReviewOfSystemRepository ¶
func ProvideReviewOfSystemRepository ¶
func ProvideReviewOfSystemRepository(DB *gorm.DB) ReviewOfSystemRepository
func (*ReviewOfSystemRepository) Delete ¶
func (r *ReviewOfSystemRepository) Delete(ID int) error
Delete ...
func (*ReviewOfSystemRepository) Get ¶
func (r *ReviewOfSystemRepository) Get(m *models.ReviewOfSystem, ID int) error
Get ...
func (*ReviewOfSystemRepository) GetAll ¶
func (r *ReviewOfSystemRepository) GetAll(p models.PaginationInput, filter *models.ReviewOfSystem) ([]models.ReviewOfSystem, int64, error)
GetAll ...
func (*ReviewOfSystemRepository) GetByPatientHistoryID ¶
func (r *ReviewOfSystemRepository) GetByPatientHistoryID(m *models.ReviewOfSystem, ID string) error
GetByTitle ...
func (*ReviewOfSystemRepository) Save ¶
func (r *ReviewOfSystemRepository) Save(m *models.ReviewOfSystem) error
Save ...
func (*ReviewOfSystemRepository) Update ¶
func (r *ReviewOfSystemRepository) Update(m *models.ReviewOfSystem) error
Update ...
type RoomRepository ¶
func ProvideRoomRepository ¶
func ProvideRoomRepository(DB *gorm.DB) RoomRepository
func (*RoomRepository) GetAll ¶
func (r *RoomRepository) GetAll(p models.PaginationInput) ([]models.Room, int64, error)
GetAll ...
func (*RoomRepository) GetByTitle ¶
func (r *RoomRepository) GetByTitle(m *models.Room, title string) error
GetByTitle ...
type SlitLampExamRepository ¶
func ProvideSlitLampExamRepository ¶
func ProvideSlitLampExamRepository(DB *gorm.DB) SlitLampExamRepository
func (*SlitLampExamRepository) Get ¶
func (r *SlitLampExamRepository) Get(m *models.SlitLampExam, filter models.SlitLampExam) error
Get ...
func (*SlitLampExamRepository) GetByPatientChart ¶
func (r *SlitLampExamRepository) GetByPatientChart(m *models.SlitLampExam, ID int) error
GetByPatientChart ...
func (*SlitLampExamRepository) Save ¶
func (r *SlitLampExamRepository) Save(m *models.SlitLampExam) error
Save ...
func (*SlitLampExamRepository) SaveForPatientChart ¶
func (r *SlitLampExamRepository) SaveForPatientChart(m *models.SlitLampExam) error
SaveForPatientChart ...
func (*SlitLampExamRepository) Update ¶
func (r *SlitLampExamRepository) Update(m *models.SlitLampExam) error
Update ...
type SupplyRepository ¶
func ProvideSupplyRepository ¶
func ProvideSupplyRepository(DB *gorm.DB) SupplyRepository
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 ...
type SurgicalOrderRepository ¶
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
func (r *SurgicalOrderRepository) Get(m *models.SurgicalOrder, ID int) error
Get ...
func (*SurgicalOrderRepository) GetAll ¶
func (r *SurgicalOrderRepository) GetAll(p PaginationInput, filter *models.SurgicalOrder) ([]models.SurgicalOrder, int64, error)
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 ¶
func (r *SurgicalOrderRepository) Update(m *models.SurgicalOrder) error
Update ...
type SurgicalProcedureRepository ¶
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 ¶
func (r *SurgicalProcedureRepository) Get(m *models.SurgicalProcedure, ID int) error
Get ...
func (*SurgicalProcedureRepository) GetAll ¶
func (r *SurgicalProcedureRepository) GetAll(p models.PaginationInput, filter *models.SurgicalProcedure) ([]models.SurgicalProcedure, int64, error)
GetAll ...
func (*SurgicalProcedureRepository) GetByPatient ¶
func (r *SurgicalProcedureRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.SurgicalProcedure, int64, error)
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 ¶
func (r *SurgicalProcedureRepository) Save(m *models.SurgicalProcedure) error
Save ...
func (*SurgicalProcedureRepository) Update ¶
func (r *SurgicalProcedureRepository) Update(m *models.SurgicalProcedure) error
Update ...
type SurgicalProcedureTypeRepository ¶
func ProvideSurgicalProcedureTypeRepository ¶
func ProvideSurgicalProcedureTypeRepository(DB *gorm.DB) SurgicalProcedureTypeRepository
func (*SurgicalProcedureTypeRepository) Delete ¶
func (r *SurgicalProcedureTypeRepository) Delete(ID int) error
Delete ...
func (*SurgicalProcedureTypeRepository) Get ¶
func (r *SurgicalProcedureTypeRepository) Get(m *models.SurgicalProcedureType, ID int) error
Get ...
func (*SurgicalProcedureTypeRepository) GetAll ¶
func (r *SurgicalProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SurgicalProcedureType, int64, error)
GetAll ...
func (*SurgicalProcedureTypeRepository) GetByTitle ¶
func (r *SurgicalProcedureTypeRepository) GetByTitle(m *models.SurgicalProcedureType, title string) error
GetByTitle ...
func (*SurgicalProcedureTypeRepository) Save ¶
func (r *SurgicalProcedureTypeRepository) Save(m *models.SurgicalProcedureType) error
Save ...
func (*SurgicalProcedureTypeRepository) Update ¶
func (r *SurgicalProcedureTypeRepository) Update(m *models.SurgicalProcedureType) error
Update ...
type SystemRepository ¶
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 ...
type SystemSymptomRepository ¶
func ProvideSystemSymptomRepository ¶
func ProvideSystemSymptomRepository(DB *gorm.DB) SystemSymptomRepository
func (*SystemSymptomRepository) Delete ¶
func (r *SystemSymptomRepository) Delete(ID int) error
Delete ...
func (*SystemSymptomRepository) Get ¶
func (r *SystemSymptomRepository) Get(m *models.SystemSymptom, ID int) error
Get ...
func (*SystemSymptomRepository) GetAll ¶
func (r *SystemSymptomRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SystemSymptom, int64, error)
GetAll ...
func (*SystemSymptomRepository) GetByTitle ¶
func (r *SystemSymptomRepository) GetByTitle(m *models.SystemSymptom, title string) error
GetByTitle ...
func (*SystemSymptomRepository) Save ¶
func (r *SystemSymptomRepository) Save(m *models.SystemSymptom) error
Save ...
func (*SystemSymptomRepository) Update ¶
func (r *SystemSymptomRepository) Update(m *models.SystemSymptom) error
Update ...
type TreatmentOrderRepository ¶
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
func (r *TreatmentOrderRepository) Get(m *models.TreatmentOrder, ID int) error
Get ...
func (*TreatmentOrderRepository) GetAll ¶
func (r *TreatmentOrderRepository) GetAll(p PaginationInput, filter *models.TreatmentOrder) ([]models.TreatmentOrder, int64, error)
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 ¶
func (r *TreatmentOrderRepository) Update(m *models.TreatmentOrder) error
Update ...
type TreatmentRepository ¶
func ProvideTreatmentRepository ¶
func ProvideTreatmentRepository(DB *gorm.DB) TreatmentRepository
func (*TreatmentRepository) Get ¶
func (r *TreatmentRepository) Get(m *models.Treatment, ID int) error
Get ...
func (*TreatmentRepository) GetAll ¶
func (r *TreatmentRepository) GetAll(p models.PaginationInput, filter *models.Treatment) ([]models.Treatment, int64, error)
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 ...
type TreatmentStatus ¶
type TreatmentStatus string
TreatmentStatus ...
const ( TreatmentStatusOrdered TreatmentStatus = "ORDERED" TreatmentStatusCompleted TreatmentStatus = "COMPLETED" )
SurgicalProcedureOrder statuses ...
type TreatmentTypeRepository ¶
func ProvideTreatmentTypeRepository ¶
func ProvideTreatmentTypeRepository(DB *gorm.DB) TreatmentTypeRepository
func (*TreatmentTypeRepository) Delete ¶
func (r *TreatmentTypeRepository) Delete(ID int) error
Delete ...
func (*TreatmentTypeRepository) Get ¶
func (r *TreatmentTypeRepository) Get(m *models.TreatmentType, ID int) error
Get ...
func (*TreatmentTypeRepository) GetAll ¶
func (r *TreatmentTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.TreatmentType, int64, error)
GetAll ...
func (*TreatmentTypeRepository) GetByTitle ¶
func (r *TreatmentTypeRepository) GetByTitle(m *models.TreatmentType, title string) error
GetByTitle ...
func (*TreatmentTypeRepository) Save ¶
func (r *TreatmentTypeRepository) Save(m *models.TreatmentType) error
Save ...
func (*TreatmentTypeRepository) Update ¶
func (r *TreatmentTypeRepository) Update(m *models.TreatmentType) error
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) 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) 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 ...
type UserTypeRepository ¶
func ProvideUserTypeRepository ¶
func ProvideUserTypeRepository(DB *gorm.DB) UserTypeRepository
func (*UserTypeRepository) Get ¶
func (r *UserTypeRepository) Get(m *models.UserType, ID int) error
Get ...
func (*UserTypeRepository) GetAll ¶
func (r *UserTypeRepository) GetAll(p models.PaginationInput) ([]models.UserType, int64, error)
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 ...
type VisitTypeRepository ¶
func ProvideVisitTypeRepository ¶
func ProvideVisitTypeRepository(DB *gorm.DB) VisitTypeRepository
func (*VisitTypeRepository) Count ¶
func (r *VisitTypeRepository) Count(dbString string) (int64, error)
Count ...
func (*VisitTypeRepository) Get ¶
func (r *VisitTypeRepository) Get(m *models.VisitType, ID int) error
Get ...
func (*VisitTypeRepository) GetAll ¶
func (r *VisitTypeRepository) GetAll(p models.PaginationInput) ([]models.VisitType, int64, error)
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 ...
type VisualAcuityRepository ¶
func ProvideVisualAcuityRepository ¶
func ProvideVisualAcuityRepository(DB *gorm.DB) VisualAcuityRepository
func (*VisualAcuityRepository) Get ¶
func (r *VisualAcuityRepository) Get(m *models.VisualAcuity, filter models.VisualAcuity) error
Get ...
func (*VisualAcuityRepository) GetByPatientChart ¶
func (r *VisualAcuityRepository) GetByPatientChart(m *models.VisualAcuity, ID int) error
GetByPatientChart ...
func (*VisualAcuityRepository) Save ¶
func (r *VisualAcuityRepository) Save(m *models.VisualAcuity) error
Save ...
func (*VisualAcuityRepository) SaveForPatientChart ¶
func (r *VisualAcuityRepository) SaveForPatientChart(m *models.VisualAcuity) error
SaveForPatientChart ...
func (*VisualAcuityRepository) Update ¶
func (r *VisualAcuityRepository) Update(m *models.VisualAcuity) error
Update ...
type VitalSignsRepository ¶
func ProvideVitalSignsRepository ¶
func ProvideVitalSignsRepository(DB *gorm.DB) VitalSignsRepository
func (*VitalSignsRepository) Get ¶
func (r *VitalSignsRepository) Get(m *models.VitalSigns, filter models.VitalSigns) error
Get ...
func (*VitalSignsRepository) GetByPatientChart ¶
func (r *VitalSignsRepository) GetByPatientChart(m *models.VitalSigns, ID int) error
GetByPatientChart ...
func (*VitalSignsRepository) Save ¶
func (r *VitalSignsRepository) Save(m *models.VitalSigns) error
Save ...
func (*VitalSignsRepository) Update ¶
func (r *VitalSignsRepository) Update(m *models.VitalSigns) error
Update ...
Source Files ¶
- allergy.go
- amendment.go
- appointment.go
- appointment_queue.go
- appointment_status.go
- auto_refraction.go
- billing.go
- chat.go
- chat_delete.go
- chat_member.go
- chat_message.go
- chat_mute.go
- chat_unread_message.go
- chief_complaint.go
- chief_complaint_type.go
- cover_test_entity.go
- diagnosis.go
- diagnostic_procedure.go
- diagnostic_procedure_order.go
- diagnostic_procedure_type.go
- exam_category.go
- exam_finding.go
- external_exam.go
- eyewear_prescription.go
- eyewear_prescription_order.go
- eyewear_shop.go
- family_illness.go
- favorite_chief_complaint.go
- favorite_diagnosis.go
- favorite_medication.go
- file.go
- follow_up.go
- follow_up_order.go
- funduscopy.go
- hpi_component.go
- hpi_component_type.go
- iop.go
- lab.go
- lab_order.go
- lab_type.go
- lifestyle.go
- lifestyle_type.go
- medical_prescription.go
- medical_prescription_order.go
- modality.go
- ocular_motility.go
- ophthalmology_exam.go
- optic_disc.go
- organization_details.go
- page.go
- past_hospitalization.go
- past_illness.go
- past_illness_type.go
- past_injury.go
- past_opt_surgery.go
- past_surgery.go
- patient.go
- patient_chart.go
- patient_diagnosis.go
- patient_encounter_limit.go
- patient_history.go
- patient_queue.go
- payment.go
- payment_order_waiver.go
- payment_waiver.go
- pharmacy.go
- physical_exam_finding.go
- pupils.go
- queue_destination.go
- queue_subscription.go
- referral.go
- referral_order.go
- review_of_system.go
- room.go
- slit_lamp_exam.go
- supply.go
- surgical_order.go
- surgical_procedure.go
- surgical_procedure_type.go
- system.go
- system_symptom.go
- treatment.go
- treatment_order.go
- treatment_type.go
- user.go
- user_type.go
- visit_type.go
- visual_acuity.go
- vital_signs.go