package com.jasamedika.medifirst2000.vo;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.entities.TransferPasienInternal;
import com.jasamedika.medifirst2000.helper.Caption;

public class ResikoJatuhDetailVO extends BaseTransactionVO {
	
	@ManyToOne
	@JoinColumn(name = "ResikoJatuhFk")
	@NotNull(message = "Resiko Jatuh tidak boleh kosong")
	private ResikoJatuhVO resikoJatuh;
	
	@Column(name = "ResikoJatuhFk", insertable = false, updatable = false)
	private Integer resikoJatuhId;
	
	@ManyToOne
	@JoinColumn(name = "TransferPasienInternalFk", nullable=true)
	private TransferPasienInternalVO transferPasienInternal;
	
	@Column(name = "TransferPasienInternalFk", insertable = false, updatable = false, nullable = true)
	private String transferPasienInternalId;
	
	@NotNull(message = "Is Nilai tidak boleh kosong")
	@Column(name = "isNilai")
	@Caption(value = "Is Nilai")
	private Boolean isNilai;	

	public ResikoJatuhVO getResikoJatuh() {
		return resikoJatuh;
	}

	public void setResikoJatuh(ResikoJatuhVO resikoJatuh) {
		this.resikoJatuh = resikoJatuh;
	}

	public Boolean getIsNilai() {
		return isNilai;
	}

	public void setIsNilai(Boolean isNilai) {
		this.isNilai = isNilai;
	}

	public TransferPasienInternalVO getTransferPasienInternal() {
		return transferPasienInternal;
	}

	public void setTransferPasienInternal(TransferPasienInternalVO transferPasienInternal) {
		this.transferPasienInternal = transferPasienInternal;
	}

	public Integer getResikoJatuhId() {
		return resikoJatuhId;
	}

	public void setResikoJatuhId(Integer resikoJatuhId) {
		this.resikoJatuhId = resikoJatuhId;
	}

	public String getTransferPasienInternalId() {
		return transferPasienInternalId;
	}

	public void setTransferPasienInternalId(String transferPasienInternalId) {
		this.transferPasienInternalId = transferPasienInternalId;
	}
	

}
