package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "LisOrder")
public class LisOrderSysmex extends BaseBridging {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	@Column(name = "flag")
	@Caption(value = "flag")
	private Integer flag;

}
