版本更新

This commit is contained in:
Zhang.WH
2025-10-16 17:17:24 +08:00
parent d23a594a4b
commit f515bb8fbb
600 changed files with 7881 additions and 35954 deletions

View File

@@ -16,4 +16,20 @@ public interface IReviewPrescriptionRecordsAppService {
*/
R<?> reviewPrescription(ReviewPrescriptionRecordsDto reviewPrescriptionRecordsDto);
/**
* 通过处方号查询审方记录
*
* @param prescriptionNo 处方号
* @return 审方记录
*/
R<?> getReviewByPrescriptionNo(String prescriptionNo);
/**
* 通过就诊id查询审方记录
*
* @param encounterId 就诊id
* @return 审方记录
*/
R<?> getReviewByEncounterId(Long encounterId);
}

View File

@@ -18,6 +18,7 @@ import com.openhis.administration.domain.ChargeItem;
import com.openhis.administration.service.IChargeItemService;
import com.openhis.common.constant.PromptMsgConstant;
import com.openhis.common.enums.ChargeItemStatus;
import com.openhis.common.enums.Whether;
import com.openhis.jlau.domain.ReviewPrescriptionRecords;
import com.openhis.jlau.service.IReviewPrescriptionRecordsService;
import com.openhis.web.jlau.appservice.IReviewPrescriptionRecordsAppService;
@@ -92,4 +93,30 @@ public class ReviewPrescriptionRecordsAppServiceImpl implements IReviewPrescript
return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00004, new Object[] {"审核处方"}));
}
/**
* 通过处方号查询审方记录
*
* @param prescriptionNo 处方号
* @return 审方记录
*/
@Override
public R<?> getReviewByPrescriptionNo(String prescriptionNo) {
List<ReviewPrescriptionRecordsDto> reviewPrescriptionRecords =
reviewPrescriptionRecordsAppMapper.getReviewPrescriptionRecords(prescriptionNo, null, null);
return R.ok(reviewPrescriptionRecords);
}
/**
* 通过就诊id查询审方记录
*
* @param encounterId 就诊id
* @return 审方记录
*/
@Override
public R<?> getReviewByEncounterId(Long encounterId) {
List<ReviewPrescriptionRecordsDto> reviewPrescriptionRecords =
reviewPrescriptionRecordsAppMapper.getReviewPrescriptionRecords(null, encounterId, Whether.YES.getValue());
return R.ok(reviewPrescriptionRecords);
}
}

View File

@@ -3,15 +3,11 @@
*/
package com.openhis.web.jlau.controller;
import com.core.common.core.domain.R;
import com.openhis.web.jlau.dto.ReviewPrescriptionRecordsDto;
import com.openhis.web.regdoctorstation.dto.NursingOrdersSaveDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.core.common.core.domain.R;
import com.openhis.web.jlau.appservice.IReviewPrescriptionRecordsAppService;
import com.openhis.web.jlau.dto.ReviewPrescriptionRecordsDto;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -38,4 +34,26 @@ public class ReviewPrescriptionRecordsController {
return iReviewPrescriptionRecordsAppService.reviewPrescription(reviewPrescriptionRecordsDto);
}
/**
* 通过处方号查询审方记录
*
* @param prescriptionNo 处方号
* @return 审方记录
*/
@GetMapping(value = "/review-by-prescription-no")
public R<?> getReviewByPrescriptionNo(@RequestParam(value = "prescriptionNo") String prescriptionNo) {
return iReviewPrescriptionRecordsAppService.getReviewByPrescriptionNo(prescriptionNo);
}
/**
* 通过就诊id查询审方记录
*
* @param encounterId 就诊id
* @return 审方记录
*/
@GetMapping(value = "/review-by-encounter")
public R<?> getReviewByEncounterId(@RequestParam(value = "encounterId") Long encounterId) {
return iReviewPrescriptionRecordsAppService.getReviewByEncounterId(encounterId);
}
}

View File

@@ -47,4 +47,9 @@ public class ReviewPrescriptionRecordsDto {
*/
private String reasonText;
/**
* 审方人
*/
private String practitionerName;
}

View File

@@ -1,11 +1,27 @@
package com.openhis.web.jlau.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.openhis.web.jlau.dto.ReviewPrescriptionRecordsDto;
/**
* 农大审方记录 应用Mapper
*/
@Repository
public interface ReviewPrescriptionRecordsAppMapper {
/**
* 查询农大审方记录
*
* @param prescriptionNo 处方号
* @param encounterId 就诊id
* @param passFlag 通过标识
* @return 农大审方记录
*/
List<ReviewPrescriptionRecordsDto> getReviewPrescriptionRecords(@Param("prescriptionNo") String prescriptionNo,
@Param("encounterId") Long encounterId, @Param("passFlag") Integer passFlag);
}