There's a problem with your template .. if you look at the fax preview, you can see that the consult overwrites the header.
Despite this, I did manage to get it to create the correct pdf.
Try this version, which includes the diagnoses and medications:
pagesize Letter
font Times-Bold 14
linewidth 1
at 72x738 "Neurologist1, M.D."
at 72x724 "Neurologist2, M.D."
font Times-RomanItalic 10
at 72x702 "Board Certified Neurologists"
font Times-RomanItalic 9
newpath at 72x684 "office 1 address"
at 72x674 "office 2 address"
at 72x664 "office 3 address"
newpath at 75x698 line 540x698
font Times-Roman 12
at 72x630 Provider-Template
font Times-Roman 12
at 72x582 "Date of Visit:" font Times-Bold at 145x582 consult-date-usa
font Times-Roman 12
at 72x570 "Re:" font Times-Bold at 100x570 Patient-Template
font Times-Roman 11
at 72x545 "Dear "
at 97x545 Provider
at 100x530 font Times-Bold "Diagnoses"
at 300x530 "Medications"
font Times-Roman 11 at 400x550 ""
textbox 100x0 280x530
flow diagnoses-table only
textbox 300x0 570x530
flow meds-table only
font Times-Roman 11 at 400x550 ""
flow-translate 0x0
flowbox 72x150 540x700 float 20
flow-translate 0x0
flowbox 72x150 540x720
gonzo
flow consult gonzo
flow-translate 0x0
flowbox 72x150 540x700 float 20
showpage
or, try this one without the diagnoses/medications:
pagesize Letter
font Times-Bold 14
linewidth 1
at 72x738 "Neurologist1, M.D."
at 72x724 "Neurologist2, M.D."
font Times-RomanItalic 10
at 72x702 "Board Certified Neurologists"
font Times-RomanItalic 9
newpath at 72x684 "office 1 address"
at 72x674 "office 2 address"
at 72x664 "office 3 address"
newpath at 75x698 line 540x698
font Times-Roman 12
at 72x630 Provider-Template
font Times-Roman 12
at 72x582 "Date of Visit:" font Times-Bold at 145x582 consult-date-usa
font Times-Roman 12
at 72x570 "Re:" font Times-Bold at 100x570 Patient-Template
font Times-Roman 11
at 72x545 "Dear "
at 97x545 Provider
font Times-Roman 11 at 400x550 ""
flow-translate 0x0
flowbox 72x150 540x500
flow-translate 0x0
flowbox 72x150 540x720
gonzo
flow consult gonzo
flow-translate 0x0
flowbox 72x150 540x700 float 20
showpage
Now, this is the offending line flowbox 72x150 540x700 float 20
It says, to put the text in a text box which will flow in to the next text box. Make the size of the text box 72,150 bottom left to 540,700 top right but reize the top margin to 20 points below the previous text box. But there is no previous text box, and so, the consult starts near the top of the page ie. at 700 points from the bottom.
In the first example, I have the diagnoses and medications text boxes, and so the consult resizes itself to below these.
To fix your problem, I removed the float 20 so that the box is a fixed size, and changed the y offset.
flowbox 72x150 540x500
Graham Chiu
Beta Downloads and Documentation Wiki
Developer Forum