"Autofill" while writing records

Hi, can anyone help me? I don't really like the autofill feature and I'd like to turn it off if this is possible. For example when I type appointment reasons in a record and put "Sore foot 1.30pm" (I put the time of the consultation there as it isn't put in automatically), the program changes it to read "Sore foot in the afternoon"! Makes for very amusing reading! Also when typing in the body of the record I might put "1 tab bid" and it changes it to "1 tab twice daily" etc. Is it possible to stop this (preferably) or alter what is typed (less preferable)?

Thanks,

Ari

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: "Autofill" while writing records

Hi Ari,

The reason this is happening is because OpenVPMS has macros available for use in any text field. For example if you use bid on a label or within notes it will put twice daily.

There are a number of macros available for use. If you go to Administration and Lookups and Select Macros and Find you will see the list available. If you don't require these macros you may want to Edit and untick the active box.

If you would like to use macros you may want to create a different code that isn't used in your normal text in notes. You will need to create a new macro with the new code.

Maggie

Re: "Autofill" while writing records

Hi Ari,

Precede your macros with the "@" character. It is an allowed non alphanumeric (Letters or numbers) character.

eg.

"@bid"

This will prevent accidental expansion.

Note: We should change the default set of macros to include this for new installs.

 

To change a macro;

1. go to Administration->Lookups

2. Choose "Macro" from drop down filter

3. Click "Find"

4. Choose from list of macros.

Cheers,

Matt C

Re: "Autofill" while writing records

Its fine to prefix macros with the @ character to avoid accidental expansion.

The only time you can't do this is if you want a macro to be expanded by another macro.

In this case, the macros must start with an alphabetic character.

An example of this is the dispensingUnits and dispensingVerb macros. These are used by "Once daily" (oid), "Twice a day" (bid), etc macros. E.g.:

       concat($dispensingVerb, ' ', $number, ' ', $dispensingUnits, '(s) Once Daily')" 


Prefixing these with "@" would result in an invalid expression:

       concat($@dispensingVerb, ' ', $number, ' ', $@dispensingUnits, '(s) Once Daily')"

and the macro won't be expanded.

I think you're right that those in the default set that can be changed, should be. I'll JIRA for 1.5.

 

-Tim

Re: "Autofill" while writing records

Thanks everyone for your replies, they were indeed helpful, though Tim, yours was a little complicated for a wee little user like me! ;-)

cheers

ari

Syndicate content