Commit be831e433acd23917e72878bab6f40688e3ce3af
1 parent
2f095df017
Exists in
master
and in
6 other branches
儿保健建档相关接口
Showing 4 changed files with 254 additions and 63 deletions
- platform-common/src/main/java/com/lyms/platform/common/enums/CheckMonthEnums.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyEyeCheck.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEyePatientController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEyePatientServiceImpl.java
platform-common/src/main/java/com/lyms/platform/common/enums/CheckMonthEnums.java
View file @
be831e4
| 1 | +package com.lyms.platform.common.enums; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.utils.StringUtils; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 检查月龄 | |
| 7 | + */ | |
| 8 | +public enum CheckMonthEnums { | |
| 9 | + ONE(1, "0月龄"), | |
| 10 | + TWO(2, "30-42天"), | |
| 11 | + THREE(3, "3个月"), | |
| 12 | + FOUR(4, "6个月"), | |
| 13 | + FIVE(5, "9个月"), | |
| 14 | + SIX(6, "1岁"), | |
| 15 | + SEVEN(7, "1岁半"), | |
| 16 | + EIGHT(8, "2岁"), | |
| 17 | + NIGHT(9, "3岁"), | |
| 18 | + TEN(10, "4岁"), | |
| 19 | + ELEVEN(11, "5岁"), | |
| 20 | + TWELVE(12, "6岁"); | |
| 21 | + | |
| 22 | + private Integer id; | |
| 23 | + private String name; | |
| 24 | + | |
| 25 | + public static CheckMonthEnums get(Integer id) { | |
| 26 | + CheckMonthEnums[] values = CheckMonthEnums.values(); | |
| 27 | + for (CheckMonthEnums value : values) { | |
| 28 | + if (value.getId() == id) { | |
| 29 | + return value; | |
| 30 | + } | |
| 31 | + } | |
| 32 | + return null; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public static String getName(String id) { | |
| 36 | + if(StringUtils.isEmpty(id)) { | |
| 37 | + return null; | |
| 38 | + } | |
| 39 | + int i = Integer.parseInt(id); | |
| 40 | + CheckMonthEnums[] values = CheckMonthEnums.values(); | |
| 41 | + for (CheckMonthEnums value : values) { | |
| 42 | + if (value.id == i) { | |
| 43 | + return value.name; | |
| 44 | + } | |
| 45 | + } | |
| 46 | + return null; | |
| 47 | + } | |
| 48 | + | |
| 49 | + CheckMonthEnums(Integer id, String name){ | |
| 50 | + this.id = id; | |
| 51 | + this.name = name; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public Integer getId() { | |
| 55 | + return id; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public void setId(Integer id) { | |
| 59 | + this.id = id; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public String getName() { | |
| 63 | + return name; | |
| 64 | + } | |
| 65 | + | |
| 66 | + public void setName(String name) { | |
| 67 | + this.name = name; | |
| 68 | + } | |
| 69 | + | |
| 70 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyEyeCheck.java
View file @
be831e4
| ... | ... | @@ -26,11 +26,11 @@ |
| 26 | 26 | |
| 27 | 27 | private String pid; |
| 28 | 28 | |
| 29 | - /** =========== 表单属性 ========= */ | |
| 29 | + /** =========== table1 start ========= */ | |
| 30 | 30 | /** |
| 31 | - * 眼保健时间 | |
| 31 | + * 检查月龄 | |
| 32 | 32 | */ |
| 33 | - private String eyeCheckDay; | |
| 33 | + private String checkMonthId; | |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * 检查单位 |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | |
| ... | ... | @@ -43,58 +43,72 @@ |
| 43 | 43 | private Date checkTime; |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | + * 眼保健时间 | |
| 47 | + */ | |
| 48 | +// private String eyeCheckDay; | |
| 49 | + | |
| 50 | + /** | |
| 46 | 51 | * 眼病高危因素 |
| 47 | 52 | */ |
| 48 | 53 | private List<String> riskFactorId; |
| 49 | 54 | |
| 55 | + /**================ 检查结果(左/右眼) ================*/ | |
| 56 | + /**============== 右眼 ===============*/ | |
| 50 | 57 | /** |
| 51 | - * 外眼观察 | |
| 58 | + * 外眼观察(右) | |
| 52 | 59 | */ |
| 53 | - private String extEyelook; | |
| 60 | + private String extRightEyelook; | |
| 54 | 61 | |
| 55 | 62 | /** |
| 56 | - * 外眼观察其他的结果 | |
| 63 | + * 瞬目反射(右) | |
| 57 | 64 | */ |
| 58 | - private String extEyelookOther; | |
| 65 | + private String blinkRightReflex; | |
| 59 | 66 | |
| 60 | 67 | /** |
| 61 | - * 视动性眼震 | |
| 68 | + * 瞳孔对光反射(右) | |
| 62 | 69 | */ |
| 63 | - private String nystagmus; | |
| 70 | + private String pupillaryRightReflex; | |
| 64 | 71 | |
| 65 | 72 | /** |
| 66 | - * 红光反射 | |
| 73 | + * 瞳孔红光反射(右) | |
| 67 | 74 | */ |
| 68 | - private String redReflex; | |
| 75 | + private String redRightReflex; | |
| 69 | 76 | |
| 77 | + /**================= 左眼 ===============*/ | |
| 70 | 78 | /** |
| 71 | - * 结膜 | |
| 79 | + * 外眼观察(左) | |
| 72 | 80 | */ |
| 73 | - private String conjunctiva; | |
| 81 | + private String extLeftEyelook; | |
| 74 | 82 | |
| 75 | 83 | /** |
| 76 | - * 角膜 | |
| 84 | + * 瞬目反射(左) | |
| 77 | 85 | */ |
| 78 | - private String corneal; | |
| 86 | + private String blinkLefttReflex; | |
| 79 | 87 | |
| 80 | 88 | /** |
| 81 | - * 泪器 | |
| 89 | + * 瞳孔对光反射(左) | |
| 82 | 90 | */ |
| 83 | - private String lacrimalApparatus; | |
| 91 | + private String pupillaryLeftReflex; | |
| 84 | 92 | |
| 85 | 93 | /** |
| 86 | - * 其他 | |
| 94 | + * 瞳孔红光反射(左) | |
| 87 | 95 | */ |
| 88 | - private String other; | |
| 96 | + private String redLeftReflex; | |
| 89 | 97 | |
| 98 | + | |
| 90 | 99 | /** |
| 91 | - * 处理意见 | |
| 100 | + * 眼底检查结果 | |
| 92 | 101 | */ |
| 93 | - private String handleOpinions; | |
| 102 | + private String fundusResult; | |
| 94 | 103 | |
| 95 | 104 | /** |
| 96 | - * 指导意见 | |
| 105 | + * 指导意见(下拉列表) | |
| 97 | 106 | */ |
| 107 | + private List<String> guidanceOpinionIds; | |
| 108 | + | |
| 109 | + /** | |
| 110 | + * 指导意见(输入) | |
| 111 | + */ | |
| 98 | 112 | private String guidanceOpinions; |
| 99 | 113 | |
| 100 | 114 | /** |
| 101 | 115 | |
| ... | ... | @@ -111,7 +125,46 @@ |
| 111 | 125 | * 预约下次检查描述 |
| 112 | 126 | */ |
| 113 | 127 | private Date nextCheckTimeDesc; |
| 128 | + /** ================================== table1 end ==================================== */ | |
| 114 | 129 | |
| 130 | + | |
| 131 | + /** ================================== table2 start ==================================== */ | |
| 132 | + | |
| 133 | + /** | |
| 134 | + * 外眼观察其他的结果 | |
| 135 | + */ | |
| 136 | + private String extEyelookOther; | |
| 137 | + | |
| 138 | + /** | |
| 139 | + * 视动性眼震 | |
| 140 | + */ | |
| 141 | + private String nystagmus; | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * 结膜 | |
| 145 | + */ | |
| 146 | + private String conjunctiva; | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * 角膜 | |
| 150 | + */ | |
| 151 | + private String corneal; | |
| 152 | + | |
| 153 | + /** | |
| 154 | + * 泪器 | |
| 155 | + */ | |
| 156 | + private String lacrimalApparatus; | |
| 157 | + | |
| 158 | + /** | |
| 159 | + * 其他 | |
| 160 | + */ | |
| 161 | + private String other; | |
| 162 | + | |
| 163 | + /** | |
| 164 | + * 处理意见 | |
| 165 | + */ | |
| 166 | + private String handleOpinions; | |
| 167 | + | |
| 115 | 168 | public String getId() { |
| 116 | 169 | return id; |
| 117 | 170 | } |
| 118 | 171 | |
| ... | ... | @@ -168,12 +221,12 @@ |
| 168 | 221 | this.pid = pid; |
| 169 | 222 | } |
| 170 | 223 | |
| 171 | - public String getEyeCheckDay() { | |
| 172 | - return eyeCheckDay; | |
| 224 | + public String getCheckMonthId() { | |
| 225 | + return checkMonthId; | |
| 173 | 226 | } |
| 174 | 227 | |
| 175 | - public void setEyeCheckDay(String eyeCheckDay) { | |
| 176 | - this.eyeCheckDay = eyeCheckDay; | |
| 228 | + public void setCheckMonthId(String checkMonthId) { | |
| 229 | + this.checkMonthId = checkMonthId; | |
| 177 | 230 | } |
| 178 | 231 | |
| 179 | 232 | public String getCheckHospital() { |
| 180 | 233 | |
| 181 | 234 | |
| 182 | 235 | |
| 183 | 236 | |
| 184 | 237 | |
| 185 | 238 | |
| 186 | 239 | |
| 187 | 240 | |
| 188 | 241 | |
| 189 | 242 | |
| 190 | 243 | |
| 191 | 244 | |
| 192 | 245 | |
| 193 | 246 | |
| 194 | 247 | |
| 195 | 248 | |
| 196 | 249 | |
| 197 | 250 | |
| ... | ... | @@ -200,78 +253,86 @@ |
| 200 | 253 | this.riskFactorId = riskFactorId; |
| 201 | 254 | } |
| 202 | 255 | |
| 203 | - public String getExtEyelook() { | |
| 204 | - return extEyelook; | |
| 256 | + public String getExtRightEyelook() { | |
| 257 | + return extRightEyelook; | |
| 205 | 258 | } |
| 206 | 259 | |
| 207 | - public void setExtEyelook(String extEyelook) { | |
| 208 | - this.extEyelook = extEyelook; | |
| 260 | + public void setExtRightEyelook(String extRightEyelook) { | |
| 261 | + this.extRightEyelook = extRightEyelook; | |
| 209 | 262 | } |
| 210 | 263 | |
| 211 | - public String getExtEyelookOther() { | |
| 212 | - return extEyelookOther; | |
| 264 | + public String getBlinkRightReflex() { | |
| 265 | + return blinkRightReflex; | |
| 213 | 266 | } |
| 214 | 267 | |
| 215 | - public void setExtEyelookOther(String extEyelookOther) { | |
| 216 | - this.extEyelookOther = extEyelookOther; | |
| 268 | + public void setBlinkRightReflex(String blinkRightReflex) { | |
| 269 | + this.blinkRightReflex = blinkRightReflex; | |
| 217 | 270 | } |
| 218 | 271 | |
| 219 | - public String getNystagmus() { | |
| 220 | - return nystagmus; | |
| 272 | + public String getPupillaryRightReflex() { | |
| 273 | + return pupillaryRightReflex; | |
| 221 | 274 | } |
| 222 | 275 | |
| 223 | - public void setNystagmus(String nystagmus) { | |
| 224 | - this.nystagmus = nystagmus; | |
| 276 | + public void setPupillaryRightReflex(String pupillaryRightReflex) { | |
| 277 | + this.pupillaryRightReflex = pupillaryRightReflex; | |
| 225 | 278 | } |
| 226 | 279 | |
| 227 | - public String getRedReflex() { | |
| 228 | - return redReflex; | |
| 280 | + public String getRedRightReflex() { | |
| 281 | + return redRightReflex; | |
| 229 | 282 | } |
| 230 | 283 | |
| 231 | - public void setRedReflex(String redReflex) { | |
| 232 | - this.redReflex = redReflex; | |
| 284 | + public void setRedRightReflex(String redRightReflex) { | |
| 285 | + this.redRightReflex = redRightReflex; | |
| 233 | 286 | } |
| 234 | 287 | |
| 235 | - public String getConjunctiva() { | |
| 236 | - return conjunctiva; | |
| 288 | + public String getExtLeftEyelook() { | |
| 289 | + return extLeftEyelook; | |
| 237 | 290 | } |
| 238 | 291 | |
| 239 | - public void setConjunctiva(String conjunctiva) { | |
| 240 | - this.conjunctiva = conjunctiva; | |
| 292 | + public void setExtLeftEyelook(String extLeftEyelook) { | |
| 293 | + this.extLeftEyelook = extLeftEyelook; | |
| 241 | 294 | } |
| 242 | 295 | |
| 243 | - public String getCorneal() { | |
| 244 | - return corneal; | |
| 296 | + public String getBlinkLefttReflex() { | |
| 297 | + return blinkLefttReflex; | |
| 245 | 298 | } |
| 246 | 299 | |
| 247 | - public void setCorneal(String corneal) { | |
| 248 | - this.corneal = corneal; | |
| 300 | + public void setBlinkLefttReflex(String blinkLefttReflex) { | |
| 301 | + this.blinkLefttReflex = blinkLefttReflex; | |
| 249 | 302 | } |
| 250 | 303 | |
| 251 | - public String getLacrimalApparatus() { | |
| 252 | - return lacrimalApparatus; | |
| 304 | + public String getPupillaryLeftReflex() { | |
| 305 | + return pupillaryLeftReflex; | |
| 253 | 306 | } |
| 254 | 307 | |
| 255 | - public void setLacrimalApparatus(String lacrimalApparatus) { | |
| 256 | - this.lacrimalApparatus = lacrimalApparatus; | |
| 308 | + public void setPupillaryLeftReflex(String pupillaryLeftReflex) { | |
| 309 | + this.pupillaryLeftReflex = pupillaryLeftReflex; | |
| 257 | 310 | } |
| 258 | 311 | |
| 259 | - public String getOther() { | |
| 260 | - return other; | |
| 312 | + public String getRedLeftReflex() { | |
| 313 | + return redLeftReflex; | |
| 261 | 314 | } |
| 262 | 315 | |
| 263 | - public void setOther(String other) { | |
| 264 | - this.other = other; | |
| 316 | + public void setRedLeftReflex(String redLeftReflex) { | |
| 317 | + this.redLeftReflex = redLeftReflex; | |
| 265 | 318 | } |
| 266 | 319 | |
| 267 | - public String getHandleOpinions() { | |
| 268 | - return handleOpinions; | |
| 320 | + public String getFundusResult() { | |
| 321 | + return fundusResult; | |
| 269 | 322 | } |
| 270 | 323 | |
| 271 | - public void setHandleOpinions(String handleOpinions) { | |
| 272 | - this.handleOpinions = handleOpinions; | |
| 324 | + public void setFundusResult(String fundusResult) { | |
| 325 | + this.fundusResult = fundusResult; | |
| 273 | 326 | } |
| 274 | 327 | |
| 328 | + public List<String> getGuidanceOpinionIds() { | |
| 329 | + return guidanceOpinionIds; | |
| 330 | + } | |
| 331 | + | |
| 332 | + public void setGuidanceOpinionIds(List<String> guidanceOpinionIds) { | |
| 333 | + this.guidanceOpinionIds = guidanceOpinionIds; | |
| 334 | + } | |
| 335 | + | |
| 275 | 336 | public String getGuidanceOpinions() { |
| 276 | 337 | return guidanceOpinions; |
| 277 | 338 | } |
| ... | ... | @@ -302,6 +363,62 @@ |
| 302 | 363 | |
| 303 | 364 | public void setNextCheckTimeDesc(Date nextCheckTimeDesc) { |
| 304 | 365 | this.nextCheckTimeDesc = nextCheckTimeDesc; |
| 366 | + } | |
| 367 | + | |
| 368 | + public String getExtEyelookOther() { | |
| 369 | + return extEyelookOther; | |
| 370 | + } | |
| 371 | + | |
| 372 | + public void setExtEyelookOther(String extEyelookOther) { | |
| 373 | + this.extEyelookOther = extEyelookOther; | |
| 374 | + } | |
| 375 | + | |
| 376 | + public String getNystagmus() { | |
| 377 | + return nystagmus; | |
| 378 | + } | |
| 379 | + | |
| 380 | + public void setNystagmus(String nystagmus) { | |
| 381 | + this.nystagmus = nystagmus; | |
| 382 | + } | |
| 383 | + | |
| 384 | + public String getConjunctiva() { | |
| 385 | + return conjunctiva; | |
| 386 | + } | |
| 387 | + | |
| 388 | + public void setConjunctiva(String conjunctiva) { | |
| 389 | + this.conjunctiva = conjunctiva; | |
| 390 | + } | |
| 391 | + | |
| 392 | + public String getCorneal() { | |
| 393 | + return corneal; | |
| 394 | + } | |
| 395 | + | |
| 396 | + public void setCorneal(String corneal) { | |
| 397 | + this.corneal = corneal; | |
| 398 | + } | |
| 399 | + | |
| 400 | + public String getLacrimalApparatus() { | |
| 401 | + return lacrimalApparatus; | |
| 402 | + } | |
| 403 | + | |
| 404 | + public void setLacrimalApparatus(String lacrimalApparatus) { | |
| 405 | + this.lacrimalApparatus = lacrimalApparatus; | |
| 406 | + } | |
| 407 | + | |
| 408 | + public String getOther() { | |
| 409 | + return other; | |
| 410 | + } | |
| 411 | + | |
| 412 | + public void setOther(String other) { | |
| 413 | + this.other = other; | |
| 414 | + } | |
| 415 | + | |
| 416 | + public String getHandleOpinions() { | |
| 417 | + return handleOpinions; | |
| 418 | + } | |
| 419 | + | |
| 420 | + public void setHandleOpinions(String handleOpinions) { | |
| 421 | + this.handleOpinions = handleOpinions; | |
| 305 | 422 | } |
| 306 | 423 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEyePatientController.java
View file @
be831e4
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 3 | 4 | import com.lyms.platform.common.base.BaseController; |
| 4 | 5 | import com.lyms.platform.common.result.BaseResponse; |
| 5 | 6 | import com.lyms.platform.operate.web.service.BabyEyePatientService; |
| ... | ... | @@ -27,6 +28,7 @@ |
| 27 | 28 | |
| 28 | 29 | @ResponseBody |
| 29 | 30 | @RequestMapping(method = RequestMethod.POST) |
| 31 | + @TokenRequired | |
| 30 | 32 | public BaseResponse addOrUpdate(@RequestBody BabyEyePatient babyEyePatient, HttpServletRequest request) { |
| 31 | 33 | return babyEyePatientService.addOrUpdate(getUserId(request), babyEyePatient); |
| 32 | 34 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEyePatientServiceImpl.java
View file @
be831e4
| ... | ... | @@ -33,6 +33,7 @@ |
| 33 | 33 | import org.springframework.data.mongodb.core.query.Update; |
| 34 | 34 | import org.springframework.stereotype.Service; |
| 35 | 35 | |
| 36 | +import java.util.ArrayList; | |
| 36 | 37 | import java.util.Date; |
| 37 | 38 | import java.util.List; |
| 38 | 39 | import java.util.Map; |
| 39 | 40 | |
| ... | ... | @@ -76,8 +77,9 @@ |
| 76 | 77 | List serviceStatus = ServiceStatusEnums.getServiceStatusList(); /** 服务状态 */ |
| 77 | 78 | List<Map<String, Object>> nation = basicConfigService.getEnumByParentId(SystemConfig.NATION_TYPE_ID); /** 民族 */ |
| 78 | 79 | List fmType = FmTypeEnums.getFmTypeEnums(); /** 分娩方式 */ |
| 80 | + List<Object> diagnosis = new ArrayList<>(); | |
| 79 | 81 | return RespBuilder.buildSuccess("sex", sex, "cardType", pcerteTypeResult, "plevelType", plevelType, "profession", professionTypeResults, "serviceType", serviceType, |
| 80 | - "serviceStatus", serviceStatus, "nation", nation, "fmType", fmType); | |
| 82 | + "serviceStatus", serviceStatus, "nation", nation, "fmType", fmType, "diagnosis", diagnosis); | |
| 81 | 83 | } |
| 82 | 84 | |
| 83 | 85 | @Override |