Customizing your Prescriptions

Discussion in 'Documentation & Training Resources' started by Jason, Dec 11, 2006.

  1. Graham

    Graham Developer Staff Member

    Try beta-9 which wraps some walls around the eps file.

  2. Jason

    Jason Developer / Handyman Staff Member

    Beta 9 worked well.

    GSview didnt print 2 pages, just the one :)

    Attached is a PDFsearchable scanned copy of it.

    Attached Files:

  3. Jason

    Jason Developer / Handyman Staff Member

    My Signature. Early alpha version.

    Attached Files:

  4. Jason

    Jason Developer / Handyman Staff Member

    %!PS-Adobe-3.0 EPSF-3.0
    %%Creator: jpeg2ps V1.9 by Thomas Merz
    %%Title: rxheader.jpg
    %%CreationDate: Wed Dec 13 16:39:44 2006
    %%BoundingBox: 20 20 592 115
    %%DocumentData: Clean7Bit
    %%LanguageLevel: 2
    %%EndComments
    %%BeginProlog
    %%EndProlog
    %%Page: 1 1
    /languagelevel where {pop languagelevel 2 lt}{true} ifelse {
    (JPEG file 'rxheader.jpg' needs PostScript Level 2!\n) dup print flush
    /Helvetica findfont 20 scalefont setfont 100 100 moveto show showpage stop
    } if
    save
    /RawData currentfile /ASCII85Decode filter def
    /Data RawData << >> /DCTDecode filter def
    20 20 translate
    572.00 94.41 scale
    /DeviceRGB setcolorspace
    { << /ImageType 1
    /Width 618
    /Height 102
    /ImageMatrix [ 618 0 0 -102 0 102 ]
    /DataSource Data
    /BitsPerComponent 8
    /Decode [0 1 0 1 0 1]
    >> image
    Data closefile
    RawData flushfile
    showpage
    restore
    } exec
    s4IA0!"_al8O`[\!<E1.!+5d,s4[N@!!ic5#6k>;#6tJ?#m^kH'FbHY$Odmc'+Yc
    t)BU"@)B9_>,VCGe+tOrY*%3`p/2/e81c-:%3B]>W4>&amp;EH1B6)/6NIK"#n.1M(_$
    ok1*IV\1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,:U?1,
    :U?1,AmF!"fJ:Acc]L!?qLF&amp;HMtG!WU(<*rl9A"T\W)!<E3$z!!!!"!WrQ/"pYD?
    $4HmP!4<@<!W`B*!X&amp;T/"U"r.!!.KK!WrE*&amp;Hrdj0gQ!W;.0\RE>10ZOeE%*6F"?
    A;UOtZ1LbBV#mqFa(`=5<-7:2j.Ps"@2`NfY6UX@47n?3D;cHat='/U/@q9._B4u
    !oF*)PJGBeCZK7nr5LPUeEP*;,qQC!u,R\HRQV5C/hWN*81['d?O\@K2f_o0O6a2
    lBFdaQ^rf%8R-g>V&amp;OjQ5OekiqC&amp;o(2MHp@n@XqZ"J6*ru?D!<E3%!<E3%!<<*"!
    !!!"!WrQ/"pYD?$4HmP!4<C=!W`?*"9Sc3"U"r.!<RHF!<N?8"9fr'"qj4!#@VTc
    +u4]T'LIqUZ,$_k1K*]W@WKj'(*k`q-1Mcg)&amp;ahL-n-W'2E*TU3^Z;(7Rp!@8lJ\
    h<``C+>%;)SAnPdkC3+K>G'A1VH@gd&amp;K



    -=-=-=-=-=-=-=-=-=-

    pagesize A4
    font Times-BoldItalic 22
    linewidth 1
    color (blue)
    at 190x750 "Dr. Imthe Demodoc, MD"
    color (black)
    font Times-Roman 12
    newpath at 75x725 line1
    at 75x715 line2
    at 75x705 line3
    at 440x725 "Ph: "
    at 460x725 ph
    at 440x710 "Fx: "
    at 460x710 fx
    at 75x680 "Date:" font Times-Bold at 105x680 today
    font Times-Roman 14
    at 75x655 patient-table
    at 360x660 "Dob:" at 400x660 dob
    newpath at 75x740 line 530x740
    newpath at 75x700 line 530x700
    font Times-Roman 12
    at 75x580 prescription 30 60 250x600
    font Times-Roman 12
    at 140x150 "Signature:"
    at 210x150 line 380x150
    at 390x150 "Registration: "
    at 455x150 medical-registration
    at 400x190 "Generic Substitution Permitted"
    at 0x35 eps %/c/EMR/Client/rxheader.eps
    showpage

  5. Graham

    Graham Developer Staff Member

    Many years ago, I used to add seasonal themes ( images ) to my letters a la Google.

    Perhaps I can do that again!

    I'm going to now see if I can add a scaling command so that the eps can be rescaled on the fly.
  6. Jason

    Jason Developer / Handyman Staff Member

    That's the one !
  7. Graham

    Graham Developer Staff Member

    I wonder if writing the prescription using a bar code font is allowable!

  8. Jason

    Jason Developer / Handyman Staff Member

    I'm thinking NO [:)]

  9. Jason

    Jason Developer / Handyman Staff Member

    I am trying to add a line to my prescriptions:

    PharmacyName, City.

    I know the variable names are:

    at 330x680 (pharmanamefld/text) (pharmacityfld/text)

    Is it possible to add these fields as follows:

    [pharmacy name][comma][space][pharmacy city][period]

    ?



  10. Graham

    Graham Developer Staff Member

    Try

    at 330x680 ( rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ])
  11. Jason

    Jason Developer / Handyman Staff Member

    way cool, works. What's being trimmed ? [:)]
  12. Graham

    Graham Developer Staff Member

    Any spaces at the end of the field if they are there ...
  13. Jason

    Jason Developer / Handyman Staff Member

    figured as much,

    How could I *NOT* print out the patient's pharmacy if one is not entered ?
  14. Graham

    Graham Developer Staff Member

    at 330x680 ( either empty? pharmanamefld/text [ ""] [ rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ]] )

    might work ...
  15. Jason

    Jason Developer / Handyman Staff Member

    Works ... way way cool.

    at 230x680 "Pharmacy:"
    at 295x680 ( either empty? pharmanamefld/text [ ""] [ rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ]] )



    Q: How might I not print the word Pharmacy if either are empty as well ?

  16. Graham

    Graham Developer Staff Member

    yes, you could ...

  17. Jason

    Jason Developer / Handyman Staff Member

    How ? [:)]
  18. Jason

    Jason Developer / Handyman Staff Member

    Updated my script template:



    pagesize A4
    font Times-Bold 16
    linewidth 1
    color (blue)
    at 230x744 "Dr. T. Demodoc, MD"
    at 75x800 line 530x800
    at 75x750 line 530x750
    at 75x700 line 530x700
    at 75x650 line 530x650
    at 75x600 line 530x600
    at 75x550 line 530x550
    at 75x500 line 530x500
    at 75x450 line 530x450
    at 75x400 line 530x400
    at 75x350 line 530x350
    at 75x300 line 530x300
    at 75x250 line 530x250
    at 75x200 line 530x200
    at 75x150 line 530x150
    at 550x800 line 550x150
    at 500x800 line 500x150
    at 450x800 line 450x150
    at 400x800 line 400x150
    at 350x800 line 350x150
    at 300x800 line 300x150
    at 250x800 line 250x150
    at 200x800 line 200x150
    at 150x800 line 150x150
    at 100x800 line 100x150
    at 50x800 line 50x150
    at 537x800 "550"
    at 487x800 "500"
    at 437x800 "450"
    at 387x800 "400"
    at 337x800 "350"
    at 288x800 "300"
    at 237x800 "250"
    at 187x800 "200"
    at 137x800 "150"
    at 87x800 "100"
    at 38x800 "50"
    at 75x150 "150"
    at 75x788 "800"
    at 75x750 "750"
    at 75x700 "700"
    at 75x650 "650"
    at 75x600 "600"
    at 75x550 "550"
    at 75x500 "500"
    at 75x450 "450"
    at 75x400 "400"
    at 75x350 "350"
    at 75x300 "300"
    at 75x250 "250"
    at 75x200 "200"
    at 75x150 "150"
    at 250x135 "250x150 horizontal x vertical"
    at 250x119 "think of the lines being drawn from the bottom left"
    at 0x0 line 250x150
    at 250x100 "so 250x150 is over 250 and up 150"
    color (black)
    font Times-Roman 12
    newpath at 75x740 line 530x740
    newpath at 75x700 line 530x700
    at 230x728 line1
    at 230x716 line2
    at 230x703 line3
    at 440x725 "Ph: "
    at 460x725 ph
    at 440x710 "Fx: "
    at 460x710 fx
    at 230x680 "Pharmacy:"
    at 295x680 ( either empty? pharmanamefld/text [ ""] [ rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ]] )
    font Times-Roman 16
    at 75x655 patient-table
    at 75x608 "DOB:" at 116x608 dob
    at 400x608 "Date:" font Times-Bold at 440x608 today
    font Times-Roman 12
    at 75x594 line 530x594
    at 75x580 prescription 30 60 250x600
    at 140x300 meds-table
    at 140x150 "Signature:"
    at 210x150 line 380x150
    at 390x150 "Registration: "
    at 455x150 medical-registration
    at 400x190 "Generic Substitution Permitted"

    showpage

    ==========


    The blank line above (before showpage) is for an image file I attach to prescriptions: at 0x35 eps %/r/synapsefiles/rxheader.eps





  19. Jason

    Jason Developer / Handyman Staff Member

    Here is a special test script to help users understand the placement of items on a prescription.

    =========

    pagesize A4
    font Times-Bold 16
    linewidth 1
    color (blue)
    at 230x744 "Dr. T. Demodoc, MD"
    at 75x800 line 530x800
    at 75x750 line 530x750
    at 75x700 line 530x700
    at 75x650 line 530x650
    at 75x600 line 530x600
    at 75x550 line 530x550
    at 75x500 line 530x500
    at 75x450 line 530x450
    at 75x400 line 530x400
    at 75x350 line 530x350
    at 75x300 line 530x300
    at 75x250 line 530x250
    at 75x200 line 530x200
    at 75x150 line 530x150
    at 550x800 line 550x150
    at 500x800 line 500x150
    at 450x800 line 450x150
    at 400x800 line 400x150
    at 350x800 line 350x150
    at 300x800 line 300x150
    at 250x800 line 250x150
    at 200x800 line 200x150
    at 150x800 line 150x150
    at 100x800 line 100x150
    at 50x800 line 50x150
    at 537x800 "550"
    at 487x800 "500"
    at 437x800 "450"
    at 387x800 "400"
    at 337x800 "350"
    at 288x800 "300"
    at 237x800 "250"
    at 187x800 "200"
    at 137x800 "150"
    at 87x800 "100"
    at 38x800 "50"
    at 75x150 "150"
    at 75x788 "800"
    at 75x750 "750"
    at 75x700 "700"
    at 75x650 "650"
    at 75x600 "600"
    at 75x550 "550"
    at 75x500 "500"
    at 75x450 "450"
    at 75x400 "400"
    at 75x350 "350"
    at 75x300 "300"
    at 75x250 "250"
    at 75x200 "200"
    at 75x150 "150"
    at 250x135 "250x150 horizontal x vertical"
    at 250x119 "think of the lines being drawn from the bottom left"
    at 0x0 line 250x150
    at 250x100 "so 250x150 is over 250 and up 150"
    color (black)
    font Times-Roman 12
    newpath at 75x740 line 530x740
    newpath at 75x700 line 530x700
    at 230x728 line1
    at 230x716 line2
    at 230x703 line3
    at 440x725 "Ph: "
    at 460x725 ph
    at 440x710 "Fx: "
    at 460x710 fx
    at 230x680 "Pharmacy:"
    at 295x680 ( either empty? pharmanamefld/text [ ""] [ rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ]] )
    font Times-Roman 16
    at 75x655 patient-table
    at 75x608 "DOB:" at 116x608 dob
    at 400x608 "Date:" font Times-Bold at 440x608 today
    font Times-Roman 12
    at 75x594 line 530x594
    at 75x580 prescription 30 60 250x600
    at 140x300 meds-table
    at 140x150 "Signature:"
    at 210x150 line 380x150
    at 390x150 "Registration: "
    at 455x150 medical-registration
    at 400x190 "Generic Substitution Permitted"
    showpage

    =================

    Here is what the above template looks like:


    Attached Files:

  20. Jason

    Jason Developer / Handyman Staff Member

    Here is a special test script to help users understand the placement of items on a prescription.

    =========

    pagesize A4
    font Times-Bold 16
    linewidth 1
    color (blue)
    at 230x744 "Dr. T. Demodoc, MD"
    at 75x800 line 530x800
    at 75x750 line 530x750
    at 75x700 line 530x700
    at 75x650 line 530x650
    at 75x600 line 530x600
    at 75x550 line 530x550
    at 75x500 line 530x500
    at 75x450 line 530x450
    at 75x400 line 530x400
    at 75x350 line 530x350
    at 75x300 line 530x300
    at 75x250 line 530x250
    at 75x200 line 530x200
    at 75x150 line 530x150
    at 550x800 line 550x150
    at 500x800 line 500x150
    at 450x800 line 450x150
    at 400x800 line 400x150
    at 350x800 line 350x150
    at 300x800 line 300x150
    at 250x800 line 250x150
    at 200x800 line 200x150
    at 150x800 line 150x150
    at 100x800 line 100x150
    at 50x800 line 50x150
    at 537x800 "550"
    at 487x800 "500"
    at 437x800 "450"
    at 387x800 "400"
    at 337x800 "350"
    at 288x800 "300"
    at 237x800 "250"
    at 187x800 "200"
    at 137x800 "150"
    at 87x800 "100"
    at 38x800 "50"
    at 75x150 "150"
    at 75x788 "800"
    at 75x750 "750"
    at 75x700 "700"
    at 75x650 "650"
    at 75x600 "600"
    at 75x550 "550"
    at 75x500 "500"
    at 75x450 "450"
    at 75x400 "400"
    at 75x350 "350"
    at 75x300 "300"
    at 75x250 "250"
    at 75x200 "200"
    at 75x150 "150"
    at 250x135 "250x150 horizontal x vertical"
    at 250x119 "think of the lines being drawn from the bottom left"
    at 0x0 line 250x150
    at 250x100 "so 250x150 is over 250 and up 150"
    color (black)
    font Times-Roman 12
    newpath at 75x740 line 530x740
    newpath at 75x700 line 530x700
    at 230x728 line1
    at 230x716 line2
    at 230x703 line3
    at 440x725 "Ph: "
    at 460x725 ph
    at 440x710 "Fx: "
    at 460x710 fx
    at 230x680 "Pharmacy:"
    at 295x680 ( either empty? pharmanamefld/text [ ""] [ rejoin [ trim pharmanamefld/text ", " trim pharmacityfld/text "." ]] )
    font Times-Roman 16
    at 75x655 patient-table
    at 75x608 "DOB:" at 116x608 dob
    at 400x608 "Date:" font Times-Bold at 440x608 today
    font Times-Roman 12
    at 75x594 line 530x594
    at 75x580 prescription 30 60 250x600
    at 140x300 meds-table
    at 140x150 "Signature:"
    at 210x150 line 380x150
    at 390x150 "Registration: "
    at 455x150 medical-registration
    at 400x190 "Generic Substitution Permitted"
    showpage

    =================

    Here is what the above template looks like:


Share This Page