Documentation
¶
Index ¶
- func AddNewConversation(ctx context.Context, accID1, accID2 int64) error
- func CheckConversationExists(ctx context.Context, accID1, accID2 int64) error
- func CheckEmailAndCitizenID(ctx context.Context, req models.AccountRecoverRequest) error
- func CheckPrescriptionExists(ctx context.Context, prescriptionID string) error
- func CloseDBConnect()
- func ComfirmReceivingPrescription(ctx context.Context, prescriptionID string) error
- func ConnectToDB(ctx context.Context, connString string) error
- func CreateSchedule(ctx context.Context, req models.ScheduleBookingRequest, queue_number int, ...) (models.ScheduleBookingResponse, error)
- func DeletePrescriptionDetail(ctx context.Context, prescriptionID, medID string) error
- func DeleteRecordAttachment(ctx context.Context, recordID, prefix string, ...) error
- func GetAccIDByCitizenID(ctx context.Context, citizenID string) (int, error)
- func GetAccIDByPatientID(ctx context.Context, patientID int) (int64, error)
- func GetAccountInfo(ctx context.Context, accID string) (models.AccountInfo, error)
- func GetAccountList(ctx context.Context) ([]models.AccountInfo, error)
- func GetConversationList(ctx context.Context, accID string) ([]models.Conversation, error)
- func GetConversationMessage(ctx context.Context, conversationID string) ([]models.Message, error)
- func GetDiagnosisInfo(ctx context.Context, icdCode string) (models.DiagnosisInfo, error)
- func GetDiagnosisList(ctx context.Context) ([]models.DiagnosisInfo, error)
- func GetDoctorList(ctx context.Context) ([]int64, error)
- func GetMedicalRecordInfo(ctx context.Context, recordID string) (models.MedicalRecordInfo, error)
- func GetMedicalRecordList(ctx context.Context, patientID int) ([]models.MedicalRecordBriefInfo, error)
- func GetMedicalRecordType(ctx context.Context, typeID string) (models.MedicalRecordTypeInfo, error)
- func GetMedicalRecordTypeByRecordID(ctx context.Context, recordID string) (models.MedicalRecordTypeInfo, error)
- func GetMedicalRecordTypeList(ctx context.Context) ([]models.MedicalRecordType, error)
- func GetMedicationInfo(ctx context.Context, medicationID string) (models.MedicationInfo, error)
- func GetMedicationList(ctx context.Context) ([]models.MedicationInfo, error)
- func GetNameByAccID(ctx context.Context, accID string) (string, error)
- func GetPatientIDListByAccID(ctx context.Context, accID string) ([]int, error)
- func GetPatientInfo(ctx context.Context, patientID string, accID string) (models.PatientInfo, error)
- func GetPatientList(ctx context.Context, accID *string) ([]models.PatientBriefInfo, error)
- func GetPrescriptionDetails(ctx context.Context, prescriptionID string) ([]models.PrescriptionDetailInfo, error)
- func GetPrescriptionIDListByAccID(ctx context.Context, accID string) ([]int, error)
- func GetPrescriptionInfoByRecordID(ctx context.Context, recordID int) (models.PrescriptionInfo, error)
- func GetPrescriptionList(ctx context.Context, recordIDList []int) ([]models.PrescriptionInfo, error)
- func GetPrescriptionListByPatientID(ctx context.Context, patientID string) ([]models.PrescriptionInfo, error)
- func GetQueueNumber(ctx context.Context, date time.Time) (int, error)
- func GetRecordIDListByAccID(ctx context.Context, accID string) ([]int, error)
- func GetRecordListByTime(ctx context.Context, timestamp1, timestamp2 time.Time) ([]models.RecordInfoForStatistic, error)
- func GetScheduleList(ctx context.Context, patientID *string, req models.GetScheduleListRequest) ([]models.ScheduleInfo, error)
- func GetStaffIDByAccID(ctx context.Context, accID string) (int, error)
- func GetStaffInfo(ctx context.Context, staffID string, accID string) (models.StaffInfo, error)
- func GetStaffList(ctx context.Context) ([]models.StaffInfo, error)
- func StoreAccountInfo(ctx context.Context, req models.AccountRegistrationRequest, ...) (int, error)
- func StoreMedicalRecord(ctx context.Context, doctorID int, req *models.NewMedicalRecordRequest, ...) (models.NewMedicalRecordResponse, error)
- func StoreMedicalRecordAttachments(ctx context.Context, recordID string, attachments []*multipart.FileHeader, ...) error
- func StoreMessage(ctx context.Context, message models.NewMessage, senderAccID string) (models.Message, error)
- func StorePatientInfo(ctx context.Context, req models.PatientRegistrationRequest) error
- func StorePrescription(ctx context.Context, req models.NewPrescriptionRequest) (models.NewPrescriptionResponse, error)
- func StorePrescriptionDetails(ctx context.Context, prescriptionID string, ...) error
- func StoreStaffInfo(ctx context.Context, req models.StaffRegistrationRequest) error
- func UpdateAccountInfo(ctx context.Context, accID string, req models.AccountInfoUpdateRequest) error
- func UpdateConversationLastMessage(ctx context.Context, conversationID int64, lastMessageTime time.Time) error
- func UpdateMedicalRecord(ctx context.Context, recordID string, ...) error
- func UpdateMessageSeenStatus(ctx context.Context, conversationID int64, partnerAccID int64, ...) error
- func UpdatePassword(ctx context.Context, accID, newPassword string) error
- func UpdatePatientInfo(ctx context.Context, patientID string, req models.PatientInfoUpdateRequest) error
- func UpdatePrescription(ctx context.Context, prescriptionID string, ...) error
- func UpdatePrescriptionDetail(ctx context.Context, prescriptionID, medID string, ...) error
- func UpdateScheduleStatus(ctx context.Context, req models.UpdateScheduleStatusRequest) error
- func UpdateStaffInfo(ctx context.Context, staffID string, req models.StaffInfoUpdateRequest) error
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConversationExists ¶
func CheckEmailAndCitizenID ¶
func CheckEmailAndCitizenID(ctx context.Context, req models.AccountRecoverRequest) error
func CheckPrescriptionExists ¶
func CloseDBConnect ¶
func CloseDBConnect()
func CreateSchedule ¶
func CreateSchedule(ctx context.Context, req models.ScheduleBookingRequest, queue_number int, accID string) (models.ScheduleBookingResponse, error)
func DeleteRecordAttachment ¶
func GetAccIDByCitizenID ¶
func GetAccIDByPatientID ¶
func GetAccountInfo ¶
func GetAccountList ¶
func GetAccountList(ctx context.Context) ([]models.AccountInfo, error)
func GetConversationList ¶
func GetConversationMessage ¶
func GetDiagnosisInfo ¶
func GetDiagnosisList ¶
func GetDiagnosisList(ctx context.Context) ([]models.DiagnosisInfo, error)
func GetMedicalRecordInfo ¶
func GetMedicalRecordList ¶
func GetMedicalRecordType ¶
func GetMedicalRecordTypeList ¶
func GetMedicalRecordTypeList(ctx context.Context) ([]models.MedicalRecordType, error)
func GetMedicationInfo ¶
func GetMedicationList ¶
func GetMedicationList(ctx context.Context) ([]models.MedicationInfo, error)
func GetPatientIDListByAccID ¶
func GetPatientInfo ¶
func GetPatientList ¶
func GetPrescriptionDetails ¶
func GetPrescriptionList ¶
func GetRecordIDListByAccID ¶
func GetRecordListByTime ¶
func GetScheduleList ¶
func GetScheduleList(ctx context.Context, patientID *string, req models.GetScheduleListRequest) ([]models.ScheduleInfo, error)
func GetStaffInfo ¶
func StoreAccountInfo ¶
func StoreMedicalRecord ¶
func StoreMedicalRecord(ctx context.Context, doctorID int, req *models.NewMedicalRecordRequest, additionalInfo models.ExtractedRecordInfo) (models.NewMedicalRecordResponse, error)
func StoreMessage ¶
func StorePatientInfo ¶
func StorePatientInfo(ctx context.Context, req models.PatientRegistrationRequest) error
func StorePrescription ¶
func StorePrescription(ctx context.Context, req models.NewPrescriptionRequest) (models.NewPrescriptionResponse, error)
func StoreStaffInfo ¶
func StoreStaffInfo(ctx context.Context, req models.StaffRegistrationRequest) error
func UpdateAccountInfo ¶
func UpdateMedicalRecord ¶
func UpdateMedicalRecord(ctx context.Context, recordID string, newDetail models.UpdateMedicalRecordRequest, additionalInfo models.ExtractedRecordInfo) error
func UpdateMessageSeenStatus ¶
func UpdatePatientInfo ¶
func UpdatePrescription ¶
func UpdateScheduleStatus ¶
func UpdateScheduleStatus(ctx context.Context, req models.UpdateScheduleStatusRequest) error
func UpdateStaffInfo ¶
Types ¶
type Credentials ¶
type Credentials struct {
AccID string `json:"acc_id" db:"acc_id"`
PasswordHash string `json:"password_hash" db:"password_hash"`
Role string `json:"role" db:"role"`
}
func GetAccountCredentials ¶
func GetAccountCredentials(ctx context.Context, accIdentifier string) (Credentials, error)
Click to show internal directories.
Click to hide internal directories.