Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/chemo-plan
# Conflicts: # internal/use-case/main-use-case/encounter/lib.go
This commit is contained in:
@@ -26,14 +26,15 @@ type ReadListDto struct {
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Code *string `json:"code"`
|
||||
Employee_Id *uint `json:"employee-id"`
|
||||
IHS_Number *string `json:"ihs-number" validate:"maxLength=20"`
|
||||
SIP_Number *string `json:"sip-number" validate:"maxLength=20"`
|
||||
SIP_ExpiredDate *string `json:"sip-expiredDate"`
|
||||
Unit_Code *string `json:"unit-code"`
|
||||
Specialist_Code *string `json:"specialist-code"`
|
||||
Subspecialist_Code *string `json:"subspecialist-code"`
|
||||
Code *string `json:"code"`
|
||||
Employee_Id *uint `json:"employee-id"`
|
||||
IHS_Number *string `json:"ihs-number" validate:"maxLength=20"`
|
||||
SIP_Number *string `json:"sip-number" validate:"maxLength=20"`
|
||||
SIP_ExpiredDate *string `json:"sip-expiredDate"`
|
||||
Unit_Code *string `json:"unit-code"`
|
||||
Specialist_Code *string `json:"specialist-code"`
|
||||
Specialist_Code_Opt *string `json:"specialist-code-opt"`
|
||||
Subspecialist_Code *string `json:"subspecialist-code"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
|
||||
@@ -105,6 +105,7 @@ type FilterDto struct {
|
||||
RegisteredAt *time.Time `json:"registeredAt"`
|
||||
Class_Code ere.EncounterClassCode `json:"class-code" validate:"maxLength=10"`
|
||||
Specialist_Code *string `json:"specialist-code"`
|
||||
Specialist_Code_Opt *string `json:"specialist-code-opt"`
|
||||
Subspecialist_Code *string `json:"subspecialist-code"`
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
Appoinment_Doctor_Code *string `json:"appointment-doctor-code"`
|
||||
|
||||
@@ -70,7 +70,7 @@ const (
|
||||
OCCHcu OutpatientClassCode = "hcu" // HCU
|
||||
OCCVk OutpatientClassCode = "vk" // Verlos kamer
|
||||
|
||||
ACCReg AmbulatoryClassCode = "reg" // Regular
|
||||
ACCReg AmbulatoryClassCode = "regular" // Regular
|
||||
// ACCRehab ACCRme AmbulatoryClassCode = "rme" // Rehab Medik
|
||||
// ACCCad AmbulatoryClassCode = "chemo-adm" // Chemotherapy
|
||||
// ACCCac AmbulatoryClassCode = "chemo-act" // Chemotherapy
|
||||
|
||||
@@ -110,7 +110,6 @@ func ReadListData(input e.ReadListDto, event *pl.Event, dbx ...*gorm.DB) ([]e.En
|
||||
// Order("\"CreatedAt\" DESC")
|
||||
|
||||
if err := tx.
|
||||
Debug().
|
||||
Scopes(gh.Preload(input.Includes)).
|
||||
Scopes(gh.Paginate(input, &pagination)).
|
||||
Order("\"CreatedAt\" DESC").
|
||||
|
||||
Reference in New Issue
Block a user