public ChemotherapyDetailsVo getChemotherapyDetailsVo(ChemotherapyDetailsRefVo voChemotherapyDetailsRef) { if(voChemotherapyDetailsRef == null || !voChemotherapyDetailsRef.getID_ChemotherapyDetailsIsNotNull()) return null; return ChemotherapyDetailsVoAssembler.create((ChemotherapyDetails)getDomainFactory().getDomainObject(ChemotherapyDetails.class, voChemotherapyDetailsRef.getID_ChemotherapyDetails())); }
public ChemotherapyDetailsVo saveChemotherapyDetailsVo(ChemotherapyDetailsVo voChemotherapyDetails) throws StaleObjectException { if(voChemotherapyDetails == null) throw new RuntimeException("Cannot save null ChemotherapyDetailsVo"); if(voChemotherapyDetails.isValidated() == false) throw new CodingRuntimeException("ChemotherapyDetailsVo is not validated"); DomainFactory factory = getDomainFactory(); ChemotherapyDetails doChemotherapyDetails = ChemotherapyDetailsVoAssembler.extractChemotherapyDetails(factory, voChemotherapyDetails); factory.save(doChemotherapyDetails); return ChemotherapyDetailsVoAssembler.create(doChemotherapyDetails); }