aboutsummaryrefslogtreecommitdiff
path: root/old_native_project/src/com/example/surgerylog/MedLogInfo.java
diff options
context:
space:
mode:
authordam <dam@gudinoff>2021-12-01 02:26:44 +0000
committerdam <dam@gudinoff>2021-12-01 02:26:44 +0000
commit2e5c0de21b0f35531e3d42e63c27df80cf3fad02 (patch)
tree8874e7942f1a5fa0173784c1ff04558703e53d7d /old_native_project/src/com/example/surgerylog/MedLogInfo.java
parent697e1ba3c4cb0a96c4584f1553de368d46287ab7 (diff)
downloadsurgery-log-2e5c0de21b0f35531e3d42e63c27df80cf3fad02.tar.zst
surgery-log-2e5c0de21b0f35531e3d42e63c27df80cf3fad02.zip
Convert from native to godot
Diffstat (limited to 'old_native_project/src/com/example/surgerylog/MedLogInfo.java')
-rwxr-xr-xold_native_project/src/com/example/surgerylog/MedLogInfo.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/old_native_project/src/com/example/surgerylog/MedLogInfo.java b/old_native_project/src/com/example/surgerylog/MedLogInfo.java
new file mode 100755
index 0000000..c59bd29
--- /dev/null
+++ b/old_native_project/src/com/example/surgerylog/MedLogInfo.java
@@ -0,0 +1,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();
+ }
+}