Im Rahmen der Veranstaltung "CS3330 - Projektpraktikum MedizinischeInformatik" an der Universität zu Lübeck entstandenes Krankenhausinformationssystem (KIS).
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

241 行
6.0 KiB

  1. package de.uniluebeck.mi.projmi6.model;
  2. import javafx.beans.property.SimpleIntegerProperty;
  3. import javafx.beans.property.SimpleObjectProperty;
  4. import javafx.beans.property.SimpleStringProperty;
  5. import java.time.LocalDate;
  6. /**
  7. * Created by 626947 on 12.11.15.
  8. */
  9. public class Patient extends Version {
  10. private SimpleIntegerProperty patID = new SimpleIntegerProperty(this, "patid");
  11. private SimpleStringProperty vorname = new SimpleStringProperty(this, "vorname");
  12. private SimpleStringProperty nachname = new SimpleStringProperty(this, "nachname");
  13. private SimpleStringProperty geburtsname = new SimpleStringProperty(this, "geburtsname");
  14. private SimpleStringProperty strasse = new SimpleStringProperty(this, "strasse");
  15. private SimpleStringProperty hausnummer = new SimpleStringProperty(this, "hausnummer");
  16. private SimpleStringProperty plz = new SimpleStringProperty(this, "plz");
  17. private SimpleStringProperty ort = new SimpleStringProperty(this, "ort");
  18. private SimpleStringProperty telefon = new SimpleStringProperty(this, "telefon");
  19. private SimpleStringProperty versichertennummer = new SimpleStringProperty(this, "versichertennummer");
  20. private SimpleObjectProperty<LocalDate> geburtsdatum = new SimpleObjectProperty<LocalDate>(this, "geburtsdatum");
  21. private SimpleObjectProperty<Geschlecht> geschlecht = new SimpleObjectProperty<Geschlecht>(this, "geschlecht");
  22. private SimpleObjectProperty<Familienstand> familienstand = new SimpleObjectProperty<Familienstand>(this, "familienstand");
  23. private SimpleStringProperty cave = new SimpleStringProperty(this, "cave");
  24. public int getPatID() {
  25. return patID.get();
  26. }
  27. public void setPatID(int patID) {
  28. this.patID.set(patID);
  29. }
  30. public SimpleIntegerProperty patIDProperty() {
  31. return patID;
  32. }
  33. public String getVorname() {
  34. return vorname.get();
  35. }
  36. public void setVorname(String vorname) {
  37. this.vorname.set(vorname);
  38. }
  39. public SimpleStringProperty vornameProperty() {
  40. return vorname;
  41. }
  42. public String getNachname() {
  43. return nachname.get();
  44. }
  45. public void setNachname(String nachname) {
  46. this.nachname.set(nachname);
  47. }
  48. public SimpleStringProperty nachnameProperty() {
  49. return nachname;
  50. }
  51. public String getGeburtsname() {
  52. return geburtsname.get();
  53. }
  54. public void setGeburtsname(String geburtsname) {
  55. this.geburtsname.set(geburtsname);
  56. }
  57. public SimpleStringProperty geburtsnameProperty() {
  58. return geburtsname;
  59. }
  60. public String getStrasse() {
  61. return strasse.get();
  62. }
  63. public void setStrasse(String strasse) {
  64. this.strasse.set(strasse);
  65. }
  66. public SimpleStringProperty strasseProperty() {
  67. return strasse;
  68. }
  69. public String getHausnummer() {
  70. return hausnummer.get();
  71. }
  72. public void setHausnummer(String hausnummer) {
  73. this.hausnummer.set(hausnummer);
  74. }
  75. public SimpleStringProperty hausnummerProperty() {
  76. return hausnummer;
  77. }
  78. public String getPlz() {
  79. return plz.get();
  80. }
  81. public void setPlz(String plz) {
  82. this.plz.set(plz);
  83. }
  84. public SimpleStringProperty plzProperty() {
  85. return plz;
  86. }
  87. public String getOrt() {
  88. return ort.get();
  89. }
  90. public void setOrt(String ort) {
  91. this.ort.set(ort);
  92. }
  93. public SimpleStringProperty ortProperty() {
  94. return ort;
  95. }
  96. public String getTelefon() {
  97. return telefon.get();
  98. }
  99. public void setTelefon(String telefon) {
  100. this.telefon.set(telefon);
  101. }
  102. public SimpleStringProperty telefonProperty() {
  103. return telefon;
  104. }
  105. public String getVersichertennummer() {
  106. return versichertennummer.get();
  107. }
  108. public void setVersichertennummer(String versichertennummer) {
  109. this.versichertennummer.set(versichertennummer);
  110. }
  111. public SimpleStringProperty versichertennummerProperty() {
  112. return versichertennummer;
  113. }
  114. public LocalDate getGeburtsdatum() {
  115. return geburtsdatum.get();
  116. }
  117. public void setGeburtsdatum(LocalDate geburtsdatum) {
  118. this.geburtsdatum.set(geburtsdatum);
  119. }
  120. public SimpleObjectProperty<LocalDate> geburtsdatumProperty() {
  121. return geburtsdatum;
  122. }
  123. public Geschlecht getGeschlecht() {
  124. return geschlecht.get();
  125. }
  126. public void setGeschlecht(Geschlecht geschlecht) {
  127. this.geschlecht.set(geschlecht);
  128. }
  129. public SimpleObjectProperty<Geschlecht> geschlechtProperty() {
  130. return geschlecht;
  131. }
  132. public Familienstand getFamilienstand() {
  133. return familienstand.get();
  134. }
  135. public void setFamilienstand(Familienstand familienstand) {
  136. this.familienstand.set(familienstand);
  137. }
  138. public SimpleObjectProperty<Familienstand> familienstandProperty() {
  139. return familienstand;
  140. }
  141. public String getCave() {
  142. return cave.get();
  143. }
  144. public void setCave(String cave) {
  145. this.cave.set(cave);
  146. }
  147. public SimpleStringProperty caveProperty() {
  148. return cave;
  149. }
  150. public enum Geschlecht {
  151. MALE('m', "männlich"),
  152. FEMALE('w', "weiblich"),
  153. OTHER('o', "andere");
  154. private final char id;
  155. private final String geschlecht;
  156. Geschlecht(char id, String geschlecht) {
  157. this.id = id;
  158. this.geschlecht = geschlecht;
  159. }
  160. @Override
  161. public String toString() {
  162. return geschlecht;
  163. }
  164. }
  165. public enum Familienstand {
  166. LEDIG('l', "ledig"),
  167. GETRANNT('g', "getrennt"),
  168. VERHEIRATET('v', "verheiratet"),
  169. VERWITWET('w', "verwitwet");
  170. private final char id;
  171. private final String familienstand;
  172. Familienstand(char id, String familienstand) {
  173. this.id = id;
  174. this.familienstand = familienstand;
  175. }
  176. @Override
  177. public String toString() {
  178. return familienstand;
  179. }
  180. }
  181. }