|
|
|
@@ -5,14 +5,13 @@ package de.uniluebeck.mi.projmi6.controller; |
|
|
|
*/ |
|
|
|
|
|
|
|
import de.uniluebeck.mi.projmi6.model.*; |
|
|
|
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; |
|
|
|
import javafx.scene.control.*; |
|
|
|
import javafx.event.ActionEvent; |
|
|
|
import javafx.scene.control.ComboBox; |
|
|
|
import javafx.scene.control.Label; |
|
|
|
import javafx.scene.control.TextArea; |
|
|
|
|
|
|
|
public class DiagnoseController { |
|
|
|
|
|
|
|
@@ -22,11 +21,33 @@ public class DiagnoseController { |
|
|
|
this.mainController = mainController; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ObservableList<Diagnose> getDiagnosen() { |
|
|
|
return diagnosen.get(); |
|
|
|
} |
|
|
|
|
|
|
|
public SimpleObjectProperty<ObservableList<Diagnose>> diagnosenProperty() { |
|
|
|
return diagnosen; |
|
|
|
} |
|
|
|
|
|
|
|
public void setDiagnosen(ObservableList<Diagnose> diagnosen) { |
|
|
|
this.diagnosen.set(diagnosen); |
|
|
|
} |
|
|
|
|
|
|
|
private SimpleObjectProperty<ObservableList<Diagnose>> diagnosen = new SimpleObjectProperty<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@FXML |
|
|
|
private ListView diagnoseList; |
|
|
|
|
|
|
|
@FXML |
|
|
|
public void initialize(){ |
|
|
|
diagDiagnose.itemsProperty().bind(mainController.icd10CodesProperty()); |
|
|
|
diagDiagnoseArt.setItems(FXCollections.observableArrayList(DiagArt.values())); |
|
|
|
diagDiagnoseArzt.itemsProperty().bind(mainController.mitarbeiterProperty()); |
|
|
|
diagnoseList.itemsProperty().bind(diagnosen); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|