public ims.nursing.vo.InterventionChartVo getInterventionRecord(ims.nursing.vo.InterventionChartHeaderVo intervention) { DomainFactory factory = getDomainFactory(); ims.nursing.domain.objects.InterventionChart interventionChart = (InterventionChart)factory.getDomainObject(InterventionChart.class, intervention.getID_InterventionChart()); return (InterventionChartVoAssembler.create(interventionChart)); }
public ims.nursing.vo.InterventionChartHeaderVo saveIntervention(ims.nursing.vo.InterventionChartVo interventionChart, ClinicalContactShortVo contact) throws ims.domain.exceptions.StaleObjectException { if (!interventionChart.isValidated()) throw new DomainRuntimeException("This Intervention Chart has not been validated"); DomainFactory factory = getDomainFactory(); InterventionChart doInterventionChart = InterventionChartVoAssembler.extractInterventionChart(factory, interventionChart); factory.save(doInterventionChart); return InterventionChartHeaderVoAssembler.create(doInterventionChart); }