package tutorial.core.models.entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 
 * @author Xavier
 */
@Entity
public class ActiveIngredientRecomendation implements Serializable{

    @Id
    @GeneratedValue
    @Column(name="recomendation_id" )
    private Long recomendation_id;

    @Column(length=10000, name="clinicalCare" )
    private String clinicalCare;

    @Column(length=10000, name="adjustDose" )
    private String adjustDose;
    
    @Column(name="glomerularFiltrationRateRange")
    private String glomerularFiltrationRateRange;
    

    @Column(name="minGlomerularFiltrationRate" )
    private int minGlomerularFiltrationRate;
    @Column(name="maxGlomerularFiltrationRate" )
    private int maxGlomerularFiltrationRate;
    
    @Column(name="risk" )
    private int risk;

    @ManyToOne
    @JoinColumn(name = "activeIngredient_id")
    private ActiveIngredient activeIngredient;

    public String getGlomerularFiltrationRateRange() {
        return glomerularFiltrationRateRange;
    }

    public void setGlomerularFiltrationRateRange(String glomerularFiltrationRateRange) {
        this.glomerularFiltrationRateRange = glomerularFiltrationRateRange;
    }
    
    public Long getId() {
        return recomendation_id;
    }

    public void setRecomendation_id(Long recomendation_id) {
        this.recomendation_id = recomendation_id;
    }

    public String getClinicalCare() {
        return clinicalCare;
    }

    public void setClinicalCare(String clinicalCare) {
        this.clinicalCare = clinicalCare;
    }

    public String getAdjustDose() {
        return adjustDose;
    }

    public void setAdjustDose(String adjustDose) {
        this.adjustDose = adjustDose;
    }

    public int getMaxGlomerularFiltrationRate() {
        return maxGlomerularFiltrationRate;
    }

    public void setMaxGlomerularFiltrationRate(int maxGlomerularFiltrationRate) {
        this.maxGlomerularFiltrationRate = maxGlomerularFiltrationRate;
    }

    public int getMinGlomerularFiltrationRate() {
        return minGlomerularFiltrationRate;
    }

    public void setMinGlomerularFiltrationRate(int minGlomerularFiltrationRate) {
        this.minGlomerularFiltrationRate = minGlomerularFiltrationRate;
    }

    public ActiveIngredient getActiveIngredient() {
        return activeIngredient;
    }

    public void setActiveIngredient(ActiveIngredient activeIngredient) {
        this.activeIngredient = activeIngredient;
    }

    public int getRisk() {
        return risk;
    }

    public void setRisk(int risk) {
        this.risk = risk;
    }

    
    
}
