package com.jasamedika.medifirst2000.entities;

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.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class KeadaanUmumObsetri
 * 
 * @author Generator
 */
@Entity
@Table(name = "KeadaanUmumObstetriDetail_T")
public class KeadaanUmumObstetriDetail extends BaseMaster {

	@ManyToOne
	@JoinColumn(name = "papObstetriFk")
	@Caption(value = "Obstetri")
	@NotNull(message = "Obstetri Harus Diisi")
	private PapObstetri papObstetri;

	@Column(name = "papObsetriFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String papObstetriId;

	@ManyToOne
	@JoinColumn(name = "keadaanUmumObstetriFk")
	@Caption(value = "keadaanUmum")
	@NotNull(message = "keadaan Umum")
	private KeadaanUmumObstetri keadaanUmumObstetri;

	@Column(name = "keadaanUmumObstetriFk", insertable = false, updatable = false, nullable = false)
	private Integer keadaanUmumObstetriId;

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

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

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

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

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

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

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

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

	public PapObstetri getPapObstetri() {
		return papObstetri;
	}

	public void setPapObstetri(PapObstetri papObstetri) {
		this.papObstetri = papObstetri;
	}

	public String getPapObstetriId() {
		return papObstetriId;
	}

	public void setPapObstetriId(String papObstetriId) {
		this.papObstetriId = papObstetriId;
	}

	public KeadaanUmumObstetri getKeadaanUmumObstetri() {
		return keadaanUmumObstetri;
	}

	public void setKeadaanUmumObstetri(KeadaanUmumObstetri keadaanUmumObstetri) {
		this.keadaanUmumObstetri = keadaanUmumObstetri;
	}

	public Integer getKeadaanUmumObstetriId() {
		return keadaanUmumObstetriId;
	}

	public void setKeadaanUmumObstetriId(Integer keadaanUmumObstetriId) {
		this.keadaanUmumObstetriId = keadaanUmumObstetriId;
	}

	public String getDeskripsi() {
		return deskripsi;
	}

	public void setDeskripsi(String deskripsi) {
		this.deskripsi = deskripsi;
	}

	public String getValueJantung() {
		return valueJantung;
	}

	public void setValueJantung(String valueJantung) {
		this.valueJantung = valueJantung;
	}

	public String getValueParu() {
		return valueParu;
	}

	public void setValueParu(String valueParu) {
		this.valueParu = valueParu;
	}

	public String getValueKelainanSaraf() {
		return valueKelainanSaraf;
	}

	public void setValueKelainanSaraf(String valueKelainanSaraf) {
		this.valueKelainanSaraf = valueKelainanSaraf;
	}

	public String getValuePayudara() {
		return valuePayudara;
	}

	public void setValuePayudara(String valuePayudara) {
		this.valuePayudara = valuePayudara;
	}

	public String getValueKelainanOrtopedik() {
		return valueKelainanOrtopedik;
	}

	public void setValueKelainanOrtopedik(String valueKelainanOrtopedik) {
		this.valueKelainanOrtopedik = valueKelainanOrtopedik;
	}

	public String getValueLainLain() {
		return valueLainLain;
	}

	public void setValueLainLain(String valueLainLain) {
		this.valueLainLain = valueLainLain;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.keadaanumumobstetridetail_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.keadaanumumobstetridetail_m_id_seq", sequenceName = "public.keadaanumumobstetridetail_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}