{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/taigabilling-com/main/json-schema/taigabilling-com-post-api-encounters-v4-request-schema.json",
  "title": "PostApiEncountersV4Request",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/taigabilling-com-openapi-generated.yml#/components/schemas/PostApiEncountersV4Request",
  "type": "object",
  "properties": {
    "benefits_assigned_to_provider": {
      "type": "boolean"
    },
    "billable_status": {
      "type": "string",
      "description": "Defines if the Encounter is to be billed by Taiga to the responsible_party."
    },
    "billing_provider": {
      "type": "string"
    },
    "diagnoses": {
      "type": "array"
    },
    "external_id": {
      "type": "string"
    },
    "patient": {
      "type": "string"
    },
    "patient_authorized_release": {
      "type": "boolean"
    },
    "place_of_service_code": {
      "type": "string"
    },
    "provider_accepts_assignment": {
      "type": "boolean"
    },
    "rendering_provider": {
      "type": "string"
    },
    "responsible_party": {
      "type": "string"
    },
    "accident_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "additional_information": {
      "type": "string",
      "description": "optional, nullable"
    },
    "admission_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "appointment_type": {
      "type": "string",
      "description": "optional, nullable"
    },
    "billing_notes": {
      "type": "array",
      "description": "optional, nullable"
    },
    "claim_supplemental_information": {
      "type": "array",
      "description": "optional, nullable"
    },
    "clinical_notes": {
      "type": "array",
      "description": "optional, nullable"
    },
    "date_of_service": {
      "type": "string",
      "description": "optional, nullable"
    },
    "delay_reason_code": {
      "type": "string",
      "description": "optional, nullable"
    },
    "discharge_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "end_date_of_service": {
      "type": "string",
      "description": "optional, nullable"
    },
    "epsdt_referral": {
      "type": "string",
      "description": "optional, nullable"
    },
    "existing_medications": {
      "type": "array",
      "description": "optional, nullable"
    },
    "guarantor": {
      "type": "string",
      "description": "optional, nullable"
    },
    "initial_referring_provider": {
      "type": "string",
      "description": "optional, nullable"
    },
    "initial_treatment_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "interventions": {
      "type": "array",
      "description": "optional, nullable"
    },
    "last_menstrual_period_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "onset_of_current_illness_or_symptom_date": {
      "type": "string",
      "description": "optional, nullable"
    },
    "outside_lab": {
      "type": "boolean",
      "description": "optional, nullable"
    },
    "outside_lab_charges_amount_cents": {
      "type": "integer",
      "description": "optional, nullable"
    },
    "patient_histories": {
      "type": "array",
      "description": "optional, nullable"
    },
    "pay_to_address": {
      "type": "string",
      "description": "optional, nullable"
    },
    "prior_authorization_number": {
      "type": "string",
      "description": "optional, nullable"
    },
    "property_casualty_claim_number": {
      "type": "string",
      "description": "optional, nullable"
    },
    "property_casualty_patient_identifier": {
      "type": "string",
      "description": "optional, nullable"
    },
    "purchased_service_provider_npi": {
      "type": "string",
      "description": "optional, nullable"
    },
    "referral_number": {
      "type": "string",
      "description": "optional, nullable"
    },
    "referring_provider": {
      "type": "string",
      "description": "optional, nullable"
    },
    "related_causes_information": {
      "type": "string",
      "description": "optional, nullable"
    },
    "secondary_payer_carrier_code": {
      "type": "string",
      "description": "optional, nullable"
    },
    "service_authorization_exception_code": {
      "type": "string",
      "description": "optional, nullable"
    },
    "service_facility": {
      "type": "string",
      "description": "optional, nullable"
    },
    "service_facility_id": {
      "type": "string",
      "description": "optional, nullable"
    },
    "service_lines": {
      "type": "array",
      "description": "optional, nullable"
    },
    "subscriber_primary": {
      "type": "string",
      "description": "optional, nullable"
    },
    "subscriber_secondary": {
      "type": "string",
      "description": "optional, nullable"
    },
    "subscriber_tertiary": {
      "type": "string",
      "description": "optional, nullable"
    },
    "supervising_provider": {
      "type": "string",
      "description": "optional, nullable"
    },
    "synchronicity": {
      "type": "string",
      "description": "optional, nullable"
    },
    "tag_ids": {
      "type": "array",
      "description": "optional, nullable"
    },
    "vitals": {
      "type": "string",
      "description": "optional, nullable"
    },
    "external_claim_submission": {
      "type": "string",
      "description": "optional, nullable"
    },
    "schema_instances": {
      "type": "array",
      "description": "optional, nullable"
    },
    "treating_provider": {
      "type": "string",
      "description": "optional, nullable"
    }
  },
  "required": [
    "benefits_assigned_to_provider",
    "billable_status",
    "billing_provider",
    "diagnoses",
    "external_id",
    "patient",
    "patient_authorized_release",
    "place_of_service_code",
    "provider_accepts_assignment",
    "rendering_provider",
    "responsible_party"
  ]
}