public PatientMonitoringPage(PatientDetails currentPatientDetail) { NavigationPage.SetTitleIcon(this, "wellnet_logo_mini.png"); /* blood presure items */ // var BloodPresureStatus = new Label () {Text = "BloodPresure", // TextColor = Color.Red, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; // var BloodPresureHigh = new Label () { // Text = "120", // TextColor = Color.Blue, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; // var BloodPresureLow = new Label () // { // Text = "90", // TextColor = Color.Blue, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; /* body temperature items*/ // var BodyTempStatus = new Label () // { // Text="Temperature", // TextColor=Color.Red, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; // var BodyTempFigure = new Label () // { // Text="36", // TextColor=Color.Blue, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; /*--------------*/ // var OxygenSatuationLevel = new Label () // { // Text="Oxygen Satuation:\n"+"normal", // TextColor=Color.Blue, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; // var OxygenFigure = new Label () // { // Text="95%", // TextColor=Color.Red, // FontSize = Device.GetNamedSize (NamedSize.Large, typeof(Label)) // }; // /*heart reate */ // var HeartRateStatus = new Label () // { // Text="Heart Rate: "+"normal", // TextColor=Color.Red, // FontSize=Device.GetNamedSize(NamedSize.Large,typeof(Label)) // }; // // var HeartRateFigure = new Label () // { // Text="75", // TextColor=Color.Blue, // FontSize=Device.GetNamedSize(NamedSize.Large,typeof(Label)), // }; // // var EcgMockup = new WebView () // { // Source=new UrlWebViewSource{ // Url="http://rs106.pbsrc.com/albums/m269/mekonio/2709-51.gif~c200", // }, // VerticalOptions=LayoutOptions.FillAndExpand, // // }; // var BackgroundGrid = new Image (); /*-----stacklayouts---*/ /* stack for blood presure */ // var StackBloodPresure = new StackLayout () // { // Spacing=0, // VerticalOptions=LayoutOptions.FillAndExpand, // }; /* stack for body temperature */ // var StackBodyTemp = new StackLayout () // { // Spacing=0, // VerticalOptions=LayoutOptions.FillAndExpand, // }; /* stack for oxygen stack*/ // var OxygenStack = new StackLayout () // { // Spacing=0, // VerticalOptions=LayoutOptions.FillAndExpand, // }; /* heart rate */ // var HeartStack = new StackLayout { // Spacing = 0, // VerticalOptions = LayoutOptions.FillAndExpand, // }; /*monitoring grids layout */ // var MonitoringGrids=new Grid{ // VerticalOptions=LayoutOptions.FillAndExpand, // RowDefinitions={ // new RowDefinition{Height=GridLength.Auto}, // //new RowDefinition{Height=GridLength.Auto}, // //new RowDefinition{Height=GridLength.Auto}, // //new RowDefinition{Height=GridLength.Auto}, // new RowDefinition{Height= new GridLength(1, GridUnitType.Star)}, // new RowDefinition{Height= new GridLength(1, GridUnitType.Star)}, // new RowDefinition{Height= new GridLength(1, GridUnitType.Star)}, // }, // ColumnDefinitions={ // new ColumnDefinition{ Width=GridLength.Auto}, // new ColumnDefinition{ Width=GridLength.Auto}, // //new ColumnDefinition{ Width=GridLength.Auto}, // //new ColumnDefinition{ Width=GridLength.Auto}, // new ColumnDefinition{ Width= new GridLength(1, GridUnitType.Star)}, // } // }; /*fill blood presure stack */ // StackBloodPresure.Children.Add (BloodPresureStatus); // StackBloodPresure.Children.Add (BloodPresureHigh); // StackBloodPresure.Children.Add (BloodPresureLow); /*fill body temp stack*/ // StackBodyTemp.Children.Add (BodyTempStatus); // StackBodyTemp.Children.Add (BodyTempFigure); //StackBodyTemp.Children.Add (); /*fill oxygen stack*/ // OxygenStack.Children.Add (OxygenSatuationLevel); // OxygenStack.Children.Add (OxygenFigure); /* fill heart rate stack*/ // HeartStack.Children.Add (HeartRateStatus); // HeartStack.Children.Add (HeartRateFigure); /*fill monitoring grids*/ //MonitoringGrids.Children.Add (BloodPresureStatus,1,1); //MonitoringGrids.Children.Add (BloodPresureHigh,1,1); // MonitoringGrids.Children.Add(StackBloodPresure,1,1); // MonitoringGrids.Children.Add (EcgMockup, 2,2); // MonitoringGrids.Children.Add (StackBodyTemp,2,1); // MonitoringGrids.Children.Add (OxygenStack,1,2); // MonitoringGrids.Children.Add (HeartStack,1,3); /*grid style*/ // this.Padding = new Thickness (10,10,10,10); InitializeComponent(); this.BindingContext = currentPatientDetail; }
// public IEnumerable<PatientMonitoringStatus> GetStatus() // // { // // return (from t in db.Table<PatientMonitoringStatus>() select t).ToList(); // // } // public void PatientDetailsInit(SQLiteConnection db) { //SQLiteConnection db = DependencyService.Get<ISQLite> ().GetConnection (); //if (db.Table<PatientDetails>().Count() != 0) //{ db.DropTable <PatientDetails>(); db.CreateTable <PatientDetails>(); var NewPtDetails = new PatientDetails(); NewPtDetails.PtID = 0; NewPtDetails.FirstName = "Doris"; NewPtDetails.LastName = "Morrison"; NewPtDetails.Age = 75; NewPtDetails.DOB = "12/04/1941"; NewPtDetails.Gender = "Female"; NewPtDetails.AdmissionTime = "13/04/2015"; NewPtDetails.ContactNumber = 0434105253; NewPtDetails.Address = "1 Apple street 4000 QLD"; NewPtDetails.MedicareNum = "0199938374747"; NewPtDetails.MedicareExpiry = "13/05/2018"; //testing, should be in monitoring status table NewPtDetails.HeartRate = 96; NewPtDetails.Temp = 36.8; NewPtDetails.BloodPressureHigh = 120; NewPtDetails.BloodPressureLow = 81; NewPtDetails.ECGRefference = 5; NewPtDetails.ECGPic = "John_ecg.gif"; NewPtDetails.RoomNo = "C-HTA-406"; NewPtDetails.Location = "John_location.jpg"; NewPtDetails.PtImage = "Doris_Morrison.png"; NewPtDetails.Status = "Normal"; //testing, should be in drugHistry table NewPtDetails.DrugName = "Panadol"; NewPtDetails.Dosage = "1 pill"; NewPtDetails.DosingTime = "2/day"; NewPtDetails.Strength = "weak"; //testing, should be in MedicalRecord table NewPtDetails.DoctorNotes = "currently in good health"; NewPtDetails.PastDisease = "athsma"; NewPtDetails.PtMood = "Stable"; NewPtDetails.PatientActivities = "11:00AM Physio Appointment, 2:00PM Tea Party with Beth, 5:00PM Medication "; db.Insert(NewPtDetails); var NewPtDetails2 = new PatientDetails(); NewPtDetails2.PtID = 1; NewPtDetails2.FirstName = "Pete"; NewPtDetails2.LastName = "Dray"; NewPtDetails2.Age = 70; NewPtDetails2.DOB = "12/04/1946"; NewPtDetails2.Gender = "Male"; NewPtDetails2.AdmissionTime = "13/04/2015"; NewPtDetails2.ContactNumber = 0434105253; NewPtDetails2.Address = "1 Apple street 4000 QLD"; NewPtDetails2.MedicareNum = "0199938370989"; NewPtDetails2.MedicareExpiry = "13/05/2018"; //testing, should be in monitoring status table NewPtDetails2.HeartRate = 71; NewPtDetails2.Temp = 37.1; NewPtDetails2.BloodPressureHigh = 110; NewPtDetails2.BloodPressureLow = 61; NewPtDetails2.ECGRefference = 5; NewPtDetails2.ECGPic = "John_ecg.gif"; NewPtDetails2.RoomNo = "C-HTA-409"; NewPtDetails2.Location = "Doris_location.jpg"; NewPtDetails2.PtImage = "Pete_Dray.png"; NewPtDetails2.Status = "Normal"; //testing, should be in drugHistry table NewPtDetails2.DrugName = "Razadyne"; NewPtDetails2.Dosage = "500mg"; NewPtDetails2.DosingTime = "2/day"; NewPtDetails2.Strength = "weak"; //testing, should be in MedicalRecord table NewPtDetails2.DoctorNotes = "take more care of heart"; NewPtDetails2.PastDisease = "premature"; //testing, patient mood NewPtDetails2.PtMood = "Happy"; db.Insert(NewPtDetails2); var NewPtDetails3 = new PatientDetails(); NewPtDetails3.PtID = 2; NewPtDetails3.FirstName = "Jean"; NewPtDetails3.LastName = "Paul"; NewPtDetails3.Age = 71; NewPtDetails3.DOB = "12/04/1946"; NewPtDetails3.Gender = "Male"; NewPtDetails3.AdmissionTime = "13/04/2015"; NewPtDetails3.ContactNumber = 0434105253; NewPtDetails3.Address = "1 Apple street 4000 QLD"; NewPtDetails3.MedicareNum = "0199938370989"; NewPtDetails3.MedicareExpiry = "13/05/2018"; //testing, should be in monitoring status table NewPtDetails3.HeartRate = 82; NewPtDetails3.Temp = 36.7; NewPtDetails3.BloodPressureHigh = 121; NewPtDetails3.BloodPressureLow = 78; NewPtDetails3.ECGRefference = 5; NewPtDetails3.ECGPic = "John_ecg.gif"; NewPtDetails3.RoomNo = "C-HTA-401"; NewPtDetails3.Location = "Doris_location.jpg"; NewPtDetails3.PtImage = "Jean_Paul.png"; NewPtDetails3.Status = "Normal"; //testing, should be in drugHistry table NewPtDetails3.DrugName = "Razadyne"; NewPtDetails3.Dosage = "500mg"; NewPtDetails3.DosingTime = "2/day"; NewPtDetails3.Strength = "weak"; //testing, should be in MedicalRecord table NewPtDetails3.DoctorNotes = "take more care of heart"; NewPtDetails3.PastDisease = "premature"; //testing, patient mood NewPtDetails3.PtMood = "Stable"; db.Insert(NewPtDetails3); var NewPtDetails4 = new PatientDetails(); NewPtDetails4.PtID = 3; NewPtDetails4.FirstName = "Bird"; NewPtDetails4.LastName = "Johnson"; NewPtDetails4.Age = 52; NewPtDetails4.DOB = "12/04/1966"; NewPtDetails4.Gender = "Female"; NewPtDetails4.AdmissionTime = "13/04/2015"; NewPtDetails4.ContactNumber = 0434105253; NewPtDetails4.Address = "1 Apple street 4000 QLD"; NewPtDetails4.MedicareNum = "0199938370989"; NewPtDetails4.MedicareExpiry = "13/05/2018"; //testing, should be in monitoring status table NewPtDetails4.HeartRate = 67; NewPtDetails4.Temp = 37.1; NewPtDetails4.BloodPressureHigh = 115; NewPtDetails4.BloodPressureLow = 73; NewPtDetails4.ECGRefference = 5; NewPtDetails4.ECGPic = "John_ecg.gif"; NewPtDetails4.RoomNo = "C-HTA-402"; NewPtDetails4.Location = "Doris_location.jpg"; NewPtDetails4.PtImage = "Bird_Johnson.png"; NewPtDetails4.Status = "Normal"; //testing, should be in drugHistry table NewPtDetails4.DrugName = "Razadyne"; NewPtDetails4.Dosage = "500mg"; NewPtDetails4.DosingTime = "2/day"; NewPtDetails4.Strength = "weak"; //testing, should be in MedicalRecord table NewPtDetails4.DoctorNotes = "take more care of heart"; NewPtDetails4.PastDisease = "premature"; //testing, patient mood NewPtDetails4.PtMood = "Happy"; db.Insert(NewPtDetails4); // } }