package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "DiagnosaKeperawatan_T")
public class DiagnosaKeperawatanTransaksi extends MedicalRecordTransaction {
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectDiagnosaKeperawatan")
	@Caption(value="DiagnosaKeperawatan")
	private DiagnosaKeperawatan diagnosaKeperawatan;
	
	@Column(name = "ObjectDiagnosaKeperawatan", insertable=false, updatable=false, nullable=true)
	private Integer diagnosaKeperawatanId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectImplementasi")
	@Caption(value="Implementasi")
	private Implementasi implementasi;
	
	@Column(name = "ObjectImplementasi", insertable=false, updatable=false, nullable=true)
	private Integer implementasiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectIntervensi")
	@Caption(value="Intervensi")
	private Intervensi intervensi;
	
	@Column(name = "ObjectIntervensi", insertable=false ,updatable=false, nullable=true)
	private Integer ObjectIntervensiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectEvaluasi")
	@Caption(value="Evaluasi")
	private Evaluasi evaluasi;
	
	@Column(name = "ObjectEvaluasi", insertable=false, updatable=false, nullable=true)
	private Integer ObjectEvaluasiId;
	
	@Caption(value="tglDitemukan")
	@Column(name = "tglDitemukan", nullable=true)
	private Date tglDitemukan;
	
	@Caption(value="tglTeratasi")
	@Column(name = "tglTeratasi", nullable=true)
	private Date tglTeratasi;
	
	@Caption(value="tglInput")
	@Column(name = "tglInput", nullable=true)
	private Date tglInput;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectPegawai")
	@Caption(value="Pegawai")
	private Pegawai pegawai;
	
	@Column(name = "ObjectPegawai", insertable=false, updatable=false, nullable=true)
	private Integer pegawaiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectRuangan")
	@Caption(value="Ruangan")
	private Ruangan ruangan;
	
	@Column(name = "ObjectRuangan", insertable=false, updatable=false, nullable=true)
	private Integer ruanganId;

	public DiagnosaKeperawatan getDiagnosaKeperawatan() {
		return diagnosaKeperawatan;
	}

	public void setDiagnosaKeperawatan(DiagnosaKeperawatan diagnosaKeperawatan) {
		this.diagnosaKeperawatan = diagnosaKeperawatan;
	}

	public Integer getDiagnosaKeperawatanId() {
		return diagnosaKeperawatanId;
	}

	public void setDiagnosaKeperawatanId(Integer diagnosaKeperawatanId) {
		this.diagnosaKeperawatanId = diagnosaKeperawatanId;
	}

	public Implementasi getImplementasi() {
		return implementasi;
	}

	public void setImplementasi(Implementasi implementasi) {
		this.implementasi = implementasi;
	}

	public Integer getImplementasiId() {
		return implementasiId;
	}

	public void setImplementasiId(Integer implementasiId) {
		this.implementasiId = implementasiId;
	}

	public Intervensi getIntervensi() {
		return intervensi;
	}

	public void setIntervensi(Intervensi intervensi) {
		this.intervensi = intervensi;
	}

	public Integer getObjectIntervensiId() {
		return ObjectIntervensiId;
	}

	public void setObjectIntervensiId(Integer objectIntervensiId) {
		ObjectIntervensiId = objectIntervensiId;
	}

	public Evaluasi getEvaluasi() {
		return evaluasi;
	}

	public void setEvaluasi(Evaluasi evaluasi) {
		this.evaluasi = evaluasi;
	}

	public Integer getObjectEvaluasiId() {
		return ObjectEvaluasiId;
	}

	public void setObjectEvaluasiId(Integer objectEvaluasiId) {
		ObjectEvaluasiId = objectEvaluasiId;
	}

	public Date getTglDitemukan() {
		return tglDitemukan;
	}

	public void setTglDitemukan(Date tglDitemukan) {
		this.tglDitemukan = tglDitemukan;
	}

	public Date getTglTeratasi() {
		return tglTeratasi;
	}

	public void setTglTeratasi(Date tglTeratasi) {
		this.tglTeratasi = tglTeratasi;
	}

	public Date getTglInput() {
		return tglInput;
	}

	public void setTglInput(Date tglInput) {
		this.tglInput = tglInput;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public Ruangan getRuangan() {
		return ruangan;
	}

	public void setRuangan(Ruangan ruangan) {
		this.ruangan = ruangan;
	}

	public Integer getRuanganId() {
		return ruanganId;
	}

	public void setRuanganId(Integer ruanganId) {
		this.ruanganId = ruanganId;
	}

}
