| @@ -0,0 +1,7 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| /** | |||
| * Created by 627933 on 12.11.15. | |||
| */ | |||
| public class Diagnose { | |||
| } | |||
| @@ -0,0 +1,137 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| import javafx.beans.property.SimpleBooleanProperty; | |||
| import javafx.beans.property.SimpleIntegerProperty; | |||
| import javafx.beans.property.SimpleStringProperty; | |||
| import java.text.SimpleDateFormat; | |||
| /** | |||
| * Created by 627933 on 12.11.15. | |||
| */ | |||
| public class Fall { | |||
| private Patient patient; | |||
| private Kasse kasse; | |||
| private Diagnose hauptDiagnose; | |||
| private Mitarbeiter einweisenderArzt; | |||
| private Enum<FallArt> fallArt; | |||
| private SimpleBooleanProperty selbsteinweisung = new SimpleBooleanProperty(this, "selbsteinweisung"); | |||
| private SimpleStringProperty versichertenNummer = new SimpleStringProperty(this, "versichertenNummer"); | |||
| private SimpleBooleanProperty storniert = new SimpleBooleanProperty(this, "storniert"); | |||
| private SimpleStringProperty vorstellDatum = new SimpleStringProperty(this, "vorstellDatum"); | |||
| private SimpleStringProperty aufnahmeDatum = new SimpleStringProperty(this, "aufnahmeDatum"); | |||
| private SimpleStringProperty entlassungsDatum = new SimpleStringProperty(this, "entlassungsDatum"); | |||
| public Patient getPatient() { | |||
| return patient; | |||
| } | |||
| public void setPatient(Patient patient) { | |||
| this.patient = patient; | |||
| } | |||
| public Kasse getKasse() { | |||
| return kasse; | |||
| } | |||
| public void setKasse(Kasse kasse) { | |||
| this.kasse = kasse; | |||
| } | |||
| public Diagnose getHauptDiagnose() { | |||
| return hauptDiagnose; | |||
| } | |||
| public void setHauptDiagnose(Diagnose hauptDiagnose) { | |||
| this.hauptDiagnose = hauptDiagnose; | |||
| } | |||
| public Mitarbeiter getEinweisenderArzt() { | |||
| return einweisenderArzt; | |||
| } | |||
| public void setEinweisenderArzt(Mitarbeiter einweisenderArzt) { | |||
| this.einweisenderArzt = einweisenderArzt; | |||
| } | |||
| public Enum<FallArt> getFallArt() { | |||
| return fallArt; | |||
| } | |||
| public void setFallArt(Enum<FallArt> fallArt) { | |||
| this.fallArt = fallArt; | |||
| } | |||
| public boolean getSelbsteinweisung() { | |||
| return selbsteinweisung.get(); | |||
| } | |||
| public SimpleBooleanProperty selbsteinweisungProperty() { | |||
| return selbsteinweisung; | |||
| } | |||
| public void setSelbsteinweisung(boolean selbsteinweisung) { | |||
| this.selbsteinweisung.set(selbsteinweisung); | |||
| } | |||
| public String getVersichertenNummer() { | |||
| return versichertenNummer.get(); | |||
| } | |||
| public SimpleStringProperty versichertenNummerProperts() { | |||
| return versichertenNummer; | |||
| } | |||
| public void setVersichertenNummer(String versichertenNummer) { | |||
| this.versichertenNummer.set(versichertenNummer); | |||
| } | |||
| public boolean getStorniert() { | |||
| return storniert.get(); | |||
| } | |||
| public SimpleBooleanProperty storniertProperty() { | |||
| return storniert; | |||
| } | |||
| public void setStorniert(boolean storniert) { | |||
| this.storniert.set(storniert); | |||
| } | |||
| public String getVorstellDatum() { | |||
| return vorstellDatum.get(); | |||
| } | |||
| public SimpleStringProperty vorstellDatumProperty() { | |||
| return vorstellDatum; | |||
| } | |||
| public void setVorstellDatum(String vorstellDatum) { | |||
| this.vorstellDatum.set(vorstellDatum); | |||
| } | |||
| public String getAufnahmeDatum() { | |||
| return aufnahmeDatum.get(); | |||
| } | |||
| public SimpleStringProperty aufnahmeDatumProperty() { | |||
| return aufnahmeDatum; | |||
| } | |||
| public void setAufnahmeDatum(String aufnahmeDatum) { | |||
| this.aufnahmeDatum.set(aufnahmeDatum); | |||
| } | |||
| public String getEntlassungsDatum() { | |||
| return entlassungsDatum.get(); | |||
| } | |||
| public SimpleStringProperty entlassungsDatumProperty() { | |||
| return entlassungsDatum; | |||
| } | |||
| public void setEntlassungsDatum(String entlassungsDatum) { | |||
| this.entlassungsDatum.set(entlassungsDatum); | |||
| } | |||
| } | |||
| @@ -0,0 +1,18 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| /** | |||
| * Created by 627933 on 12.11.15. | |||
| */ | |||
| public enum FallArt { | |||
| AMBULANT('amb', "ambulant"), | |||
| STATIONAER('stat', "stationaer"); | |||
| private final char id; | |||
| private final String fallArt; | |||
| FallArt(char id, String fallArt) { | |||
| this.id = id; | |||
| this.fallArt = fallArt; | |||
| } | |||
| } | |||
| @@ -0,0 +1,7 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| /** | |||
| * Created by 627933 on 12.11.15. | |||
| */ | |||
| public class Kasse { | |||
| } | |||
| @@ -0,0 +1,7 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| /** | |||
| * Created by 627933 on 12.11.15. | |||
| */ | |||
| public class Mitarbeiter { | |||
| } | |||
| @@ -1,18 +1,227 @@ | |||
| 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 { | |||
| private SimpleStringProperty vorname; | |||
| private SimpleStringProperty nachname; | |||
| private SimpleStringProperty geburtsname; | |||
| private SimpleStringProperty strasse; | |||
| private SimpleStringProperty hausnummer; | |||
| private SimpleStringProperty plz; | |||
| private SimpleStringProperty ort; | |||
| 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; | |||
| } | |||
| } | |||
| 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; | |||
| } | |||
| } | |||
| } | |||
| @@ -0,0 +1,61 @@ | |||
| package de.uniluebeck.mi.projmi6.model; | |||
| import javafx.beans.property.SimpleStringProperty; | |||
| /** | |||
| * Created by 626947 on 12.11.15. | |||
| */ | |||
| public class Version { | |||
| private SimpleStringProperty ersteller = new SimpleStringProperty(this, "ersteller"); | |||
| private SimpleStringProperty erstellDatumZeit = new SimpleStringProperty(this, "erstellDatumZeit"); | |||
| private SimpleStringProperty bearbeiter = new SimpleStringProperty(this, "bearbeiter"); | |||
| private SimpleStringProperty bearbeitetDatumZeit = new SimpleStringProperty(this, "bearbeiterDatumZeit"); | |||
| public String getErsteller() { | |||
| return ersteller.get(); | |||
| } | |||
| public void setErsteller(String ersteller) { | |||
| this.ersteller.set(ersteller); | |||
| } | |||
| public SimpleStringProperty erstellerProperty() { | |||
| return ersteller; | |||
| } | |||
| public String getErstellDatumZeit() { | |||
| return erstellDatumZeit.get(); | |||
| } | |||
| public void setErstellDatumZeit(String erstellDatumZeit) { | |||
| this.erstellDatumZeit.set(erstellDatumZeit); | |||
| } | |||
| public SimpleStringProperty erstellDatumZeitProperty() { | |||
| return erstellDatumZeit; | |||
| } | |||
| public String getBearbeiter() { | |||
| return bearbeiter.get(); | |||
| } | |||
| public void setBearbeiter(String bearbeiter) { | |||
| this.bearbeiter.set(bearbeiter); | |||
| } | |||
| public SimpleStringProperty bearbeiterProperty() { | |||
| return bearbeiter; | |||
| } | |||
| public String getBearbeitetDatumZeit() { | |||
| return bearbeitetDatumZeit.get(); | |||
| } | |||
| public void setBearbeitetDatumZeit(String bearbeitetDatumZeit) { | |||
| this.bearbeitetDatumZeit.set(bearbeitetDatumZeit); | |||
| } | |||
| public SimpleStringProperty bearbeitetDatumZeitProperty() { | |||
| return bearbeitetDatumZeit; | |||
| } | |||
| } | |||