Skip to content

Commit

Permalink
Corrections to sample data
Browse files Browse the repository at this point in the history
Currently, when there is no data file, the sample data being loaded in
consists of tags with uppercase which is wrong.
  • Loading branch information
NeoHW committed Mar 27, 2024
1 parent 5de8631 commit 6f6606f
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,34 @@
public class SampleDataUtil {
public static Patient[] getSamplePatients() {
return new Patient[] {
new Patient(new PatientHospitalId("12345"), new Name("Alex Yeoh Jia Jun"), new PreferredName("Alex"),
new FoodPreference("Curry chicken"),
new FamilyCondition("Stable, Has 2 sons that visits him regularly"),
new Hobby("Singing karaoke"),
getTagSet("diabetes"), getEventSet(new String[] {"Birthday"}, new String[] {"20-01-2022"})),
new Patient(new PatientHospitalId("12346"), new Name("Bernice Yu Sheng Huat"), new PreferredName("Bern"),
new FoodPreference("Char Kuay Tiao, Black Carrot Cake"),
new FamilyCondition("Lives alone, no family members around"), new Hobby("Playing Mahjong"),
getTagSet("HighBloodPressure"),
getEventSet(new String[] {"Family Visit"}, new String[] {"30-03-2022, 15:00 - 18:00"})),
new Patient(new PatientHospitalId("12347"), new Name("Mary Jane"), new PreferredName("Mary"),
new FoodPreference("Korean"),
new FamilyCondition("Lives with only daughter, quarrels regularly with daughter"),
new Hobby("Watching Drama"),
getTagSet("heart")),
new Patient(new PatientHospitalId("12348"), new Name("David Li"), new PreferredName("David"),
new FoodPreference("Bak Kut Teh"), new FamilyCondition("Son visits him every weekend"),
new Hobby("Plays erhu"),
getTagSet("diabetes", "skin")),
new Patient(new PatientHospitalId("12349"), new Name("Irfan Ibrahim"), new PreferredName("Fan"),
new FoodPreference("Roti Prata"), new FamilyCondition("Children encountered accident 2 months ago"),
new Hobby("Plays badminton"),
getTagSet("tumour")),
new Patient(new PatientHospitalId("12350"), new Name("Roy Balakrishnan"), new PreferredName("Rony"),
new FoodPreference("Fish Ball Soup"), new FamilyCondition("Financial problem"),
new Hobby("Jog around park"),
getTagSet("wheelchair")),
new Patient(new PatientHospitalId("12345"), new Name("Alex Yeoh Jia Jun"), new PreferredName("Alex"),
new FoodPreference("Curry chicken"),
new FamilyCondition("Stable, Has 2 sons that visits him regularly"),
new Hobby("Singing karaoke"),
getTagSet("diabetes"),
getEventSet(new String[] {"Birthday"}, new String[] {"20-01-2022"})),
new Patient(new PatientHospitalId("12346"), new Name("Bernice Yu Sheng Huat"), new PreferredName("Bern"),
new FoodPreference("Char Kuay Tiao, Black Carrot Cake"),
new FamilyCondition("Lives alone, no family members around"), new Hobby("Playing Mahjong"),
getTagSet("high blood pressure"),
getEventSet(new String[] {"Family Visit"}, new String[] {"30-03-2022, 15:00 - 18:00"})),
new Patient(new PatientHospitalId("12347"), new Name("Mary Jane"), new PreferredName("Mary"),
new FoodPreference("Korean"),
new FamilyCondition("Lives with only daughter, quarrels regularly with daughter"),
new Hobby("Watching Drama"),
getTagSet("fall risk")),
new Patient(new PatientHospitalId("12348"), new Name("David Li"), new PreferredName("David"),
new FoodPreference("Bak Kut Teh"), new FamilyCondition("Son visits him every weekend"),
new Hobby("Plays erhu"),
getTagSet("diabetes", "skin irritation")),
new Patient(new PatientHospitalId("12349"), new Name("Irfan Ibrahim"), new PreferredName("Fan"),
new FoodPreference("Roti Prata"), new FamilyCondition("Children encountered accident 2 months ago"),
new Hobby("Plays badminton"),
getTagSet("tumour")),
new Patient(new PatientHospitalId("12350"), new Name("Roy Balakrishnan"), new PreferredName("Rony"),
new FoodPreference("Fish Ball Soup"), new FamilyCondition("Financial problem"),
new Hobby("Jog around park"),
getTagSet("wheelchair")),
};
}

Expand Down

0 comments on commit 6f6606f

Please sign in to comment.