private void populateSurgeonCombo() { SurgicalAuditProcedureDetailsVo currentSurgicalAuditProcDet = form.getGlobalContext().Clinical.getCurrentSurgicalAuditProcedureDetail(); if (currentSurgicalAuditProcDet==null ) return; if (currentSurgicalAuditProcDet.getOpPerformedBy()==null) return; MedicLiteVoCollection collSurgeon = currentSurgicalAuditProcDet.getOpPerformedBy(); collSurgeon.sort(new MedicComparator(SortOrder.ASCENDING)); for (int i=0;i<collSurgeon.size();i++) { form.cmbSurgeon().newRow(collSurgeon.get(i), collSurgeon.get(i).getName().toString()); } }
public SurgicalAuditProcedureDetailsVo saveProcedureDetails(SurgicalAuditProcedureDetailsVo surgAuditProcDetailsToSave) throws StaleObjectException { if (surgAuditProcDetailsToSave == null ) { throw new CodingRuntimeException("Cannot get SurgicalAuditProcedureDetailsVo on null Id "); } DomainFactory factory = getDomainFactory(); SurgicalAuditProcedureDetails domainSurgicalAuditProcDet = SurgicalAuditProcedureDetailsVoAssembler.extractSurgicalAuditProcedureDetails(factory, surgAuditProcDetailsToSave); factory.save(domainSurgicalAuditProcDet); return SurgicalAuditProcedureDetailsVoAssembler.create(domainSurgicalAuditProcDet); }
public SurgicalAuditOperationDetailVo saveAndMarkAsRIE(SurgicalAuditOperationDetailVo surgAuditToSave, SurgicalAuditProcedureDetailsVo surgAuditProcedureDetails, FormName form, Integer patId, Integer careContextId, String comment) throws StaleObjectException { if (surgAuditToSave == null || surgAuditProcedureDetails==null) { throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVo on null Id "); } DomainFactory factory = getDomainFactory(); SurgicalAuditOperationDetail domainSurgicalAudit = SurgicalAuditOperationDetailVoAssembler.extractSurgicalAuditOperationDetail(factory, surgAuditToSave); factory.save(domainSurgicalAudit); factory.markAsRie(SurgicalAuditProcedureDetails.class, surgAuditProcedureDetails.getID_SurgicalAuditProcedureDetails(), form, patId, null, careContextId, comment); return SurgicalAuditOperationDetailVoAssembler.create(domainSurgicalAudit); }