Commit cfa5f67553403fb02b824bc15c563e625ecb06ac

Authored by jiangjiazhi
1 parent 17b1b6ce1a
Exists in master and in 1 other branch dev

设置修改末次月经

Showing 1 changed file with 217 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyPatientExtendEarMotherRequest.java View file @ cfa5f67
  1 +package com.lyms.platform.operate.web.request;
  2 +
  3 +import com.lyms.platform.common.base.IBasicRequestConvert;
  4 +import com.lyms.platform.common.utils.JsonUtil;
  5 +import com.lyms.platform.permission.model.BabyPatientExtendEarMother;
  6 +
  7 +import java.util.List;
  8 +import java.util.Map;
  9 +
  10 +
  11 +/**
  12 + * 添加类的一句话简单描述。
  13 + * <p/>
  14 + * 详细描述
  15 + * <p/>
  16 + * 示例代码
  17 + * <pre>
  18 + * </pre/>
  19 + *
  20 + * @author JIAZHI.JIANG
  21 + * @version BME V100R001 2017-06-29 16:05
  22 + * @since BME V100R001C40B104
  23 + */
  24 +public class BabyPatientExtendEarMotherRequest implements IBasicRequestConvert<BabyPatientExtendEarMother> {
  25 +
  26 + /**
  27 + * 妊娠年龄
  28 + */
  29 + private Integer gestationAge;
  30 + /**
  31 + * 母亲高危因素
  32 + */
  33 + private List<String> mHighRisk;
  34 +
  35 + /**
  36 + * 是否有流产史 1=有 -1=无
  37 + */
  38 + private Map abortionHistoryType;
  39 +
  40 +
  41 + /**
  42 + * 妊娠期病毒感染史
  43 + */
  44 + private Map viralInfectionHistoryType;
  45 +
  46 +
  47 + /**
  48 + * 妊娠期外生殖器感染史 1=有 -1=无
  49 + */
  50 + private Map genitalInfectionHistoryType;
  51 +
  52 +
  53 + /**
  54 + * 妊娠期放射性物质接触史
  55 + */
  56 + private Map radiationHistoryType;
  57 +
  58 +
  59 + /**
  60 + * 妊娠期药物应用史
  61 + */
  62 + private Map drugAppType;
  63 +
  64 + /**
  65 + * 有害物接触史
  66 + */
  67 + private Map harmfulSubstanceType;
  68 +
  69 + /**
  70 + * 妊娠期不良生活习惯史
  71 + */
  72 + private Map badLifeHistoryType;
  73 +
  74 +
  75 + /**
  76 + * 是否有妊娠期病史
  77 + */
  78 + private Map medicalHistoryType;
  79 +
  80 +
  81 + /**
  82 + * 是否有异常妊娠
  83 + */
  84 + private Map bnormalPregnancyHistoryType;
  85 + /**
  86 + * 儿童建档的主键
  87 + */
  88 + private String babyPatientId;
  89 + @Override
  90 + public BabyPatientExtendEarMother convertToDataModel() {
  91 + BabyPatientExtendEarMother babyPatientExtendEarMother = new BabyPatientExtendEarMother();
  92 + babyPatientExtendEarMother.setGestationAge(gestationAge);
  93 + babyPatientExtendEarMother.setBabyPatientId(babyPatientId);
  94 + if(null!=badLifeHistoryType){
  95 + babyPatientExtendEarMother.setBadLifeHistoryType(JsonUtil.obj2JsonString(badLifeHistoryType));
  96 + }
  97 +
  98 + if(null!=bnormalPregnancyHistoryType){
  99 + babyPatientExtendEarMother.setBnormalPregnancyHistoryType(JsonUtil.obj2JsonString(bnormalPregnancyHistoryType));
  100 + }
  101 + if(null!=medicalHistoryType){
  102 + babyPatientExtendEarMother.setMedicalHistoryType(JsonUtil.obj2JsonString(medicalHistoryType));
  103 + }
  104 + if(null!=harmfulSubstanceType){
  105 + babyPatientExtendEarMother.setHarmfulSubstanceType(JsonUtil.obj2JsonString(harmfulSubstanceType));
  106 + }
  107 + if(null!=drugAppType){
  108 + babyPatientExtendEarMother.setDrugAppType(JsonUtil.obj2JsonString(drugAppType));
  109 + }
  110 + if(null!=radiationHistoryType){
  111 + babyPatientExtendEarMother.setRadiationHistoryType(JsonUtil.obj2JsonString(radiationHistoryType));
  112 + }
  113 +
  114 + if(null!=genitalInfectionHistoryType){
  115 + babyPatientExtendEarMother.setGenitalInfectionHistoryType(JsonUtil.obj2JsonString(genitalInfectionHistoryType));
  116 + }
  117 + if(null!=viralInfectionHistoryType){
  118 + babyPatientExtendEarMother.setViralInfectionHistoryType(JsonUtil.obj2JsonString(viralInfectionHistoryType));
  119 + }
  120 + if(null!=abortionHistoryType){
  121 + babyPatientExtendEarMother.setAbortionHistoryType(JsonUtil.obj2JsonString(abortionHistoryType));
  122 + }
  123 + return babyPatientExtendEarMother;
  124 + }
  125 +
  126 + public Map getRadiationHistoryType() {
  127 + return radiationHistoryType;
  128 + }
  129 +
  130 + public void setRadiationHistoryType(Map radiationHistoryType) {
  131 + this.radiationHistoryType = radiationHistoryType;
  132 + }
  133 +
  134 + public Integer getGestationAge() {
  135 + return gestationAge;
  136 + }
  137 +
  138 + public void setGestationAge(Integer gestationAge) {
  139 + this.gestationAge = gestationAge;
  140 + }
  141 +
  142 + public Map getAbortionHistoryType() {
  143 + return abortionHistoryType;
  144 + }
  145 +
  146 + public void setAbortionHistoryType(Map abortionHistoryType) {
  147 + this.abortionHistoryType = abortionHistoryType;
  148 + }
  149 +
  150 +
  151 + public Map getViralInfectionHistoryType() {
  152 + return viralInfectionHistoryType;
  153 + }
  154 +
  155 + public void setViralInfectionHistoryType(Map viralInfectionHistoryType) {
  156 + this.viralInfectionHistoryType = viralInfectionHistoryType;
  157 + }
  158 +
  159 + public Map getGenitalInfectionHistoryType() {
  160 + return genitalInfectionHistoryType;
  161 + }
  162 +
  163 + public void setGenitalInfectionHistoryType(Map genitalInfectionHistoryType) {
  164 + this.genitalInfectionHistoryType = genitalInfectionHistoryType;
  165 + }
  166 +
  167 +
  168 + public Map getDrugAppType() {
  169 + return drugAppType;
  170 + }
  171 +
  172 + public void setDrugAppType(Map drugAppType) {
  173 + this.drugAppType = drugAppType;
  174 + }
  175 +
  176 + public Map getHarmfulSubstanceType() {
  177 + return harmfulSubstanceType;
  178 + }
  179 +
  180 + public void setHarmfulSubstanceType(Map harmfulSubstanceType) {
  181 + this.harmfulSubstanceType = harmfulSubstanceType;
  182 + }
  183 +
  184 + public Map getBadLifeHistoryType() {
  185 + return badLifeHistoryType;
  186 + }
  187 +
  188 + public void setBadLifeHistoryType(Map badLifeHistoryType) {
  189 + this.badLifeHistoryType = badLifeHistoryType;
  190 + }
  191 +
  192 + public Map getMedicalHistoryType() {
  193 + return medicalHistoryType;
  194 + }
  195 +
  196 + public void setMedicalHistoryType(Map medicalHistoryType) {
  197 + this.medicalHistoryType = medicalHistoryType;
  198 + }
  199 +
  200 + public Map getBnormalPregnancyHistoryType() {
  201 + return bnormalPregnancyHistoryType;
  202 + }
  203 +
  204 + public void setBnormalPregnancyHistoryType(Map bnormalPregnancyHistoryType) {
  205 + this.bnormalPregnancyHistoryType = bnormalPregnancyHistoryType;
  206 + }
  207 +
  208 + public String getBabyPatientId() {
  209 + return babyPatientId;
  210 + }
  211 +
  212 + public void setBabyPatientId(String babyPatientId) {
  213 + this.babyPatientId = babyPatientId;
  214 + }
  215 +
  216 +
  217 +}