| @@ -7,9 +7,11 @@ package de.uniluebeck.mi.projmi6.controller; | |||||
| import de.uniluebeck.mi.projmi6.db.DBHandler; | import de.uniluebeck.mi.projmi6.db.DBHandler; | ||||
| import de.uniluebeck.mi.projmi6.model.*; | import de.uniluebeck.mi.projmi6.model.*; | ||||
| import de.uniluebeck.mi.projmi6.view.DateTimePicker; | import de.uniluebeck.mi.projmi6.view.DateTimePicker; | ||||
| import javafx.beans.property.ObjectProperty; | |||||
| import javafx.beans.property.ReadOnlyObjectProperty; | import javafx.beans.property.ReadOnlyObjectProperty; | ||||
| import javafx.beans.property.SimpleObjectProperty; | import javafx.beans.property.SimpleObjectProperty; | ||||
| import javafx.collections.FXCollections; | import javafx.collections.FXCollections; | ||||
| import javafx.collections.ObservableList; | |||||
| import javafx.event.ActionEvent; | import javafx.event.ActionEvent; | ||||
| import javafx.fxml.FXML; | import javafx.fxml.FXML; | ||||
| import javafx.scene.control.Button; | import javafx.scene.control.Button; | ||||
| @@ -107,6 +109,22 @@ public class FallController { | |||||
| SimpleObjectProperty<State> state = new SimpleObjectProperty<>(State.VIEW); | SimpleObjectProperty<State> state = new SimpleObjectProperty<>(State.VIEW); | ||||
| public ObjectProperty<ObservableList<Diagnose>> diagnosenProperty(){ | |||||
| return fallHauptdiagnose.itemsProperty(); | |||||
| } | |||||
| public void setDiagnosen(ObservableList<Diagnose> list){ | |||||
| fallHauptdiagnose.setItems(list); | |||||
| } | |||||
| public ObservableList<Diagnose> getDiagnosen(){ | |||||
| return fallHauptdiagnose.getItems(); | |||||
| } | |||||
| @FXML | @FXML | ||||
| public void initialize(){ | public void initialize(){ | ||||
| fallEinweisenderArzt.disableProperty().bind(fallSelbsteinweisung.selectedProperty()); | fallEinweisenderArzt.disableProperty().bind(fallSelbsteinweisung.selectedProperty()); | ||||
| @@ -92,7 +92,7 @@ public class PatientTablesController { | |||||
| private TabPane patientOverviewTabPane; | private TabPane patientOverviewTabPane; | ||||
| private ObservableList<StationsUebersichtsItem> stationsUebersicht = FXCollections.observableArrayList(); | private ObservableList<StationsUebersichtsItem> stationsUebersicht = FXCollections.observableArrayList(); | ||||
| private FilteredList<StationsUebersichtsItem> stationsUebersichtsItemFilteredList = new FilteredList<StationsUebersichtsItem>(stationsUebersicht, | private FilteredList<StationsUebersichtsItem> stationsUebersichtsItemFilteredList = new FilteredList<StationsUebersichtsItem>(stationsUebersicht, | ||||
| item -> item.getStationEntlassung() == null || !item.getStationEntlassung().isAfter(LocalDate.now())); | |||||
| item -> item.getStationEntlassung() == null || item.getStationEntlassung().isAfter(LocalDate.now())); | |||||
| private Task loadStationsHistorieTask = null; | private Task loadStationsHistorieTask = null; | ||||
| private Task loadPatientTask = null; | private Task loadPatientTask = null; | ||||
| @FXML | @FXML | ||||
| @@ -18,6 +18,7 @@ public class Fall extends Version { | |||||
| private SimpleIntegerProperty hauptdiagnoseId = new SimpleIntegerProperty(this, "hauptdiagnoseId"); | private SimpleIntegerProperty hauptdiagnoseId = new SimpleIntegerProperty(this, "hauptdiagnoseId"); | ||||
| private SimpleStringProperty einweisenderArzt = new SimpleStringProperty(this, "einweiser"); | private SimpleStringProperty einweisenderArzt = new SimpleStringProperty(this, "einweiser"); | ||||
| private FallArt fallArt; | private FallArt fallArt; | ||||
| private SimpleBooleanProperty selbsteinweisung = new SimpleBooleanProperty(this, "selbsteinweisung"); | private SimpleBooleanProperty selbsteinweisung = new SimpleBooleanProperty(this, "selbsteinweisung"); | ||||
| private SimpleStringProperty versichertenNummer = new SimpleStringProperty(this, "versichertenNummer"); | private SimpleStringProperty versichertenNummer = new SimpleStringProperty(this, "versichertenNummer"); | ||||
| @@ -27,16 +28,28 @@ public class Fall extends Version { | |||||
| private SimpleObjectProperty<LocalDateTime> entlassungsDatum = new SimpleObjectProperty<>(this, "entlassungsDatum"); | private SimpleObjectProperty<LocalDateTime> entlassungsDatum = new SimpleObjectProperty<>(this, "entlassungsDatum"); | ||||
| private SimpleIntegerProperty fallID = new SimpleIntegerProperty(this, "fallid"); | private SimpleIntegerProperty fallID = new SimpleIntegerProperty(this, "fallid"); | ||||
| public void setVorstellDatum(LocalDateTime vorstellDatum) { | |||||
| this.vorstellDatum.set(vorstellDatum); | |||||
| } | |||||
| public LocalDateTime getVorstellDatum() { | public LocalDateTime getVorstellDatum() { | ||||
| return vorstellDatum.get(); | return vorstellDatum.get(); | ||||
| } | } | ||||
| public int getHauptdiagnoseId() { | |||||
| return hauptdiagnoseId.get(); | |||||
| } | |||||
| public void setVorstellDatum(LocalDateTime vorstellDatum) { | |||||
| this.vorstellDatum.set(vorstellDatum); | |||||
| public SimpleIntegerProperty hauptdiagnoseIdProperty() { | |||||
| return hauptdiagnoseId; | |||||
| } | } | ||||
| public void setHauptdiagnoseId(int hauptdiagnoseId) { | |||||
| this.hauptdiagnoseId.set(hauptdiagnoseId); | |||||
| } | |||||
| public SimpleObjectProperty<LocalDateTime> vorstellDatumProperty() { | public SimpleObjectProperty<LocalDateTime> vorstellDatumProperty() { | ||||
| return vorstellDatum; | return vorstellDatum; | ||||
| } | } | ||||