aboutsummaryrefslogtreecommitdiff
path: root/src/com/example/surgerylog/MedLogInfo.java
blob: c59bd2998fe63d4baf0a734a761fa8766900e9f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.example.surgerylog;

import java.io.Serializable;
import java.util.Calendar;

public class MedLogInfo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1109021350324730228L;

	private static final int MONTH_STARTS_IN_0 = 1;
	
	public Long ProcessNumber;
	public Long SurgeryNumber;
	
	public String GetFormatedDate()
	{
		return Date.get(Calendar.DAY_OF_MONTH) + "/"
				+ (Date.get(Calendar.MONTH) + MONTH_STARTS_IN_0) + "/"
				+ Date.get(Calendar.YEAR);
	}
	public Calendar Date = Calendar.getInstance();
	
	public String Type;
	public String SubType;
	public String SubSubType;
	public String Pathology;
	public String Intervention;
	
	public String FirstAider;
	public String Anesthesia;
	public String Place;
	public Boolean Urgency;
	public String Notes;
	
	public MedLogInfo()
	{
		super();
	}
	
	public MedLogInfo(String infoType, String infoSubType, String infoSubSubType, String infoPathology, String infoIntervention) {
		super();
		this.Type = infoType.trim();
		this.SubType = infoSubType.trim();
		this.SubSubType = infoSubSubType.trim();
		this.Pathology = infoPathology.trim();
		this.Intervention = infoIntervention.trim();
	}
}