From cfa5f67553403fb02b824bc15c563e625ecb06ac Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Mon, 10 Jul 2017 16:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BF=AE=E6=94=B9=E6=9C=AB?= =?UTF-8?q?=E6=AC=A1=E6=9C=88=E7=BB=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/BabyPatientExtendEarMotherRequest.java | 217 +++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyPatientExtendEarMotherRequest.java diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyPatientExtendEarMotherRequest.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyPatientExtendEarMotherRequest.java new file mode 100644 index 0000000..846cd7f --- /dev/null +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyPatientExtendEarMotherRequest.java @@ -0,0 +1,217 @@ +package com.lyms.platform.operate.web.request; + +import com.lyms.platform.common.base.IBasicRequestConvert; +import com.lyms.platform.common.utils.JsonUtil; +import com.lyms.platform.permission.model.BabyPatientExtendEarMother; + +import java.util.List; +import java.util.Map; + + +/** + * 添加类的一句话简单描述。 + *

+ * 详细描述 + *

+ * 示例代码 + *

+ * 
+ * + * @author JIAZHI.JIANG + * @version BME V100R001 2017-06-29 16:05 + * @since BME V100R001C40B104 + */ +public class BabyPatientExtendEarMotherRequest implements IBasicRequestConvert { + + /** + * 妊娠年龄 + */ + private Integer gestationAge; + /** + * 母亲高危因素 + */ + private List mHighRisk; + + /** + * 是否有流产史 1=有 -1=无 + */ + private Map abortionHistoryType; + + + /** + * 妊娠期病毒感染史 + */ + private Map viralInfectionHistoryType; + + + /** + * 妊娠期外生殖器感染史 1=有 -1=无 + */ + private Map genitalInfectionHistoryType; + + + /** + * 妊娠期放射性物质接触史 + */ + private Map radiationHistoryType; + + + /** + * 妊娠期药物应用史 + */ + private Map drugAppType; + + /** + * 有害物接触史 + */ + private Map harmfulSubstanceType; + + /** + * 妊娠期不良生活习惯史 + */ + private Map badLifeHistoryType; + + + /** + * 是否有妊娠期病史 + */ + private Map medicalHistoryType; + + + /** + * 是否有异常妊娠 + */ + private Map bnormalPregnancyHistoryType; + /** + * 儿童建档的主键 + */ + private String babyPatientId; + @Override + public BabyPatientExtendEarMother convertToDataModel() { + BabyPatientExtendEarMother babyPatientExtendEarMother = new BabyPatientExtendEarMother(); + babyPatientExtendEarMother.setGestationAge(gestationAge); + babyPatientExtendEarMother.setBabyPatientId(babyPatientId); + if(null!=badLifeHistoryType){ + babyPatientExtendEarMother.setBadLifeHistoryType(JsonUtil.obj2JsonString(badLifeHistoryType)); + } + + if(null!=bnormalPregnancyHistoryType){ + babyPatientExtendEarMother.setBnormalPregnancyHistoryType(JsonUtil.obj2JsonString(bnormalPregnancyHistoryType)); + } + if(null!=medicalHistoryType){ + babyPatientExtendEarMother.setMedicalHistoryType(JsonUtil.obj2JsonString(medicalHistoryType)); + } + if(null!=harmfulSubstanceType){ + babyPatientExtendEarMother.setHarmfulSubstanceType(JsonUtil.obj2JsonString(harmfulSubstanceType)); + } + if(null!=drugAppType){ + babyPatientExtendEarMother.setDrugAppType(JsonUtil.obj2JsonString(drugAppType)); + } + if(null!=radiationHistoryType){ + babyPatientExtendEarMother.setRadiationHistoryType(JsonUtil.obj2JsonString(radiationHistoryType)); + } + + if(null!=genitalInfectionHistoryType){ + babyPatientExtendEarMother.setGenitalInfectionHistoryType(JsonUtil.obj2JsonString(genitalInfectionHistoryType)); + } + if(null!=viralInfectionHistoryType){ + babyPatientExtendEarMother.setViralInfectionHistoryType(JsonUtil.obj2JsonString(viralInfectionHistoryType)); + } + if(null!=abortionHistoryType){ + babyPatientExtendEarMother.setAbortionHistoryType(JsonUtil.obj2JsonString(abortionHistoryType)); + } + return babyPatientExtendEarMother; + } + + public Map getRadiationHistoryType() { + return radiationHistoryType; + } + + public void setRadiationHistoryType(Map radiationHistoryType) { + this.radiationHistoryType = radiationHistoryType; + } + + public Integer getGestationAge() { + return gestationAge; + } + + public void setGestationAge(Integer gestationAge) { + this.gestationAge = gestationAge; + } + + public Map getAbortionHistoryType() { + return abortionHistoryType; + } + + public void setAbortionHistoryType(Map abortionHistoryType) { + this.abortionHistoryType = abortionHistoryType; + } + + + public Map getViralInfectionHistoryType() { + return viralInfectionHistoryType; + } + + public void setViralInfectionHistoryType(Map viralInfectionHistoryType) { + this.viralInfectionHistoryType = viralInfectionHistoryType; + } + + public Map getGenitalInfectionHistoryType() { + return genitalInfectionHistoryType; + } + + public void setGenitalInfectionHistoryType(Map genitalInfectionHistoryType) { + this.genitalInfectionHistoryType = genitalInfectionHistoryType; + } + + + public Map getDrugAppType() { + return drugAppType; + } + + public void setDrugAppType(Map drugAppType) { + this.drugAppType = drugAppType; + } + + public Map getHarmfulSubstanceType() { + return harmfulSubstanceType; + } + + public void setHarmfulSubstanceType(Map harmfulSubstanceType) { + this.harmfulSubstanceType = harmfulSubstanceType; + } + + public Map getBadLifeHistoryType() { + return badLifeHistoryType; + } + + public void setBadLifeHistoryType(Map badLifeHistoryType) { + this.badLifeHistoryType = badLifeHistoryType; + } + + public Map getMedicalHistoryType() { + return medicalHistoryType; + } + + public void setMedicalHistoryType(Map medicalHistoryType) { + this.medicalHistoryType = medicalHistoryType; + } + + public Map getBnormalPregnancyHistoryType() { + return bnormalPregnancyHistoryType; + } + + public void setBnormalPregnancyHistoryType(Map bnormalPregnancyHistoryType) { + this.bnormalPregnancyHistoryType = bnormalPregnancyHistoryType; + } + + public String getBabyPatientId() { + return babyPatientId; + } + + public void setBabyPatientId(String babyPatientId) { + this.babyPatientId = babyPatientId; + } + + +} -- 1.8.3.1