| @@ -27,7 +27,6 @@ public class Patient extends Version { | |||||
| private SimpleStringProperty cave = new SimpleStringProperty(this, "cave"); | private SimpleStringProperty cave = new SimpleStringProperty(this, "cave"); | ||||
| public int getPatID() { | public int getPatID() { | ||||
| return patID.get(); | return patID.get(); | ||||
| } | } | ||||
| @@ -210,6 +209,18 @@ public class Patient extends Version { | |||||
| this.geschlecht = geschlecht; | this.geschlecht = geschlecht; | ||||
| } | } | ||||
| public static Geschlecht parseChar(final char id) { | |||||
| switch (id) { | |||||
| case 'm': | |||||
| return MALE; | |||||
| case 'w': | |||||
| return FEMALE; | |||||
| case 'o': | |||||
| default: | |||||
| return OTHER; | |||||
| } | |||||
| } | |||||
| @Override | @Override | ||||
| public String toString() { | public String toString() { | ||||
| @@ -237,4 +248,4 @@ public class Patient extends Version { | |||||
| return familienstand; | return familienstand; | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| } | |||||