/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package clips.delegate.doctor.certificate.tag.certTags;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import clips.delegate.doctor.certificate.tag.interfaces.TypeSelectable;
import framework.utils.PairIntStr;
/**
*
* @author vip
*/
@TagToClass(tagName="growth_stage_tnm_m", title="Стадия опухоли по TNM (M)")
public class CertTagGrowthStageTnmM extends TypeSelectable {
public CertTagGrowthStageTnmM() throws ClipsException {
}
public CertTagGrowthStageTnmM(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
super(certificateLocal, reportParam, diseaseLocal);
if (certificateLocal.isNewlyCreated()) {
setItem(0);
}
}
@Override
public void fillItems() throws ClipsException {
allItems.add(new PairIntStr(0, ""));
allItems.add(new PairIntStr(1, "MX"));
allItems.add(new PairIntStr(2, "M0"));
allItems.add(new PairIntStr(3, "M1"));
}
@Override
public boolean isEditable() {
return true;
}
@Override
public String getValue() throws ClipsException {
return getText();
}
}