Esempio n. 1
0
        //Button buttonCancel;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // set the isRecording flag to false (not recording)
            //	isRecording = false;

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }



            // set our layout to be the home screen
            SetContentView(Resource.Layout.Medicals);
            txtPatID = FindViewById <TextView> (Resource.Id.txtPatientID);


            chkChiefComplaint = FindViewById <CheckBox> (Resource.Id.checkChief);


            editMedType         = FindViewById <EditText>(Resource.Id.editType);
            editMedDesc         = FindViewById <EditText> (Resource.Id.editDescription);
            editMedLocation     = FindViewById <EditText> (Resource.Id.editLocation);
            editMedIntervention = FindViewById <EditText> (Resource.Id.editIntervention);
            editMedMedAdmin     = FindViewById <EditText> (Resource.Id.editMedications);
            editPainO           = FindViewById <EditText> (Resource.Id.editO);
            editPainP           = FindViewById <EditText> (Resource.Id.editP);
            editPainQ           = FindViewById <EditText> (Resource.Id.editQ);
            editPainR           = FindViewById <EditText> (Resource.Id.editR);
            editPainS           = FindViewById <EditText> (Resource.Id.editS);
            editPainT           = FindViewById <EditText> (Resource.Id.editT);


            buttonSaveMedical = FindViewById <Button>(Resource.Id.buttonSave);

            txtPatID.Text             = Convert.ToString(patient.PatientID);
            chkChiefComplaint.Checked = patient.MedChiefComplaint;
            editMedType.Text          = patient.MedType;
            editMedDesc.Text          = patient.MedDesc;
            editMedLocation.Text      = patient.MedLocation;
            editMedIntervention.Text  = patient.MedInterventions;
            editMedMedAdmin.Text      = patient.MedMedAdmin;
            editPainO.Text            = patient.Onset;
            editPainP.Text            = patient.Provokes;
            editPainQ.Text            = patient.Quality;
            editPainR.Text            = patient.Radiates;
            editPainS.Text            = patient.Severity;
            editPainT.Text            = patient.Time;


            //buttonCancel .Click += (sender, e) => { CancelDelete(); };

            buttonSaveMedical.Click += (sender, e) =>
            { Save(); };
        }
Esempio n. 2
0
        //Button buttonCancel;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // set the isRecording flag to false (not recording)
            //	isRecording = false;

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }



            // set our layout to be the home screen
            SetContentView(Resource.Layout.Traumas);
            txtPatID = FindViewById <TextView> (Resource.Id.txtPatientID);


            chkChiefComplaint = FindViewById <CheckBox> (Resource.Id.checkChief);


            editTraumaType         = FindViewById <EditText>(Resource.Id.editType);
            editTraumaDesc         = FindViewById <EditText> (Resource.Id.editDescription);
            editTraumaLocation     = FindViewById <EditText> (Resource.Id.editLocation);
            editTraumaIntervention = FindViewById <EditText> (Resource.Id.editIntervention);
            editTraumaMedAdmin     = FindViewById <EditText> (Resource.Id.editMedications);
            editPainBefore         = FindViewById <EditText> (Resource.Id.editPainBefore);
            editPainAfter          = FindViewById <EditText> (Resource.Id.editPainAfter);

            buttonSaveTrauma = FindViewById <Button>(Resource.Id.buttonSave);

            txtPatID.Text               = Convert.ToString(patient.PatientID);
            chkChiefComplaint.Checked   = patient.TraumaChiefComplaint;
            editTraumaType.Text         = patient.TraumaType;
            editTraumaDesc.Text         = patient.TraumaDesc;
            editTraumaLocation.Text     = patient.TraumaLocation;
            editTraumaIntervention.Text = patient.TraumaInterventions;
            editTraumaMedAdmin.Text     = patient.TraumaMedAdmin;
            editPainBefore.Text         = patient.PainScaleBefore;
            editPainAfter.Text          = patient.PainScaleAfter;


            //buttonCancel .Click += (sender, e) => { CancelDelete(); };

            buttonSaveTrauma.Click += (sender, e) =>
            { Save(); };
        }
Esempio n. 3
0
        //Button buttonCancel;



        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // set the isRecording flag to false (not recording)
            //	isRecording = false;

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }


            // set our layout to be the home screen
            SetContentView(Resource.Layout.SampleHistoryScreen);
            txtPatID        = FindViewById <TextView> (Resource.Id.textViewPatientID);
            editSigns       = FindViewById <EditText>(Resource.Id.editSigns);
            editAllergies   = FindViewById <EditText> (Resource.Id.editAllergies);
            editMedications = FindViewById <EditText> (Resource.Id.editMedications);
            editPastHistory = FindViewById <EditText> (Resource.Id.editPastHistory);
            editLastIntake  = FindViewById <EditText> (Resource.Id.editLastIntake);
            editEvent       = FindViewById <EditText> (Resource.Id.editEvent);
            editMOI         = FindViewById <EditText> (Resource.Id.editMOI);

            // set the cancel delete based on whether or not it's an existing task
            //buttonCancel = FindViewById <Button> (Resource.Id.buttonCancel);
            //buttonCancel .Text = (patient.PatientID == 0 ? "Cancel" : "Delete");
            buttonSaveSample = FindViewById <Button>(Resource.Id.buttonSave);

            editSigns.Text       = patient.Signs;
            editAllergies.Text   = patient.Allergies;
            editMedications.Text = patient.Medications;
            editPastHistory.Text = patient.PastHistory;
            editLastIntake.Text  = patient.LastIntake;
            editEvent.Text       = patient.Event;
            editMOI.Text         = patient.MOI;
            txtPatID.Text        = Convert.ToString(patient.PatientID);
            //buttonCancel .Click += (sender, e) => { CancelDelete(); };

            buttonSaveSample.Click += (sender, e) =>
            { Save(); };
        }
Esempio n. 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // set the isRecording flag to false (not recording)
            //	isRecording = false;

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }

            // set our layout to be the home screen
            SetContentView(Resource.Layout.PatientDetails);
            editPatName     = FindViewById <EditText>(Resource.Id.editPatName);
            editPatSurname  = FindViewById <EditText> (Resource.Id.editPatSurname);
            editDateOfBirth = FindViewById <EditText> (Resource.Id.editDateOfBirth);
            editPatAge      = FindViewById <EditText> (Resource.Id.editPatAge);
            rbGenderMale    = FindViewById <RadioButton> (Resource.Id.rbGenderMale);
            rbGenderFemale  = FindViewById <RadioButton> (Resource.Id.rbGenderFemale);
            rbGenderOther   = FindViewById <RadioButton> (Resource.Id.rbGenderOther);

            editNextOfKin     = FindViewById <EditText> (Resource.Id.editNextOfKin);
            editNOKContact    = FindViewById <EditText> (Resource.Id.editNOKContactDetails);
            editLocation      = FindViewById <EditText> (Resource.Id.editLocation);
            editGridReference = FindViewById <EditText> (Resource.Id.editGridReference);
            editPatInfo       = FindViewById <EditText> (Resource.Id.editPatOtherInfo);
            buttonSave        = FindViewById <Button> (Resource.Id.buttonSave);
            txtPatID          = FindViewById <TextView> (Resource.Id.textViewPatientID);



            checkBoxTransferred         = FindViewById <CheckBox> (Resource.Id.chkTransferred);
            checkBoxTransferred.Checked = patient.Transferred;

            //spinHandover = FindViewById <Spinner > (Resource.Id.spinnerHandover);



//				spinner.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner_ItemSelected);
//				var adapter = ArrayAdapter.CreateFromResource (
//					this, Resource.Array.HandoverAgency , Android.Resource.Layout.SimpleSpinnerItem);
//
//				adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
//				spinner.Adapter = adapter;



            // set the cancel delete based on whether or not it's an existing task
            buttonCancel      = FindViewById <Button> (Resource.Id.buttonCancel);
            buttonCancel.Text = (patient.PatientID == 0 ? "Cancel" : "Delete");


            editPatName.Text     = patient.PatientFirstName;
            editPatSurname.Text  = patient.PatientLastName;
            editDateOfBirth.Text = patient.PatientDateOfBirth;
            editPatAge.Text      = Convert.ToString(patient.PatientAge);
            //check to see if existing patient
            if (patientID > 0)
            {
                var PatientText = "Patient ID: ";
                txtPatID.Text = PatientText + Convert.ToString(patient.PatientID);
            }

            //gender


            if (patient.PatientGender == "Male")
            {
                rbGenderMale.PerformClick();
            }
            else if (patient.PatientGender == "Female")
            {
                rbGenderFemale.PerformClick();
            }
            else if (patient.PatientGender == "Other")
            {
                rbGenderOther.PerformClick();
            }

            editNextOfKin.Text     = patient.NextOfKin;
            editNOKContact.Text    = patient.NOKContactDetails;
            editLocation.Text      = patient.Location;
            editGridReference.Text = patient.GridReference;
            editPatInfo.Text       = patient.PatientInfo;
            //spinHandover.SelectedItem    = patient.HandOverTo;



            buttonCancel.Click += (sender, e) => { CancelDelete(); };

            buttonSave.Click += (sender, e) =>
            { Save(); };

            buttonSampleHistory = FindViewById <Button> (Resource.Id.btnSample);

            // wire up add task button handler
            if (buttonSampleHistory != null)
            {
                buttonSampleHistory.Click += (sender, e) => {
                    var sample = new Intent(this, typeof(SampleHistoryScreen));
                    sample.PutExtra("PatientID", patientID);
                    StartActivity(sample);
                };
            }

            buttonTrauma = FindViewById <Button> (Resource.Id.buttonTrauma);

            // wire up add task button handler
            if (buttonTrauma != null)
            {
                buttonTrauma.Click += (sender, e) => {
                    var trauma = new Intent(this, typeof(TraumaScreen));
                    trauma.PutExtra("PatientID", patientID);
                    StartActivity(trauma);
                };
            }

            buttonMedical = FindViewById <Button> (Resource.Id.buttonMedical);
            // wire up add task button handler
            if (buttonMedical != null)
            {
                buttonMedical.Click += (sender, e) => {
                    var med = new Intent(this, typeof(Medicals));
                    med.PutExtra("PatientID", patientID);
                    StartActivity(med);
                };
            }

            buttonVital = FindViewById <Button> (Resource.Id.buttonVitals);
            // wire up add task button handler
            if (buttonVital != null)
            {
                buttonVital.Click += (sender, e) => {
                    var vit = new Intent(this, typeof(VitalsScreen));
                    vit.PutExtra("PatientID", patientID);
                    StartActivity(vit);
                };
            }

            buttonHandover = FindViewById <Button> (Resource.Id.btnHandover);
            // wire up add task button handler
            if (buttonHandover != null)
            {
                buttonHandover.Click += (sender, e) => {
                    var hand = new Intent(this, typeof(Handover));
                    hand.PutExtra("PatientID", patientID);
                    StartActivity(hand);
                };
            }
        }
Esempio n. 5
0
        //Button buttonCancel;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }


            // set our layout to be the home screen
            SetContentView(Resource.Layout.HandOver);
            txtPatID          = FindViewById <TextView> (Resource.Id.txtPatientID);
            txtIdentification = FindViewById <TextView> (Resource.Id.txtIdentification);
            txtMOI            = FindViewById <TextView> (Resource.Id.txtMOI);
            txtInjuries       = FindViewById <TextView> (Resource.Id.txtInjuries);
            txtSigns          = FindViewById <TextView> (Resource.Id.txtSigns);
            txtTreatment      = FindViewById <TextView> (Resource.Id.txtTreatment);
            txtAllergies      = FindViewById <TextView> (Resource.Id.txtAllergies);
            txtMedications    = FindViewById <TextView> (Resource.Id.txtMedication);
            txtBackground     = FindViewById <TextView> (Resource.Id.txtBackground);
            txtOtherInfo      = FindViewById <TextView> (Resource.Id.txtOtherInfo);
            rbHSE             = FindViewById <RadioButton> (Resource.Id.rbHSE);
            rbICG             = FindViewById <RadioButton> (Resource.Id.rbICG);
            rbAGS             = FindViewById <RadioButton> (Resource.Id.rbAGS);
            rbOther           = FindViewById <RadioButton> (Resource.Id.rbOther);



            // set the cancel delete based on whether or not it's an existing task
            //buttonCancel = FindViewById <Button> (Resource.Id.buttonCancel);
            //buttonCancel .Text = (patient.PatientID == 0 ? "Cancel" : "Delete");


            txtIdentification.Text = patient.PatientFirstName + " " + patient.PatientLastName;
            txtMOI.Text            = patient.MOI;
            txtInjuries.Text       = patient.TraumaType + "," + patient.MedType;
            txtSigns.Text          = patient.Signs;
            txtTreatment.Text      = patient.TraumaInterventions + "," + patient.MedInterventions;
            txtAllergies.Text      = patient.Allergies;
            txtMedications.Text    = patient.Medications;
            txtBackground.Text     = patient.PastHistory + "," + patient.Event;
            txtOtherInfo.Text      = patient.PatientInfo;

            txtPatID.Text = Convert.ToString(patient.PatientID);
            //buttonCancel .Click += (sender, e) => { CancelDelete(); };
            buttonSaveHandover = FindViewById <Button>(Resource.Id.buttonSave);
            if (patient.HandOverTo == "HSE Ambulance")
            {
                rbHSE.PerformClick();
            }
            else if (patient.HandOverTo == "ICG Helicopter")
            {
                rbICG.PerformClick();
            }
            else if (patient.HandOverTo == "An Garda Siochana")
            {
                rbAGS.PerformClick();
            }
            else if (patient.HandOverTo == "Other/None")
            {
                rbOther.PerformClick();
            }


            buttonSaveHandover.Click += (sender, e) =>
            { Save(); };
        }
Esempio n. 6
0
        //Button buttonCancel;



        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // set the isRecording flag to false (not recording)
            //	isRecording = false;

            int patientID = Intent.GetIntExtra("PatientID", 0);

            if (patientID > 0)
            {
                patient = PatientDetailsManager.GetPatient(patientID);
            }


            // set our layout to be the home screen
            SetContentView(Resource.Layout.VitalsScreen);
            txtPatID          = FindViewById <TextView> (Resource.Id.textViewPatientID);
            editPulseRate     = FindViewById <EditText>(Resource.Id.editPulseRate);
            editPulseQuality  = FindViewById <EditText> (Resource.Id.editPulseQuality);
            editBloodPressure = FindViewById <EditText> (Resource.Id.editBloodPressure);
            editRespRate      = FindViewById <EditText> (Resource.Id.editRespiratoryRate);
            editRespQuality   = FindViewById <EditText> (Resource.Id.editRespiratoryQuality);
            editSPO           = FindViewById <EditText> (Resource.Id.editSPO);
            editTemperature   = FindViewById <EditText> (Resource.Id.editTemperature);
            editColour        = FindViewById <EditText> (Resource.Id.editColour);
            editCSM           = FindViewById <EditText> (Resource.Id.editCSM);
            editBloodSugar    = FindViewById <EditText> (Resource.Id.editBloodSugar);

            rbAlert    = FindViewById <RadioButton> (Resource.Id.rbAlert);
            rbVerbal   = FindViewById <RadioButton> (Resource.Id.rbVerbal);
            rbPain     = FindViewById <RadioButton> (Resource.Id.rbPain);
            rbUncon    = FindViewById <RadioButton> (Resource.Id.rbUnresponsive);
            rbPERLL    = FindViewById <RadioButton> (Resource.Id.rbPERLL);
            rbNotPerll = FindViewById <RadioButton> (Resource.Id.rbNotPerll);
            rbStable   = FindViewById <RadioButton> (Resource.Id.rbStable);
            rbUnstable = FindViewById <RadioButton> (Resource.Id.rbUnstable);


            // set the cancel delete based on whether or not it's an existing task
            //buttonCancel = FindViewById <Button> (Resource.Id.buttonCancel);
            //buttonCancel .Text = (patient.PatientID == 0 ? "Cancel" : "Delete");
            buttonSaveVital = FindViewById <Button>(Resource.Id.buttonSave);

            editPulseRate.Text     = patient.PulseRate;
            editPulseQuality.Text  = patient.PulseQuality;
            editBloodPressure.Text = patient.BloodPressure;
            editRespRate.Text      = patient.RespiratoryRate;
            editRespQuality.Text   = patient.RespiratoryQuality;
            editSPO.Text           = patient.SPO;
            editTemperature.Text   = patient.Temperature;
            editColour.Text        = patient.Colour;
            editCSM.Text           = patient.CSM;
            editBloodSugar.Text    = patient.BloodSugar;

            //LOC

            if (patient.LOC == "Alert")
            {
                rbAlert.PerformClick();
            }
            else if (patient.LOC == "Verbal")
            {
                rbVerbal.PerformClick();
            }
            else if (patient.LOC == "Pain")
            {
                rbPain.PerformClick();
            }
            else if (patient.LOC == "Unresponsive")
            {
                rbUncon.PerformClick();
            }

            //Pupils
            if (patient.Pupils == "PERLL")
            {
                rbPERLL.PerformClick();
            }
            else if (patient.Pupils == "Not PERLL")
            {
                rbNotPerll.PerformClick();
            }

            //Status
            if (patient.Status == "Stable")
            {
                rbStable.PerformClick();
            }
            else if (patient.Status == "Unstable")
            {
                rbUnstable.PerformClick();
            }

            txtPatID.Text = Convert.ToString(patient.PatientID);
            //buttonCancel .Click += (sender, e) => { CancelDelete(); };



            buttonSaveVital.Click += (sender, e) =>
            { Save(); };
        }