package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class PenyebabDiagnosa
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "PenyebabDiagnosa_M")
public class PenyebabDiagnosaVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaFk")
	@NotNull(message="Object DiagnosaVO Harus Diisi")
	@Caption(value="Object Diagnosa")
	private DiagnosaVO diagnosa;

	public void setDiagnosa(DiagnosaVO diagnosa) {
		this.diagnosa = diagnosa;
	}

	@Column(name = "KdDiagnosa", nullable = false , length = 10)
	public DiagnosaVO getDiagnosa(){
		return this.diagnosa;
	}

	@Column(name = "ObjectDiagnosaFk", insertable=false,updatable=false)
	private Integer diagnosaId;

	@ManyToOne
	@JoinColumn(name = "ObjectKelompokPDiagnosaFk")
	@NotNull(message="Object Kelompok P DiagnosaVO Harus Diisi")
	@Caption(value="Object Kelompok P Diagnosa")
	private KelompokPenyebabDiagnosaVO kelompokPDiagnosa;

	public void setKelompokPDiagnosa(KelompokPenyebabDiagnosaVO kelompokPDiagnosa) {
		this.kelompokPDiagnosa = kelompokPDiagnosa;
	}

	@Column(name = "KdKelompokPDiagnosa", nullable = false , length = 2)
	public KelompokPenyebabDiagnosaVO getKelompokPDiagnosa(){
		return this.kelompokPDiagnosa;
	}

	@Column(name = "ObjectKelompokPDiagnosaFk", insertable=false,updatable=false)
	private Integer kelompokPDiagnosaId;

	@Caption(value="Kode Penyebab Diagnosa")
	private short kdPenyebabDiagnosa;

	public void setKdPenyebabDiagnosa(short kdPenyebabDiagnosa) {
		this.kdPenyebabDiagnosa = kdPenyebabDiagnosa;
	}

	@Column(name = "KdPenyebabDiagnosa", nullable = false )
	public short getKdPenyebabDiagnosa(){
		return this.kdPenyebabDiagnosa;
	}

	@Caption(value="Penyebab Diagnosa")
	private String penyebabDiagnosa;

	public void setPenyebabDiagnosa(String penyebabDiagnosa) {
		this.penyebabDiagnosa = penyebabDiagnosa;
	}

	@Column(name = "PenyebabDiagnosa", nullable = false , length = 100)
	public String getPenyebabDiagnosa(){
		return this.penyebabDiagnosa;
	}

	@Caption(value="QPenyebab Diagnosa")
	private short qPenyebabDiagnosa;

	public void setqPenyebabDiagnosa(short qPenyebabDiagnosa) {
		this.qPenyebabDiagnosa = qPenyebabDiagnosa;
	}

	@Column(name = "QPenyebabDiagnosa", nullable = false )
	public short getqPenyebabDiagnosa(){
		return this.qPenyebabDiagnosa;
	}


}

