Macros not working

I have recently edited some of our macros that we use a templates for our consults and hospital updates. However they are not working now and I can't work out why. I have double checked that they are all "active" and start and finish with: ' Also, they are shorter than they used to be so it shouldn't be a word limit issue. I get no error code of any sort, they just don't function.

Does anyone have any suggestions?

Kimberley

Comment viewing options

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

Re: Macros not working

Hi Kimberley,

Most likely a character in the text that causes the macro to fail.  Suggest you post an example problem macro and hopefully we can tell you what may be causing the issue.

Cheers

Tony

Re: Macros not working

Hi Tony,

Here is one of the ones that isn't working - they are all very similar.

 

Macro code: #hu

Name: Hospital update***

Expression:

'Hospital Update: performed by _ at   
Problem list:
History:  __  days in hospital
Nutrition:

Examination:
   BAR  lethargic   depressed   moribund  aggressive
   EDDU normally:
   Today's wt:   
   Temp:        Heart Rate:        Resp:   
Assessment:  
Medication:     
Plan:   
Telephone discussion:
Evening Hospital Update'

Hopefully you can find something here.

Thanks!

Re: Macros not working

Hi Kimberley,

Tim kindly pointed out the single quote in today's is the issue.  The double quotes solve this.  i.e if you need a single quote in the text then need to double quote the text.  Alternatively use an apostrophe :-)

Cheers

Tony

Re: Macros not working

Hi Kimberley,

If I change the single quotes that enclose the text with double quotes it works. Suggest do this and I will investigate further why this is required for this macro and not others. Must have something to do with content but cannot see obvious reason yet. :-)

Cheers

Tony

Syndicate content