Package clips.doctor.newEMC.nodes.leaves

Source Code of clips.doctor.newEMC.nodes.leaves.DiagnosisNode

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.doctor.newEMC.nodes.leaves;

import cli_fmw.main.ClipsException;
import cli_fmw.main.PageContainer;
import clips.delegate.doctor.diagnosis.DiagnosisLocal;
import clips.doctor.diagnosis.PanelDiagnosis;
import clips.doctor.newEMC.init.EmcTreeNode;

/**
*
* @author petr
*/
public class DiagnosisNode extends EmcTreeNode<DiagnosisLocal, PanelDiagnosis> {

    public DiagnosisNode(EmcTreeNode parent, DiagnosisLocal delegate) {
        super(parent, delegate);
    }

    @Override
    protected PanelDiagnosis initPanel(DiagnosisLocal delegate, PageContainer pageContainer) throws ClipsException {
        return new PanelDiagnosis(pageContainer, delegate);
    }

    @Override
    protected String getStringValue(DiagnosisLocal delegate) {
        try {
            String s = delegate.getType() + " диагноз ";
            s += delegate.getMkb().getDiseaseCode();
            return s;
        } catch (ClipsException ex) {
            ex.printStackTrace();
            return delegate.toString();
        }
    }


}
TOP

Related Classes of clips.doctor.newEMC.nodes.leaves.DiagnosisNode

TOP
Copyright © 2018 www.massapi.com. 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.