change unit_id, insurance_company_id into code
This commit is contained in:
@@ -21,6 +21,7 @@ type CreateDto struct {
|
||||
Encounter_Id *uint `json:"encounter_id"`
|
||||
Status_Code erc.DataVerifiedCode `json:"status_code"`
|
||||
SrcUnit_Id *uint `json:"srcUnit_id"`
|
||||
SrcUnit_Code *string `json:"srcUnit_code"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
@@ -34,6 +35,7 @@ type FilterDto struct {
|
||||
Status_Code *erc.DataVerifiedCode `json:"status-code"`
|
||||
VerifiedBy_User_Id *uint `json:"verifiedBy-user-id"`
|
||||
SrcUnit_Id *uint `json:"srcUnit-id"`
|
||||
SrcUnit_Code *string `json:"srcUnit-code"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
@@ -73,6 +75,7 @@ type ResponseDto struct {
|
||||
VerifiedBy_User_Id *uint `json:"verifiedBy_user_id"`
|
||||
VerifiedBy *eus.User `json:"verifiedBy,omitempty"`
|
||||
SrcUnit_Id *uint `json:"srcUnit_id"`
|
||||
SrcUnit_Code *string `json:"srcUnit_code"`
|
||||
SrcUnit *eun.Unit `json:"srcUnit,omitempty"`
|
||||
}
|
||||
|
||||
@@ -85,6 +88,7 @@ func (d Chemo) ToResponse() ResponseDto {
|
||||
VerifiedBy_User_Id: d.VerifiedBy_User_Id,
|
||||
VerifiedBy: d.VerifiedBy,
|
||||
SrcUnit_Id: d.SrcUnit_Id,
|
||||
SrcUnit_Code: d.SrcUnit_Code,
|
||||
SrcUnit: d.SrcUnit,
|
||||
}
|
||||
resp.Main = d.Main
|
||||
|
||||
@@ -20,6 +20,7 @@ type Chemo struct {
|
||||
VerifiedBy_User_Id *uint `json:"verifiedBy_user_id"`
|
||||
VerifiedBy *eus.User `json:"verifiedBy,omitempty" gorm:"foreignKey:VerifiedBy_User_Id;references:Id"`
|
||||
SrcUnit_Id *uint `json:"src_unit_id"`
|
||||
SrcUnit_Code *string `json:"src_unit_code"`
|
||||
SrcUnit *eun.Unit `json:"src_unit,omitempty" gorm:"foreignKey:SrcUnit_Id;references:Id"`
|
||||
Bed *string `json:"bed" gorm:"size:1024"`
|
||||
Needs *string `json:"needs" gorm:"size:2048"`
|
||||
|
||||
Reference in New Issue
Block a user