public PatientSECSVo savePatientSECS(PatientSECSVo patientSecs) throws StaleObjectException { if(!patientSecs.isValidated()) throw new DomainRuntimeException("This MUST has not been validated"); DomainFactory factory = getDomainFactory(); PatientSECS doPatientSECS = PatientSECSVoAssembler.extractPatientSECS(factory, patientSecs); factory.save(doPatientSECS); //WDEV-22205 code temporarily removed /**if (patientSecs.getOBSProtocolTypeIsNotNull()) { InpatientEpisode curentInpatEpDO = getCurrentInpatientEpisode(factory, doPatientSECS.getCareContext()); if (curentInpatEpDO != null) { curentInpatEpDO.setLatestSECSScore(doPatientSECS); factory.save(curentInpatEpDO); } }*/ return PatientSECSVoAssembler.create(doPatientSECS); }
public PatientSECSVo savePatientSECS(PatientSECSVo patientSecs) throws StaleObjectException { if(!patientSecs.isValidated()) throw new DomainRuntimeException("This MUST has not been validated"); DomainFactory factory = getDomainFactory(); PatientSECS doPatientSECS = PatientSECSVoAssembler.extractPatientSECS(factory, patientSecs); factory.save(doPatientSECS); return PatientSECSVoAssembler.create(doPatientSECS); }