render_referral_letter
Render a doctor-to-specialist referral letter as a PDF, auto-generating missing fields and returning both the PDF and completed structured content.
Instructions
Render a referral letter from a referring doctor to a specialist as a PDF. Write the letter content like a real referral letter: every section is plain text in the letter language, and empty sections are left out. Leave patient, sender and recipient fields empty to have them generated; set patient to null for a letter without patient details. Salutation, opening sentence, closing, signature and stamp are added automatically. Returns the PDF as an embedded resource and the completed letter (with generated fields) plus the seed as structured content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| letter | Yes |