I have a use for NumberToText.class.php in /openemr/library/classes/ and it seems very simple to use. It did not return the expected result when I tested it. It handles the decimal part of a number but not the integer component. I looked for where this class is used and in my installation, it is only in Prescription.class.php in one function:
function get_prescription_florida_display() {
I am wondering if the NumberToText class is not really used at all and maybe never worked correctly. I was going to try and fix it, but I wanted to check here first if anyone is using it for anything. I see that Brady updated the file about 5 weeks ago, but that was to fix <? tags.
My use is probably the same as was intended in Prescription.class.php. I generate prescriptions with CAMOS, and I want to stop having to type the number as text. I live in Florida and judging by the above function name, maybe it is just us Floridians who have to do this.
I think I fixed it. It appears to have been written in such a way that it could only handle numbers that are multiples of 3 digits in length. There are a few other ‘bugs’ like forty is spelled ‘fourty’ and some extra spaces in the output. I will test further and commit fixes later.
I thought you sounded like a Developer without work, untill, untill I realized that we, Dutch doctors, use this for all narcotic/abusive kind of drugs, Opium, Morfine, Valium, etc…
Just a side step:
Today I was at the WHO site and they have some kind of database about essential medications with many generic names and a way on how to use these medications. Would that be some kind of solution for OpenEMR’s0world list of medications?
I saw a manual with about 36o pages… and this seems to be updated regularly since 1997. I just did not have time enough to register all particulars and work on a different computer now. TOmmorow I will find the IP for that file again and will post it ASAP
It seems the lists are PDF files that are not easily parsed by a computer. I think it would take a considerable amount of hand-editing to make the lists useful. But it’s a perfect job for a volunteer who is not tech-savvy and wants to help our project.
The code for the prescription lists and edit/new prescriptions can be found in:
<oemr>/templates/prescriptions
From your previous message I thought you were indicating and interest to create a default list of drugs to be set in OpenEMR based on the WHO list. Perhaps I misunderstood.
I would like to have some International Check for International users on any medication (Generic or Maker name), and than also some kind of local medication information file to check whatever medication might be used, with some sort of choice to give freedom for prescriptions.
And
leave the dirty work for someone who has nothing better to do these days… few of them around anymore but… and most of them involved in so many projects…