Skip to content

Commit

Permalink
Merge pull request #128 from NeoHW/V1.3-fixSampleData
Browse files Browse the repository at this point in the history
Corrections to sample data
  • Loading branch information
guohuang88 authored Mar 27, 2024
2 parents 5de8631 + 9ab63fc commit a4cd299
Showing 1 changed file with 33 additions and 16 deletions.
49 changes: 33 additions & 16 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
@@ -21,32 +21,49 @@
*/
public class SampleDataUtil {
public static Patient[] getSamplePatients() {
return new Patient[] {
new Patient(new PatientHospitalId("12345"), new Name("Alex Yeoh Jia Jun"), new PreferredName("Alex"),
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"),
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 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("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"),
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")),
new Patient(new PatientHospitalId("12349"), new Name("Irfan Ibrahim"), new PreferredName("Fan"),
new FoodPreference("Roti Prata"), new FamilyCondition("Children encountered accident 2 months ago"),
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 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")),
};

0 comments on commit a4cd299

Please sign in to comment.