package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;
import com.jasamedika.medifirst2000.vo.DiagnosaTindakanVO;

/**
 *  class RiwayatPenyakitPengobatan
 * 
 * @author Adik
 */
@Entity //@Audited
@Table(name = "DetailDiagnosaTindakanPasien_T")
public class DetailDiagnosaTindakanPasien extends BaseTransaction {
	
	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaTindakanPasienFk")
	@NotNull(message="Diagnosa Tindakan Pasien harus Diisi")
	@Caption(value="Diagnosa Tindakan Pasien")
	private DiagnosaTindakanPasien diagnosaTindakanPasien;
	
	@Column(name = "jumlah", nullable = true)
	private Integer jumlah;
	public Integer getJumlah() {
		return jumlah;
	}

	public void setJumlah(Integer jumlah) {
		this.jumlah = jumlah;
	}

	@Column(name = "ObjectDiagnosaTindakanPasienFk", insertable=false,updatable=false,nullable = false)
	private String diagnosaTindakanPasienId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectDiagnosaTindakanFk")
	@NotNull(message="Diagnosa Tindakan")
	@Caption(value="Diagnosa Tindakan ")
	private DiagnosaTindakan diagnosaTindakan;
	
	@Column(name = "ObjectDiagnosaTindakanFk", insertable=false,updatable=false,nullable = false)
	private Integer diagnosaTindakanId;

	public DiagnosaTindakanPasien getDiagnosaTindakanPasien() {
		return diagnosaTindakanPasien;
	}

	public void setDiagnosaTindakanPasien(DiagnosaTindakanPasien diagnosaTindakanPasien) {
		this.diagnosaTindakanPasien = diagnosaTindakanPasien;
	}

	public String getDiagnosaTindakanPasienId() {
		return diagnosaTindakanPasienId;
	}

	public void setDiagnosaTindakanPasienId(String diagnosaTindakanPasienId) {
		this.diagnosaTindakanPasienId = diagnosaTindakanPasienId;
	}

	public DiagnosaTindakan getDiagnosaTindakan() {
		return diagnosaTindakan;
	}

	public void setDiagnosaTindakan(DiagnosaTindakan diagnosaTindakan) {
		this.diagnosaTindakan = diagnosaTindakan;
	}



}

