/*
* 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_expose_metod", title="Метод выявления туберкулеза")
public class CertTagTuberExposeMetod extends TypeSelectableEdit {
public static final int CILL_NELSEN = 1;
public static final int LUMINESCENT = 2;
public static final int INOCULATION = 3;
public static final int FG = 4;
public static final int RG = 5;
public static final int TUBER_DIAGNOS = 6;
public static final int GISTOLOG = 7;
public static final int OTHER = 8;
public CertTagTuberExposeMetod() throws ClipsException {
}
public CertTagTuberExposeMetod(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(CILL_NELSEN, "микроскопия по Циль-Нельсену"));
allItems.add(new PairIntStr(LUMINESCENT, "люминисцентная микроскопия"));
allItems.add(new PairIntStr(INOCULATION, "посев"));
allItems.add(new PairIntStr(FG, "флюорография"));
allItems.add(new PairIntStr(RG, "рентгенография"));
allItems.add(new PairIntStr(TUBER_DIAGNOS, "туберкулинодиагностика"));
allItems.add(new PairIntStr(GISTOLOG, "гистология"));
allItems.add(new PairIntStr(OTHER, "другой (указать, какой)"));
editableItems = new HashSet<Integer>();
editableItems.add(OTHER);
}
}