Commit 465c0573c85e2ccc391f8a629f2d5b298f13d9dd
1 parent
03c627ff2d
Exists in
master
and in
6 other branches
产检时间轴添加高危因素
Showing 1 changed file with 30 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntData.java
View file @
465c057
... | ... | @@ -124,6 +124,36 @@ |
124 | 124 | this.risks=risks; |
125 | 125 | } |
126 | 126 | |
127 | + public AntData(AntenatalExaminationModel model,String hospitalName,Date lastMenses) { | |
128 | + this.id = model.getId(); | |
129 | + int days = DateUtil.daysBetween(lastMenses, model.getCheckDate()); | |
130 | + this.dueWeek = StringUtils.dueWeek(days); | |
131 | + if(null!=model.getCheckDate()){ | |
132 | + this.checkTime = DateUtil.getyyyy_MM_dd(model.getCheckDate()); | |
133 | + this.created=model.getCheckDate(); | |
134 | + } | |
135 | + this.title="复诊"; | |
136 | + this.type="3"; | |
137 | + this.hospitalName=hospitalName; | |
138 | + this.hospitalId=model.getHospitalId(); | |
139 | + } | |
140 | + | |
141 | + public AntData(AntExChuModel model,String hospitalName,Date lastMenses) { | |
142 | + this.id = model.getId(); | |
143 | + int days = DateUtil.daysBetween(lastMenses, model.getCheckTime()); | |
144 | + this.dueWeek = StringUtils.dueWeek(days); | |
145 | + if(null!=model.getCheckTime()){ | |
146 | + this.checkTime = DateUtil.getyyyy_MM_dd(model.getCheckTime()); | |
147 | + this.created=model.getCheckTime(); | |
148 | + } | |
149 | + | |
150 | + this.title="初诊"; | |
151 | + this.type="2"; | |
152 | + this.hospitalName=hospitalName; | |
153 | + this.hospitalId=model.getHospitalId(); | |
154 | + } | |
155 | + | |
156 | + | |
127 | 157 | public AntData(Patients model,String hospitalName) { |
128 | 158 | this.id = model.getId(); |
129 | 159 | if((model.getIsAutoFm()!=null&& model.getIsAutoFm() == 1)){ |