private EpisodeofCareVo copyFromShortEpisode(EpisodeOfCareWithoutContextsVo episodeVo) { if (episodeVo == null) return null; EpisodeofCareVo tempVo = new EpisodeofCareVo(episodeVo.getID_EpisodeOfCare(), episodeVo.getVersion_EpisodeOfCare()); tempVo.setID_EpisodeOfCare(episodeVo.getID_EpisodeOfCare()); tempVo.setCareSpell(episodeVo.getCareSpell()); tempVo.setEndDate(episodeVo.getEndDate()); tempVo.setStartDate(episodeVo.getStartDate()); tempVo.setIsRIE(episodeVo.getIsRIE()); tempVo.setSpecialty(episodeVo.getSpecialty()); tempVo.setRelationship(episodeVo.getRelationship()); tempVo.setResponsibleHCP(episodeVo.getResponsibleHCP()); tempVo.setCareContexts(new CareContextVoCollection()); tempVo.setCurrentStatus(episodeVo.getCurrentStatus()); tempVo.setCurrentReferral(episodeVo.getCurrentReferral()); tempVo.setEpisodeOfCareHistory(episodeVo.getEpisodeOfCareHistory()); tempVo.setLinkedReferrals(episodeVo.getLinkedReferrals()); tempVo.setRelationship(episodeVo.getRelationship()); tempVo.setStatusHistory(episodeVo.getStatusHistory()); return tempVo; }
private EpisodeofCareVo copyFromShortEpisode(EpisodeOfCareWithoutContextsVo episodeVo) { if(episodeVo == null) return null; EpisodeofCareVo tempVo = new EpisodeofCareVo(episodeVo.getID_EpisodeOfCare(),episodeVo.getVersion_EpisodeOfCare()); tempVo.setID_EpisodeOfCare(episodeVo.getID_EpisodeOfCare()); tempVo.setCareSpell(episodeVo.getCareSpell()); tempVo.setEndDate(episodeVo.getEndDate()); tempVo.setStartDate(episodeVo.getStartDate()); tempVo.setIsRIE(episodeVo.getIsRIE()); tempVo.setSpecialty(episodeVo.getSpecialty()); tempVo.setRelationship(episodeVo.getRelationship()); tempVo.setResponsibleHCP(episodeVo.getResponsibleHCP()); tempVo.setCareContexts(new CareContextVoCollection()); tempVo.setCurrentStatus(episodeVo.getCurrentStatus()); tempVo.setCurrentReferral(episodeVo.getCurrentReferral()); tempVo.setEpisodeOfCareHistory(episodeVo.getEpisodeOfCareHistory()); tempVo.setLinkedReferrals(episodeVo.getLinkedReferrals()); tempVo.setRelationship(episodeVo.getRelationship()); tempVo.setStatusHistory(episodeVo.getStatusHistory()); return tempVo; }