/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package clips.delegate.doctor.certificate.tag.certTags;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import clips.delegate.doctor.certificate.tag.interfaces.TypeSelectableRO;
import framework.utils.PairIntStr;
/**
*
* @author lacoste
*/
@TagToClass(tagName="prepense_poisoning", title="Преднамеренное отравление")
public class CertTagChemicalPrepensePoisoning extends TypeSelectableRO {
public static final int SUICIDE = 1;
public static final int CRIMINAL = 2;
public static final int NARCOTIC = 3;
public static final int DURMAN = 4;
public static final int PREGNANCY = 5;
public CertTagChemicalPrepensePoisoning() throws ClipsException {
}
public CertTagChemicalPrepensePoisoning(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(SUICIDE, "суицидальное"));
allItems.add(new PairIntStr(CRIMINAL, "криминальное"));
allItems.add(new PairIntStr(NARCOTIC, "наркотическое"));
allItems.add(new PairIntStr(DURMAN, "с целью одурманивания"));
allItems.add(new PairIntStr(PREGNANCY, "с целью прерывания беременности"));
}
}