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

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

/*
* 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="chemical_medic_care", title="Кем оказана медицинская помощь")
public class CertTagChemicalMedicCare extends TypeSelectableRO {
    public static final int  EMERGENCY = 1;
    public static final int  POLYCLINIC = 2;
    public static final int  HOSPITAL_WITHOUT = 3;
    public static final int  HOSPITAL_WITH = 4;

    public CertTagChemicalMedicCare() throws ClipsException {
    }

    public CertTagChemicalMedicCare(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(EMERGENCY, "бригадой СМП"));
        allItems.add(new PairIntStr(POLYCLINIC, "амбулаторно-поликлиническим учреждением"));
        allItems.add(new PairIntStr(HOSPITAL_WITHOUT, "в стационаре без последующей госпитализации"));
        allItems.add(new PairIntStr(HOSPITAL_WITH, "в стационаре при госпитализации больного"));
    }
}
TOP

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

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.