|
- package de.uniluebeck.mi.projmi6.model;
-
- import javafx.beans.property.SimpleIntegerProperty;
- import javafx.beans.property.SimpleObjectProperty;
- import javafx.beans.property.SimpleStringProperty;
-
- import java.time.LocalDate;
-
- /**
- * Created by 626947 on 12.11.15.
- */
- public class Patient extends Version {
-
- private SimpleIntegerProperty patID = new SimpleIntegerProperty(this, "patid");
- private SimpleStringProperty vorname = new SimpleStringProperty(this, "vorname");
- private SimpleStringProperty nachname = new SimpleStringProperty(this, "nachname");
- private SimpleStringProperty geburtsname = new SimpleStringProperty(this, "geburtsname");
- private SimpleStringProperty strasse = new SimpleStringProperty(this, "strasse");
- private SimpleStringProperty hausnummer = new SimpleStringProperty(this, "hausnummer");
- private SimpleStringProperty plz = new SimpleStringProperty(this, "plz");
- private SimpleStringProperty ort = new SimpleStringProperty(this, "ort");
- private SimpleStringProperty telefon = new SimpleStringProperty(this, "telefon");
- private SimpleStringProperty versichertennummer = new SimpleStringProperty(this, "versichertennummer");
- private SimpleObjectProperty<LocalDate> geburtsdatum = new SimpleObjectProperty<LocalDate>(this, "geburtsdatum");
- private SimpleObjectProperty<Geschlecht> geschlecht = new SimpleObjectProperty<Geschlecht>(this, "geschlecht");
- private SimpleObjectProperty<Familienstand> familienstand = new SimpleObjectProperty<Familienstand>(this, "familienstand");
- private SimpleStringProperty cave = new SimpleStringProperty(this, "cave");
-
-
-
- public int getPatID() {
- return patID.get();
- }
-
- public void setPatID(int patID) {
- this.patID.set(patID);
- }
-
- public SimpleIntegerProperty patIDProperty() {
- return patID;
- }
-
- public String getVorname() {
- return vorname.get();
- }
-
- public void setVorname(String vorname) {
- this.vorname.set(vorname);
- }
-
- public SimpleStringProperty vornameProperty() {
- return vorname;
- }
-
- public String getNachname() {
- return nachname.get();
- }
-
- public void setNachname(String nachname) {
- this.nachname.set(nachname);
- }
-
- public SimpleStringProperty nachnameProperty() {
- return nachname;
- }
-
- public String getGeburtsname() {
- return geburtsname.get();
- }
-
- public void setGeburtsname(String geburtsname) {
- this.geburtsname.set(geburtsname);
- }
-
- public SimpleStringProperty geburtsnameProperty() {
- return geburtsname;
- }
-
- public String getStrasse() {
- return strasse.get();
- }
-
- public void setStrasse(String strasse) {
- this.strasse.set(strasse);
- }
-
- public SimpleStringProperty strasseProperty() {
- return strasse;
- }
-
- public String getHausnummer() {
- return hausnummer.get();
- }
-
- public void setHausnummer(String hausnummer) {
- this.hausnummer.set(hausnummer);
- }
-
- public SimpleStringProperty hausnummerProperty() {
- return hausnummer;
- }
-
- public String getPlz() {
- return plz.get();
- }
-
- public void setPlz(String plz) {
- this.plz.set(plz);
- }
-
- public SimpleStringProperty plzProperty() {
- return plz;
- }
-
- public String getOrt() {
- return ort.get();
- }
-
- public void setOrt(String ort) {
- this.ort.set(ort);
- }
-
- public SimpleStringProperty ortProperty() {
- return ort;
- }
-
- public String getTelefon() {
- return telefon.get();
- }
-
- public void setTelefon(String telefon) {
- this.telefon.set(telefon);
- }
-
- public SimpleStringProperty telefonProperty() {
- return telefon;
- }
-
- public String getVersichertennummer() {
- return versichertennummer.get();
- }
-
- public void setVersichertennummer(String versichertennummer) {
- this.versichertennummer.set(versichertennummer);
- }
-
- public SimpleStringProperty versichertennummerProperty() {
- return versichertennummer;
- }
-
- public LocalDate getGeburtsdatum() {
- return geburtsdatum.get();
- }
-
- public void setGeburtsdatum(LocalDate geburtsdatum) {
- this.geburtsdatum.set(geburtsdatum);
- }
-
- public SimpleObjectProperty<LocalDate> geburtsdatumProperty() {
- return geburtsdatum;
- }
-
- public Geschlecht getGeschlecht() {
- return geschlecht.get();
- }
-
- public void setGeschlecht(Geschlecht geschlecht) {
- this.geschlecht.set(geschlecht);
- }
-
- public SimpleObjectProperty<Geschlecht> geschlechtProperty() {
- return geschlecht;
- }
-
- public Familienstand getFamilienstand() {
- return familienstand.get();
- }
-
- public void setFamilienstand(Familienstand familienstand) {
- this.familienstand.set(familienstand);
- }
-
- public SimpleObjectProperty<Familienstand> familienstandProperty() {
- return familienstand;
- }
-
- public String getCave() {
- return cave.get();
- }
-
- public void setCave(String cave) {
- this.cave.set(cave);
- }
-
- public SimpleStringProperty caveProperty() {
- return cave;
- }
-
- public enum Geschlecht {
-
- MALE('m', "männlich"),
- FEMALE('w', "weiblich"),
- OTHER('o', "andere");
-
- private final char id;
- private final String geschlecht;
-
- Geschlecht(char id, String geschlecht) {
- this.id = id;
- this.geschlecht = geschlecht;
- }
-
-
- @Override
- public String toString() {
- return geschlecht;
- }
- }
-
- public enum Familienstand {
-
- LEDIG('l', "ledig"),
- GETRANNT('g', "getrennt"),
- VERHEIRATET('v', "verheiratet"),
- VERWITWET('w', "verwitwet");
-
- private final char id;
- private final String familienstand;
-
- Familienstand(char id, String familienstand) {
- this.id = id;
- this.familienstand = familienstand;
- }
-
- @Override
- public String toString() {
- return familienstand;
- }
- }
- }
|