/*
* 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="purpose_direction_msek", title="Цель направления на МСЭК")
public class CertTagPurposeDirectionMSEK extends TypeSelectableEdit {
public CertTagPurposeDirectionMSEK() throws ClipsException {
}
public CertTagPurposeDirectionMSEK(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, "другое (указать)"));
editableItems = new HashSet<Integer>();
editableItems.add(5);
}
}