|
@@ -256,21 +256,21 @@ public class ClinicController extends LifeCenterController {
|
|
|
public @ResponseBody String insertPhrDataAPI(@ModelAttribute("dto") final PatientPHRHistoryDTO dto) {
|
|
|
|
|
|
try {
|
|
|
- phrService.insertPHR(dto);
|
|
|
- if (dto.getPhrValueExtra() != null) {
|
|
|
- PatientPHRHistoryDTO pulseRateDto = new PatientPHRHistoryDTO();
|
|
|
- pulseRateDto.setPatientIdx(dto.getPatientIdx());
|
|
|
- pulseRateDto.setPhrType("pulseRate");
|
|
|
- pulseRateDto.setPhrValue(dto.getPhrValueExtra());
|
|
|
- pulseRateDto.setRecordedByName(dto.getRecordedByName());
|
|
|
- if (dto.getRecordedById() != null) {
|
|
|
- pulseRateDto.setRecordedById(dto.getRecordedById());
|
|
|
- }
|
|
|
- if (dto.getRecordedDate() != null) {
|
|
|
- pulseRateDto.setRecordedDate(dto.getRecordedDate());
|
|
|
- }
|
|
|
- phrService.insertPHR(pulseRateDto);
|
|
|
- }
|
|
|
+ phrService.insertPHR(dto);
|
|
|
+ if (dto.getPhrValueExtra() != null) {
|
|
|
+ PatientPHRHistoryDTO pulseRateDto = new PatientPHRHistoryDTO();
|
|
|
+ pulseRateDto.setPatientIdx(dto.getPatientIdx());
|
|
|
+ pulseRateDto.setPhrType("pulseRate");
|
|
|
+ pulseRateDto.setPhrValue(dto.getPhrValueExtra());
|
|
|
+ pulseRateDto.setRecordedByName(dto.getRecordedByName());
|
|
|
+ if (dto.getRecordedById() != null) {
|
|
|
+ pulseRateDto.setRecordedById(dto.getRecordedById());
|
|
|
+ }
|
|
|
+ if (dto.getRecordedDate() != null) {
|
|
|
+ pulseRateDto.setRecordedDate(dto.getRecordedDate());
|
|
|
+ }
|
|
|
+ phrService.insertPHR(pulseRateDto);
|
|
|
+ }
|
|
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|