package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "konsultasi_t")
@JsonSerialize
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class Konsultasi extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectantrianPasienDiPeriksaFk")
	@Caption(value = "Object antrianPasienDiPeriksa")
	private AntrianPasienDiPeriksa antrianPasienDiPeriksa;

	@Column(name = "ObjectantrianPasienDiPeriksaFk", insertable = false, updatable = false, nullable = false)
	private String antrianPasienDiPeriksaId;

	@Column(name = "tanggalKonsultasi")
	@Caption(value = "tanggalKonsultasi")
	private Date tanggalKonsultasi;

	@ManyToOne
	@JoinColumn(name = "ObjecttujuanKonsultasiFk")
	@Caption(value = "Object tujuanKonsultasi")
	private Ruangan tujuanKonsultasi;

	@Column(name = "ObjecttujuanKonsultasiFk", insertable = false, updatable = false)
	private Integer tujuanKonsultasiId;

	@Column(name = "ikhtiarKlinik")
	@Caption(value = "ikhtiarKlinik")
	private String ikhtiarKlinik;

	@Caption(value = "Jawaban Konsultasi")
	@Column(name = "JawabanKonsultasi")
	private String jawabanKonsultasi;

}
