| @@ -7,6 +7,7 @@ package de.uniluebeck.mi.projmi6.controller; | |||||
| import de.uniluebeck.mi.projmi6.Main; | import de.uniluebeck.mi.projmi6.Main; | ||||
| import de.uniluebeck.mi.projmi6.model.Mitarbeiter; | import de.uniluebeck.mi.projmi6.model.Mitarbeiter; | ||||
| import de.uniluebeck.mi.projmi6.model.OpsCode; | import de.uniluebeck.mi.projmi6.model.OpsCode; | ||||
| import de.uniluebeck.mi.projmi6.model.Patient; | |||||
| import de.uniluebeck.mi.projmi6.view.DateTimePicker; | import de.uniluebeck.mi.projmi6.view.DateTimePicker; | ||||
| import javafx.event.ActionEvent; | import javafx.event.ActionEvent; | ||||
| import javafx.fxml.FXML; | import javafx.fxml.FXML; | ||||
| @@ -14,6 +15,11 @@ import javafx.scene.control.*; | |||||
| public class UntersuchungenController { | public class UntersuchungenController { | ||||
| /** | |||||
| * The examination that is shown in the edit window, or null if a new examination should be created. | |||||
| */ | |||||
| // private Untersuchung untersuchung = null; | |||||
| private MainController mainController; | private MainController mainController; | ||||
| @@ -74,6 +80,27 @@ public class UntersuchungenController { | |||||
| void clickedUntsSave(ActionEvent event) { | void clickedUntsSave(ActionEvent event) { | ||||
| } | } | ||||
| /* | |||||
| public void setUntersuchung(Untersuchung untersuchung){ | |||||
| this.untersuchung = untersuchung; | |||||
| if(untersuchung==null){ | |||||
| clearFields(); | |||||
| }else { | |||||
| copyUntersuchungDataIntoFields(); | |||||
| } | |||||
| }*/ | |||||
| /* | |||||
| private void copyUntersuchungDataIntoFields(){ | |||||
| untsList.setText(Integer.toString(patient.getPatID())); | |||||
| untsOpsCode.setText(patient.getGeburtsname()); | |||||
| untsArzt.setText(patient.getNachname()); | |||||
| untsCreator.setText(Integer.toString(patient.getErsteller())); | |||||
| untsCreateTime.setText(patient.getErstellDatumZeit().toString()); | |||||
| untsChanger.setText(Integer.toString(patient.getBearbeiter())); | |||||
| untsChangeTime.setText(patient.getBearbeitetDatumZeit().toString()); | |||||
| }*/ | |||||
| } | } | ||||
| @@ -57,4 +57,6 @@ public class Diagnose extends Version { | |||||
| public void setIcd10code(Icd10Code icd10code) { | public void setIcd10code(Icd10Code icd10code) { | ||||
| this.icd10code = icd10code; | this.icd10code = icd10code; | ||||
| } | } | ||||
| } | } | ||||
| @@ -0,0 +1,80 @@ | |||||
| package de.uniluebeck.mi.projmi6.model; | |||||
| import javafx.beans.property.SimpleBooleanProperty; | |||||
| import javafx.beans.property.SimpleIntegerProperty; | |||||
| import javafx.beans.property.SimpleObjectProperty; | |||||
| import javafx.beans.property.SimpleStringProperty; | |||||
| import java.time.LocalDateTime; | |||||
| /** | |||||
| * Created by 630030 on 15.11.2015. | |||||
| */ | |||||
| public class Untersuchung extends Version { | |||||
| private Mitarbeiter durchfuehrenderArzt; | |||||
| private Fall fall; | |||||
| private OpsCode opscode; | |||||
| private SimpleBooleanProperty storniert = new SimpleBooleanProperty(this, "storniert"); | |||||
| private SimpleObjectProperty<LocalDateTime> untersuchungsdatum = new SimpleObjectProperty<>(this, "untersuchungsdatum"); | |||||
| private SimpleIntegerProperty untersID = new SimpleIntegerProperty(this, "untersid"); | |||||
| public Mitarbeiter getDurchfuehrenderArzt() { | |||||
| return durchfuehrenderArzt; | |||||
| } | |||||
| public void setDurchfuehrenderArzt(Mitarbeiter durchfuehrenderArzt) { | |||||
| this.durchfuehrenderArzt = durchfuehrenderArzt; | |||||
| } | |||||
| public Fall getFall() { | |||||
| return fall; | |||||
| } | |||||
| public void setFall(Fall fall) { | |||||
| this.fall = fall; | |||||
| } | |||||
| public OpsCode getOpscode() { | |||||
| return opscode; | |||||
| } | |||||
| public void setOpscode(OpsCode opscode) { | |||||
| this.opscode = opscode; | |||||
| } | |||||
| public boolean getStorniert() { | |||||
| return storniert.get(); | |||||
| } | |||||
| public SimpleBooleanProperty storniertProperty() { | |||||
| return storniert; | |||||
| } | |||||
| public void setStorniert(boolean storniert) { | |||||
| this.storniert.set(storniert); | |||||
| } | |||||
| public LocalDateTime getUntersuchungsdatum() { | |||||
| return untersuchungsdatum.get(); | |||||
| } | |||||
| public SimpleObjectProperty<LocalDateTime> untersuchungsdatumProperty() { | |||||
| return untersuchungsdatum; | |||||
| } | |||||
| public void setUntersuchungsdatum(LocalDateTime untersuchungsdatum) { | |||||
| this.untersuchungsdatum.set(untersuchungsdatum); | |||||
| } | |||||
| public int getUntersID() { | |||||
| return untersID.get(); | |||||
| } | |||||
| public SimpleIntegerProperty untersIDProperty() { | |||||
| return untersID; | |||||
| } | |||||
| public void setUntersID(int untersID) { | |||||
| this.untersID.set(untersID); | |||||
| } | |||||
| } | |||||