Templates in Synapse: How they work (boy are they flexible and powerful!)

Discussion in 'Documentation & Training Resources' started by Jason, Mar 27, 2007.

  1. Graham

    Graham Developer Staff Member

    A field widget requires a modifier before it to make it conditional i.e. a radio-group.

    If you always want it to print out, change it to a sfield instead.
  2. Graham

    Graham Developer Staff Member

    Just to recap, there are 4 widgets that do not need modifiers to always produce text.

    They are:
    • sfield
    • slabel
    • stext
    • sedit-list
    whereas the versions without the S in front always need a modifier to print.
  3. paindoc

    paindoc New Member

    Graham,

    Is there a "combination-box" type widget available?

    PainDoc
  4. Graham

    Graham Developer Staff Member

    What is a combination box?
  5. paindoc

    paindoc New Member

    A drop-down list box that enables multiple selections from it.

    John
  6. paindoc

    paindoc New Member

    Oops,

    My bad. I meant to inquire about the availability of a list box. List boxes facilitate multiple choices.

    John
  7. Jason

    Jason Developer / Handyman Staff Member

  8. paindoc

    paindoc New Member

    Yes, Jason. Exactly like those.

    By the way, I trust that Darren is healthy and happy?

    John
  9. Jason

    Jason Developer / Handyman Staff Member

    We have multi-select options already, but I haven't seen a list box.

    Attached Files:

  10. Jason

    Jason Developer / Handyman Staff Member

    Sure is. He's 2.75 years now in Synapse years. Thanks for asking ! We were playing Hide and Seek on the weekend, which he loves [:)]

    Attached Files:

  11. Graham

    Graham Developer Staff Member

    Yes, any table can be made multi-select with the control key if you enable the multi-select feature

    eg. table options [ multi "Drugname" left 1.0 ] data [ "drug1" "drug2" "drug3" ]

    See alsohttp://compkarori.no-ip.biz:8090/Documentation_Index/Template_Language

    which describes three variables which produce multi-selecting tables of patient specific data that can be used inside a template.
  12. Jason

    Jason Developer / Handyman Staff Member

    [quote user="Graham"]

    Yes, any table can be made multi-select with the control key if you enable the multi-select feature

    eg. table options [ multi "Drugname" left 1.0 ] data [ "drug1" "drug2" "drug3" ]

    See alsohttp://compkarori.no-ip.biz:8090/Documentation_Index/Template_Language

    which describes three variables which produce multi-selecting tables of patient specific data that can be used inside a template.

    [/quote]



    I made a wiki entry which gives new users the Tip to "Put Code in the GUI template area and press [check]" !

    see here
  13. Graham

    Graham Developer Staff Member

    This template illustrates the user variables

    group-box "" -1x-1 data [

    label "Age" text "<$age>" return

    label "Sex" text "<$sex>" return

    label "Sex10" text "<$sex10>" return

    label "Systolic" text "<$systolic>" return

    label "Diastolic" text "<$diastolic>" return

    label "Height" text "<$height>" return

    label "Weight" text "<$weight>" return

    label "Total Cholesterol" text "<$cholesterol>" return

    label "HDL Cholesterol" text "<$hdl>" return

    label "ESR" text "<$esr>" return

    label "CRP" text "<$crp>" return

    table 85x50 options [ multi no-dividers "Diagnosis" left .75 "Code" left .25 ]

    data [ <$diagnoses> ] return

    table 85x50 options [ multi no-dividers "Drug" left .7 "Dose" left .3 ]

    data [ <$currentmedications> ]

    ]
  14. Jason

    Jason Developer / Handyman Staff Member

    Way Cool.

    I want to be able to make my *OWN* popups (not inside the Consult area) with stuff like this .... Possible ?

    It would be great !

  15. Jason

    Jason Developer / Handyman Staff Member

    It must be possible as it works in the >Settings>GUI template area !
  16. Graham

    Graham Developer Staff Member

    For what purpose?

    The only idea ( so far ) for user templates is to generate text, and so you need a consult to insert the text into.
  17. Jason

    Jason Developer / Handyman Staff Member

    I would like to present my patient's data AS I WANT.

    It might be different to how you want it.

    I've talked about how Synapse needs a "Patient Summary" HomePage (which it still does) .. well I could make my own "Patient Summary" Popup !

    When my new nurse wants to get a 45 second review of the current patient ... she could check out the Patient Summary Popup.

    Or more importantly ... I might need a review. [:)]


    That is but one use.

    I might want one with
    Another:
    A GI doc might want
    I might want a

    Diabetes View (certain labs, meds, names of specialists, last 4 A1cs with dates, etc.)


    A nurse might want ...

    A secretary might want ...

    I think the possibilties are almost endless. End users learning Template Code to make Examination templates is hard, but I'm sure they'd eagerly learn all this to be able to get their patient's data how their brains/eyes want to see it !

    Love this idea !

    Attached Files:

  18. Graham

    Graham Developer Staff Member

    there's only a small amount of data you can present inside a gui...
  19. Jason

    Jason Developer / Handyman Staff Member

    Sure. That's why the enduser can make whatever number of templates they want.

    Plus, a scrollbar'd GUI is very legit in these circumstances.
  20. Jason

    Jason Developer / Handyman Staff Member

    [quote user="Jason"]

    I would like to present my patient's data AS I WANT.

    Love this idea !
    [/quote]

    Discussion on this idea, given internal code name: DataViews, is continued <u>here </u>

Share This Page