Welcome to SynapseDirect Sign in | Join | Help
in Search

SynapseDirect

Daisy chaining templates

Last post 02-07-2008, 1:05 PM by Graham. 52 replies.
Page 1 of 4 (53 items)   1 2 3 4 Next >
Sort Posts: Previous Next
  •  01-24-2008, 4:00 PM 5048

    Daisy chaining templates

    Here's an idea that has been suggested to me.

    In the current macro template scheme, you substitute one word from a list for another.  The proposal is to substitute another macro instead for that word.

    So, say the original word was *throat-exam*, then the macro choices would be @normal-throat-exam, @acute-pharyngitis, @mono-throat ... and each of these would insert a new macro into the text.  The new macro could again link to other macros.  The words after @ refer to the name of an existing macro.

    Could get a wee bit complicated.... 


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-25-2008, 5:52 PM 5054 in reply to 5048

    Re: Daisy chaining templates

    A prototype is now working in Beta 12 client and R83B4 server.

    This is how it is working.

    I wish to create a macro regarding adverse drug effects.  Now sure we can have some text like

    The patient has experienced *some* side effects from their current treatment. 

    where we can substitute "no" or "severe" for the *some* as we can do now, but we are going to create three new macros that allow us to expand upon this.

    First off, in Settings/Macros let's create a new macro called "DrugAdverseEffects", and the choices will be "!NoAdverseDrugEffects" and "!AdverseDrugEffects".

    So the data looks like this:

    Word: *DrugAdverseEffects*
    Choices: !NoAdverseDrugEffects !AdverseDrugEffects

    and click on the [Add] button.

    Now the use of the ! infront of the word indicates that this refers to another macro.  So, we now need to create these two new macros.

    Bring up the consult editor for any patient, click on the [Macros] tab, and select any existing Macro.

    Now we wish to add our two new macros.

    Use the drop-down list and change this to "meds", in the search field, put in "NoAdverseDrugEffects" without the quotes, and in the text area type in something like:

    He reports no adverse reactions to any of his *current* medications.

    and then click on the [Save As] button.  We now have a new macro under the "meds" class called "NoAdverseDrugEffects".

    We now create the other one called "AdverseDrugEffects" and use the following text or similar:

    He reports *some* side effects from *medications*

    and save it as well.

    Now  that we have defined these new macros, we can use them in a macro template.

    To do this just place *DrugAdverseEffects* in an existing template.  When you click on the [Replace] button, the list will now show the two choices of

    • !NoAdverseDrugEffects
    • !AdverseDrugEffects

    Select the one you want, and then click again on the [Replace] button, and the defined macro will be inserted into the template area.  Use the [Restart] button if you wish to do substitutions on this inserted template now as otherwise it will continue after the insertion point.

     

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-26-2008, 9:36 PM 5059 in reply to 5054

    Re: Daisy chaining templates

    I've just created a demo video of how this works with a patient who has rheumatoid disease, and has come for an unscheduled appointment complaining of severe left knee pain.  She also has problems with her medications.

    You can view it here.


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-27-2008, 4:15 AM 5061 in reply to 5059

    Re: Daisy chaining templates

    For those of you have already watched the video, I have done it again with a newer beta so that picking left, right and both is easier.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-30-2008, 1:24 PM 5064 in reply to 5061

    Re: Daisy chaining templates

    It now looks as though it will be quite possible to trigger a GUI template from within the macro templates.

    This leads to interesting possibilities where the macro templates can become the main way of generated the documentation for those that do not type well.  You have the macro system which generates readable text, and you have the GUI templates that can provide detailed examination findings.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-30-2008, 1:26 PM 5065 in reply to 5064

    Re: Daisy chaining templates

    Graham:

    It now looks as though it will be quite possible to trigger a GUI template from within the macro templates.

    Cool. Smile  How would it be triggered ? 


    Developer
  •  01-30-2008, 1:28 PM 5066 in reply to 5065

    Re: Daisy chaining templates

    Provisionally "$name of gui template" in the pick list of choices.

     

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-30-2008, 1:53 PM 5067 in reply to 5066

    Re: Daisy chaining templates

    Each Consult is a popup of The Consult Tab.

    The Macro is a popup of the Consult.

    The GUI popup would be a popup of the Macro.

     

    I think a rich GUI popup for intuitive selections is a good idea, but we don't want to suffer popup-itis.

    I guess one thing to do would be

    (1) write a template !

    (2) you could create macros which only have 1 "GUI popup" and put all the information in there.

     

    I always come back to the need for inline text macroing being the fastest and most intuitive. 


    Developer
  •  01-30-2008, 9:20 PM 5068 in reply to 5067

    Re: Daisy chaining templates

    All these popups is a problem .. but we need a super duper input screen with all the different types of input available!

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  01-31-2008, 4:22 AM 5069 in reply to 5068

    Re: Daisy chaining templates

    The first simplification is that the macro selection window will just be that .. the text replacement functions will be removed and we will use the ones in the main screen instead (Replace tab).

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  02-01-2008, 6:48 AM 5070 in reply to 5067

    Re: Daisy chaining templates

    I'm going to make a patient temperature GUI template that pops up with in-line text using the new $temp format.  This is an example where having a GUI popup in-line is actually better, I think.  I've seen slider GUI's used for this, but I don't like them - too slow.  I see the macro templates included with my "stock" installation of synapse use the "XXX degrees" form, intending that the user will drag and replace XXX with a temperature number.  Either that method or some huge linear number pick list (which would not work with *macros* because it's numeric) are not as good as an in-line popped up GUI in this case, I don't believe.  On the other hand, I agree that having GUI templates as the only pop-up method with in-line text as in is the case in some EMR's is not as flexible.

    Developer
  •  02-01-2008, 8:35 AM 5071 in reply to 5070

    Re: Daisy chaining templates

    jparkdo:
    I'm going to make a patient temperature GUI template that pops up with in-line text using the new $temp format.  This is an example where having a GUI popup in-line is actually better, I think.

    Good point, I agree.

     


    Developer
  •  02-01-2008, 1:30 PM 5072 in reply to 5071

    Re: Daisy chaining templates

    This may not quite be the place to comment GUI radio buttons, but I think it would be a good idea to design GUI templates the choices of yes, no, and n/a where n/a is just a null with no associated text.  This would make it possible to use, say, the anatomy regional GUI templates, check the "all normal" button, and then uncheck the one or two items you didn't examine, or the one or two items that are abnormal or yes.  Much faster than individually checking every radio button.  Currently it is not possible to uncheck a radio button once checked.

    Developer
  •  02-01-2008, 2:44 PM 5073 in reply to 5072

    Re: Daisy chaining templates

    I thought about this a little, and the reason I like it the way it is is that having no selection is easier to see than seeing which one of three selections has been made.

    Anyway I am in discussion with the Rebgui author about if we can deselect the radio button with the mouse. 


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  02-01-2008, 2:48 PM 5074 in reply to 5070

    Re: Daisy chaining templates

    jparkdo:
    I'm going to make a patient temperature GUI template that pops up with in-line text using the new $temp format.  This is an example where having a GUI popup in-line is actually better, I think.  I've seen slider GUI's used for this, but I don't like them - too slow.  I see the macro templates included with my "stock" installation of synapse use the "XXX degrees" form, intending that the user will drag and replace XXX with a temperature number.  Either that method or some huge linear number pick list (which would not work with *macros* because it's numeric) are not as good as an in-line popped up GUI in this case, I don't believe.  On the other hand, I agree that having GUI templates as the only pop-up method with in-line text as in is the case in some EMR's is not as flexible.

    Jerry, the $temp gui popup is not working yet.  Harder to do than I expected.

    The old templates with XXX there are pre-macro invention Wink 

    What I am doing now for temperature is use a reasonable range from which to pick the alternatives.  So, for Centrigrade, I have

    *nn* . *n* where nn is 35 thru to 40 and n is 0 thru 9

    what's the reasonable range for Fahrenheit?
     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
Page 1 of 4 (53 items)   1 2 3 4 Next >
View as RSS news feed in XML
Try-out the Click to try-out Synapse EMR Express Edition Free Synapse EMR Express Edition Click to try-out Synapse EMR Express Edition · ©2006 SynapseDirect · Terms and Conditions · Privacy Policy · help us keep Synapse EMR Express free for all Doctors

managing your electronic medical records · Unique Visits Dell Computer