Package clips.delegate.doctor.certificate.tag.certTags

Source Code of clips.delegate.doctor.certificate.tag.certTags.CertTagVeneroExposeCircs

/*
* 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 clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
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="venero_expose_circs", title="Обстоятельства выявления кож/вен заболевания")
public class CertTagVeneroExposeCircs extends TypeSelectableEdit {
    public static final int SELF = 1;
    public static final int CONTACT_ILL = 2;
    public static final int DONOR = 3;
    public static final int PERIODIC = 4;
    public static final int JOB = 5;
    public static final int BIRTH = 6;
    public static final int OTHER = 7;

    public CertTagVeneroExposeCircs() throws ClipsException {
    }

    public CertTagVeneroExposeCircs(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(SELF, "самостоятельное обращение к специалисту (указать), в т.ч по контакту"));
        allItems.add(new PairIntStr(CONTACT_ILL, "активное выявление: как контакт больного"));
        allItems.add(new PairIntStr(DONOR, "донор"));
        allItems.add(new PairIntStr(PERIODIC, "при мед. осмотре"));
        allItems.add(new PairIntStr(JOB, "при поступлении на работу"));
        allItems.add(new PairIntStr(BIRTH, "во время родов"));
        allItems.add(new PairIntStr(OTHER, "прочее (указать)"));

        editableItems = new HashSet<Integer>();
        editableItems.add(SELF);
        editableItems.add(OTHER);
    }

}
TOP

Related Classes of clips.delegate.doctor.certificate.tag.certTags.CertTagVeneroExposeCircs

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.