|
|
@@ -49,11 +49,11 @@ public class ClusterPatientOperator implements PatientOperator {
|
|
|
@Override
|
|
|
public boolean getExist() {
|
|
|
Value value = getValue(DeviceKeyConstant.IS_EXIST);
|
|
|
- if(value==null){
|
|
|
+// if(value==null){
|
|
|
BusPatientEntity patient = patientService.findByOriginCode(patientCode, hospitalId);
|
|
|
value=Value.simple(patient!=null);
|
|
|
setExist(patient!=null);
|
|
|
- }
|
|
|
+// }
|
|
|
return value.asBoolean();
|
|
|
}
|
|
|
|
|
|
@@ -77,11 +77,11 @@ public class ClusterPatientOperator implements PatientOperator {
|
|
|
@Override
|
|
|
public String getClinicId() {
|
|
|
Value value = getValue(PatientKeyConstant.CLINIC_ID);
|
|
|
- if(value==null){
|
|
|
+// if(value==null){
|
|
|
BusPatientEntity patient = getPatient();
|
|
|
value=Value.simple(patient.getClinicId());
|
|
|
setClinicId(patient.getClinicId());
|
|
|
- }
|
|
|
+// }
|
|
|
return value.asString();
|
|
|
}
|
|
|
|
|
|
@@ -93,7 +93,7 @@ public class ClusterPatientOperator implements PatientOperator {
|
|
|
@Override
|
|
|
public String getBindDeviceId() {
|
|
|
Value value = getValue(PatientKeyConstant.BIND_DEVICE_ID);
|
|
|
- if(value==null){
|
|
|
+// if(value==null){
|
|
|
BusPatientEntity patient = getPatient();
|
|
|
if(patient==null|| CharSequenceUtil.isEmpty(patient.getInfusionId())){
|
|
|
return null;
|
|
|
@@ -104,18 +104,18 @@ public class ClusterPatientOperator implements PatientOperator {
|
|
|
}
|
|
|
value=Value.simple(infusion.getDeviceId());
|
|
|
setBindDeviceId(infusion.getDeviceId());
|
|
|
- }
|
|
|
+// }
|
|
|
return value.asString();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String getPatientId() {
|
|
|
Value value = getValue(PatientKeyConstant.PATIENT_ID);
|
|
|
- if(value==null){
|
|
|
+// if(value==null){
|
|
|
BusPatientEntity patient = getPatient();
|
|
|
value=Value.simple(patient.getId());
|
|
|
setPatientId(patient.getId());
|
|
|
- }
|
|
|
+// }
|
|
|
return value.asString();
|
|
|
}
|
|
|
|