27 lines
934 B
Go
27 lines
934 B
Go
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
|
|
}
|