Create Encounter
tebra_create_encounterCreate a medical encounter in Tebra with ICD-10 diagnoses and CPT procedures, generating billable service lines. Returns the new encounter ID.
Instructions
Create a new encounter (superbill) in Tebra with diagnoses and procedures. Each procedure becomes a service line carrying up to 4 ICD-10 diagnosis codes (from the encounter-level diagnoses array, or per-procedure diagnosisCodes). practiceName or practiceId is strongly recommended — Tebra requires the practice on most accounts. Returns the created encounter ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caseId | No | Optional patient case ID to bill under | |
| diagnoses | Yes | Encounter-level diagnosis codes; the first 4 are applied to each service line | |
| patientId | Yes | Tebra patient ID | |
| practiceId | No | Practice ID (alternative to practiceName) | |
| procedures | Yes | Array of procedures; each becomes one service line | |
| providerId | Yes | Rendering provider ID | |
| serviceDate | Yes | Date of service (ISO 8601, e.g. 2026-03-25) | |
| practiceName | No | Practice name (strongly recommended; required by Tebra on most accounts) | |
| authorizationId | No | Optional authorization number to link | |
| encounterStatus | No | Initial encounter status (default 'Draft'; 'Approved' triggers billing) | |
| serviceLocationId | No | Optional service location ID | |
| placeOfServiceCode | No | Optional place of service code (e.g. 11 for office) |