issuu.com/SECQO twitter.com/SECSHAQO www.QualityObservatory.nhs.uk http://www.networks.nhs.uk/nhs-networks/sec-qo Volume 8 Issue 3 August 2014 Welcome to the August (well, -ish) special holiday edition of Knowledge Matters! This month we have an update on the Friends and Family Test from Samantha Riley, Director of Insights at NHS England, and its forthcoming major rollout across GP practices, mental and community health services, dental practices, patient transport services, day cases and outpatients (phew!). We also have a fairly topical Analysis Ancient and Modern around improvements in treatment of the injured up to the Great War, an update from the Association of Professional Healthcare Analysts and an interesting article on the Bayesian Approach in statistics from one of our new team members, Trishna. For those looking to build their knowledge of using R, a handy free tool for statistical analysis much in use in academia and statistics, I would strongly recommend looking at the News section for details of a free course being run by edX. I’m off to relax by the pool with a cheeky cocktail now so cheers and see you next edition! Simon Welcome to Knowledge Matters Inside This Issue : Making Connections - FFT 2 Skills Builder 6 Analysis Ancient and Modern 4 Ask an Analyst 8 Making Connections - AphA 5 News 10
The Quality Observatory, Bi-monthly newsletter packed full of fun facts and useful information . This issue includes updates on the Friends, a look at historical death rates in war and medical innovations, an introduction to Bayesian statistics, a look at creating Input masks in excel textboxes.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Welcome to the August (well, -ish) special holiday edition of Knowledge Matters!
This month we have an update on the Friends and Family Test from Samantha Riley, Director of Insights at NHS England, and its forthcoming major rollout across GP practices, mental and community health services, dental practices, patient transport services, day cases and outpatients (phew!).
We also have a fairly topical Analysis Ancient and Modern around improvements in treatment of the injured up to the Great War, an update from the Association of Professional Healthcare Analysts and an interesting article on the Bayesian Approach in statistics from one of our new team members, Trishna.
For those looking to build their knowledge of using R, a handy free tool for statistical analysis much in use in academia and statistics, I would strongly recommend looking at the News section for details of a free course being run by edX.
I’m off to relax by the pool with a cheeky cocktail now so cheers and see you next edition!
Complexity 3/5 — Form validations with event based VBA
Hi Eloise Thanks for getting in touch. With Excel you can format and validate cells on a spreadsheet easily, but there is no direct option to format mask or validate the data that is input into the textbox. The closest option to a validation you have readily available in Excel is the “MaxLength” property to set the maximum number of characters. To ensure that people can only add numbers to the textbox we will need to use some event based VBA. There are 3 potential textbox events that we can use to trigger our input checking code; these are KeyDown, KeyPress and KeyUp. There are some differences between these events. KeyDown and KeyUp events return an MS KeyCode value, and KeyPress returns the Ascii code for the key that has been pressed. In this example we are going to use the KeyPress event to run some VBA code that will check the input data. In your Developer tab switch into Design Mode. I have created 4 textboxes named TextBox26-29 (as below).
Dear Ask an Analyst I am trying to create a user form in Excel and have gotten a bit stuck. Half way down the form I have the following 4 fields: 1. Income 2. Expected Costs 3. Margin 4. Margin % I need to make sure that the input is numeric only and I need number 4 to be calculated as number 3 divided by number 1. Is the textbox the right control to use or is there a better one that allows you to format mask, like in Access?
Select the first textbox on the form and right click and select View Code to pop up the VBA Editor.
The editor will load with the default “Change” event. We want to utilise the “KeyPress” event so from the drop down at the top right of the editor window select “KeyPress” The KeyPress event makes the “KeyAscii” variable available to us to use in our code.
This variable holds the Ascii value of the key that is pressed e.g. the numbers 0-9 have Ascii values of 48-57. This gives us the basis for the logic we can use to evaluate if the data being input is a number or not. In this example I transform the KeyAscii value back to the character that it represents with chr() and use the IsNumeric() function to evaluate it. Setting the KeyAscii value to 0 in the False evaluation step will stop the character being displayed in the textbox. In the finished example I have used an If statement but you could use Select Case for multiple validation rules Private Sub TextBox26_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) If IsNumeric(Chr(KeyAscii)) Then ‘action to do if is a number i.e. let it through Else ‘action to do if is anything else i.e. don’t do anything KeyAscii = 0 End If End Sub For the calculated value in Textbox29 we want to divide the value of Textbox28 with the value of TextBox26. We probably only want to perform this calculation when the value of the textbox changes so we can utilise the Change event, and for Textbox26 we probably want to check that Textbox28 is not blank. So we can add something like :
Private Sub TextBox26_Change() On Error Resume Next ‘ this is just in case the system tries to divide by zero (and other errors!) If TextBox28.Value = "" Then
‘do nothing Else
TextBox29.Value = TextBox28.Value / TextBox26.Value End If End Sub
You will need to repeat this for Textbox28 as well, don’t forget that on the Textbox28_Change() event you will want to check if TextBox26 is blank. You may also want to set Textbox 29’s “Enabled” property to False to stop people overwriting the calculation.
Knowledge matters is the newsletter of NHS South East Coast’s Quality Observatory, to discuss any items raised in this publication, for further information or to be added to our distribution list, please contact us.
Hosted by: Central Southern Commissioning Support Unit
Babies’ kneecaps don't form and properly harden till they are around 5 years old. Having seen how often my little one falls over I can say that’s a very handy thing!
I've heard of the postcode lottery,
It's been in the news quite a lot
Says it's dependent where you live,
whether you get treated or not.
This causes a bit of a worry,
In some cases rightly so,
But sometimes there are good reasons,
Which we do not yet know.
Demographics is part of the answer
You might live among weak and old,
You may live in somewhere that gets sickly,
Whenever the weather is cold.
I know when we're sick and we're poorly,
It doesn't seem just or quite fair,
Traveling miles to get our treatment,
But you can't have it all everywhere.
So don't worry if you live where mortality's high
For cancer or defenestration,
It doesn't mean you'll die that way,
Remember correlation isn't causation.
Simon says…….
Having spent time recently navigating bureaucracy, red tape and all too often having to “wait for the next meeting”, it has sometimes felt like processes and procedures are used as a convenient shield to not to take personal responsibility for decisions and take action! Being able to take responsibility and make decisions and quickly take action is one of the behaviours, I feel, we will need to encourage to allow us all to provide a responsive service to our customers, and ultimately will be reflected in the services delivered to patients!