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) (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) 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) GetPatientDiagnosticProcedureTitles(patientID int) ([]string, error)
- func (r *DiagnosticProcedureOrderRepository) GetTodaysOrderedCount() (count int)
- func (r *DiagnosticProcedureOrderRepository) OrderAndConfirm()
- func (r *DiagnosticProcedureOrderRepository) Save(m *models.DiagnosticProcedureOrder, diagnosticProcedureTypeID int, ...) 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) 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 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 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, surgicalOrderID int, surgicalProcedureID int, ...) error
- func (r *SurgicalOrderRepository) Delete(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) SaveOpthalmologyOrder(m *models.SurgicalOrder, surgicalProcedureTypeID int, patientChartID int, ...) 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) 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, treatmentOrderID int, treatmentID int, ...) error
- func (r *TreatmentOrderRepository) Delete(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) SaveOpthalmologyTreatment(m *models.TreatmentOrder, treatmentTypeID int, patientChartID 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) 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 ¶ added in v1.0.0
func ProvideAllergyRepository ¶ added in v1.0.0
func ProvideAllergyRepository(DB *gorm.DB) AllergyRepository
func (*AllergyRepository) Delete ¶ added in v1.0.0
func (r *AllergyRepository) Delete(ID int) error
Delete ...
func (*AllergyRepository) Get ¶ added in v1.0.0
func (r *AllergyRepository) Get(m *models.Allergy, ID int) error
Get ...
func (*AllergyRepository) GetAll ¶ added in v1.0.0
func (r *AllergyRepository) GetAll(p models.PaginationInput, filter *models.Allergy) ([]models.Allergy, int64, error)
GetAll ...
type AmendmentRepository ¶ added in v1.0.0
func ProvideAmendmentRepository ¶ added in v1.0.0
func ProvideAmendmentRepository(DB *gorm.DB) AmendmentRepository
func (*AmendmentRepository) Create ¶ added in v1.0.0
func (r *AmendmentRepository) Create(m *models.Amendment) error
Create ...
func (*AmendmentRepository) Delete ¶ added in v1.0.0
func (r *AmendmentRepository) Delete(ID int) error
Delete ...
func (*AmendmentRepository) Get ¶ added in v1.0.0
func (r *AmendmentRepository) Get(m *models.Amendment, ID int) error
Get ...
type AppointmentQueueRepository ¶ added in v1.0.0
func ProvideAppointmentQueueRepository ¶ added in v1.0.0
func ProvideAppointmentQueueRepository(DB *gorm.DB) AppointmentQueueRepository
func (*AppointmentQueueRepository) Delete ¶ added in v1.0.0
func (r *AppointmentQueueRepository) Delete(ID int) error
Delete ...
func (*AppointmentQueueRepository) FindByAppointment ¶ added in v1.0.0
func (r *AppointmentQueueRepository) FindByAppointment(p PaginationInput, userID int) ([]models.AppointmentQueue, int64, error)
FindByAppointment ...
func (*AppointmentQueueRepository) FindTodaysAppointments ¶ added in v1.0.0
func (r *AppointmentQueueRepository) FindTodaysAppointments(appointmentID int) ([]models.AppointmentQueue, error)
FindTodaysAppointments ...
func (*AppointmentQueueRepository) Get ¶ added in v1.0.0
func (r *AppointmentQueueRepository) Get(ID int, m *models.AppointmentQueue) error
Get ...
func (*AppointmentQueueRepository) Save ¶ added in v1.0.0
func (r *AppointmentQueueRepository) Save(m *models.AppointmentQueue) error
Save ...
func (*AppointmentQueueRepository) Update ¶ added in v1.0.0
func (r *AppointmentQueueRepository) Update(m *models.AppointmentQueue) error
Update ...
type AppointmentRepository ¶ added in v1.0.0
type AppointmentRepository struct { DB *gorm.DB AppointmentStatusRepository AppointmentStatusRepository }
func ProvideAppointmentRepository ¶ added in v1.0.0
func ProvideAppointmentRepository(DB *gorm.DB, appointmentStatusRepository AppointmentStatusRepository) AppointmentRepository
func (*AppointmentRepository) CreateNewAppointment ¶ added in v1.0.0
func (r *AppointmentRepository) CreateNewAppointment(m *models.Appointment, billingID *int, invoiceNo *string) error
CreateNewAppointment ... Creates a new appointment along with PatientChart
func (*AppointmentRepository) Delete ¶ added in v1.0.0
func (r *AppointmentRepository) Delete(ID int) error
Delete ...
func (*AppointmentRepository) FindAppointmentsByPatientAndRange ¶ added in v1.0.0
func (r *AppointmentRepository) FindAppointmentsByPatientAndRange(patientID int, start time.Time, end time.Time) ([]*models.Appointment, error)
FindAppointmentsByPatientAndRange ...
func (*AppointmentRepository) FindByProvider ¶ added in v1.0.0
func (r *AppointmentRepository) FindByProvider(p models.PaginationInput, searchTerm *string, visitTypes []string, userID int) ([]models.Appointment, int64, error)
FindByProvider ...
func (*AppointmentRepository) FindByUserSubscriptions ¶ added in v1.0.0
func (r *AppointmentRepository) FindByUserSubscriptions(ids []int, searchTerm *string, visitTypes []string, p models.PaginationInput) ([]models.Appointment, int64, error)
GetByIds ...
func (*AppointmentRepository) FindTodaysAppointments ¶ added in v1.0.0
func (r *AppointmentRepository) FindTodaysAppointments(p models.PaginationInput, searchTerm *string) ([]models.Appointment, int64, error)
FindTodaysAppointments ...
func (*AppointmentRepository) FindTodaysCheckedInAppointments ¶ added in v1.0.0
func (r *AppointmentRepository) FindTodaysCheckedInAppointments(p models.PaginationInput, searchTerm *string, visitTypes []string) ([]models.Appointment, int64, error)
FindTodaysCheckedInAppointments ...
func (*AppointmentRepository) Get ¶ added in v1.0.0
func (r *AppointmentRepository) Get(m *models.Appointment, ID int) error
Get ...
func (*AppointmentRepository) GetAll ¶ added in v1.0.0
func (r *AppointmentRepository) GetAll(p models.PaginationInput, filter *models.Appointment) ([]models.Appointment, int64, error)
GetAll ...
func (*AppointmentRepository) GetByIds ¶ added in v1.0.0
func (r *AppointmentRepository) GetByIds(ids []int, p models.PaginationInput) ([]models.Appointment, int64, error)
GetByIds ...
func (*AppointmentRepository) GetWithDetails ¶ added in v1.0.0
func (r *AppointmentRepository) GetWithDetails(m *models.Appointment, ID int) error
GetWithDetails ...
func (*AppointmentRepository) NurseHomeStats ¶ added in v1.0.0
func (r *AppointmentRepository) NurseHomeStats() (int, int, int, error)
NurseHomeStats ...
func (*AppointmentRepository) PatientsAppointmentToday ¶ added in v1.0.0
func (r *AppointmentRepository) PatientsAppointmentToday(patientID int, checkedIn *bool) (models.Appointment, error)
PatientsAppointmentsToday ...
func (*AppointmentRepository) PayForConsultation ¶ added in v1.0.0
PayForConsultation ...
func (*AppointmentRepository) PhysicianHomeStats ¶ added in v1.0.0
PhysicianHomeStats ...
func (*AppointmentRepository) ReceptionHomeStats ¶ added in v1.0.0
func (r *AppointmentRepository) ReceptionHomeStats() (int, int, int, error)
ReceptionHomeStats ...
func (*AppointmentRepository) Save ¶ added in v1.0.0
func (r *AppointmentRepository) Save(m *models.Appointment) error
Save ...
func (*AppointmentRepository) SchedulePostOp ¶ added in v1.0.0
func (r *AppointmentRepository) SchedulePostOp(m *models.Appointment, appointment models.Appointment) error
SchedulePostOp ...
func (*AppointmentRepository) SearchAppointments ¶ added in v1.0.0
func (r *AppointmentRepository) SearchAppointments(page models.PaginationInput, p models.AppointmentSearchInput) ([]models.Appointment, int64, error)
SearchAppointments ...
func (*AppointmentRepository) Update ¶ added in v1.0.0
func (r *AppointmentRepository) Update(m *models.Appointment) error
Update ...
type AppointmentStatusRepository ¶ added in v1.0.0
func ProvideAppointmentStatusRepository ¶ added in v1.0.0
func ProvideAppointmentStatusRepository(DB *gorm.DB) AppointmentStatusRepository
func (*AppointmentStatusRepository) Delete ¶ added in v1.0.0
func (r *AppointmentStatusRepository) Delete(ID int) error
Delete ...
func (*AppointmentStatusRepository) Get ¶ added in v1.0.0
func (r *AppointmentStatusRepository) Get(m *models.AppointmentStatus, ID int) error
Get ...
func (*AppointmentStatusRepository) GetAll ¶ added in v1.0.0
func (r *AppointmentStatusRepository) GetAll(p models.PaginationInput) ([]models.AppointmentStatus, int64, error)
GetAll ...
func (*AppointmentStatusRepository) GetByTitle ¶ added in v1.0.0
func (r *AppointmentStatusRepository) GetByTitle(m *models.AppointmentStatus, title string) error
GetByTitle ...
func (*AppointmentStatusRepository) Save ¶ added in v1.0.0
func (r *AppointmentStatusRepository) Save(m *models.AppointmentStatus) error
Save ...
func (*AppointmentStatusRepository) Seed ¶ added in v1.0.0
func (r *AppointmentStatusRepository) Seed()
Seed ...
func (*AppointmentStatusRepository) Update ¶ added in v1.0.0
func (r *AppointmentStatusRepository) Update(m *models.AppointmentStatus) error
Update ...
type AutoRefractionRepository ¶ added in v1.0.0
func ProvideAutoRefractionRepository ¶ added in v1.0.0
func ProvideAutoRefractionRepository(DB *gorm.DB) AutoRefractionRepository
func (*AutoRefractionRepository) Get ¶ added in v1.0.0
func (r *AutoRefractionRepository) Get(m *models.AutoRefraction, filter models.AutoRefraction) error
Get ...
func (*AutoRefractionRepository) GetByPatientChart ¶ added in v1.0.0
func (r *AutoRefractionRepository) GetByPatientChart(m *models.AutoRefraction, ID int) error
GetByPatientChart ...
func (*AutoRefractionRepository) Save ¶ added in v1.0.0
func (r *AutoRefractionRepository) Save(m *models.AutoRefraction) error
Save ...
func (*AutoRefractionRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *AutoRefractionRepository) SaveForPatientChart(m *models.AutoRefraction) error
SaveForPatientChart ...
func (*AutoRefractionRepository) Update ¶ added in v1.0.0
func (r *AutoRefractionRepository) Update(m *models.AutoRefraction) error
Update ...
type BillingRepository ¶ added in v1.0.0
func ProvideBillingRepository ¶ added in v1.0.0
func ProvideBillingRepository(DB *gorm.DB) BillingRepository
func (*BillingRepository) Delete ¶ added in v1.0.0
func (r *BillingRepository) Delete(ID int) error
Delete ...
func (*BillingRepository) Get ¶ added in v1.0.0
func (r *BillingRepository) Get(m *models.Billing, ID int) error
Get ...
func (*BillingRepository) GetAll ¶ added in v1.0.0
func (r *BillingRepository) GetAll(p PaginationInput) ([]models.Billing, int64, error)
GetAll ...
func (*BillingRepository) GetByIds ¶ added in v1.0.0
func (r *BillingRepository) GetByIds(ids []*int) ([]models.Billing, error)
GetByIds ...
func (*BillingRepository) GetConsultationBillings ¶ added in v1.0.0
func (r *BillingRepository) GetConsultationBillings() ([]*models.Billing, error)
GetConsultationBillings ...
func (*BillingRepository) Save ¶ added in v1.0.0
func (r *BillingRepository) Save(m *models.Billing) error
Save ...
type ChatDeleteRepository ¶ added in v1.0.0
func ProvideChatDeleteRepository ¶ added in v1.0.0
func ProvideChatDeleteRepository(DB *gorm.DB) ChatDeleteRepository
func (*ChatDeleteRepository) Delete ¶ added in v1.0.0
func (r *ChatDeleteRepository) Delete(userID int, chatID int) error
Delete ...
func (*ChatDeleteRepository) Get ¶ added in v1.0.0
func (r *ChatDeleteRepository) Get(m *models.ChatDelete, ID int) error
Get ...
func (*ChatDeleteRepository) Save ¶ added in v1.0.0
func (r *ChatDeleteRepository) Save(m *models.ChatDelete) error
Save ...
func (*ChatDeleteRepository) Update ¶ added in v1.0.0
func (r *ChatDeleteRepository) Update(m *models.ChatDelete) error
Update ...
type ChatMemberRepository ¶ added in v1.0.0
func ProvideChatMemberRepository ¶ added in v1.0.0
func ProvideChatMemberRepository(DB *gorm.DB) ChatMemberRepository
func (*ChatMemberRepository) Delete ¶ added in v1.0.0
func (r *ChatMemberRepository) Delete(userID int, chatID int) error
Delete ...
func (*ChatMemberRepository) FindCommonChatID ¶ added in v1.0.0
func (r *ChatMemberRepository) FindCommonChatID(userID int, recipientID int) (int, error)
FindCommonChatID ...
func (*ChatMemberRepository) Get ¶ added in v1.0.0
func (r *ChatMemberRepository) Get(m *models.ChatMember, ID int) error
Get ...
func (*ChatMemberRepository) GetByChatID ¶ added in v1.0.0
func (r *ChatMemberRepository) GetByChatID(ID int) ([]*models.ChatMember, error)
GetByChatID ...
func (*ChatMemberRepository) Save ¶ added in v1.0.0
func (r *ChatMemberRepository) Save(m *models.ChatMember) error
Save ...
func (*ChatMemberRepository) Update ¶ added in v1.0.0
func (r *ChatMemberRepository) Update(m *models.ChatMember) error
Update ...
type ChatMessageRepository ¶ added in v1.0.0
func ProvideChatMessageRepository ¶ added in v1.0.0
func ProvideChatMessageRepository(DB *gorm.DB) ChatMessageRepository
func (*ChatMessageRepository) Get ¶ added in v1.0.0
func (r *ChatMessageRepository) Get(m *models.ChatMessage, ID int) error
Get ...
func (*ChatMessageRepository) GetByChatID ¶ added in v1.0.0
func (r *ChatMessageRepository) GetByChatID(ID int) ([]*models.ChatMessage, error)
GetByChatID ...
func (*ChatMessageRepository) Save ¶ added in v1.0.0
func (r *ChatMessageRepository) Save(m *models.ChatMessage) error
Save ...
func (*ChatMessageRepository) Update ¶ added in v1.0.0
func (r *ChatMessageRepository) Update(m *models.ChatMessage) error
Update ...
type ChatMuteRepository ¶ added in v1.0.0
func ProvideChatMuteRepository ¶ added in v1.0.0
func ProvideChatMuteRepository(DB *gorm.DB) ChatMuteRepository
func (*ChatMuteRepository) Delete ¶ added in v1.0.0
func (r *ChatMuteRepository) Delete(userID int, chatID int) error
Delete ...
func (*ChatMuteRepository) Get ¶ added in v1.0.0
func (r *ChatMuteRepository) Get(m *models.ChatMute, ID int) error
Get ...
type ChatRepository ¶ added in v1.0.0
func ProvideChatRepository ¶ added in v1.0.0
func ProvideChatRepository(DB *gorm.DB) ChatRepository
func (*ChatRepository) Delete ¶ added in v1.0.0
func (r *ChatRepository) Delete(ID int) error
Delete ...
func (*ChatRepository) Get ¶ added in v1.0.0
func (r *ChatRepository) Get(m *models.Chat, ID int) error
Get ...
func (*ChatRepository) GetUserChats ¶ added in v1.0.0
func (r *ChatRepository) GetUserChats(userID int) ([]*models.Chat, error)
GetUserChats ...
type ChatUnreadRepository ¶ added in v1.0.0
func ProvideChatUnreadRepository ¶ added in v1.0.0
func ProvideChatUnreadRepository(DB *gorm.DB) ChatUnreadRepository
func (*ChatUnreadRepository) Delete ¶ added in v1.0.0
func (r *ChatUnreadRepository) Delete(m *models.ChatUnreadMessage, ID int) error
Delete ...
func (*ChatUnreadRepository) DeleteForUserChat ¶ added in v1.0.0
func (r *ChatUnreadRepository) DeleteForUserChat(userID int, chatID int) error
Delete ...
func (*ChatUnreadRepository) Get ¶ added in v1.0.0
func (r *ChatUnreadRepository) Get(m *models.ChatUnreadMessage, ID int) error
Get ...
func (*ChatUnreadRepository) GetByUserID ¶ added in v1.0.0
func (r *ChatUnreadRepository) GetByUserID(ID int) ([]*models.ChatUnreadMessage, error)
GetByUserID ...
func (*ChatUnreadRepository) Save ¶ added in v1.0.0
func (r *ChatUnreadRepository) Save(m *models.ChatUnreadMessage) error
Save ...
func (*ChatUnreadRepository) Update ¶ added in v1.0.0
func (r *ChatUnreadRepository) Update(m *models.ChatUnreadMessage) error
Update ...
type ChiefComplaintRepository ¶ added in v1.0.0
func ProvideChiefComplaintRepository ¶ added in v1.0.0
func ProvideChiefComplaintRepository(DB *gorm.DB) ChiefComplaintRepository
func (*ChiefComplaintRepository) Delete ¶ added in v1.0.0
func (r *ChiefComplaintRepository) Delete(ID int) error
Delete ...
func (*ChiefComplaintRepository) Get ¶ added in v1.0.0
func (r *ChiefComplaintRepository) Get(m *models.ChiefComplaint, ID int) error
Get ...
func (*ChiefComplaintRepository) GetAll ¶ added in v1.0.0
func (r *ChiefComplaintRepository) GetAll(p models.PaginationInput, filter *models.ChiefComplaint) ([]models.ChiefComplaint, int64, error)
GetAll ...
func (*ChiefComplaintRepository) Save ¶ added in v1.0.0
func (r *ChiefComplaintRepository) Save(m *models.ChiefComplaint) error
Save ...
func (*ChiefComplaintRepository) Search ¶ added in v1.0.0
func (r *ChiefComplaintRepository) Search(p models.PaginationInput, searchTerm string) ([]models.ChiefComplaint, int64, error)
Search ...
func (*ChiefComplaintRepository) Update ¶ added in v1.0.0
func (r *ChiefComplaintRepository) Update(m *models.ChiefComplaint) error
Update ...
type ChiefComplaintTypeRepository ¶ added in v1.0.0
type ChiefComplaintTypeRepository struct { DB *gorm.DB FavoriteChiefComplaintRepository FavoriteChiefComplaintRepository }
func ProvideChiefComplaintTypeRepository ¶ added in v1.0.0
func ProvideChiefComplaintTypeRepository(DB *gorm.DB, favoriteChiefComplaintRepository FavoriteChiefComplaintRepository) ChiefComplaintTypeRepository
func (*ChiefComplaintTypeRepository) Delete ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) Delete(ID int) error
Delete ...
func (*ChiefComplaintTypeRepository) Get ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) Get(m *models.ChiefComplaintType, ID int) error
Get ...
func (*ChiefComplaintTypeRepository) GetAll ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ChiefComplaintType, int64, error)
GetAll ...
func (*ChiefComplaintTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) GetByTitle(m *models.ChiefComplaintType, title string) error
GetByTitle ...
func (*ChiefComplaintTypeRepository) GetFavorites ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.ChiefComplaintType, int64, error)
GetFavorites ...
func (*ChiefComplaintTypeRepository) Save ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) Save(m *models.ChiefComplaintType) error
Save ...
func (*ChiefComplaintTypeRepository) Update ¶ added in v1.0.0
func (r *ChiefComplaintTypeRepository) Update(m *models.ChiefComplaintType) error
Update ...
type CoverTestRepository ¶ added in v1.0.0
func ProvideCoverTestRepository ¶ added in v1.0.0
func ProvideCoverTestRepository(DB *gorm.DB) CoverTestRepository
func (*CoverTestRepository) GetByPatientChart ¶ added in v1.0.0
func (r *CoverTestRepository) GetByPatientChart(m *models.CoverTest, ID int) error
GetByPatientChart ...
func (*CoverTestRepository) Save ¶ added in v1.0.0
func (r *CoverTestRepository) Save(m *models.CoverTest) error
Save ...
func (*CoverTestRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *CoverTestRepository) SaveForPatientChart(m *models.CoverTest) error
SaveForPatientChart ...
type DiagnosisRepository ¶ added in v1.0.0
type DiagnosisRepository struct { DB *gorm.DB FavoriteDiagnosisRepository FavoriteDiagnosisRepository }
func ProvideDiagnosisRepository ¶ added in v1.0.0
func ProvideDiagnosisRepository(DB *gorm.DB, favoriteDiagnosisRepository FavoriteDiagnosisRepository) DiagnosisRepository
func (*DiagnosisRepository) Delete ¶ added in v1.0.0
func (r *DiagnosisRepository) Delete(ID int) error
Delete ...
func (*DiagnosisRepository) Get ¶ added in v1.0.0
func (r *DiagnosisRepository) Get(m *models.Diagnosis, ID int) error
Get ...
func (*DiagnosisRepository) GetAll ¶ added in v1.0.0
func (r *DiagnosisRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Diagnosis, int64, error)
GetAll ...
func (*DiagnosisRepository) GetByTitle ¶ added in v1.0.0
func (r *DiagnosisRepository) GetByTitle(m *models.Diagnosis, title string) error
GetByTitle ...
func (*DiagnosisRepository) GetFavorites ¶ added in v1.0.0
func (r *DiagnosisRepository) GetFavorites(p models.PaginationInput, searchTerm *string, userId int) ([]models.Diagnosis, int64, error)
GetFavorites ...
type DiagnosticProcedureOrderRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureOrderRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureOrderRepository(DB *gorm.DB) DiagnosticProcedureOrderRepository
func (*DiagnosticProcedureOrderRepository) Confirm ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) Confirm(m *models.DiagnosticProcedureOrder, id int, invoiceNo string) error
Confirm ...
func (*DiagnosticProcedureOrderRepository) Delete ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) Delete(ID int) error
Delete ...
func (*DiagnosticProcedureOrderRepository) GetAll ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) GetAll(p PaginationInput, filter *models.DiagnosticProcedureOrder) ([]models.DiagnosticProcedureOrder, int64, error)
GetAll ...
func (*DiagnosticProcedureOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) GetByPatientChartID(m *models.DiagnosticProcedureOrder, patientChartID int) error
GetByPatientChartID ...
func (*DiagnosticProcedureOrderRepository) GetCount ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) GetCount(filter *models.DiagnosticProcedureOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) GetPatientDiagnosticProcedureTitles(patientID int) ([]string, error)
GetPatientDiagnosticOrderTitles ...
func (*DiagnosticProcedureOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*DiagnosticProcedureOrderRepository) OrderAndConfirm ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) OrderAndConfirm()
OrderAndConfirm ...
func (*DiagnosticProcedureOrderRepository) Save ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) Save(m *models.DiagnosticProcedureOrder, diagnosticProcedureTypeID int, patientChartID int, patientID int, billingID int, user models.User, orderNote string, receptionNote string) error
Save ...
func (*DiagnosticProcedureOrderRepository) Search ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (r *DiagnosticProcedureOrderRepository) Update(m *models.DiagnosticProcedureOrder) error
Update ...
type DiagnosticProcedureRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureRepository(DB *gorm.DB) DiagnosticProcedureRepository
func (*DiagnosticProcedureRepository) ClearAssociation ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) ClearAssociation(association string, diagnosticProcedureID int) error
ClearAssociation ...
func (*DiagnosticProcedureRepository) Delete ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) Delete(ID int) error
Delete ...
func (*DiagnosticProcedureRepository) DeleteFile ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) DeleteFile(association string, diagnosticProcedureID int, fileID int) error
DeleteFile ...
func (*DiagnosticProcedureRepository) Get ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) Get(m *models.DiagnosticProcedure, ID int) error
Get ...
func (*DiagnosticProcedureRepository) GetAll ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) GetAll(p models.PaginationInput, filter *models.DiagnosticProcedure) ([]models.DiagnosticProcedure, int64, error)
GetAll ...
func (*DiagnosticProcedureRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) GetByPatientChartID(m *models.DiagnosticProcedure, ID int) error
GetByPatientChartID ...
func (*DiagnosticProcedureRepository) GetRefraction ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) GetRefraction(m *models.DiagnosticProcedure, patientChartID int) error
GetRefraction ...
func (*DiagnosticProcedureRepository) Save ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) Save(m *models.DiagnosticProcedure) error
Save ...
func (*DiagnosticProcedureRepository) Update ¶ added in v1.0.0
func (r *DiagnosticProcedureRepository) Update(m *models.DiagnosticProcedure) error
Update ...
type DiagnosticProcedureTypeRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureTypeRepository ¶ added in v1.0.0
func ProvideDiagnosticProcedureTypeRepository(DB *gorm.DB) DiagnosticProcedureTypeRepository
func (*DiagnosticProcedureTypeRepository) Delete ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) Delete(ID int) error
Delete ...
func (*DiagnosticProcedureTypeRepository) Get ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) Get(m *models.DiagnosticProcedureType, ID int) error
Get ...
func (*DiagnosticProcedureTypeRepository) GetAll ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.DiagnosticProcedureType, int64, error)
GetAll ...
func (*DiagnosticProcedureTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) GetByTitle(m *models.DiagnosticProcedureType, title string) error
GetByTitle ...
func (*DiagnosticProcedureTypeRepository) Save ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) Save(m *models.DiagnosticProcedureType) error
Save ...
func (*DiagnosticProcedureTypeRepository) Update ¶ added in v1.0.0
func (r *DiagnosticProcedureTypeRepository) Update(m *models.DiagnosticProcedureType) error
Update ...
type ExamCategoryRepository ¶ added in v1.0.0
func ProvideExamCategoryRepository ¶ added in v1.0.0
func ProvideExamCategoryRepository(DB *gorm.DB) ExamCategoryRepository
func (*ExamCategoryRepository) Delete ¶ added in v1.0.0
func (r *ExamCategoryRepository) Delete(ID int) error
Delete ...
func (*ExamCategoryRepository) Get ¶ added in v1.0.0
func (r *ExamCategoryRepository) Get(m *models.ExamCategory, ID int) error
Get ...
func (*ExamCategoryRepository) GetAll ¶ added in v1.0.0
func (r *ExamCategoryRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamCategory, int64, error)
GetAll ...
func (*ExamCategoryRepository) GetByTitle ¶ added in v1.0.0
func (r *ExamCategoryRepository) GetByTitle(m *models.ExamCategory, title string) error
GetByTitle ...
func (*ExamCategoryRepository) Save ¶ added in v1.0.0
func (r *ExamCategoryRepository) Save(m *models.ExamCategory) error
Save ...
func (*ExamCategoryRepository) Update ¶ added in v1.0.0
func (r *ExamCategoryRepository) Update(m *models.ExamCategory) error
Update ...
type ExamFindingRepository ¶ added in v1.0.0
func ProvideExamFindingRepository ¶ added in v1.0.0
func ProvideExamFindingRepository(DB *gorm.DB) ExamFindingRepository
func (*ExamFindingRepository) Delete ¶ added in v1.0.0
func (r *ExamFindingRepository) Delete(ID int) error
Delete ...
func (*ExamFindingRepository) Get ¶ added in v1.0.0
func (r *ExamFindingRepository) Get(m *models.ExamFinding, ID int) error
Get ...
func (*ExamFindingRepository) GetAll ¶ added in v1.0.0
func (r *ExamFindingRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.ExamFinding, int64, error)
GetAll ...
func (*ExamFindingRepository) GetByTitle ¶ added in v1.0.0
func (r *ExamFindingRepository) GetByTitle(m *models.ExamFinding, title string) error
GetByTitle ...
func (*ExamFindingRepository) Save ¶ added in v1.0.0
func (r *ExamFindingRepository) Save(m *models.ExamFinding) error
Save ...
func (*ExamFindingRepository) Update ¶ added in v1.0.0
func (r *ExamFindingRepository) Update(m *models.ExamFinding) error
Update ...
type ExternalExamRepository ¶ added in v1.0.0
func ProvideExternalExamRepository ¶ added in v1.0.0
func ProvideExternalExamRepository(DB *gorm.DB) ExternalExamRepository
func (*ExternalExamRepository) Get ¶ added in v1.0.0
func (r *ExternalExamRepository) Get(m *models.ExternalExam, filter models.ExternalExam) error
Get ...
func (*ExternalExamRepository) GetByPatientChart ¶ added in v1.0.0
func (r *ExternalExamRepository) GetByPatientChart(m *models.ExternalExam, ID int) error
GetByPatientChart ...
func (*ExternalExamRepository) Save ¶ added in v1.0.0
func (r *ExternalExamRepository) Save(m *models.ExternalExam) error
Save ...
func (*ExternalExamRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *ExternalExamRepository) SaveForPatientChart(m *models.ExternalExam) error
SaveForPatientChart ...
func (*ExternalExamRepository) Update ¶ added in v1.0.0
func (r *ExternalExamRepository) Update(m *models.ExternalExam) error
Update ...
type EyewearPrescriptionOrderRepository ¶ added in v1.0.0
func ProvideEyewearPrescriptionOrderRepository ¶ added in v1.0.0
func ProvideEyewearPrescriptionOrderRepository(DB *gorm.DB) EyewearPrescriptionOrderRepository
func (*EyewearPrescriptionOrderRepository) Delete ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) Delete(m *models.EyewearPrescriptionOrder, ID int) error
Delete ...
func (*EyewearPrescriptionOrderRepository) Get ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) Get(m *models.EyewearPrescriptionOrder, ID int) error
Get ...
func (*EyewearPrescriptionOrderRepository) GetAll ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.EyewearPrescriptionOrder) ([]models.EyewearPrescriptionOrder, int64, error)
GetAll ...
func (*EyewearPrescriptionOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) GetByPatientChartID(m *models.EyewearPrescriptionOrder, patientChartID int) error
GetByPatientChartID ...
func (*EyewearPrescriptionOrderRepository) Save ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) Save(m *models.EyewearPrescriptionOrder) error
Save ...
func (*EyewearPrescriptionOrderRepository) SaveEyewearPrescription ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) SaveEyewearPrescription(m *models.EyewearPrescriptionOrder, eyewearPrescription models.EyewearPrescription, patientID int) error
SaveEyewearPrescription ...
func (*EyewearPrescriptionOrderRepository) Search ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (r *EyewearPrescriptionOrderRepository) Update(m *models.EyewearPrescriptionOrder) error
Update ...
type EyewearPrescriptionRepository ¶ added in v1.0.0
func ProvideEyewearPrescriptionRepository ¶ added in v1.0.0
func ProvideEyewearPrescriptionRepository(DB *gorm.DB) EyewearPrescriptionRepository
func (*EyewearPrescriptionRepository) Delete ¶ added in v1.0.0
func (r *EyewearPrescriptionRepository) Delete(ID int) error
Delete ...
func (*EyewearPrescriptionRepository) Get ¶ added in v1.0.0
func (r *EyewearPrescriptionRepository) Get(m *models.EyewearPrescription, ID int) error
Get ...
func (*EyewearPrescriptionRepository) GetAll ¶ added in v1.0.0
func (r *EyewearPrescriptionRepository) GetAll(p PaginationInput, filter *models.EyewearPrescription) ([]models.EyewearPrescription, int64, error)
GetAll ...
func (*EyewearPrescriptionRepository) Save ¶ added in v1.0.0
func (r *EyewearPrescriptionRepository) Save(m *models.EyewearPrescription) error
Save ...
func (*EyewearPrescriptionRepository) Update ¶ added in v1.0.0
func (r *EyewearPrescriptionRepository) Update(m *models.EyewearPrescription) error
Update ...
type EyewearShopRepository ¶ added in v1.0.0
func ProvideEyewearShopRepository ¶ added in v1.0.0
func ProvideEyewearShopRepository(DB *gorm.DB) EyewearShopRepository
func (*EyewearShopRepository) Delete ¶ added in v1.0.0
func (r *EyewearShopRepository) Delete(ID int) error
Delete ...
func (*EyewearShopRepository) Get ¶ added in v1.0.0
func (r *EyewearShopRepository) Get(m *models.EyewearShop, ID int) error
Get ...
func (*EyewearShopRepository) GetAll ¶ added in v1.0.0
func (r *EyewearShopRepository) GetAll(p models.PaginationInput, filter *models.EyewearShop) ([]models.EyewearShop, int64, error)
GetAll ...
func (*EyewearShopRepository) Save ¶ added in v1.0.0
func (r *EyewearShopRepository) Save(m *models.EyewearShop) error
Save ...
func (*EyewearShopRepository) Update ¶ added in v1.0.0
func (r *EyewearShopRepository) Update(m *models.EyewearShop) error
Update ...
type FamilyIllnessRepository ¶ added in v1.0.0
func ProvideFamilyIllnessRepository ¶ added in v1.0.0
func ProvideFamilyIllnessRepository(DB *gorm.DB) FamilyIllnessRepository
func (*FamilyIllnessRepository) Delete ¶ added in v1.0.0
func (r *FamilyIllnessRepository) Delete(ID int) error
Delete ...
func (*FamilyIllnessRepository) Get ¶ added in v1.0.0
func (r *FamilyIllnessRepository) Get(m *models.FamilyIllness, ID int) error
Get ...
func (*FamilyIllnessRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *FamilyIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.FamilyIllness, error)
GetByPatientHistoryID ...
func (*FamilyIllnessRepository) Save ¶ added in v1.0.0
func (r *FamilyIllnessRepository) Save(m *models.FamilyIllness) error
Save ...
func (*FamilyIllnessRepository) Update ¶ added in v1.0.0
func (r *FamilyIllnessRepository) Update(m *models.FamilyIllness) error
Update ...
type FavoriteChiefComplaintRepository ¶ added in v1.0.0
func ProvideFavoriteChiefComplaintRepository ¶ added in v1.0.0
func ProvideFavoriteChiefComplaintRepository(DB *gorm.DB) FavoriteChiefComplaintRepository
func (*FavoriteChiefComplaintRepository) Delete ¶ added in v1.0.0
func (r *FavoriteChiefComplaintRepository) Delete(id int) error
Delete ...
func (*FavoriteChiefComplaintRepository) Get ¶ added in v1.0.0
func (r *FavoriteChiefComplaintRepository) Get(m *models.FavoriteChiefComplaint, ID int) error
Get ...
func (*FavoriteChiefComplaintRepository) GetByUser ¶ added in v1.0.0
func (r *FavoriteChiefComplaintRepository) GetByUser(ID int) ([]*models.FavoriteChiefComplaint, error)
GetByUser ...
func (*FavoriteChiefComplaintRepository) Save ¶ added in v1.0.0
func (r *FavoriteChiefComplaintRepository) Save(m *models.FavoriteChiefComplaint) error
Save ...
func (*FavoriteChiefComplaintRepository) Update ¶ added in v1.0.0
func (r *FavoriteChiefComplaintRepository) Update(m *models.FavoriteChiefComplaint) error
Update ...
type FavoriteDiagnosisRepository ¶ added in v1.0.0
func ProvideFavoriteDiagnosisRepository ¶ added in v1.0.0
func ProvideFavoriteDiagnosisRepository(DB *gorm.DB) FavoriteDiagnosisRepository
func (*FavoriteDiagnosisRepository) Delete ¶ added in v1.0.0
func (r *FavoriteDiagnosisRepository) Delete(id int) error
Delete ...
func (*FavoriteDiagnosisRepository) Get ¶ added in v1.0.0
func (r *FavoriteDiagnosisRepository) Get(m *models.FavoriteDiagnosis, ID int) error
Get ...
func (*FavoriteDiagnosisRepository) GetByUser ¶ added in v1.0.0
func (r *FavoriteDiagnosisRepository) GetByUser(ID int) ([]*models.FavoriteDiagnosis, error)
GetByUser ...
func (*FavoriteDiagnosisRepository) Save ¶ added in v1.0.0
func (r *FavoriteDiagnosisRepository) Save(m *models.FavoriteDiagnosis) error
Save ...
func (*FavoriteDiagnosisRepository) Update ¶ added in v1.0.0
func (r *FavoriteDiagnosisRepository) Update(m *models.FavoriteDiagnosis) error
Update ...
type FavoriteMedicationRepository ¶ added in v1.0.0
func ProvideFavoriteMedicationRepository ¶ added in v1.0.0
func ProvideFavoriteMedicationRepository(DB *gorm.DB) FavoriteMedicationRepository
func (*FavoriteMedicationRepository) Delete ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) Delete(ID int) error
Delete ...
func (*FavoriteMedicationRepository) Get ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) Get(m *models.FavoriteMedication, ID int) error
Get ...
func (*FavoriteMedicationRepository) GetAll ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) GetAll(p models.PaginationInput, filter *models.FavoriteMedication, searchTerm *string) ([]models.FavoriteMedication, int64, error)
GetAll ...
func (*FavoriteMedicationRepository) Save ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) Save(m *models.FavoriteMedication) error
Save ...
func (*FavoriteMedicationRepository) Search ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) Search(p models.PaginationInput, searchTerm string) ([]models.FavoriteMedication, int64, error)
Search ...
func (*FavoriteMedicationRepository) Update ¶ added in v1.0.0
func (r *FavoriteMedicationRepository) Update(m *models.FavoriteMedication) error
Update ...
type FileRepository ¶ added in v1.0.0
func ProvideFileRepository ¶ added in v1.0.0
func ProvideFileRepository(DB *gorm.DB) FileRepository
func (*FileRepository) Get ¶ added in v1.0.0
func (r *FileRepository) Get(m *models.File, ID int) error
Get ...
type FollowUpOrderRepository ¶ added in v1.0.0
func ProvideFollowUpOrderRepository ¶ added in v1.0.0
func ProvideFollowUpOrderRepository(DB *gorm.DB) FollowUpOrderRepository
func (*FollowUpOrderRepository) ConfirmOrder ¶ added in v1.0.0
func (r *FollowUpOrderRepository) ConfirmOrder(m *models.FollowUpOrder, followUpOrderID int, followUpID int, billingID *int, invoiceNo *string, roomID int, checkInTime time.Time) error
ConfirmOrder ...
func (*FollowUpOrderRepository) Delete ¶ added in v1.0.0
func (r *FollowUpOrderRepository) Delete(ID int) error
Delete ...
func (*FollowUpOrderRepository) GetAll ¶ added in v1.0.0
func (r *FollowUpOrderRepository) GetAll(p PaginationInput, filter *models.FollowUpOrder) ([]models.FollowUpOrder, int64, error)
GetAll ...
func (*FollowUpOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *FollowUpOrderRepository) GetByPatientChartID(m *models.FollowUpOrder, patientChartID int) error
GetByPatientChartID ...
func (*FollowUpOrderRepository) GetCount ¶ added in v1.0.0
func (r *FollowUpOrderRepository) GetCount(filter *models.FollowUpOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*FollowUpOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *FollowUpOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*FollowUpOrderRepository) Save ¶ added in v1.0.0
func (r *FollowUpOrderRepository) Save(m *models.FollowUpOrder, patientChartID int, patientID int, user models.User, receptionNote string) error
Save ...
func (*FollowUpOrderRepository) Search ¶ added in v1.0.0
func (r *FollowUpOrderRepository) Search(p models.PaginationInput, filter *models.FollowUpOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.FollowUpOrder, int64, error)
Search ...
func (*FollowUpOrderRepository) Update ¶ added in v1.0.0
func (r *FollowUpOrderRepository) Update(m *models.FollowUpOrder) error
Update ...
type FollowUpRepository ¶ added in v1.0.0
func ProvideFollowUpRepository ¶ added in v1.0.0
func ProvideFollowUpRepository(DB *gorm.DB) FollowUpRepository
func (*FollowUpRepository) Delete ¶ added in v1.0.0
func (r *FollowUpRepository) Delete(ID int) error
Delete ...
func (*FollowUpRepository) Get ¶ added in v1.0.0
func (r *FollowUpRepository) Get(m *models.FollowUp, ID int) error
Get ...
func (*FollowUpRepository) GetAll ¶ added in v1.0.0
func (r *FollowUpRepository) GetAll(p models.PaginationInput, filter *models.FollowUp) ([]models.FollowUp, int64, error)
GetAll ...
func (*FollowUpRepository) GetByPatientChart ¶ added in v1.0.0
func (r *FollowUpRepository) GetByPatientChart(m *models.FollowUp, ID int) error
GetByPatientChart ...
type FunduscopyRepository ¶ added in v1.0.0
func ProvideFunduscopyRepository ¶ added in v1.0.0
func ProvideFunduscopyRepository(DB *gorm.DB) FunduscopyRepository
func (*FunduscopyRepository) Get ¶ added in v1.0.0
func (r *FunduscopyRepository) Get(m *models.Funduscopy, filter models.Funduscopy) error
Get ...
func (*FunduscopyRepository) GetByPatientChart ¶ added in v1.0.0
func (r *FunduscopyRepository) GetByPatientChart(m *models.Funduscopy, ID int) error
GetByPatientChart ...
func (*FunduscopyRepository) Save ¶ added in v1.0.0
func (r *FunduscopyRepository) Save(m *models.Funduscopy) error
Save ...
func (*FunduscopyRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *FunduscopyRepository) SaveForPatientChart(m *models.Funduscopy) error
SaveForPatientChart ...
func (*FunduscopyRepository) Update ¶ added in v1.0.0
func (r *FunduscopyRepository) Update(m *models.Funduscopy) error
Update ...
type HpiComponentRepository ¶ added in v1.0.0
func ProvideHpiComponentRepository ¶ added in v1.0.0
func ProvideHpiComponentRepository(DB *gorm.DB) HpiComponentRepository
func (*HpiComponentRepository) Delete ¶ added in v1.0.0
func (r *HpiComponentRepository) Delete(ID int) error
Delete ...
func (*HpiComponentRepository) Get ¶ added in v1.0.0
func (r *HpiComponentRepository) Get(m *models.HpiComponent, ID int) error
Get ...
func (*HpiComponentRepository) GetAll ¶ added in v1.0.0
func (r *HpiComponentRepository) GetAll(p models.PaginationInput, filter *models.HpiComponent) ([]models.HpiComponent, int64, error)
GetAll ...
func (*HpiComponentRepository) GetByIds ¶ added in v1.0.0
func (r *HpiComponentRepository) GetByIds(ids []*int) ([]models.HpiComponent, error)
GetByIds ...
func (*HpiComponentRepository) Save ¶ added in v1.0.0
func (r *HpiComponentRepository) Save(m *models.HpiComponent) error
Save ...
func (*HpiComponentRepository) Search ¶ added in v1.0.0
func (r *HpiComponentRepository) Search(p models.PaginationInput, filter *models.HpiComponent, searchTerm *string) ([]models.HpiComponent, int64, error)
Search ...
func (*HpiComponentRepository) Update ¶ added in v1.0.0
func (r *HpiComponentRepository) Update(m *models.HpiComponent) error
Update ...
type HpiComponentTypeRepository ¶ added in v1.0.0
func ProvideHpiComponentTypeRepository ¶ added in v1.0.0
func ProvideHpiComponentTypeRepository(DB *gorm.DB) HpiComponentTypeRepository
func (*HpiComponentTypeRepository) Count ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) Count(dbString string) (int64, error)
Count ...
func (*HpiComponentTypeRepository) Delete ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) Delete(ID int) error
Delete ...
func (*HpiComponentTypeRepository) Get ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) Get(m *models.HpiComponentType, ID int) error
Get ...
func (*HpiComponentTypeRepository) GetAll ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) GetAll(p models.PaginationInput) ([]models.HpiComponentType, int64, error)
GetAll ...
func (*HpiComponentTypeRepository) Save ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) Save(m *models.HpiComponentType) error
Save ...
func (*HpiComponentTypeRepository) Update ¶ added in v1.0.0
func (r *HpiComponentTypeRepository) Update(m *models.HpiComponentType) error
Update ...
type IopRepository ¶ added in v1.0.0
func ProvideIopRepository ¶ added in v1.0.0
func ProvideIopRepository(DB *gorm.DB) IopRepository
func (*IopRepository) GetByPatientChart ¶ added in v1.0.0
func (r *IopRepository) GetByPatientChart(m *models.Iop, ID int) error
GetByPatientChart ...
func (*IopRepository) Save ¶ added in v1.0.0
func (r *IopRepository) Save(m *models.Iop) error
Save ...
func (*IopRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *IopRepository) SaveForPatientChart(m *models.Iop) error
SaveForPatientChart ...
type LabOrderRepository ¶ added in v1.0.0
func ProvideLabOrderRepository ¶ added in v1.0.0
func ProvideLabOrderRepository(DB *gorm.DB) LabOrderRepository
func (*LabOrderRepository) Delete ¶ added in v1.0.0
func (r *LabOrderRepository) Delete(m *models.LabOrder, ID int) error
Delete ...
func (*LabOrderRepository) Get ¶ added in v1.0.0
func (r *LabOrderRepository) Get(m *models.LabOrder, ID int) error
Get ...
func (*LabOrderRepository) GetAll ¶ added in v1.0.0
func (r *LabOrderRepository) GetAll(p PaginationInput, filter *models.LabOrder) ([]models.LabOrder, int64, error)
GetAll ...
func (*LabOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *LabOrderRepository) GetByPatientChartID(m *models.LabOrder, patientChartID int) error
GetByPatientChartID ...
func (*LabOrderRepository) GetCount ¶ added in v1.0.0
func (r *LabOrderRepository) GetCount(filter *models.LabOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*LabOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *LabOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*LabOrderRepository) Save ¶ added in v1.0.0
func (r *LabOrderRepository) Save(m *models.LabOrder, labTypeID int, patientChartID int, patientID int, billingIds []int, user models.User, orderNote string, receptionNote string) error
NewOrder ...
type LabRepository ¶ added in v1.0.0
func ProvideLabRepository ¶ added in v1.0.0
func ProvideLabRepository(DB *gorm.DB) LabRepository
func (*LabRepository) ClearAssociation ¶ added in v1.0.0
func (r *LabRepository) ClearAssociation(association string, labID int) error
ClearAssociation ...
func (*LabRepository) Delete ¶ added in v1.0.0
func (r *LabRepository) Delete(ID int) error
Delete ...
func (*LabRepository) DeleteFile ¶ added in v1.0.0
func (r *LabRepository) DeleteFile(association string, LabID int, fileID int) error
DeleteFile ...
func (*LabRepository) Get ¶ added in v1.0.0
func (r *LabRepository) Get(m *models.Lab, ID int) error
Get ...
func (*LabRepository) GetAll ¶ added in v1.0.0
func (r *LabRepository) GetAll(p models.PaginationInput, filter *models.Lab) ([]models.Lab, int64, error)
GetAll ...
func (*LabRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *LabRepository) GetByPatientChartID(m *models.Lab, ID int) error
GetByPatientChartID ...
type LabTypeRepository ¶ added in v1.0.0
func ProvideLabTypeRepository ¶ added in v1.0.0
func ProvideLabTypeRepository(DB *gorm.DB) LabTypeRepository
func (*LabTypeRepository) Delete ¶ added in v1.0.0
func (r *LabTypeRepository) Delete(ID int) error
Delete ...
func (*LabTypeRepository) Get ¶ added in v1.0.0
func (r *LabTypeRepository) Get(m *models.LabType, ID int) error
Get ...
func (*LabTypeRepository) GetAll ¶ added in v1.0.0
func (r *LabTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.LabType, int64, error)
GetAll ...
func (*LabTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *LabTypeRepository) GetByTitle(m *models.LabType, title string) error
GetByTitle ...
type LifestyleRepository ¶ added in v1.0.0
func ProvideLifestyleRepository ¶ added in v1.0.0
func ProvideLifestyleRepository(DB *gorm.DB) LifestyleRepository
func (*LifestyleRepository) Delete ¶ added in v1.0.0
func (r *LifestyleRepository) Delete(ID int) error
Delete ...
func (*LifestyleRepository) Get ¶ added in v1.0.0
func (r *LifestyleRepository) Get(m *models.Lifestyle, ID int) error
Get ...
func (*LifestyleRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *LifestyleRepository) GetByPatientHistoryID(ID int) ([]*models.Lifestyle, error)
GetByPatientHistoryID ...
type LifestyleTypeRepository ¶ added in v1.0.0
func ProvideLifestyleTypeRepository ¶ added in v1.0.0
func ProvideLifestyleTypeRepository(DB *gorm.DB) LifestyleTypeRepository
func (*LifestyleTypeRepository) Delete ¶ added in v1.0.0
func (r *LifestyleTypeRepository) Delete(ID int) error
Delete ...
func (*LifestyleTypeRepository) Get ¶ added in v1.0.0
func (r *LifestyleTypeRepository) Get(m *models.LifestyleType, ID int) error
Get ...
func (*LifestyleTypeRepository) GetAll ¶ added in v1.0.0
func (r *LifestyleTypeRepository) GetAll(p models.PaginationInput) ([]models.LifestyleType, int64, error)
GetAll ...
func (*LifestyleTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *LifestyleTypeRepository) GetByTitle(m *models.LifestyleType, title string) error
GetByTitle ...
func (*LifestyleTypeRepository) Save ¶ added in v1.0.0
func (r *LifestyleTypeRepository) Save(m *models.LifestyleType) error
Save ...
func (*LifestyleTypeRepository) Update ¶ added in v1.0.0
func (r *LifestyleTypeRepository) Update(m *models.LifestyleType) error
Update ...
type MedicalPrescriptionOrderRepository ¶ added in v1.0.0
func ProvideMedicalPrescriptionOrderRepository ¶ added in v1.0.0
func ProvideMedicalPrescriptionOrderRepository(DB *gorm.DB) MedicalPrescriptionOrderRepository
func (*MedicalPrescriptionOrderRepository) Delete ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) Delete(m *models.MedicalPrescriptionOrder, ID int) error
Delete ...
func (*MedicalPrescriptionOrderRepository) Get ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) Get(m *models.MedicalPrescriptionOrder, ID int) error
Get ...
func (*MedicalPrescriptionOrderRepository) GetAll ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) GetAll(p PaginationInput, filter *models.MedicalPrescriptionOrder) ([]models.MedicalPrescriptionOrder, int64, error)
GetAll ...
func (*MedicalPrescriptionOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) GetByPatientChartID(m *models.MedicalPrescriptionOrder, patientChartID int) error
GetByPatientChartID ...
func (*MedicalPrescriptionOrderRepository) SaveMedicalPrescription ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) SaveMedicalPrescription(m *models.MedicalPrescriptionOrder, medicalPrescription models.MedicalPrescription, patientID int) error
SaveMedicalPrescription ...
func (*MedicalPrescriptionOrderRepository) Search ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (r *MedicalPrescriptionOrderRepository) Update(m *models.MedicalPrescriptionOrder) error
Update ...
type MedicalPrescriptionRepository ¶ added in v1.0.0
func ProvideMedicalPrescriptionRepository ¶ added in v1.0.0
func ProvideMedicalPrescriptionRepository(DB *gorm.DB) MedicalPrescriptionRepository
func (*MedicalPrescriptionRepository) Delete ¶ added in v1.0.0
func (r *MedicalPrescriptionRepository) Delete(m *models.MedicalPrescription, ID int) error
Delete ...
func (*MedicalPrescriptionRepository) Get ¶ added in v1.0.0
func (r *MedicalPrescriptionRepository) Get(m *models.MedicalPrescription, ID int) error
Get ...
func (*MedicalPrescriptionRepository) GetAll ¶ added in v1.0.0
func (r *MedicalPrescriptionRepository) GetAll(p PaginationInput, filter *models.MedicalPrescription) ([]models.MedicalPrescription, int64, error)
GetAll ...
func (*MedicalPrescriptionRepository) Save ¶ added in v1.0.0
func (r *MedicalPrescriptionRepository) Save(m *models.MedicalPrescription) error
Save ...
func (*MedicalPrescriptionRepository) Search ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (r *MedicalPrescriptionRepository) Update(m *models.MedicalPrescription) error
Update ...
type OcularMotilityRepository ¶ added in v1.0.0
func ProvideOcularMotilityRepository ¶ added in v1.0.0
func ProvideOcularMotilityRepository(DB *gorm.DB) OcularMotilityRepository
func (*OcularMotilityRepository) Get ¶ added in v1.0.0
func (r *OcularMotilityRepository) Get(m *models.OcularMotility, filter models.OcularMotility) error
Get ...
func (*OcularMotilityRepository) GetByPatientChart ¶ added in v1.0.0
func (r *OcularMotilityRepository) GetByPatientChart(m *models.OcularMotility, ID int) error
GetByPatientChart ...
func (*OcularMotilityRepository) Save ¶ added in v1.0.0
func (r *OcularMotilityRepository) Save(m *models.OcularMotility) error
Save ...
func (*OcularMotilityRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *OcularMotilityRepository) SaveForPatientChart(m *models.OcularMotility) error
SaveForPatientChart ...
func (*OcularMotilityRepository) Update ¶ added in v1.0.0
func (r *OcularMotilityRepository) Update(m *models.OcularMotility) error
Update ...
type OpthalmologyExamRepository ¶ added in v1.0.0
func ProvideOpthalmologyExamRepository ¶ added in v1.0.0
func ProvideOpthalmologyExamRepository(DB *gorm.DB) OpthalmologyExamRepository
func (*OpthalmologyExamRepository) Get ¶ added in v1.0.0
func (r *OpthalmologyExamRepository) Get(m *models.OpthalmologyExam, filter models.OpthalmologyExam) error
Get ...
func (*OpthalmologyExamRepository) GetByPatientChart ¶ added in v1.0.0
func (r *OpthalmologyExamRepository) GetByPatientChart(m *models.OpthalmologyExam, ID int) error
GetByPatientChart ...
func (*OpthalmologyExamRepository) Save ¶ added in v1.0.0
func (r *OpthalmologyExamRepository) Save(m *models.OpthalmologyExam) error
Save ...
func (*OpthalmologyExamRepository) Update ¶ added in v1.0.0
func (r *OpthalmologyExamRepository) Update(m *models.OpthalmologyExam) error
Update ...
type OpticDiscRepository ¶ added in v1.0.0
func ProvideOpticDiscRepository ¶ added in v1.0.0
func ProvideOpticDiscRepository(DB *gorm.DB) OpticDiscRepository
func (*OpticDiscRepository) GetByPatientChart ¶ added in v1.0.0
func (r *OpticDiscRepository) GetByPatientChart(m *models.OpticDisc, ID int) error
GetByPatientChart ...
func (*OpticDiscRepository) Save ¶ added in v1.0.0
func (r *OpticDiscRepository) Save(m *models.OpticDisc) error
Save ...
func (*OpticDiscRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *OpticDiscRepository) SaveForPatientChart(m *models.OpticDisc) error
SaveForPatientChart ...
type OrganizationDetailsRepository ¶ added in v1.0.0
func ProvideOrganizationDetailsRepository ¶ added in v1.0.0
func ProvideOrganizationDetailsRepository(DB *gorm.DB) OrganizationDetailsRepository
func (*OrganizationDetailsRepository) Get ¶ added in v1.0.0
func (r *OrganizationDetailsRepository) Get(m *models.OrganizationDetails) error
Get ...
func (*OrganizationDetailsRepository) Save ¶ added in v1.0.0
func (r *OrganizationDetailsRepository) Save(m *models.OrganizationDetails) error
Save ...
func (*OrganizationDetailsRepository) Update ¶ added in v1.0.0
func (r *OrganizationDetailsRepository) Update(m *models.OrganizationDetails) error
Update ...
type PaginationInput ¶
PaginationInput ...
type PastHospitalizationRepository ¶ added in v1.0.0
func ProvidePastHospitalizationRepository ¶ added in v1.0.0
func ProvidePastHospitalizationRepository(DB *gorm.DB) PastHospitalizationRepository
func (*PastHospitalizationRepository) Delete ¶ added in v1.0.0
func (r *PastHospitalizationRepository) Delete(ID int) error
Delete ...
func (*PastHospitalizationRepository) Get ¶ added in v1.0.0
func (r *PastHospitalizationRepository) Get(m *models.PastHospitalization, ID int) error
Get ...
func (*PastHospitalizationRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *PastHospitalizationRepository) GetByPatientHistoryID(ID int) ([]*models.PastHospitalization, error)
GetByPatientHistoryID ...
func (*PastHospitalizationRepository) Save ¶ added in v1.0.0
func (r *PastHospitalizationRepository) Save(m *models.PastHospitalization) error
Save ...
func (*PastHospitalizationRepository) Update ¶ added in v1.0.0
func (r *PastHospitalizationRepository) Update(m *models.PastHospitalization) error
Update ...
type PastIllnessRepository ¶ added in v1.0.0
func ProvidePastIllnessRepository ¶ added in v1.0.0
func ProvidePastIllnessRepository(DB *gorm.DB) PastIllnessRepository
func (*PastIllnessRepository) Delete ¶ added in v1.0.0
func (r *PastIllnessRepository) Delete(ID int) error
Delete ...
func (*PastIllnessRepository) Get ¶ added in v1.0.0
func (r *PastIllnessRepository) Get(m *models.PastIllness, ID int) error
Get ...
func (*PastIllnessRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *PastIllnessRepository) GetByPatientHistoryID(ID int) ([]*models.PastIllness, error)
GetByPatientHistoryID ...
func (*PastIllnessRepository) Save ¶ added in v1.0.0
func (r *PastIllnessRepository) Save(m *models.PastIllness) error
Save ...
func (*PastIllnessRepository) Update ¶ added in v1.0.0
func (r *PastIllnessRepository) Update(m *models.PastIllness) error
Update ...
type PastIllnessTypeRepository ¶ added in v1.0.0
func ProvidePastIllnessTypeRepository ¶ added in v1.0.0
func ProvidePastIllnessTypeRepository(DB *gorm.DB) PastIllnessTypeRepository
func (*PastIllnessTypeRepository) Delete ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) Delete(ID int) error
Delete ...
func (*PastIllnessTypeRepository) Get ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) Get(m *models.PastIllnessType, ID int) error
Get ...
func (*PastIllnessTypeRepository) GetAll ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) GetAll(p models.PaginationInput) ([]models.PastIllnessType, int64, error)
GetAll ...
func (*PastIllnessTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) GetByTitle(m *models.PastIllnessType, title string) error
GetByTitle ...
func (*PastIllnessTypeRepository) Save ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) Save(m *models.PastIllnessType) error
Save ...
func (*PastIllnessTypeRepository) Update ¶ added in v1.0.0
func (r *PastIllnessTypeRepository) Update(m *models.PastIllnessType) error
Update ...
type PastInjuryRepository ¶ added in v1.0.0
func ProvidePastInjuryRepository ¶ added in v1.0.0
func ProvidePastInjuryRepository(DB *gorm.DB) PastInjuryRepository
func (*PastInjuryRepository) Delete ¶ added in v1.0.0
func (r *PastInjuryRepository) Delete(ID int) error
Delete ...
func (*PastInjuryRepository) Get ¶ added in v1.0.0
func (r *PastInjuryRepository) Get(m *models.PastInjury, ID int) error
Get ...
func (*PastInjuryRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *PastInjuryRepository) GetByPatientHistoryID(ID int) ([]*models.PastInjury, error)
GetByPatientHistoryID ...
func (*PastInjuryRepository) Save ¶ added in v1.0.0
func (r *PastInjuryRepository) Save(m *models.PastInjury) error
Save ...
func (*PastInjuryRepository) Update ¶ added in v1.0.0
func (r *PastInjuryRepository) Update(m *models.PastInjury) error
Update ...
type PastOptSurgeryRepository ¶ added in v1.0.0
func ProvidePastOptSurgeryRepository ¶ added in v1.0.0
func ProvidePastOptSurgeryRepository(DB *gorm.DB) PastOptSurgeryRepository
func (*PastOptSurgeryRepository) Delete ¶ added in v1.0.0
func (r *PastOptSurgeryRepository) Delete(ID int) error
Delete ...
func (*PastOptSurgeryRepository) Get ¶ added in v1.0.0
func (r *PastOptSurgeryRepository) Get(m *models.PastOptSurgery, ID int) error
Get ...
func (*PastOptSurgeryRepository) Save ¶ added in v1.0.0
func (r *PastOptSurgeryRepository) Save(m *models.PastOptSurgery) error
Save ...
func (*PastOptSurgeryRepository) Update ¶ added in v1.0.0
func (r *PastOptSurgeryRepository) Update(m *models.PastOptSurgery) error
Update ...
type PastSurgeryRepository ¶ added in v1.0.0
func ProvidePastSurgeryRepository ¶ added in v1.0.0
func ProvidePastSurgeryRepository(DB *gorm.DB) PastSurgeryRepository
func (*PastSurgeryRepository) Delete ¶ added in v1.0.0
func (r *PastSurgeryRepository) Delete(ID int) error
Delete ...
func (*PastSurgeryRepository) Get ¶ added in v1.0.0
func (r *PastSurgeryRepository) Get(m *models.PastSurgery, ID int) error
Get ...
func (*PastSurgeryRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *PastSurgeryRepository) GetByPatientHistoryID(ID int) ([]*models.PastSurgery, error)
GetByPatientHistoryID ...
func (*PastSurgeryRepository) Save ¶ added in v1.0.0
func (r *PastSurgeryRepository) Save(m *models.PastSurgery) error
Save ...
func (*PastSurgeryRepository) Update ¶ added in v1.0.0
func (r *PastSurgeryRepository) Update(m *models.PastSurgery) error
Update ...
type PatientChartRepository ¶ added in v1.0.0
func ProvidePatientChartRepository ¶ added in v1.0.0
func ProvidePatientChartRepository(DB *gorm.DB) PatientChartRepository
func (*PatientChartRepository) Get ¶ added in v1.0.0
func (r *PatientChartRepository) Get(m *models.PatientChart, ID int) error
Get ...
func (*PatientChartRepository) GetByAppointmentID ¶ added in v1.0.0
func (r *PatientChartRepository) GetByAppointmentID(m *models.PatientChart, appointmentID int) error
GetByAppointmentID ...
func (*PatientChartRepository) GetWithDetails ¶ added in v1.0.0
func (r *PatientChartRepository) GetWithDetails(m *models.PatientChart, ID int) error
Get ...
func (*PatientChartRepository) Save ¶ added in v1.0.0
func (r *PatientChartRepository) Save(m *models.PatientChart) error
Save ...
func (*PatientChartRepository) SignAndLock ¶ added in v1.0.0
func (r *PatientChartRepository) SignAndLock(m *models.PatientChart, patientChartID int, userID *int) error
SignAndLock ...
func (*PatientChartRepository) Update ¶ added in v1.0.0
func (r *PatientChartRepository) Update(m *models.PatientChart) error
Update ...
type PatientDiagnosisRepository ¶ added in v1.0.0
func ProvidePatientDiagnosisRepository ¶ added in v1.0.0
func ProvidePatientDiagnosisRepository(DB *gorm.DB) PatientDiagnosisRepository
func (*PatientDiagnosisRepository) Delete ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) Delete(ID int) error
Delete ...
func (*PatientDiagnosisRepository) Get ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) Get(m *models.PatientDiagnosis, ID int) error
Get ...
func (*PatientDiagnosisRepository) GetAll ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) GetAll(p models.PaginationInput, filter *models.PatientDiagnosis) ([]models.PatientDiagnosis, int64, error)
GetAll ...
func (*PatientDiagnosisRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) GetByPatientChartID(m *models.PatientDiagnosis, ID int) error
GetByPatientChartID ...
func (*PatientDiagnosisRepository) Save ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) Save(m *models.PatientDiagnosis, diagnosisID int) error
Save ...
func (*PatientDiagnosisRepository) Update ¶ added in v1.0.0
func (r *PatientDiagnosisRepository) Update(m *models.PatientDiagnosis) error
Update ...
type PatientEncounterLimitRepository ¶ added in v1.0.0
func ProvidePatientEncounterLimitRepository ¶ added in v1.0.0
func ProvidePatientEncounterLimitRepository(DB *gorm.DB) PatientEncounterLimitRepository
func (*PatientEncounterLimitRepository) Delete ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) Delete(ID int) error
Delete ...
func (*PatientEncounterLimitRepository) Get ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) Get(m *models.PatientEncounterLimit, ID int) error
Get ...
func (*PatientEncounterLimitRepository) GetAll ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) GetAll(p models.PaginationInput) ([]models.PatientEncounterLimit, int64, error)
GetAll ...
func (*PatientEncounterLimitRepository) GetByUser ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) GetByUser(m *models.PatientEncounterLimit, userID int) error
GetByUser ...
func (*PatientEncounterLimitRepository) Save ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) Save(m *models.PatientEncounterLimit) error
Save ...
func (*PatientEncounterLimitRepository) Update ¶ added in v1.0.0
func (r *PatientEncounterLimitRepository) Update(m *models.PatientEncounterLimit) error
Update ...
type PatientHistoryRepository ¶ added in v1.0.0
func ProvidePatientHistoryRepository ¶ added in v1.0.0
func ProvidePatientHistoryRepository(DB *gorm.DB) PatientHistoryRepository
func (*PatientHistoryRepository) Delete ¶ added in v1.0.0
func (r *PatientHistoryRepository) Delete(ID int) error
Delete ...
func (*PatientHistoryRepository) Get ¶ added in v1.0.0
func (r *PatientHistoryRepository) Get(m *models.PatientHistory, ID int) error
Get ...
func (*PatientHistoryRepository) GetByPatientID ¶ added in v1.0.0
func (r *PatientHistoryRepository) GetByPatientID(m *models.PatientHistory, ID int) error
GetByPatientID ...
func (*PatientHistoryRepository) GetByPatientIDWithDetails ¶ added in v1.0.0
func (r *PatientHistoryRepository) GetByPatientIDWithDetails(m *models.PatientHistory, ID int) error
GetByPatientIDWithDetails ...
func (*PatientHistoryRepository) Save ¶ added in v1.0.0
func (r *PatientHistoryRepository) Save(m *models.PatientHistory) error
Save ...
func (*PatientHistoryRepository) Update ¶ added in v1.0.0
func (r *PatientHistoryRepository) Update(m *models.PatientHistory) error
Update ...
type PatientQueueRepository ¶ added in v1.0.0
func ProvidePatientQueueRepository ¶ added in v1.0.0
func ProvidePatientQueueRepository(DB *gorm.DB) PatientQueueRepository
func (*PatientQueueRepository) AddToQueue ¶ added in v1.0.0
func (r *PatientQueueRepository) AddToQueue(m *models.PatientQueue, toQueueName string, appointmentID int, queueType string) error
AddToQueue
func (*PatientQueueRepository) ClearExpired ¶ added in v1.0.0
func (r *PatientQueueRepository) ClearExpired() error
ClearExpired ...
func (*PatientQueueRepository) DeleteFromQueue ¶ added in v1.0.0
func (r *PatientQueueRepository) DeleteFromQueue(m *models.PatientQueue, patientQueueID int, appointmentID int) error
DeleteFromQueue ...
func (*PatientQueueRepository) Get ¶ added in v1.0.0
func (r *PatientQueueRepository) Get(m *models.PatientQueue, id int) error
Get ...
func (*PatientQueueRepository) GetAll ¶ added in v1.0.0
func (r *PatientQueueRepository) GetAll() ([]*models.PatientQueue, error)
GetAll
func (*PatientQueueRepository) GetByQueueName ¶ added in v1.0.0
func (r *PatientQueueRepository) GetByQueueName(m *models.PatientQueue, queueName string) error
GetByQueueName ...
func (*PatientQueueRepository) Move ¶ added in v1.0.0
func (r *PatientQueueRepository) Move(m *models.PatientQueue, fromQueueID int, toQueueID int, appointmentID int) error
Move ...
func (*PatientQueueRepository) MoveToQueueName ¶ added in v1.0.0
func (r *PatientQueueRepository) MoveToQueueName(fromQueueID int, toQueueName string, appointmentID int, queueType string) error
MoveToQueueName ...
func (*PatientQueueRepository) Save ¶ added in v1.0.0
func (r *PatientQueueRepository) Save(m *models.PatientQueue) error
Save
func (*PatientQueueRepository) Seed ¶ added in v1.1.0
func (r *PatientQueueRepository) Seed()
Seed ...
func (*PatientQueueRepository) UpdateQueue ¶ added in v1.0.0
func (r *PatientQueueRepository) UpdateQueue(queueName string, queue datatypes.JSON) error
GetByQueueName ...
type PatientRepository ¶ added in v1.0.0
func ProvidePatientRepository ¶ added in v1.0.0
func ProvidePatientRepository(DB *gorm.DB) PatientRepository
func (*PatientRepository) Clean ¶ added in v1.0.0
func (r *PatientRepository) Clean() error
Clean ...
func (*PatientRepository) Delete ¶ added in v1.0.0
func (r *PatientRepository) Delete(ID int) error
Delete ...
func (*PatientRepository) FindByCardNo ¶ added in v1.0.0
func (r *PatientRepository) FindByCardNo(m *models.Patient, cardNo string) error
FindByCardNo ...
func (*PatientRepository) FindByName ¶ added in v1.0.0
func (r *PatientRepository) FindByName(firstName string, lastName string) ([]*models.Patient, error)
FindByName ...
func (*PatientRepository) FindByPhoneNo ¶ added in v1.0.0
func (r *PatientRepository) FindByPhoneNo(phoneNo string) ([]*models.Patient, error)
FindByPhoneNo ...
func (*PatientRepository) Get ¶ added in v1.0.0
func (r *PatientRepository) Get(m *models.Patient, ID int) error
Get ...
func (*PatientRepository) GetAll ¶ added in v1.0.0
func (r *PatientRepository) GetAll(p models.PaginationInput) ([]models.Patient, int64, error)
GetAll ...
func (*PatientRepository) GetAllProgress ¶ added in v1.0.0
func (r *PatientRepository) GetAllProgress(patientID int) (*models.PatientHistory, []*models.Appointment, error)
GetAllProgress ...
func (*PatientRepository) GetAllProgressNotes ¶ added in v1.0.0
func (r *PatientRepository) GetAllProgressNotes(appointmentID int) (*models.PatientHistory, []*models.Appointment, error)
GetAllProgressNotes ...
func (*PatientRepository) GetPatientDiagnosticProcedures ¶ added in v1.0.0
func (r *PatientRepository) GetPatientDiagnosticProcedures(patientID int, diagnosticProcedureTypeTitle string) ([]*models.Appointment, error)
GetPatientDiagnosticProcedures ...
func (*PatientRepository) GetPatientFiles ¶ added in v1.0.0
func (r *PatientRepository) GetPatientFiles(patientID int) ([]*models.File, error)
GetPatientFiles ...
func (*PatientRepository) GetVitalSignsProgress ¶ added in v1.0.0
func (r *PatientRepository) GetVitalSignsProgress(patientID int) ([]*models.Appointment, error)
GetVisionProgress ...
func (*PatientRepository) Save ¶ added in v1.0.0
func (r *PatientRepository) Save(m *models.Patient) error
Save ...
type PaymentRepository ¶ added in v1.0.0
func ProvidePaymentRepository ¶ added in v1.0.0
func ProvidePaymentRepository(DB *gorm.DB) PaymentRepository
func (*PaymentRepository) BatchUpdate ¶ added in v1.0.0
func (r *PaymentRepository) BatchUpdate(ids []int, e models.Payment) error
BatchUpdate ...
func (*PaymentRepository) Delete ¶ added in v1.0.0
func (r *PaymentRepository) Delete(ID int) error
Delete ...
func (*PaymentRepository) Get ¶ added in v1.0.0
func (r *PaymentRepository) Get(m *models.Payment, ID int) error
Get ...
func (*PaymentRepository) GetByIds ¶ added in v1.0.0
func (r *PaymentRepository) GetByIds(ids []int) ([]models.Payment, error)
Get ...
func (*PaymentRepository) RequestWaiver ¶ added in v1.0.0
func (r *PaymentRepository) RequestWaiver(m *models.Payment, paymentID int, patientID int, userID int) error
RequestWaiver ...
func (*PaymentRepository) RequestWaiverBatch ¶ added in v1.0.0
func (r *PaymentRepository) RequestWaiverBatch(paymentIds []int, patientId int, userId int) error
RequestWaiverBatch ...
type PaymentWaiverRepository ¶ added in v1.0.0
func ProvidePaymentWaiverRepository ¶ added in v1.0.0
func ProvidePaymentWaiverRepository(DB *gorm.DB) PaymentWaiverRepository
func (*PaymentWaiverRepository) ApproveWaiver ¶ added in v1.0.0
func (r *PaymentWaiverRepository) ApproveWaiver(m *models.PaymentWaiver, id int, approve bool) error
ApproveWaiver ...
func (*PaymentWaiverRepository) BatchSave ¶ added in v1.0.0
func (r *PaymentWaiverRepository) BatchSave(waivers []models.PaymentWaiver) error
BatchSave ...
func (*PaymentWaiverRepository) Delete ¶ added in v1.0.0
func (r *PaymentWaiverRepository) Delete(ID int) error
Delete ...
func (*PaymentWaiverRepository) Get ¶ added in v1.0.0
func (r *PaymentWaiverRepository) Get(m *models.PaymentWaiver, ID int) error
Get ...
func (*PaymentWaiverRepository) GetAll ¶ added in v1.0.0
func (r *PaymentWaiverRepository) GetAll(p models.PaginationInput) ([]models.PaymentWaiver, int64, error)
GetAll ...
func (*PaymentWaiverRepository) GetApprovedCount ¶ added in v1.0.0
func (r *PaymentWaiverRepository) GetApprovedCount() (int, error)
GetCount ...
func (*PaymentWaiverRepository) Save ¶ added in v1.0.0
func (r *PaymentWaiverRepository) Save(m *models.PaymentWaiver) error
Save ...
func (*PaymentWaiverRepository) Update ¶ added in v1.0.0
func (r *PaymentWaiverRepository) Update(m *models.PaymentWaiver) error
Update ...
type PharmacyRepository ¶ added in v1.0.0
func ProvidePharmacyRepository ¶ added in v1.0.0
func ProvidePharmacyRepository(DB *gorm.DB) PharmacyRepository
func (*PharmacyRepository) Delete ¶ added in v1.0.0
func (r *PharmacyRepository) Delete(ID int) error
Delete ...
func (*PharmacyRepository) Get ¶ added in v1.0.0
func (r *PharmacyRepository) Get(m *models.Pharmacy, ID int) error
Get ...
func (*PharmacyRepository) GetAll ¶ added in v1.0.0
func (r *PharmacyRepository) GetAll(p models.PaginationInput, filter *models.Pharmacy) ([]models.Pharmacy, int64, error)
GetAll ...
type PhysicalExamFindingRepository ¶ added in v1.0.0
func ProvidePhysicalExamFindingRepository ¶ added in v1.0.0
func ProvidePhysicalExamFindingRepository(DB *gorm.DB) PhysicalExamFindingRepository
func (*PhysicalExamFindingRepository) Delete ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) Delete(ID int) error
Delete ...
func (*PhysicalExamFindingRepository) DeleteExamCategory ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) DeleteExamCategory(m *models.PhysicalExamFinding, physicalExamFindingID int, examCategoryID int) error
DeleteExamCategory
func (*PhysicalExamFindingRepository) Get ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) Get(m *models.PhysicalExamFinding, ID int) error
Get ...
func (*PhysicalExamFindingRepository) GetAll ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) GetAll(p models.PaginationInput, filter *models.PhysicalExamFinding) ([]models.PhysicalExamFinding, int64, error)
GetAll ...
func (*PhysicalExamFindingRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) GetByPatientChartID(m *models.PhysicalExamFinding, id string) error
GetByTitle ...
func (*PhysicalExamFindingRepository) Save ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) Save(m *models.PhysicalExamFinding) error
Save ...
func (*PhysicalExamFindingRepository) Update ¶ added in v1.0.0
func (r *PhysicalExamFindingRepository) Update(m *models.PhysicalExamFinding) error
Update ...
type PupilsRepository ¶ added in v1.0.0
func ProvidePupilsRepository ¶ added in v1.0.0
func ProvidePupilsRepository(DB *gorm.DB) PupilsRepository
func (*PupilsRepository) GetByPatientChart ¶ added in v1.0.0
func (r *PupilsRepository) GetByPatientChart(m *models.Pupils, ID int) error
GetByPatientChart ...
func (*PupilsRepository) Save ¶ added in v1.0.0
func (r *PupilsRepository) Save(m *models.Pupils) error
Save ...
func (*PupilsRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *PupilsRepository) SaveForPatientChart(m *models.Pupils) error
SaveForPatientChart ...
type QueueDestinationRepository ¶ added in v1.0.0
func ProvideQueueDestinationRepository ¶ added in v1.0.0
func ProvideQueueDestinationRepository(DB *gorm.DB) QueueDestinationRepository
func (*QueueDestinationRepository) Delete ¶ added in v1.0.0
func (r *QueueDestinationRepository) Delete(ID int) error
Delete ...
func (*QueueDestinationRepository) Get ¶ added in v1.0.0
func (r *QueueDestinationRepository) Get(m *models.QueueDestination, ID int) error
Get ...
func (*QueueDestinationRepository) GetAll ¶ added in v1.0.0
func (r *QueueDestinationRepository) GetAll(p PaginationInput) ([]models.QueueDestination, int64, error)
GetAll ...
func (*QueueDestinationRepository) GetByTitle ¶ added in v1.0.0
func (r *QueueDestinationRepository) GetByTitle(m *models.QueueDestination, title string) error
GetByTitle ...
func (*QueueDestinationRepository) GetUserTypeFromDestination ¶ added in v1.0.0
func (r *QueueDestinationRepository) GetUserTypeFromDestination(destination string) string
GetUserTypeFromDestination ...
func (*QueueDestinationRepository) Save ¶ added in v1.0.0
func (r *QueueDestinationRepository) Save(m *models.QueueDestination) error
Save ...
func (*QueueDestinationRepository) Seed ¶ added in v1.0.0
func (r *QueueDestinationRepository) Seed()
Seed ...
func (*QueueDestinationRepository) Update ¶ added in v1.0.0
func (r *QueueDestinationRepository) Update(m *models.QueueDestination) error
Update ...
type QueueSubscriptionRepository ¶ added in v1.0.0
func ProvideQueueSubscriptionRepository ¶ added in v1.0.0
func ProvideQueueSubscriptionRepository(DB *gorm.DB) QueueSubscriptionRepository
func (*QueueSubscriptionRepository) GetByUserId ¶ added in v1.0.0
func (r *QueueSubscriptionRepository) GetByUserId(m *models.QueueSubscription, userID int) error
GetByUserId ...
func (*QueueSubscriptionRepository) Save ¶ added in v1.0.0
func (r *QueueSubscriptionRepository) Save(m *models.QueueSubscription) error
Save
func (*QueueSubscriptionRepository) Subscribe ¶ added in v1.0.0
func (r *QueueSubscriptionRepository) Subscribe(m *models.QueueSubscription, userId int, patientQueueId int) error
Subscribe ...
func (*QueueSubscriptionRepository) Unsubscribe ¶ added in v1.0.0
func (r *QueueSubscriptionRepository) Unsubscribe(m *models.QueueSubscription, userId int, patientQueueId int) error
Unsubscribe ...
type ReferralOrderRepository ¶ added in v1.0.0
func ProvideReferralOrderRepository ¶ added in v1.0.0
func ProvideReferralOrderRepository(DB *gorm.DB) ReferralOrderRepository
func (*ReferralOrderRepository) ConfirmOrder ¶ added in v1.0.0
func (r *ReferralOrderRepository) ConfirmOrder(m *models.ReferralOrder, referralOrderID int, referralID int, billingID *int, invoiceNo *string, roomID *int, checkInTime *time.Time) error
ConfirmOrder ...
func (*ReferralOrderRepository) Delete ¶ added in v1.0.0
func (r *ReferralOrderRepository) Delete(ID int) error
Delete ...
func (*ReferralOrderRepository) GetAll ¶ added in v1.0.0
func (r *ReferralOrderRepository) GetAll(p models.PaginationInput, filter *models.ReferralOrder) ([]models.ReferralOrder, int64, error)
GetAll ...
func (*ReferralOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *ReferralOrderRepository) GetByPatientChartID(m *models.ReferralOrder, patientChartID int) error
GetByPatientChartID ...
func (*ReferralOrderRepository) GetCount ¶ added in v1.0.0
func (r *ReferralOrderRepository) GetCount(filter *models.ReferralOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*ReferralOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *ReferralOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*ReferralOrderRepository) Save ¶ added in v1.0.0
func (r *ReferralOrderRepository) Save(m *models.ReferralOrder, patientChartID int, patientID int, orderedToID *int, referralType models.ReferralType, user models.User, receptionNote *string, reason string, providerName *string) error
Save ...
func (*ReferralOrderRepository) Search ¶ added in v1.0.0
func (r *ReferralOrderRepository) Search(p models.PaginationInput, filter *models.ReferralOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.ReferralOrder, int64, error)
Search ...
func (*ReferralOrderRepository) Update ¶ added in v1.0.0
func (r *ReferralOrderRepository) Update(m *models.ReferralOrder) error
Update ...
type ReferralRepository ¶ added in v1.0.0
func ProvideReferralRepository ¶ added in v1.0.0
func ProvideReferralRepository(DB *gorm.DB) ReferralRepository
func (*ReferralRepository) Delete ¶ added in v1.0.0
func (r *ReferralRepository) Delete(m *models.Referral, ID int) error
Delete ...
func (*ReferralRepository) Get ¶ added in v1.0.0
func (r *ReferralRepository) Get(m *models.Referral, ID int) error
Get ...
func (*ReferralRepository) GetAll ¶ added in v1.0.0
func (r *ReferralRepository) GetAll(p models.PaginationInput, filter *models.Referral) ([]models.Referral, int64, error)
GetAll ...
func (*ReferralRepository) GetByOrderID ¶ added in v1.0.0
func (r *ReferralRepository) GetByOrderID(m *models.Referral, ID int) error
Get ...
type ReviewOfSystemRepository ¶ added in v1.0.0
func ProvideReviewOfSystemRepository ¶ added in v1.0.0
func ProvideReviewOfSystemRepository(DB *gorm.DB) ReviewOfSystemRepository
func (*ReviewOfSystemRepository) Delete ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) Delete(ID int) error
Delete ...
func (*ReviewOfSystemRepository) Get ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) Get(m *models.ReviewOfSystem, ID int) error
Get ...
func (*ReviewOfSystemRepository) GetAll ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) GetAll(p models.PaginationInput, filter *models.ReviewOfSystem) ([]models.ReviewOfSystem, int64, error)
GetAll ...
func (*ReviewOfSystemRepository) GetByPatientHistoryID ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) GetByPatientHistoryID(m *models.ReviewOfSystem, ID string) error
GetByTitle ...
func (*ReviewOfSystemRepository) Save ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) Save(m *models.ReviewOfSystem) error
Save ...
func (*ReviewOfSystemRepository) Update ¶ added in v1.0.0
func (r *ReviewOfSystemRepository) Update(m *models.ReviewOfSystem) error
Update ...
type RoomRepository ¶ added in v1.0.0
func ProvideRoomRepository ¶ added in v1.0.0
func ProvideRoomRepository(DB *gorm.DB) RoomRepository
func (*RoomRepository) Delete ¶ added in v1.0.0
func (r *RoomRepository) Delete(ID int) error
Delete ...
func (*RoomRepository) Get ¶ added in v1.0.0
func (r *RoomRepository) Get(m *models.Room, ID int) error
Get ...
func (*RoomRepository) GetAll ¶ added in v1.0.0
func (r *RoomRepository) GetAll(p models.PaginationInput) ([]models.Room, int64, error)
GetAll ...
func (*RoomRepository) GetByTitle ¶ added in v1.0.0
func (r *RoomRepository) GetByTitle(m *models.Room, title string) error
GetByTitle ...
type SlitLampExamRepository ¶ added in v1.0.0
func ProvideSlitLampExamRepository ¶ added in v1.0.0
func ProvideSlitLampExamRepository(DB *gorm.DB) SlitLampExamRepository
func (*SlitLampExamRepository) Get ¶ added in v1.0.0
func (r *SlitLampExamRepository) Get(m *models.SlitLampExam, filter models.SlitLampExam) error
Get ...
func (*SlitLampExamRepository) GetByPatientChart ¶ added in v1.0.0
func (r *SlitLampExamRepository) GetByPatientChart(m *models.SlitLampExam, ID int) error
GetByPatientChart ...
func (*SlitLampExamRepository) Save ¶ added in v1.0.0
func (r *SlitLampExamRepository) Save(m *models.SlitLampExam) error
Save ...
func (*SlitLampExamRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *SlitLampExamRepository) SaveForPatientChart(m *models.SlitLampExam) error
SaveForPatientChart ...
func (*SlitLampExamRepository) Update ¶ added in v1.0.0
func (r *SlitLampExamRepository) Update(m *models.SlitLampExam) error
Update ...
type SupplyRepository ¶ added in v1.0.0
func ProvideSupplyRepository ¶ added in v1.0.0
func ProvideSupplyRepository(DB *gorm.DB) SupplyRepository
func (*SupplyRepository) Delete ¶ added in v1.0.0
func (r *SupplyRepository) Delete(ID int) error
Delete ...
func (*SupplyRepository) Get ¶ added in v1.0.0
func (r *SupplyRepository) Get(m *models.Supply, ID int) error
Get ...
func (*SupplyRepository) GetAll ¶ added in v1.0.0
func (r *SupplyRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.Supply, int64, error)
GetAll ...
func (*SupplyRepository) GetByIds ¶ added in v1.0.0
func (r *SupplyRepository) GetByIds(ids []*int) ([]models.Supply, error)
GetByIds ...
func (*SupplyRepository) GetByTitle ¶ added in v1.0.0
func (r *SupplyRepository) GetByTitle(m *models.Supply, title string) error
GetByTitle ...
type SurgicalOrderRepository ¶ added in v1.0.0
func ProvideSurgicalOrderRepository ¶ added in v1.0.0
func ProvideSurgicalOrderRepository(DB *gorm.DB) SurgicalOrderRepository
func (*SurgicalOrderRepository) ConfirmOrder ¶ added in v1.0.0
func (r *SurgicalOrderRepository) ConfirmOrder(m *models.SurgicalOrder, surgicalOrderID int, surgicalProcedureID int, invoiceNo string, roomID int, checkInTime time.Time) error
ConfirmOrder ...
func (*SurgicalOrderRepository) Delete ¶ added in v1.0.0
func (r *SurgicalOrderRepository) Delete(ID int) error
Delete ...
func (*SurgicalOrderRepository) GetAll ¶ added in v1.0.0
func (r *SurgicalOrderRepository) GetAll(p PaginationInput, filter *models.SurgicalOrder) ([]models.SurgicalOrder, int64, error)
GetAll ...
func (*SurgicalOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *SurgicalOrderRepository) GetByPatientChartID(m *models.SurgicalOrder, patientChartID int) error
GetByPatientChartID ...
func (*SurgicalOrderRepository) GetCount ¶ added in v1.0.0
func (r *SurgicalOrderRepository) GetCount(filter *models.SurgicalOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*SurgicalOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *SurgicalOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*SurgicalOrderRepository) SaveOpthalmologyOrder ¶ added in v1.0.0
func (r *SurgicalOrderRepository) SaveOpthalmologyOrder(m *models.SurgicalOrder, surgicalProcedureTypeID int, patientChartID int, patientID int, billingID int, user models.User, performOnEye string, orderNote string, receptionNote string) error
SaveOpthalmologyOrder ...
func (*SurgicalOrderRepository) Search ¶ added in v1.0.0
func (r *SurgicalOrderRepository) Search(p models.PaginationInput, filter *models.SurgicalOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.SurgicalOrder, int64, error)
Search ...
func (*SurgicalOrderRepository) Update ¶ added in v1.0.0
func (r *SurgicalOrderRepository) Update(m *models.SurgicalOrder) error
Update ...
type SurgicalProcedureRepository ¶ added in v1.0.0
func ProvideSurgicalProcedureRepository ¶ added in v1.0.0
func ProvideSurgicalProcedureRepository(DB *gorm.DB) SurgicalProcedureRepository
func (*SurgicalProcedureRepository) Delete ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) Delete(ID int) error
Delete ...
func (*SurgicalProcedureRepository) DeleteFile ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) DeleteFile(association string, surgicalProcedureID int, fileID int) error
DeleteFile ...
func (*SurgicalProcedureRepository) Get ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) Get(m *models.SurgicalProcedure, ID int) error
Get ...
func (*SurgicalProcedureRepository) GetAll ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) GetAll(p models.PaginationInput, filter *models.SurgicalProcedure) ([]models.SurgicalProcedure, int64, error)
GetAll ...
func (*SurgicalProcedureRepository) GetByPatient ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.SurgicalProcedure, int64, error)
GetByPatient ...
func (*SurgicalProcedureRepository) GetByPatientChart ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) GetByPatientChart(m *models.SurgicalProcedure, ID int) error
GetByPatientChart ...
func (*SurgicalProcedureRepository) Save ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) Save(m *models.SurgicalProcedure) error
Save ...
func (*SurgicalProcedureRepository) Update ¶ added in v1.0.0
func (r *SurgicalProcedureRepository) Update(m *models.SurgicalProcedure) error
Update ...
type SurgicalProcedureTypeRepository ¶ added in v1.0.0
func ProvideSurgicalProcedureTypeRepository ¶ added in v1.0.0
func ProvideSurgicalProcedureTypeRepository(DB *gorm.DB) SurgicalProcedureTypeRepository
func (*SurgicalProcedureTypeRepository) Delete ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) Delete(ID int) error
Delete ...
func (*SurgicalProcedureTypeRepository) Get ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) Get(m *models.SurgicalProcedureType, ID int) error
Get ...
func (*SurgicalProcedureTypeRepository) GetAll ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SurgicalProcedureType, int64, error)
GetAll ...
func (*SurgicalProcedureTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) GetByTitle(m *models.SurgicalProcedureType, title string) error
GetByTitle ...
func (*SurgicalProcedureTypeRepository) Save ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) Save(m *models.SurgicalProcedureType) error
Save ...
func (*SurgicalProcedureTypeRepository) Update ¶ added in v1.0.0
func (r *SurgicalProcedureTypeRepository) Update(m *models.SurgicalProcedureType) error
Update ...
type SystemRepository ¶ added in v1.0.0
func ProvideSystemRepository ¶ added in v1.0.0
func ProvideSystemRepository(DB *gorm.DB) SystemRepository
func (*SystemRepository) Delete ¶ added in v1.0.0
func (r *SystemRepository) Delete(m *models.System, ID int) error
Delete ...
func (*SystemRepository) Get ¶ added in v1.0.0
func (r *SystemRepository) Get(m *models.System, ID int) error
Get ...
func (*SystemRepository) GetAll ¶ added in v1.0.0
func (r *SystemRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.System, int64, error)
GetAll ...
func (*SystemRepository) GetByTitle ¶ added in v1.0.0
func (r *SystemRepository) GetByTitle(m *models.System, title string) error
GetByTitle ...
type SystemSymptomRepository ¶ added in v1.0.0
func ProvideSystemSymptomRepository ¶ added in v1.0.0
func ProvideSystemSymptomRepository(DB *gorm.DB) SystemSymptomRepository
func (*SystemSymptomRepository) Delete ¶ added in v1.0.0
func (r *SystemSymptomRepository) Delete(ID int) error
Delete ...
func (*SystemSymptomRepository) Get ¶ added in v1.0.0
func (r *SystemSymptomRepository) Get(m *models.SystemSymptom, ID int) error
Get ...
func (*SystemSymptomRepository) GetAll ¶ added in v1.0.0
func (r *SystemSymptomRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.SystemSymptom, int64, error)
GetAll ...
func (*SystemSymptomRepository) GetByTitle ¶ added in v1.0.0
func (r *SystemSymptomRepository) GetByTitle(m *models.SystemSymptom, title string) error
GetByTitle ...
func (*SystemSymptomRepository) Save ¶ added in v1.0.0
func (r *SystemSymptomRepository) Save(m *models.SystemSymptom) error
Save ...
func (*SystemSymptomRepository) Update ¶ added in v1.0.0
func (r *SystemSymptomRepository) Update(m *models.SystemSymptom) error
Update ...
type TreatmentOrderRepository ¶ added in v1.0.0
func ProvideTreatmentOrderRepository ¶ added in v1.0.0
func ProvideTreatmentOrderRepository(DB *gorm.DB) TreatmentOrderRepository
func (*TreatmentOrderRepository) ConfirmOrder ¶ added in v1.0.0
func (r *TreatmentOrderRepository) ConfirmOrder(m *models.TreatmentOrder, treatmentOrderID int, treatmentID int, invoiceNo string, roomID int, checkInTime time.Time) error
ConfirmOrder ...
func (*TreatmentOrderRepository) Delete ¶ added in v1.0.0
func (r *TreatmentOrderRepository) Delete(ID int) error
Delete ...
func (*TreatmentOrderRepository) GetAll ¶ added in v1.0.0
func (r *TreatmentOrderRepository) GetAll(p PaginationInput, filter *models.TreatmentOrder) ([]models.TreatmentOrder, int64, error)
GetAll ...
func (*TreatmentOrderRepository) GetByPatientChartID ¶ added in v1.0.0
func (r *TreatmentOrderRepository) GetByPatientChartID(m *models.TreatmentOrder, patientChartID int) error
GetByPatientChartID ...
func (*TreatmentOrderRepository) GetCount ¶ added in v1.0.0
func (r *TreatmentOrderRepository) GetCount(filter *models.TreatmentOrder, date *time.Time, searchTerm *string) (int64, error)
GetCount ...
func (*TreatmentOrderRepository) GetTodaysOrderedCount ¶ added in v1.0.0
func (r *TreatmentOrderRepository) GetTodaysOrderedCount() (count int)
GetTodaysOrderedCount ...
func (*TreatmentOrderRepository) SaveOpthalmologyTreatment ¶ added in v1.0.0
func (r *TreatmentOrderRepository) SaveOpthalmologyTreatment(m *models.TreatmentOrder, treatmentTypeID int, patientChartID int, patientID int, billingID int, user models.User, treatmentNote string, orderNote string) error
SaveOpthalmologyTreatment ...
func (*TreatmentOrderRepository) Search ¶ added in v1.0.0
func (r *TreatmentOrderRepository) Search(p models.PaginationInput, filter *models.TreatmentOrder, date *time.Time, searchTerm *string, ascending bool) ([]models.TreatmentOrder, int64, error)
Search ...
func (*TreatmentOrderRepository) Update ¶ added in v1.0.0
func (r *TreatmentOrderRepository) Update(m *models.TreatmentOrder) error
Update ...
type TreatmentRepository ¶ added in v1.0.0
func ProvideTreatmentRepository ¶ added in v1.0.0
func ProvideTreatmentRepository(DB *gorm.DB) TreatmentRepository
func (*TreatmentRepository) Delete ¶ added in v1.0.0
func (r *TreatmentRepository) Delete(ID int) error
Delete ...
func (*TreatmentRepository) Get ¶ added in v1.0.0
func (r *TreatmentRepository) Get(m *models.Treatment, ID int) error
Get ...
func (*TreatmentRepository) GetAll ¶ added in v1.0.0
func (r *TreatmentRepository) GetAll(p models.PaginationInput, filter *models.Treatment) ([]models.Treatment, int64, error)
GetAll ...
func (*TreatmentRepository) GetByPatient ¶ added in v1.0.0
func (r *TreatmentRepository) GetByPatient(p models.PaginationInput, patientID int) ([]models.Treatment, int64, error)
GetByPatient ...
func (*TreatmentRepository) GetByPatientChart ¶ added in v1.0.0
func (r *TreatmentRepository) GetByPatientChart(m *models.Treatment, ID int) error
GetByPatientChart ...
type TreatmentStatus ¶
type TreatmentStatus string
TreatmentStatus ...
const ( TreatmentStatusOrdered TreatmentStatus = "ORDERED" TreatmentStatusCompleted TreatmentStatus = "COMPLETED" )
SurgicalProcedureOrder statuses ...
type TreatmentTypeRepository ¶ added in v1.0.0
func ProvideTreatmentTypeRepository ¶ added in v1.0.0
func ProvideTreatmentTypeRepository(DB *gorm.DB) TreatmentTypeRepository
func (*TreatmentTypeRepository) Delete ¶ added in v1.0.0
func (r *TreatmentTypeRepository) Delete(ID int) error
Delete ...
func (*TreatmentTypeRepository) Get ¶ added in v1.0.0
func (r *TreatmentTypeRepository) Get(m *models.TreatmentType, ID int) error
Get ...
func (*TreatmentTypeRepository) GetAll ¶ added in v1.0.0
func (r *TreatmentTypeRepository) GetAll(p models.PaginationInput, searchTerm *string) ([]models.TreatmentType, int64, error)
GetAll ...
func (*TreatmentTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *TreatmentTypeRepository) GetByTitle(m *models.TreatmentType, title string) error
GetByTitle ...
func (*TreatmentTypeRepository) Save ¶ added in v1.0.0
func (r *TreatmentTypeRepository) Save(m *models.TreatmentType) error
Save ...
func (*TreatmentTypeRepository) Update ¶ added in v1.0.0
func (r *TreatmentTypeRepository) Update(m *models.TreatmentType) error
Update ...
type UserRepository ¶ added in v1.0.0
type UserRepository struct { DB *gorm.DB UserTypeRepository UserTypeRepository }
func ProvideUserRepository ¶ added in v1.0.0
func ProvideUserRepository(DB *gorm.DB, userTypeRepository UserTypeRepository) UserRepository
func (*UserRepository) CheckIfUserLegacy ¶ added in v1.0.0
func (r *UserRepository) CheckIfUserLegacy(m *models.User, oldUserName string) error
CheckIfUserLegacy ...
func (*UserRepository) Get ¶ added in v1.0.0
func (r *UserRepository) Get(m *models.User, ID int) error
Get ...
func (*UserRepository) GetAll ¶ added in v1.0.0
func (r *UserRepository) GetAll(p PaginationInput) ([]models.User, int64, error)
GetAll ...
func (*UserRepository) GetByEmail ¶ added in v1.0.0
func (r *UserRepository) GetByEmail(m *models.User, email string) error
GetByEmail ...
func (*UserRepository) GetByOldUserName ¶ added in v1.0.0
func (r *UserRepository) GetByOldUserName(m *models.User, userName string) error
GetByOldUserName ...
func (*UserRepository) GetByUserType ¶ added in v1.0.0
func (r *UserRepository) GetByUserType(m *models.User, userTypeID int) (users []models.User, err error)
GetByUserType ...
func (*UserRepository) GetByUserTypeTitle ¶ added in v1.0.0
func (r *UserRepository) GetByUserTypeTitle(userTypeTitle string) ([]*models.User, error)
GetByUserTypeTitle ...
func (*UserRepository) Search ¶ added in v1.0.0
func (r *UserRepository) Search(p models.PaginationInput, filter *models.User, searchTerm *string) ([]models.User, int64, error)
Search ...
func (*UserRepository) SearchPhysicians ¶ added in v1.0.0
func (r *UserRepository) SearchPhysicians(searchTerm string) ([]*models.User, error)
Search ...
type UserTypeRepository ¶ added in v1.0.0
func ProvideUserTypeRepository ¶ added in v1.0.0
func ProvideUserTypeRepository(DB *gorm.DB) UserTypeRepository
func (*UserTypeRepository) Delete ¶ added in v1.0.0
func (r *UserTypeRepository) Delete(ID int) error
Delete ...
func (*UserTypeRepository) Get ¶ added in v1.0.0
func (r *UserTypeRepository) Get(m *models.UserType, ID int) error
Get ...
func (*UserTypeRepository) GetAll ¶ added in v1.0.0
func (r *UserTypeRepository) GetAll(p models.PaginationInput) ([]models.UserType, int64, error)
GetAll ...
func (*UserTypeRepository) GetByIds ¶ added in v1.0.0
func (r *UserTypeRepository) GetByIds(ids []*int) ([]models.UserType, error)
GetByIds
func (*UserTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *UserTypeRepository) GetByTitle(m *models.UserType, title string) error
GetByTitle ...
type VisitTypeRepository ¶ added in v1.0.0
func ProvideVisitTypeRepository ¶ added in v1.0.0
func ProvideVisitTypeRepository(DB *gorm.DB) VisitTypeRepository
func (*VisitTypeRepository) Count ¶ added in v1.0.0
func (r *VisitTypeRepository) Count(dbString string) (int64, error)
Count ...
func (*VisitTypeRepository) Delete ¶ added in v1.0.0
func (r *VisitTypeRepository) Delete(ID int) error
Delete ...
func (*VisitTypeRepository) Get ¶ added in v1.0.0
func (r *VisitTypeRepository) Get(m *models.VisitType, ID int) error
Get ...
func (*VisitTypeRepository) GetAll ¶ added in v1.0.0
func (r *VisitTypeRepository) GetAll(p models.PaginationInput) ([]models.VisitType, int64, error)
GetAll ...
func (*VisitTypeRepository) GetByTitle ¶ added in v1.0.0
func (r *VisitTypeRepository) GetByTitle(m *models.VisitType, title string) error
GetByTitle ...
func (*VisitTypeRepository) GetByTitles ¶ added in v1.0.0
func (r *VisitTypeRepository) GetByTitles(titles []string) ([]models.VisitType, error)
GetByTitles ...
type VisualAcuityRepository ¶ added in v1.0.0
func ProvideVisualAcuityRepository ¶ added in v1.0.0
func ProvideVisualAcuityRepository(DB *gorm.DB) VisualAcuityRepository
func (*VisualAcuityRepository) Get ¶ added in v1.0.0
func (r *VisualAcuityRepository) Get(m *models.VisualAcuity, filter models.VisualAcuity) error
Get ...
func (*VisualAcuityRepository) GetByPatientChart ¶ added in v1.0.0
func (r *VisualAcuityRepository) GetByPatientChart(m *models.VisualAcuity, ID int) error
GetByPatientChart ...
func (*VisualAcuityRepository) Save ¶ added in v1.0.0
func (r *VisualAcuityRepository) Save(m *models.VisualAcuity) error
Save ...
func (*VisualAcuityRepository) SaveForPatientChart ¶ added in v1.0.0
func (r *VisualAcuityRepository) SaveForPatientChart(m *models.VisualAcuity) error
SaveForPatientChart ...
func (*VisualAcuityRepository) Update ¶ added in v1.0.0
func (r *VisualAcuityRepository) Update(m *models.VisualAcuity) error
Update ...
type VitalSignsRepository ¶ added in v1.0.0
func ProvideVitalSignsRepository ¶ added in v1.0.0
func ProvideVitalSignsRepository(DB *gorm.DB) VitalSignsRepository
func (*VitalSignsRepository) Get ¶ added in v1.0.0
func (r *VitalSignsRepository) Get(m *models.VitalSigns, filter models.VitalSigns) error
Get ...
func (*VitalSignsRepository) GetByPatientChart ¶ added in v1.0.0
func (r *VitalSignsRepository) GetByPatientChart(m *models.VitalSigns, ID int) error
GetByPatientChart ...
func (*VitalSignsRepository) Save ¶ added in v1.0.0
func (r *VitalSignsRepository) Save(m *models.VitalSigns) error
Save ...
func (*VitalSignsRepository) Update ¶ added in v1.0.0
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
- 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_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