public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException { if (!voTransfer.isValidated()) throw new CodingRuntimeException("Transfer Record has not been validated"); if(voTransfer == null) throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo"); DomainFactory factory = getDomainFactory(); InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer); factory.save(doTrans); return InpatientEpisodeForTransfersVoAssembler.create(doTrans); }
public InpatientEpisodeForTransfersVo saveTransfer(InpatientEpisodeForTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException { if(voTransfer == null) throw new CodingRuntimeException("Cannot save null InpatientEpisodeForTransfersVo"); if (!voTransfer.isValidated()) throw new CodingRuntimeException("Transfer Record has not been validated"); DomainFactory factory = getDomainFactory(); InpatientEpisode doTrans = InpatientEpisodeForTransfersVoAssembler.extractInpatientEpisode(factory, voTransfer); factory.save(doTrans); return InpatientEpisodeForTransfersVoAssembler.create(doTrans); }
public InpatientEpisodeForTransfersVo getCurrentTransferRecord(InpatientEpisodeRefVo ipRefVo) { DomainFactory factory = getDomainFactory(); return InpatientEpisodeForTransfersVoAssembler.create((InpatientEpisode) factory.getDomainObject(InpatientEpisode.class, ipRefVo.getID_InpatientEpisode())); }