Browse Source

HauptdiagnoseId im Fall

testBranch
Johannes Oehm 10 years ago
parent
commit
6168fe235c
3 changed files with 35 additions and 4 deletions
  1. +18
    -0
      src/main/java/de/uniluebeck/mi/projmi6/controller/FallController.java
  2. +1
    -1
      src/main/java/de/uniluebeck/mi/projmi6/controller/PatientTablesController.java
  3. +16
    -3
      src/main/java/de/uniluebeck/mi/projmi6/model/Fall.java

+ 18
- 0
src/main/java/de/uniluebeck/mi/projmi6/controller/FallController.java View File

@@ -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());


+ 1
- 1
src/main/java/de/uniluebeck/mi/projmi6/controller/PatientTablesController.java View File

@@ -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


+ 16
- 3
src/main/java/de/uniluebeck/mi/projmi6/model/Fall.java View File

@@ -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;
} }


Loading…
Cancel
Save