Create Document
tebra_create_documentUpload a medical document to a patient's Tebra record using base64 content, with file type inferred from the extension and a required category label.
Instructions
Upload a document to a patient record in Tebra via base64 content (PDF, JPG, PNG, TIFF — type inferred from the file extension). documentLabel must be a Tebra DocumentLabel enum value (CamelCase, no spaces), e.g.: MedicalReport, PatientAuthorizationOrReferral, PatientCorrespondence, PatientDemographics, PatientInsuranceCard, PatientDriversLicense, Superbill, ExplanationofBenefits, InsuranceCorrespondence, OperativeReport, ... Use 'Other' when unsure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | File name with extension (e.g. lab_results.pdf) — the extension determines the file type | |
| patientId | Yes | Tebra patient ID | |
| practiceId | No | Practice ID (required by Tebra; auto-resolved to the account's first practice if omitted) | |
| description | No | Optional document description/notes | |
| fileContent | Yes | Base64-encoded file content | |
| documentName | No | Optional display name for the document (defaults to fileName) | |
| documentLabel | Yes | Document category label from the Tebra DocumentLabel enum (e.g. MedicalReport, PatientAuthorizationOrReferral, PatientCorrespondence, PatientDemographics, PatientInsuranceCard, PatientDriversLicense, Other). Spaces are stripped automatically. | |
| encounterDate | No | Optional document date to associate with (ISO 8601) |