修正问诊病例返回数据
This commit is contained in:
@@ -178,10 +178,10 @@ func (r *OrderInquiryDto) LoadOrderInquiryCoupon(m *model.OrderInquiryCoupon) *O
|
||||
return r
|
||||
}
|
||||
|
||||
// LoadOrderInquiryCase 加载问诊病例
|
||||
func (r *OrderInquiryDto) LoadOrderInquiryCase(m *model.OrderInquiryCase) *OrderInquiryDto {
|
||||
// LoadMaskOrderInquiryCase 加载问诊病例
|
||||
func (r *OrderInquiryDto) LoadMaskOrderInquiryCase(m *model.OrderInquiryCase) *OrderInquiryDto {
|
||||
if m != nil {
|
||||
d := GetOrderInquiryCaseDto(m)
|
||||
d := GetMaskOrderInquiryCaseDto(m)
|
||||
|
||||
r.OrderInquiryCase = d
|
||||
}
|
||||
|
||||
@@ -88,6 +88,27 @@ func GetOrderInquiryCaseDto(m *model.OrderInquiryCase) *OrderInquiryCaseDto {
|
||||
}
|
||||
}
|
||||
|
||||
func GetMaskOrderInquiryCaseDto(m *model.OrderInquiryCase) *OrderInquiryCaseDto {
|
||||
return &OrderInquiryCaseDto{
|
||||
InquiryCaseId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
UserId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
PatientId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
OrderInquiryId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
FamilyId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
Relation: m.Relation,
|
||||
Status: m.Status,
|
||||
Name: utils.MaskNameStr(m.Name, 0),
|
||||
Sex: m.Sex,
|
||||
Age: m.Age,
|
||||
DiseaseClassId: fmt.Sprintf("%d", m.InquiryCaseId),
|
||||
DiseaseClassName: m.DiseaseClassName,
|
||||
DiagnosisDate: m.DiagnosisDate,
|
||||
DiseaseDesc: m.DiseaseDesc,
|
||||
CreatedAt: m.CreatedAt,
|
||||
UpdatedAt: m.UpdatedAt,
|
||||
}
|
||||
}
|
||||
|
||||
func GetOrderInquiryCaseListDto(m []*model.OrderInquiryCase) []OrderInquiryCaseDto {
|
||||
// 处理返回值
|
||||
responses := make([]OrderInquiryCaseDto, len(m))
|
||||
|
||||
@@ -178,10 +178,10 @@ func (r *OrderPrescriptionDto) LoadOrderPrescriptionIcdString(m []*model.OrderPr
|
||||
return r
|
||||
}
|
||||
|
||||
// LoadOrderInquiryCase 加载问诊病例
|
||||
func (r *OrderPrescriptionDto) LoadOrderInquiryCase(m *model.OrderInquiryCase) *OrderPrescriptionDto {
|
||||
// LoadMaskOrderInquiryCase 加载问诊病例
|
||||
func (r *OrderPrescriptionDto) LoadMaskOrderInquiryCase(m *model.OrderInquiryCase) *OrderPrescriptionDto {
|
||||
if m != nil {
|
||||
d := GetOrderInquiryCaseDto(m)
|
||||
d := GetMaskOrderInquiryCaseDto(m)
|
||||
|
||||
r.OrderInquiryCase = d
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user