ソースを参照

HauptdiagnoseId im Fall

testBranch
Johannes Oehm 10年前
コミット
6168fe235c
3個のファイルの変更35行の追加4行の削除
  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 ファイルの表示

@@ -7,9 +7,11 @@ package de.uniluebeck.mi.projmi6.controller;
import de.uniluebeck.mi.projmi6.db.DBHandler;
import de.uniluebeck.mi.projmi6.model.*;
import de.uniluebeck.mi.projmi6.view.DateTimePicker;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
@@ -107,6 +109,22 @@ public class FallController {
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
public void initialize(){
fallEinweisenderArzt.disableProperty().bind(fallSelbsteinweisung.selectedProperty());


+ 1
- 1
src/main/java/de/uniluebeck/mi/projmi6/controller/PatientTablesController.java ファイルの表示

@@ -92,7 +92,7 @@ public class PatientTablesController {
private TabPane patientOverviewTabPane;
private ObservableList<StationsUebersichtsItem> stationsUebersicht = FXCollections.observableArrayList();
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 loadPatientTask = null;
@FXML


+ 16
- 3
src/main/java/de/uniluebeck/mi/projmi6/model/Fall.java ファイルの表示

@@ -18,6 +18,7 @@ public class Fall extends Version {
private SimpleIntegerProperty hauptdiagnoseId = new SimpleIntegerProperty(this, "hauptdiagnoseId");

private SimpleStringProperty einweisenderArzt = new SimpleStringProperty(this, "einweiser");

private FallArt fallArt;
private SimpleBooleanProperty selbsteinweisung = new SimpleBooleanProperty(this, "selbsteinweisung");
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 SimpleIntegerProperty fallID = new SimpleIntegerProperty(this, "fallid");

public void setVorstellDatum(LocalDateTime vorstellDatum) {
this.vorstellDatum.set(vorstellDatum);

}



public LocalDateTime getVorstellDatum() {
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() {
return vorstellDatum;
}


読み込み中…
キャンセル
保存