|
@ -0,0 +1,36 @@
|
|
|
/*******************************************************************************
|
|
|
* Copyright (c) 2005, 2014 springside.github.io
|
|
|
* <p>
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
*******************************************************************************/
|
|
|
package com.yihu.mm.service;
|
|
|
|
|
|
|
|
|
import com.yihu.mm.entity.PatientExam;
|
|
|
import com.yihu.mm.repository.PatientExamDao;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.persistence.Transient;
|
|
|
|
|
|
/**
|
|
|
* 患者基本信息类.
|
|
|
*
|
|
|
* @author George
|
|
|
*/
|
|
|
@Service
|
|
|
public class PatientExamService{
|
|
|
|
|
|
@Autowired
|
|
|
private PatientExamDao patientExamDao;
|
|
|
|
|
|
|
|
|
public PatientExam findByPatientAndTpId(String patientCode,String tpId){
|
|
|
return patientExamDao.findByPatientAndTpId(patientCode,tpId);
|
|
|
}
|
|
|
|
|
|
@Transient
|
|
|
public void save(PatientExam patientExam){
|
|
|
patientExamDao.save(patientExam);
|
|
|
}
|
|
|
}
|