/*
* 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.TypeSelectableEdit;
import framework.utils.PairIntStr;
import java.util.HashSet;
/**
*
* @author vip
*/
@TagToClass(tagName="tuber_accomp_disease", title="Сопутствующие заболевания туберкулеза")
public class CertTagTuberAccompDisease extends TypeSelectableEdit {
public CertTagTuberAccompDisease() throws ClipsException {
}
public CertTagTuberAccompDisease(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, "нет"));
allItems.add(new PairIntStr(2, "сахарн. диабет"));
allItems.add(new PairIntStr(3, "ХНЗЛ"));
allItems.add(new PairIntStr(4, "гипертон. болезнь, ИБС"));
allItems.add(new PairIntStr(5, "язв. болезнь жел. и 12-перст кишки"));
allItems.add(new PairIntStr(6, "психическое заболевание"));
allItems.add(new PairIntStr(7, "онкологическое забол."));
allItems.add(new PairIntStr(8, "прочее (указать, какое)"));
editableItems = new HashSet<Integer>();
editableItems.add(8);
}
}