NumberToText.class.php

markleeds wrote on Tuesday, June 02, 2009:

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.

Mark

markleeds wrote on Tuesday, June 02, 2009:

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.

Mark

blankev wrote on Tuesday, June 02, 2009:

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

Pimm

cfapress wrote on Thursday, June 04, 2009:

Pieter,

Is this the web page you are referring to?

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.

Here is another page that might be useful as well:
http://apps.who.int/emlib/Medicines.aspx?Language=EN

Jason

blankev wrote on Thursday, June 04, 2009:

Jason,

I do not understand how I could give some help as a hand editor volunteer not very tech-savvy to help with this project.

Do you know where I can add the folowing link:

http://erc.msh.org/dmpguide/index.cfm?search_cat=yes&display=yes&module=dmp&language=English&year=2008

for search medication as is offered during prescription via “Make new recipe…” I don’t think that this search option is available in CAMOS.

Pimm

cfapress wrote on Friday, June 05, 2009:

Hi Pimm,

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.

Jason

blankev wrote on Friday, June 05, 2009:

Yes/No,

I think you understood very well what I meant.

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

:wink: 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… :wink:

Pimm