feat(contract): 建立 JKDA 查询响应契约(T-201)
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
package contract
|
||||
|
||||
type FindHealthRecordResponse struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data []FindHealthRecord `json:"data"`
|
||||
}
|
||||
|
||||
// FindHealthRecord is one JKDA00002 data item: a health record aggregate returned by OSI.
|
||||
type FindHealthRecord struct {
|
||||
HealthRecord HealthRecord `json:"healthRecord"`
|
||||
PastHistory *PastHistory `json:"pastHistory,omitempty"`
|
||||
PastDiseases []PastDisease `json:"jwsjb,omitempty"`
|
||||
PastSurgeries []PastSurgery `json:"jwsss,omitempty"`
|
||||
PastTraumas []PastTrauma `json:"jwsws,omitempty"`
|
||||
PastTransfusions []PastBloodTx `json:"jwssx,omitempty"`
|
||||
FamilyMiddle *FamilyMiddle `json:"familyMiddle,omitempty"`
|
||||
}
|
||||
|
||||
type HealthRecord struct {
|
||||
IDCard string `json:"idCard,omitempty"`
|
||||
PersonName string `json:"personName,omitempty"`
|
||||
SexCode string `json:"sexCode,omitempty"`
|
||||
Birthday string `json:"birthday,omitempty"`
|
||||
PhrID string `json:"phrId,omitempty"`
|
||||
EmpiID string `json:"empiId,omitempty"`
|
||||
CheckID *string `json:"checkId,omitempty"`
|
||||
ManaUnitID string `json:"manaUnitId,omitempty"`
|
||||
CreateUnit string `json:"createUnit,omitempty"`
|
||||
ManaDoctorID string `json:"manaDoctorId,omitempty"`
|
||||
CreateUser string `json:"createUser,omitempty"`
|
||||
RegionCode string `json:"regionCode,omitempty"`
|
||||
AddressCode string `json:"addressCode,omitempty"`
|
||||
HomePlaceCode string `json:"homePlaceCode,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
AdressNumber string `json:"adressNumber,omitempty"`
|
||||
HomePlace string `json:"homePlace,omitempty"`
|
||||
HomePlaceNumber string `json:"homePlaceNumber,omitempty"`
|
||||
NationCode string `json:"nationCode,omitempty"`
|
||||
EducationCode string `json:"educationCode,omitempty"`
|
||||
WorkCode string `json:"workCode,omitempty"`
|
||||
MaritalStatusCode string `json:"maritalStatusCode,omitempty"`
|
||||
BloodTypeCode string `json:"bloodTypeCode,omitempty"`
|
||||
RhBloodCode string `json:"rhBloodCode,omitempty"`
|
||||
InsuranceCode string `json:"insuranceCode,omitempty"`
|
||||
InsuranceType *string `json:"insuranceType,omitempty"`
|
||||
PersonGroup string `json:"personGroup,omitempty"`
|
||||
OtherPersonGroup *string `json:"otherPersonGroup,omitempty"`
|
||||
IsFillSHHJ string `json:"isFillShhj,omitempty"`
|
||||
Contact string `json:"contact,omitempty"`
|
||||
ContactPhone string `json:"contactPhone,omitempty"`
|
||||
MobileNumber string `json:"mobileNumber,omitempty"`
|
||||
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
CreateDate string `json:"createDate,omitempty"`
|
||||
}
|
||||
|
||||
type PastHistory struct {
|
||||
YWGMS string `json:"ywgms,omitempty"`
|
||||
JWSJB string `json:"jwsjb,omitempty"`
|
||||
BLS string `json:"bls,omitempty"`
|
||||
YCBS string `json:"ycbs,omitempty"`
|
||||
CJQK string `json:"cjqk,omitempty"`
|
||||
JZSFQN string `json:"jzsfqn,omitempty"`
|
||||
JZSMQ string `json:"jzsmq,omitempty"`
|
||||
JZSZN string `json:"jzszn,omitempty"`
|
||||
JZSXDJM string `json:"jzsxdjm,omitempty"`
|
||||
}
|
||||
|
||||
type PastDisease struct {
|
||||
Code string `json:"jwsjbcode,omitempty"`
|
||||
Name string `json:"jwsjbmc,omitempty"`
|
||||
ConfirmedDate string `json:"jwsjbqzsj,omitempty"`
|
||||
}
|
||||
|
||||
type PastSurgery struct {
|
||||
Code string `json:"jwssscode,omitempty"`
|
||||
Name string `json:"jwsssmc,omitempty"`
|
||||
ConfirmedDate string `json:"jwsssqzsj,omitempty"`
|
||||
}
|
||||
|
||||
type PastTrauma struct {
|
||||
Code string `json:"jwswscode,omitempty"`
|
||||
Name string `json:"jwswsmc,omitempty"`
|
||||
}
|
||||
|
||||
type PastBloodTx struct {
|
||||
Code string `json:"jwssxcode,omitempty"`
|
||||
Reason string `json:"jwssxyy,omitempty"`
|
||||
}
|
||||
|
||||
type FamilyMiddle struct {
|
||||
WaterSourceCode string `json:"waterSourceCode,omitempty"`
|
||||
FuelType string `json:"fuelType,omitempty"`
|
||||
CookAirTool string `json:"cookAirTool,omitempty"`
|
||||
Washroom string `json:"washroom,omitempty"`
|
||||
LivestockColumn string `json:"livestockColumn,omitempty"`
|
||||
IsFillSHHJ string `json:"isFillShhj,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user