Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Info extends StatelessWidget {
- // Test Subject Data
- var name = 'John Doe';
- var race = 'Asian';
- int PSA = 5;
- int age = 22;
- int systolic = 120;
- int diastolic = 80;
- bool cervicalCancerRisk = true;
- bool familyHistoryColorectal = true;
- bool heartDiseaseRisk = true;
- bool highBloodPressure = true;
- bool highRiskBP = true;
- bool highRiskCholestrol = true;
- bool puberty = true;
- date birthdate = July 20, 1994 at 12:00:00 AM UTC-5;
- date lastBloodPressureScreening = July 6, 2016 at 12:00:00 AM UTC-5;
- date lastColonoscopyScreening = July 20, 2016 at 12:00:00 AM UTC-5;
- date lastInfluenzaScreening = July 20, 2017 at 12:00:00 AM UTC-5;
- date lastProstateScreening = July 20, 1997 at 12:00:00 AM UTC-5;
- @override
- Widget build (BuildContext ctxt) {
- return new Scaffold(
- appBar: new AppBar(
- title: new Text("Your Information"),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- children: [
- Row(
- children: [
- Text('Name: '),
- new Flexible(
- child: new Text('$name')
- )
- ]
- ),
- Row(
- children: [
- Text('Age: '),
- new Flexible(
- child: new Text($age)
- )
- ]
- ),
- Row(
- children: [
- Text('Race: '),
- new Flexible(
- child: new Text($race)
- )
- ]
- ),
- Row(
- children: [
- Text('Birthdate '),
- new Flexible(
- child: new Text($birthdate)
- )
- ]
- ),
- Row(
- children: [
- Text('Systolic / Diastolic: '),
- new Flexible(
- child: new Text($systolic + ' / ' + $diastolic)
- )
- ]
- ),
- Row(
- children: [
- Text('High Blood Pressure: '),
- new Flexible(
- child: new Text($highBloodPressure)
- )
- ]
- ),
- Row(
- children: [
- Text('High Blood Pressure Risk: '),
- new Flexible(
- child: new Text($highRiskBP)
- )
- ]
- ),
- Row(
- children: [
- Text('High Cholesterol Risk: '),
- new Flexible(
- child: new Text($highRiskCholestrol)
- )
- ]
- ),
- Row(
- children: [
- Text('Heart Disease Risk: '),
- new Flexible(
- child: new Text($heartDiseaseRisk)
- )
- ]
- )
- ]
- )
- );
- }
- }
- class Current extends StatelessWidget {
- // Current Schedule Data
- // list from DB
- var list;
- var element;
- date nextBloodPressureScreening = August 6, 2019 at 12:00:00 AM UTC-5;
- date nextColonoscopyScreening = July 25, 2019 at 12:00:00 AM UTC-5;
- date nextInfluenzaScreening = July 20, 2021 at 12:00:00 AM UTC-5;
- date nextProstateScreening = July 20, 2020 at 12:00:00 AM UTC-5;
- @override
- Widget build (BuildContext ctxt) {
- return new Scaffold(
- appBar: new AppBar(
- title: new Text("Currently Scheduled Procedures"),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- child: [
- Row(
- children: [
- Text('Currently Scheduled Appointments: '),
- Column(
- children: [
- new Flexible(
- // Loop thru list object and call below statement each time
- // for each element in list
- child: new Text($'element')
- )
- ]
- )
- ]
- )
- ]
- )
- );
- }
- }
- class Schedule extends StatelessWidget {
- // All Possible Procedures Data
- // list from DB
- var list;
- @override
- Widget build (BuildContext ctxt) {
- return new Scaffold(
- appBar: new AppBar(
- title: new Text("Your Information"),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- child: [
- Row(
- children: [
- Text('Schedule a New Appointment: '),
- Column(
- children: [
- new Flexible(
- for (var element in list)
- child: new RaisedButton(
- onPressed: () {
- //TODO: What action to take once you push to schedule
- Navigator.push(
- ctxt,
- new MaterialPageRoute(builder: (ctxt) => new ()),
- );
- },
- child: Text('$element')
- )
- )
- ]
- )
- ]
- )
- ]
- )
- );
- }
- }
- class Faq extends StatelessWidget {
- @override
- Widget build (BuildContext ctxt) {
- return new Scaffold(
- appBar: new AppBar(
- title: new Text("Frequently Asked Questions"),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- children: [
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When should I schedule a blood pressure screening?'),
- Text('It is recommended men receive a blood pressure screening at least every two years, beginning at age 18.')
- Text('Women should also schedule a blood pressure screening, beginning at age 18, at least every two years if blood pressure is normal (lower than 120/80). Get checked annually if blood pressure is between 120/80 and 139/89. Discuss with your doctor if you have a blood pressure of 140/90 or higher.')
- )
- ]
- )
- ]
- ),
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When should I schedule a cholesterol screening?')
- Text('Men should receive a baseline screening from age 17 to 21. Routine screenings beginning at age 25 for men with high-risk factors, and age 35 for men with no risk factors.')
- Text('For women with increased risk for heart disease, a regular test is needed, starting at age 20. Ask your doctor how often this is needed.')
- )
- ]
- )
- ]
- ),
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When is an influenza(flu) vaccine recommended?'),
- Text('An annual influenza vaccine is recommended for both men and women aged 17 and older.)
- )
- ]
- )
- ]
- ),
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When is a pneumonia vaccine recommended?'),
- Text('For men and women, two different vaccines are recommended at age 65 and older.')
- )
- ]
- )
- ]
- ),
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When is a shingles vaccine recommended?'),
- Text('For men and women, a one-time vaccination is recommended at age 60 and older.')
- )
- ]
- )
- ]
- ),
- Row(
- children: [
- Column(
- children: [
- new Flexible (
- Text('When is a tetenus vaccine recommended?'),
- Text('For men and women aged 17 and older, a tetenus vaccine is recommended every ten years.')
- )
- ]
- )
- ]
- )
- ]
- )
- );
- }
- }
- class About extends StatelessWidget {
- @override
- Widget build (BuildContext ctxt) {
- return new Scaffold(
- appBar: new AppBar(
- title: new Text("About Us"),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- children: [
- new Flexible (
- Text('This app was created on the premise that patients should have greater ease-of-access for information, personalization and consultion about recommended preventative health procedures, such as cancer screenings and vaccines.'),
- Text(''),
- Text('Developers: Michael Chang, Will Wang, Dipak Subramaniam, James Goede, Will Wissmiller'),
- Text('Contact Us: Saint Francis Healthcare: (573)331-3000')
- Text('Website: www.sfmc.net')
- )
- ]
- )
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement