void Save() { //Only save handover details patient.PatientID = Convert.ToInt32(txtPatID.Text); if (rbHSE.Checked) { patient.HandOverTo = rbHSE.Text; } else if (rbICG.Checked) { patient.HandOverTo = rbICG.Text; } else if (rbAGS.Checked) { patient.HandOverTo = rbAGS.Text; } else if (rbOther.Checked) { patient.HandOverTo = rbOther.Text; } patient.HandOverDate = DateTime.Today.ToString("dd-MM-yyyy"); patient.HandOverTime = DateTime.Now.ToString("HH:mm:ss"); PatientDetailsManager.SavePatient(patient); Finish(); }
//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(); }; }
void CancelDelete() { if (patient.PatientID != 0) { PatientDetailsManager.DeletePatient(patient.PatientID); } Finish(); }
protected override void OnResume() { base.OnResume(); patients = PatientDetailsManager.GetPatients(); // create our adapter patientList = new PatientListAdapter(this, patients); //Hook up our adapter to our ListView patientListView.Adapter = patientList; }
void Save() { patient.PatientID = Convert.ToInt32(txtPatID.Text); patient.Signs = editSigns.Text; patient.Allergies = editAllergies.Text; patient.Medications = editMedications.Text; patient.PastHistory = editPastHistory.Text; patient.LastIntake = editLastIntake.Text; patient.Event = editLastIntake.Text; patient.MOI = editMOI.Text; PatientDetailsManager.SavePatient(patient); Finish(); }
void Save() { patient.PatientFirstName = editPatName.Text; patient.PatientLastName = editPatSurname.Text; patient.PatientDateOfBirth = editDateOfBirth.Text; patient.PatientAge = Convert.ToInt32(editPatAge.Text); if (rbGenderMale.Checked) { patient.PatientGender = rbGenderMale.Text; } else if (rbGenderFemale.Checked) { patient.PatientGender = rbGenderFemale.Text; } else if (rbGenderOther.Checked) { patient.PatientGender = rbGenderOther.Text; } patient.NextOfKin = editNextOfKin.Text; patient.NOKContactDetails = editNOKContact.Text; patient.Location = editLocation.Text; patient.GridReference = editGridReference.Text; patient.PatientInfo = editPatInfo.Text; patient.Transferred = checkBoxTransferred.Checked; //Save initial Start Assessment Date and Time if (patient.PatientID == 0) { patient.AssessStartDate = DateTime.Today.ToString("dd-MM-yyyy"); patient.AssessStartTime = DateTime.Now.ToString("HH:mm:ss"); } //Save Handover date and time if Transferred ticked if ((patient.PatientID == 0) & (patient.Transferred == true)) { //patient.HandOverTo = spinHandover.SelectedItem; patient.HandOverDate = DateTime.Today.ToString("dd-MM-yyyy"); patient.HandOverTime = DateTime.Now.ToString("HH:mm:ss"); } PatientDetailsManager.SavePatient(patient); Finish(); }
void Save() { patient.PatientID = Convert.ToInt32(txtPatID.Text); patient.TraumaChiefComplaint = chkChiefComplaint.Checked; patient.TraumaType = editTraumaType.Text; patient.TraumaDesc = editTraumaDesc.Text; patient.TraumaLocation = editTraumaLocation.Text; patient.TraumaInterventions = editTraumaIntervention.Text; patient.TraumaMedAdmin = editTraumaMedAdmin.Text; patient.PainScaleBefore = editPainBefore.Text; patient.PainScaleAfter = editPainAfter.Text; PatientDetailsManager.SavePatient(patient); Finish(); }
//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(); }; }
//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(); }; }
void Save() { patient.PatientID = Convert.ToInt32(txtPatID.Text); patient.MedChiefComplaint = chkChiefComplaint.Checked; patient.MedType = editMedType.Text; patient.MedDesc = editMedDesc.Text; patient.MedLocation = editMedLocation.Text; patient.MedInterventions = editMedIntervention.Text; patient.MedMedAdmin = editMedMedAdmin.Text; patient.Onset = editPainO.Text; patient.Provokes = editPainP.Text; patient.Quality = editPainQ.Text; patient.Radiates = editPainR.Text; patient.Severity = editPainS.Text; patient.Time = editPainT.Text; PatientDetailsManager.SavePatient(patient); Finish(); }
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); }; } }
//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(); }; }
//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(); }; }
void Save() { patient.PatientID = Convert.ToInt32(txtPatID.Text); patient.PulseRate = editPulseRate.Text; patient.PulseQuality = editPulseQuality.Text; patient.BloodPressure = editBloodPressure.Text; patient.RespiratoryRate = editRespRate.Text; patient.RespiratoryQuality = editRespQuality.Text; patient.SPO = editSPO.Text; patient.Temperature = editTemperature.Text; patient.Colour = editColour.Text; patient.CSM = editCSM.Text; patient.BloodSugar = editBloodSugar.Text; //LOC if (rbAlert.Checked) { patient.LOC = rbAlert.Text; } else if (rbVerbal.Checked) { patient.LOC = rbVerbal.Text; } else if (rbPain.Checked) { patient.LOC = rbPain.Text; } else if (rbUncon.Checked) { patient.LOC = rbUncon.Text; } //Pupils if (rbPERLL.Checked) { patient.Pupils = rbPERLL.Text; } else if (rbNotPerll.Checked) { patient.Pupils = rbPERLL.Text; } //Status if (rbStable.Checked) { patient.Status = rbStable.Text; } else if (rbUnstable.Checked) { patient.Status = rbUnstable.Text; } patient.VitalSetDate = DateTime.Today.ToString("dd-MM-yyyy"); patient.VitalSetTime = DateTime.Now.ToString("HH:mm:ss"); PatientDetailsManager.SavePatient(patient); Finish(); }