Package systole.domain.report

Examples of systole.domain.report.Report


    @Override
    public Report getReportById(Integer id) throws ExceptionDAO {
        try {
            this.logger.logDebug("getting report by id, id: " + id);
            Session currentSession = FacadeDB.getInstance().getCurrentSession();
            Report instance = (Report) currentSession.get(Report.class, id);
            this.logger.logDebug("get successfully");
            return instance;
        } catch (HibernateException e) {
            this.logger.logError("error on get report, msg: " + e.getMessage());
            throw new ExceptionDAO("No se pudo obtener el Reporte", e.fillInStackTrace());
View Full Code Here


     *
     * @param analysis
     */
    public ReportModel(Analysis analysis) {
        this.originalReport = analysis.getReport();
        this.currentReport = new Report();
        if (this.originalReport != null) {
            this.currentReport.setComments(this.originalReport.getComments());
            this.currentReport.setCommentAOD(this.originalReport.getCommentAOD());
            this.currentReport.setCommentAOS(this.originalReport.getCommentAOS());
            this.currentReport.setCommentIAR(this.originalReport.getCommentIAR());
View Full Code Here

    }

    public void save() {
        if (this.isDirtyModel()) {
            if (this.originalReport == null) {
                this.originalReport = new Report();
            }
            this.originalReport.setComments(this.currentReport.getComments());
            this.originalReport.setCommentAOD(this.currentReport.getCommentAOD());
            this.originalReport.setCommentAOS(this.currentReport.getCommentAOS());
            this.originalReport.setCommentIAR(this.currentReport.getCommentIAR());
View Full Code Here

        Iterator<String> familyList = patient.getClinicalHistoryProxy().getFamilyBackground(2).iterator();
        Iterator<String> medicinesList = patient.getClinicalHistoryProxy().getPatientMedicines(2).iterator();
        Iterator<String> pathologiesList = patient.getClinicalHistoryProxy().getPatientPathologies(2).iterator();
        Iterator<String> surgeriesList = patient.getClinicalHistoryProxy().getPatientSurgeries(2).iterator();

        Report report = new Report();

        String family = "";
        while (familyList.hasNext()) {
            family = family.concat((family.isEmpty() ? "" : ". ") + familyList.next());
        }
        report.setBackgroundFamily(family.isEmpty() ? "" : "Antecendentes Familiares: " + family);

        String medicine = "";
        while (medicinesList.hasNext()) {
            medicine = medicine.concat((medicine.isEmpty() ? "" : ". ") + medicinesList.next());
        }
        report.setBackgroundMedicines(medicine.isEmpty() ? "" : "Medicamentos: " + medicine);

        String pathology = "";
        while (pathologiesList.hasNext()) {
            pathology = pathology.concat((pathology.isEmpty() ? "" : ". ") + pathologiesList.next());
        }
        report.setBackgroundPathologies(pathology.isEmpty() ? "" : EntityDescriptions.PATHOLOGIES + ": " + pathology);

        String surgeries = "";
        while (surgeriesList.hasNext()) {
            surgeries = surgeries.concat((surgeries.isEmpty() ? "" : ". ") + surgeriesList.next());
        }
        report.setBackgroundSurgeries(surgeries.isEmpty()?"":EntityDescriptions.SURGERIES + ": " +surgeries);

        analisys.setReport(report);

        return analisys;
    }
View Full Code Here

    private javax.swing.JPanel jPnlWeigth;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables

    public void update(Observable o, Object arg) {
        Report report = (Report) arg;
        this.loadReport(report);
    }
View Full Code Here

TOP

Related Classes of systole.domain.report.Report

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.