Generates a Letter of Medical Necessity (LMN) from uploaded procedure notes using AI analysis. The letter can be returned as plain text or as a formatted PDF document based on the output_format parameter.
output_format: "text" or omitted)letter field containing the markdown-formatted letter content.
output_format: "pdf")fileContent field containing a base64-encoded PDF document. The PDF includes:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body containing base64 encoded file content and additional metadata
Request body for generating a Letter of Medical Necessity from encounter notes
Base64 encoded content of the procedure notes file (PDF)
Unique identifier for the patient
Patient's full name
Patient's age
Name of the medical facility or center
Cost of the visit or procedure
Provider's contact email address
Provider's contact phone number
"+1-555-123-4567"
Signature line text for the letter
Name and credentials of the provider signing the letter
"Dr. Jane Smith, MD"
Output format for the letter. Defaults to 'text' if not specified.
text, pdf Letter of Medical Necessity generated successfully
Response containing the generated Letter of Medical Necessity. The response format depends on the output_format parameter in the request.
The generated Letter of Medical Necessity content in text format. Present when output_format is 'text' or not specified.
Base64 encoded PDF content of the generated letter. Present when output_format is 'pdf'.
Timestamp when the letter was generated
The visit cost associated with the letter generation
The patient identifier associated with the letter