package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;

import static javax.persistence.GenerationType.AUTO;

/**
 * class LisOrder
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "Lis_Order")
public class LisOrder extends BaseModel {

	@Column(name = "message_dt", length = 14)
	@Caption(value = "message_dt")
	private String messageData;

	@Column(name = "pid", length = 16)
	@Caption(value = "pid")
	private String patientId;

	@Column(name = "pname", length = 50)
	@Caption(value = "pname")
	private String patientName;

	@Column(name = "address1", length = 50)
	@Caption(value = "address1")
	private String address1;

	@Column(name = "address2", length = 50)
	@Caption(value = "address2")
	private String address2;

	@Column(name = "address3", length = 50)
	@Caption(value = "address3")
	private String address3;

	@Column(name = "address4", length = 50)
	@Caption(value = "address4")
	private String address4;

	@Column(name = "ptype", length = 2)
	@Caption(value = "ptype")
	private String patientType;

	@Column(name = "birth_dt", length = 14)
	@Caption(value = "birth_dt")
	private String birthData;

	@Column(name = "sex", length = 1)
	@Caption(value = "sex")
	private String sex;

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

	@Column(name = "request_dt", length = 14)
	@Caption(value = "request_dt")
	private String requestData;

	@Column(name = "source", length = 57)
	@Caption(value = "source")
	private String source;

	@Column(name = "clinician", length = 57)
	@Caption(value = "clinician")
	private String clinician;

	@Column(name = "room_no", length = 6)
	@Caption(value = "room_no")
	private String roomNumber;

	@Column(name = "priority", length = 1)
	@Caption(value = "priority")
	private String priority;

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

	@Column(name = "order_testid", length = 2000)
	@Caption(value = "order_testid")
	private String orderTestId;

	@Id
	@GeneratedValue(strategy = AUTO)
	@Column(name = "id")
	protected Integer id;

}
