package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "DataPemeriksaanPraKerja_T")
public class DataPemeriksaanPraKerja extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectHasilPemeriksaanPraKerjaFk")
	@NotNull(message = "HasilPemeriksaanPraKerja tidak boleh kosong")
	@Caption(value = "HasilPemeriksaanPraKerja")
	private HasilPemeriksaanPraKerja hasilPemeriksaanPraKerja;

	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false, nullable = false)
	private String hasilPemeriksaanPraKerjaId;

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

	@Caption(value = "tekananDarah")
	@Column(name = "tekananDarah", length = 20)
	private String tekananDarah;

	@Caption(value = "pernapasan")
	@Column(name = "pernapasan", length = 20)
	private String pernapasan;

	@Caption(value = "nadi")
	@Column(name = "nadi", length = 20)
	private String nadi;

	@Caption(value = "suhu")
	@Column(name = "suhu", length = 20)
	private String suhu;

	@Caption(value = "berat")
	@Column(name = "berat", length = 20)
	private String berat;

	@Caption(value = "tinggiBadan")
	@Column(name = "tinggiBadan", length = 20)
	private String tinggiBadan;

}
