Created
August 30, 2018 09:43
-
-
Save antonkazakov/a8fcb302f5f7f850a15de6599c305d3d to your computer and use it in GitHub Desktop.
Patients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Patient( | |
val first: String, | |
val second: String, | |
val status: String | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
public class Source { | |
public static List<Patient> getPatients() { | |
return Arrays.asList( | |
new Patient("Ada", "Wolf", "archived"), | |
new Patient("Ada", "Andrade", "in_treatment"), | |
new Patient("Adela", "Valdez", "in_treatment"), | |
new Patient("Adela", "Best", "archived"), | |
new Patient("Alden", "Singh", "archived"), | |
new Patient("Aldo", "Snow", "brand_new"), | |
new Patient("Alexandria", "Mcdonald", "brand_new"), | |
new Patient("Alfredo", "Landry", "archived"), | |
new Patient("Alisha", "Barr", "archived"), | |
new Patient("Allie", "Lambert", "brand_new") | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val patients = listOf( | |
Patient("Ada", "Wolf", "archived"), | |
Patient("Ada", "Andrade", "in_treatment"), | |
Patient("Adela", "Valdez", "in_treatment"), | |
Patient("Adela", "Best", "archived"), | |
Patient("Alden", "Singh", "archived"), | |
Patient("Aldo", "Snow", "brand_new"), | |
Patient("Alexandria", "Mcdonald", "brand_new"), | |
Patient("Alfredo", "Landry", "archived"), | |
Patient("Alisha", "Barr", "archived"), | |
Patient("Allie", "Lambert", "brand_new") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment