private CareContextVo copyFromShortCareContext(CareContextWithoutClicalContactsVo careContext) { if (careContext == null) return null; CareContextVo tempVo = new CareContextVo(careContext.getID_CareContext(), careContext.getVersion_CareContext()); tempVo.setID_CareContext(careContext.getID_CareContext()); tempVo.setBedNumber(careContext.getBedNumber()); tempVo.setCareContextHistory(careContext.getCareContextHistory()); tempVo.setContext(careContext.getContext()); tempVo.setCurrentStatus(careContext.getCurrentStatus()); tempVo.setDischargeReason(careContext.getDischargeReason()); tempVo.setEndDateTime(careContext.getEndDateTime()); tempVo.setEpisodeOfCare(careContext.getEpisodeOfCare()); tempVo.setEstimatedDischargeDate(careContext.getEstimatedDischargeDate()); tempVo.setIsRIE(careContext.getIsRIE()); tempVo.setLocationType(careContext.getLocationType()); tempVo.setOrderingHospital(careContext.getOrderingHospital()); tempVo.setPasEvent(careContext.getPasEvent()); tempVo.setResponsibleHCP(careContext.getResponsibleHCP()); tempVo.setStartDateTime(careContext.getStartDateTime()); tempVo.setStatusHistory(careContext.getStatusHistory()); tempVo.setClinicalContacts(new ClinicalContactShortVoCollection()); return tempVo; }
private CareContextVo copyFromShortCareContext(CareContextWithoutClicalContactsVo careContext) { if(careContext == null) return null; CareContextVo tempVo = new CareContextVo(careContext.getID_CareContext(),careContext.getVersion_CareContext()); tempVo.setID_CareContext(careContext.getID_CareContext()); tempVo.setBedNumber(careContext.getBedNumber()); tempVo.setCareContextHistory(careContext.getCareContextHistory()); tempVo.setContext(careContext.getContext()); tempVo.setCurrentStatus(careContext.getCurrentStatus()); tempVo.setDischargeReason(careContext.getDischargeReason()); tempVo.setEndDateTime(careContext.getEndDateTime()); tempVo.setEpisodeOfCare(careContext.getEpisodeOfCare()); tempVo.setEstimatedDischargeDate(careContext.getEstimatedDischargeDate()); tempVo.setIsRIE(careContext.getIsRIE()); tempVo.setLocationType(careContext.getLocationType()); tempVo.setOrderingHospital(careContext.getOrderingHospital()); tempVo.setPasEvent(careContext.getPasEvent()); tempVo.setResponsibleHCP(careContext.getResponsibleHCP()); tempVo.setStartDateTime(careContext.getStartDateTime()); tempVo.setStatusHistory(careContext.getStatusHistory()); tempVo.setClinicalContacts(new ClinicalContactShortVoCollection()); return tempVo; }