One thing you realise the more you write code is that the less “moving parts” you have the better or to put it another way the more you put your moving parts into one contained place the better. Pushing items which change or where there will be change in the future to places you can manage is really useful.
Interfaces help a lot here and if you can talk interfaces and just pass the implementation of what you want to do to specific areas, you code is more maintainable.
Continue reading Decoupling Code
LINQ is probably one of the main reasons why I’ve stuck with C#. It’s such a powerful in memory data manipulation namespace in dotNet and the main reason why you can abbreviate tens of lines of code into one.
I’ve accumulated a few queries which I use regularly which I hope you may find useful and which I know I’ll be referring to again. Continue reading LINQ Trinkets
Being a doctor who codes is not as romantic as you would think. You try hard to keep consistent with development but you end up in peaks and troughs of coding rather than a preferred consistent flow. The Surgery work is phenomenal and I’m frantically trying to clear the work load to spend time coding.
Continue reading Frog in a Well & Event Handlers
I had an evening yesterday to do some coding for another GP Surgery and it made me understand it’s not a matter doing the best possible application which is loosely coupled, well designed and future proof but using the right tools for the job.
Continue reading Right Tools for the Job
I’ve been reading up on the Onion Architecture and think it’s a nice way of organising your code leading on to Domain Driven Design. This is my first project for this way of developing and it’s on the back end of a request from a good friend of mine to address a specific problem.
Continue reading Onion Architecture with CsvMapper
I’m just going to go out and say it. Community pharmacists are a very under utilised useful resource we have for commissioning care in the local area. I actually see them fit a similar position to Information Technology (IT), medication is ubiquitous and infiltrates into all aspects of services which we provide and needs to be given appropriate focus to make an important impact just like IT. Pharmacists have this paid service called MURs (Medicines Use Review) and it kind of goes like this
Continue reading Integrating with Community Pharmacists
I’m getting into really understanding about delegates and thought I’d share my thoughts around this. I’m just touching the surface, but event driven development is something I’ve wanted to do for sometime. In this basic tutorial I’m trying to address the following simple problem.
Continue reading Delegates and Lambdas
GPs for a little while have been asked to compare each other’s outpatient referrals rates. The idea is that this peer to peer open review will help us understand each others referral patterns. For some reason and due to a natural competitive nature of human behaviour, I think we have these peer to peer figures put to us to try to get us to refer less into hospital outpatients .
Continue reading Reasons
For those who know me, I frequently say the number 42 to my peers in relation to why patients get admitted to hospital. We know the answer, that they are in hospital but what is the question, what brought them in in the first place or more importantly can we predict their chance of admission in the future? Over the next few years we are going to get a deluge of companies claiming their risk stratification tool is the best thing since sliced bread and that their algorithms have prevented x% of admissions in the last year and saved the NHS this much. This blog is about my modest practical experiences on this matter for those commissioning groups who are looking at this area. In fact I don’t even discuss about any particular risk tool. Ironically this blog also won’t tell you the answer but give a few simple concepts and I hope some of it’s content will help you.
Continue reading The Answer is 42. So what is the question?
I was told by someone that if you put a picture of a cat in your blog, you’ll get instant site views to the sound of “oos” and “aahs”. Unfortunately since the majority of my demographic is probably non-cat loving males, I’m not hedging my bets.
I thought I’d put this post up more for my benefit as a tutorial on interfaces, but I hope others will find it useful. The other reason is that although I’ve seen answers on the internet around this topic, I’ve not really been satisfied with the content which can lack code example code (possibly for the right reasons).
Continue reading Circular Dependencies and Interfaces