first commit

This commit is contained in:
Sas Andy
2024-12-09 09:51:19 +07:00
commit ecc5dfd9c0
69 changed files with 5365 additions and 0 deletions

26
types/patient.types.go Normal file
View File

@@ -0,0 +1,26 @@
package types
type PatientStore interface {
SearchPatient(keyword string, page int, perpage int) ([]PatientResult, error)
SearchPatientOld(keyword string, page int, perpage int) ([]PatientResult, error)
}
type Patient struct {
PatientID int `json:"PatientID" db:"PatientID"`
PatientPersonID int `json:"PatientPersonID" db:"PatientPersonID"`
PatientManaginOrganizationID int `json:"PatientManaginOrganizationID" db:"PatientManaginOrganizationID"`
PatientHISNumber string `json:"PatientHISNumber" db:"PatientHISNumber"`
PatientRegNumber string `json:"PatientRegNumber" db:"PatientRegNumber"`
}
type SearchPatientPayload struct {
Keyword string `json:"keyword"`
Page int `json:"page" validate:"required"`
Perpage int `json:"perpage" validate:"required"`
}
type PatientResult struct {
Patient
Person
PersonIdentifier
PersonAddress
PersonTelecom
}