|
@ -534,7 +534,7 @@ public class PrescriptionService extends ZysoftBaseService{
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String saveRecipe(String prescriptionCode) throws Exception
|
|
|
public String saveRecipe(String prescriptionCode,String jwRegisterType,String jwDept) throws Exception
|
|
|
{
|
|
|
Prescription prescription = prescriptionDao.findByCode(prescriptionCode);
|
|
|
|
|
@ -550,10 +550,10 @@ public class PrescriptionService extends ZysoftBaseService{
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("cardNo",prescription.getSsc());// "cardNo": "病人卡号",
|
|
|
|
|
|
json.put("saveDept",prescription.getJwDeptCode());//开单科室编码
|
|
|
json.put("saveDept",jwDept);//开单科室编码
|
|
|
json.put("saveOperator",prescription.getJwDoctorCode());// "saveOperator": "开单人员编码",
|
|
|
json.put("RATE_TYPE","2");//费别类型编码
|
|
|
json.put("REGISTER_TYPE",prescription.getJwGisterTypeCode());//挂号类型编码
|
|
|
json.put("REGISTER_TYPE",jwRegisterType);//挂号类型编码
|
|
|
List<PrescriptionDiagnosis> prescriptionDiagnosisList = prescriptionDiagnosisDao.findByPrescriptionCode(prescriptionCode);
|
|
|
json.put("DIAGNOSE_CODE",prescriptionDiagnosisList.get(0).getCode());//"DIAGNOSE_CODE": "诊断编码",
|
|
|
if(prescriptionDiagnosisList.size()>1){
|