first commit
This commit is contained in:
26
types/patient.types.go
Normal file
26
types/patient.types.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user