package com.jasamedika.medifirst2000.vo;

import java.util.HashSet;
import java.util.Set;

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

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class RiwayatKelahiranYangLaluVO extends BaseTransactionVO{
	@ManyToOne
	@JoinColumn(name = "ObjectantrianPasienDiPeriksaFk")
	@Caption(value = "Object antrianPasienDiPeriksa")
	private AntrianPasienDiPeriksaVO antrianPasienDiPeriksa;
	
	@Column(name = "ObjectantrianPasienDiPeriksaFk", insertable = false, updatable = false,nullable=true)
	private String antrianPasienDiPeriksaId;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "riwayatKelahiranYangLalu")
	@Caption(value = "kelahiranYangLaluSet")	
	private Set<KelahiranYangLaluVO> kelahiranYangLaluSet=new HashSet<KelahiranYangLaluVO>();

	@Column(name = "riwayatPenyakitTerdahulu", nullable = true)
	@Caption(value="riwayatPenyakitTerdahulu")
	private String riwayatPenyakitTerdahulu;

	@ManyToOne
	@JoinColumn(name = "ObjectPersalinanFk")
	@Caption(value = "Object Persalinan")
	private PersalinanVO persalinan;

	@Column(name = "ObjectPersalinanFk", insertable = false, updatable = false,nullable=true)
	private Integer persalinanId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectobatObatanFk")
	@Caption(value = "Object obatObatan")
	private ObatObatanVO obatObatan;

	@Column(name = "ObjectobatObatanFk", insertable = false, updatable = false,nullable=true)
	private Integer obatObatanId;

	@Column(name = "riwayatAlargiIbu", nullable = true)
	@Caption(value="riwayatAlargiIbu")
	private String riwayatAlargiIbu;

	@ManyToOne
	@JoinColumn(name = "ObjectgolonganDarahFk")
	@Caption(value = "Object golonganDarah")
	private GolonganDarahVO golonganDarah;

	@Column(name = "ObjectgolonganDarahFk", insertable = false, updatable = false,nullable=true)
	private Integer golonganDarahId;

	@ManyToOne
	@JoinColumn(name = "ObjectrhesusFk")
	@Caption(value = "Object rhesus")
	private RhesusVO rhesus;

	@Column(name = "ObjectrhesusFk", insertable = false, updatable = false,nullable=true)
	private Integer rhesusId;

	@Column(name = "kala1", nullable = true)
	@Caption(value="kala1")
	private String kala1;

	@Column(name = "kala2", nullable = true)
	@Caption(value="kala2")
	private String kala2;

	@Column(name = "pecahKetuban", nullable = true)
	@Caption(value="pecahKetuban")
	private String pecahKetuban;

	@Column(name = "suhuIbuDalamPersalinan", nullable = true)
	@Caption(value="suhuIbuDalamPersalinan")
	private String suhuIbuDalamPersalinan;

	public AntrianPasienDiPeriksaVO getAntrianPasienDiPeriksa() {
		return antrianPasienDiPeriksa;
	}

	public void setAntrianPasienDiPeriksa(AntrianPasienDiPeriksaVO antrianPasienDiPeriksa) {
		this.antrianPasienDiPeriksa = antrianPasienDiPeriksa;
	}

	public String getAntrianPasienDiPeriksaId() {
		return antrianPasienDiPeriksaId;
	}

	public void setAntrianPasienDiPeriksaId(String antrianPasienDiPeriksaId) {
		this.antrianPasienDiPeriksaId = antrianPasienDiPeriksaId;
	}

	public Set<KelahiranYangLaluVO> getKelahiranYangLaluSet() {
		return kelahiranYangLaluSet;
	}

	public void setKelahiranYangLaluSet(Set<KelahiranYangLaluVO> kelahiranYangLaluSet) {
		this.kelahiranYangLaluSet = kelahiranYangLaluSet;
	}

	public String getRiwayatPenyakitTerdahulu() {
		return riwayatPenyakitTerdahulu;
	}

	public void setRiwayatPenyakitTerdahulu(String riwayatPenyakitTerdahulu) {
		this.riwayatPenyakitTerdahulu = riwayatPenyakitTerdahulu;
	}

	public PersalinanVO getPersalinan() {
		return persalinan;
	}

	public void setPersalinan(PersalinanVO persalinan) {
		this.persalinan = persalinan;
	}

	public Integer getPersalinanId() {
		return persalinanId;
	}

	public void setPersalinanId(Integer persalinanId) {
		this.persalinanId = persalinanId;
	}

	public ObatObatanVO getObatObatan() {
		return obatObatan;
	}

	public void setObatObatan(ObatObatanVO obatObatan) {
		this.obatObatan = obatObatan;
	}

	public Integer getObatObatanId() {
		return obatObatanId;
	}

	public void setObatObatanId(Integer obatObatanId) {
		this.obatObatanId = obatObatanId;
	}

	public String getRiwayatAlargiIbu() {
		return riwayatAlargiIbu;
	}

	public void setRiwayatAlargiIbu(String riwayatAlargiIbu) {
		this.riwayatAlargiIbu = riwayatAlargiIbu;
	}

	public GolonganDarahVO getGolonganDarah() {
		return golonganDarah;
	}

	public void setGolonganDarah(GolonganDarahVO golonganDarah) {
		this.golonganDarah = golonganDarah;
	}

	public Integer getGolonganDarahId() {
		return golonganDarahId;
	}

	public void setGolonganDarahId(Integer golonganDarahId) {
		this.golonganDarahId = golonganDarahId;
	}

	public RhesusVO getRhesus() {
		return rhesus;
	}

	public void setRhesus(RhesusVO rhesus) {
		this.rhesus = rhesus;
	}

	public Integer getRhesusId() {
		return rhesusId;
	}

	public void setRhesusId(Integer rhesusId) {
		this.rhesusId = rhesusId;
	}

	public String getKala1() {
		return kala1;
	}

	public void setKala1(String kala1) {
		this.kala1 = kala1;
	}

	public String getKala2() {
		return kala2;
	}

	public void setKala2(String kala2) {
		this.kala2 = kala2;
	}

	public String getPecahKetuban() {
		return pecahKetuban;
	}

	public void setPecahKetuban(String pecahKetuban) {
		this.pecahKetuban = pecahKetuban;
	}

	public String getSuhuIbuDalamPersalinan() {
		return suhuIbuDalamPersalinan;
	}

	public void setSuhuIbuDalamPersalinan(String suhuIbuDalamPersalinan) {
		this.suhuIbuDalamPersalinan = suhuIbuDalamPersalinan;
	}
	
}
