package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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;

@Entity 
@Table(name = "RiwayatKehamilanPersalinanNifasYangLalu_T")
public class RiwayatKehamilanPersalinanNifasYangLalu extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "ObjectantrianPasienDiPeriksaFk")
	@NotNull(message = "antrianPasienDiPeriksa tidak boleh kosong")
	@Caption(value = "Object antrianPasienDiPeriksa")
	private AntrianPasienDiPeriksa antrianPasienDiPeriksa;

	@Column(name = "ObjectantrianPasienDiPeriksaFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String antrianPasienDiPeriksaId;
	
	@Column(name = "tglPartus", nullable = false, length = 100)
	@Caption(value = "tglPartus")
	private Date tglPartus;

	@Column(name = "tempatPartus", nullable = false, length = 100)
	@Caption(value = "tempatPartus")
	private String tempatPartus;

	@Column(name = "umurHamil", nullable = false, length = 100)
	@Caption(value = "umurHamil")
	private String umurHamil;

	@Column(name = "jenisPersalinan", nullable = false, length = 100)
	@Caption(value = "jenisPersalinan")
	private String jenisPersalinan;

	@Column(name = "penolongPersalinan", nullable = false, length = 100)
	@Caption(value = "penolongPersalinan")
	private String penolongPersalinan;

	@Column(name = "penyakit", nullable = false, length = 100)
	@Caption(value = "penyakit")
	private String penyakit;

	@Column(name = "beratBadanLahir", nullable = false, length = 100)
	@Caption(value = "beratBadanLahir")
	private String beratBadanLahir;
	
	@ManyToOne
	@JoinColumn(name = "ObjectstatusFk")
	@NotNull(message = "status tidak boleh kosong")
	@Caption(value = "Object status")
	private StatusHidupMati status;

	@Column(name = "ObjectstatusFk", insertable = false, updatable = false)
	private Integer statusId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectSkalaNyeriFk")
	@Caption(value = "Object Skala Nyeri Fk")
	private SkalaNyeri skalaNyeri;

	@Column(name = "ObjectSkalaNyeriFk", insertable = false, updatable = false)
	private Integer skalaNyeriId;
	
	public AntrianPasienDiPeriksa getAntrianPasienDiPeriksa() {
		return antrianPasienDiPeriksa;
	}
	public void setAntrianPasienDiPeriksa(AntrianPasienDiPeriksa antrianPasienDiPeriksa) {
		this.antrianPasienDiPeriksa = antrianPasienDiPeriksa;
	}
	public String getAntrianPasienDiPeriksaId() {
		return antrianPasienDiPeriksaId;
	}
	public void setAntrianPasienDiPeriksaId(String antrianPasienDiPeriksaId) {
		this.antrianPasienDiPeriksaId = antrianPasienDiPeriksaId;
	}
	public Date getTglPartus() {
		return tglPartus;
	}
	public void setTglPartus(Date tglPartus) {
		this.tglPartus = tglPartus;
	}
	public String getTempatPartus() {
		return tempatPartus;
	}
	public void setTempatPartus(String tempatPartus) {
		this.tempatPartus = tempatPartus;
	}
	public String getUmurHamil() {
		return umurHamil;
	}
	public void setUmurHamil(String umurHamil) {
		this.umurHamil = umurHamil;
	}
	public String getJenisPersalinan() {
		return jenisPersalinan;
	}
	public void setJenisPersalinan(String jenisPersalinan) {
		this.jenisPersalinan = jenisPersalinan;
	}
	public String getPenolongPersalinan() {
		return penolongPersalinan;
	}
	public void setPenolongPersalinan(String penolongPersalinan) {
		this.penolongPersalinan = penolongPersalinan;
	}
	public String getPenyakit() {
		return penyakit;
	}
	public void setPenyakit(String penyakit) {
		this.penyakit = penyakit;
	}
	public String getBeratBadanLahir() {
		return beratBadanLahir;
	}
	public void setBeratBadanLahir(String beratBadanLahir) {
		this.beratBadanLahir = beratBadanLahir;
	}
	public StatusHidupMati getStatus() {
		return status;
	}
	public void setStatus(StatusHidupMati status) {
		this.status = status;
	}
	public Integer getStatusId() {
		return statusId;
	}
	public void setStatusId(Integer statusId) {
		this.statusId = statusId;
	}
	public SkalaNyeri getSkalaNyeri() {
		return skalaNyeri;
	}
	public void setSkalaNyeri(SkalaNyeri skalaNyeri) {
		this.skalaNyeri = skalaNyeri;
	}
	public Integer getSkalaNyeriId() {
		return skalaNyeriId;
	}
	public void setSkalaNyeriId(Integer skalaNyeriId) {
		this.skalaNyeriId = skalaNyeriId;
	}
	
}
