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.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name="PengkajianAwalBaru_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class PengkajianAwalBaru extends BaseTransaction{
	
	@Caption(value="KdPap")
	@Column(name="KdPap")
	private String kdPap;
	
	@Caption(value="Tanggal Registrasi")
	@Column(name="TglRegistrasi")
	private Date tglRegistrasi;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object Ruangan Fk")
	@JoinColumn(name="ObjectRuanganFk")
	private Ruangan ruangan;
	
	@Column(name="ObjectRuanganFk", insertable=false, updatable=false, nullable=false)
	private Integer ruanganId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object Pasien Fk")
	@JoinColumn(name="ObjectPasienFk")
	private Pasien pasien;
	
	@Column(name="ObjectPasienFk", insertable=false, updatable=false, nullable=false)
	private Integer  pasienId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object No Registrasi")
	@JoinColumn(name="ObjectNoRegistrasiFk")
	private AntrianPasienDiPeriksa noRegistrasi;
	
	@Column(name="ObjectNoRegistrasiFk", insertable=false, updatable=false, nullable=true)
	private String  noRegistrasiId;

	public String getKdPap() {
		return kdPap;
	}

	public void setKdPap(String kdPap) {
		this.kdPap = kdPap;
	}

	public Date getTglRegistrasi() {
		return tglRegistrasi;
	}

	public void setTglRegistrasi(Date tglRegistrasi) {
		this.tglRegistrasi = tglRegistrasi;
	}

	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;
	}

	public Pasien getPasien() {
		return pasien;
	}

	public void setPasien(Pasien pasien) {
		this.pasien = pasien;
	}

	public Integer getPasienId() {
		return pasienId;
	}

	public void setPasienId(Integer pasienId) {
		this.pasienId = pasienId;
	}

	public AntrianPasienDiPeriksa getNoRegistrasi() {
		return noRegistrasi;
	}

	public void setNoRegistrasi(AntrianPasienDiPeriksa noRegistrasi) {
		this.noRegistrasi = noRegistrasi;
	}

	public String getNoRegistrasiId() {
		return noRegistrasiId;
	}

	public void setNoRegistrasiId(String noRegistrasiId) {
		this.noRegistrasiId = noRegistrasiId;
	}

}
