{"openapi":"3.0.1","info":{"title":"Taiga Partner API","version":"v1"},"paths":{"/api/charge_capture_claim_creation/v1/{charge_capture_claim_creation_id}":{"get":{"operationId":"chargeCaptureBundles_v1_get","tags":["ChargeCaptureBundlesV1"],"parameters":[{"name":"charge_capture_claim_creation_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreation"}}}}},"summary":"Get Charge Capture Claim Creation","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/charge_capture_claim_creation/v1":{"get":{"operationId":"chargeCaptureBundles_v1_getAll","tags":["ChargeCaptureBundlesV1"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"sort","in":"query","description":"Defaults to created_at","required":false,"schema":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreationSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"patient_external_id","in":"query","description":"The patient ID from the external EMR platform for the patient","required":false,"schema":{"type":"string","nullable":true}},{"name":"claim_creation_status","in":"query","description":"the status of the charge capture Claim Creation, refers to whether it was able to create a claim.","required":false,"schema":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreationStatus","nullable":true}},{"name":"charge_status","in":"query","description":"the status of the charge captures","required":false,"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","nullable":true}},{"name":"charge_external_id","in":"query","description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI.","required":false,"schema":{"type":"string","nullable":true}},{"name":"date_of_service_min","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"date_of_service_max","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"claim_ids","in":"query","description":"A list of claim IDs to filter by. This will return all charge capture claim_creations that have a resulting claim with one of the IDs in this list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/EncounterId","nullable":true}}},{"name":"claim_creation_ids","in":"query","description":"A list of Claim Creation IDs to filter by.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","nullable":true}}},{"name":"billing_provider_npis","in":"query","description":"A list of billing provider NPIs to filter by. This will return all charge capture claim_creations which include one or more charges with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"service_facility_name","in":"query","description":"A string to filter by. This will return all charge capture claim_creations which include one or more charges with this service facility name.","required":false,"schema":{"type":"string","nullable":true}},{"name":"primary_payer_ids","in":"query","description":"A list of primary payer IDs to filter by. This will return all charge capture claim_creations which include one or more charges with one of the primary payer IDs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_npis","in":"query","description":"A list of rendering provider NPIs to filter by. This will return all charge capture claim_creations which include one or more charges with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_names","in":"query","description":"A list of rendering provider names to filter by. This will return all charge capture claim_creations which include one or more charges with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_npis","in":"query","description":"A list of supervising provider NPIs to filter by. This will return all charge capture claim_creations which include one or more charges with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_names","in":"query","description":"A list of supervising provider names to filter by. This will return all charge capture claim_creations which include one or more charges with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"claim_status","in":"query","description":"the status of the claim to filter by created from charge capture bundle.","required":false,"schema":{"$ref":"#/components/schemas/ClaimStatus","nullable":true}},{"name":"claim_creation_category","in":"query","description":"A list of claim creation categories to filter by. This will return all charge capture claim_creations which include one or more charges with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"tags","in":"query","description":"A list of tags to filter by. This will return all charge captures with one of the tags.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"primary_payer_names","in":"query","description":"A list of primary payer names to filter by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"patient_names","in":"query","description":"A list of patient names to filter by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"has_charge_capture_updates","in":"query","description":"If true, only return claim_creations that have charge captures that have been updated since the Claim Creation has had a status of BILLED. See the updates property on ChargeCapture for more details.","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreationPage"}}}}},"summary":"Get all Charge Capture Claim Creations","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/charge_captures/v1":{"post":{"operationId":"chargeCapture_v1_create","tags":["ChargeCaptureV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCapture"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["ChargeExternalIdConflictError"]},"content":{"$ref":"#/components/schemas/charge-capturev1ChargeExternalIdConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create a Charge Capture","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureData","description":"Charge Capture data contains all the fields needed to create an encounter, but listed as optional. Taiga will use this data when attempting to bundle multiple Charge Captures into a single encounter."},"charge_external_id":{"type":"string","description":"A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI."},"originating_system":{"type":"string","nullable":true,"description":"An optional string field denoting the originating system of the charge."},"claim_creation_category":{"type":"string","nullable":true,"description":"An optional string field denoting the user defined category of the claim creation."},"ehr_source_url":{"type":"string","nullable":true,"description":"External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123)."},"patient_external_id":{"type":"string","description":"The patient ID from the external EMR platform for the patient"},"status":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","description":"the status of the charge capture"},"attachment_external_document_ids":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Provide external attachment IDs which have been uploaded to Taiga. They will be associated with the Encounter at Encounter creation time."},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that adhere to metadata schemas.\nMultiple metadata instances can be associated with a charge capture."},"hl7_message_type":{"$ref":"#/components/schemas/charge-capturev1Hl7MessageType","nullable":true,"description":"The HL7 message type that produced this write. Used to differentiate post-submission update behavior. Sent by HL7 producers (conduit); null for manual / script writes."}},"required":["data","charge_external_id","patient_external_id","status"]}}}}},"get":{"operationId":"chargeCapture_v1_getAll","tags":["ChargeCaptureV1"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"sort","in":"query","description":"Defaults to created_at","required":false,"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"patient_external_id","in":"query","description":"The patient ID from the external EMR platform for the patient","required":false,"schema":{"type":"string","nullable":true}},{"name":"status","in":"query","description":"the status of the charge captures","required":false,"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","nullable":true}},{"name":"charge_external_id","in":"query","description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI.","required":false,"schema":{"type":"string","nullable":true}},{"name":"date_of_service_min","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"date_of_service_max","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"claim_ids","in":"query","description":"A list of claim IDs to filter by. This will return all charge captures that have a resulting claim with one of the IDs in this list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/EncounterId","nullable":true}}},{"name":"claim_creation_ids","in":"query","description":"A list of Claim Creation IDs to filter by.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","nullable":true}}},{"name":"billing_provider_npis","in":"query","description":"A list of billing provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"service_facility_name","in":"query","description":"A string to filter by. This will return all charge captures with this service facility name.","required":false,"schema":{"type":"string","nullable":true}},{"name":"primary_payer_ids","in":"query","description":"A list of primary payer IDs to filter by. This will return all charge captures with one of the primary payer IDs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_npis","in":"query","description":"A list of rendering provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_names","in":"query","description":"A list of rendering provider names to filter by. This will return all charge captures with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_npis","in":"query","description":"A list of supervising provider NPIs to filter by. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_names","in":"query","description":"A list of supervising provider names to filter by. This will return all charge captures with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"claim_creation_category","in":"query","description":"A list of claim creation categories to filter by. This will return all charge capture claim_creations which include one or more charges with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"tags","in":"query","description":"A list of tags to filter by. This will return all charge captures with one of the tags.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"primary_payer_names","in":"query","description":"A list of primary payer names to filter by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"patient_names","in":"query","description":"A list of patient names to filter by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"exclude_charges_linked_to_claims","in":"query","description":"Whether to exclude charge captures which are part of a claim creation.","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"patient_external_id_ranked_sort","in":"query","description":"The patient ID from the external EMR platform for the patient","required":false,"schema":{"type":"string","nullable":true}},{"name":"status_ranked_sort","in":"query","description":"The charge capture status to show first","required":false,"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","nullable":true}},{"name":"charge_external_id_ranked_sort","in":"query","description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI.","required":false,"schema":{"type":"string","nullable":true}},{"name":"date_of_service_min_ranked_sort","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"date_of_service_max_ranked_sort","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"search_term","in":"query","description":"Filter by any of the following fields: charge_id, claim_id, patient external_id,\npatient date of birth, patient first name, patient last name,\nor charge external id.","required":false,"schema":{"type":"string","nullable":true}},{"name":"billable_status","in":"query","description":"Defines if the Encounter is to be billed by Taiga to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4BillableStatusType","nullable":true}},{"name":"responsible_party","in":"query","description":"Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4ResponsiblePartyType","nullable":true}},{"name":"claim_ids_ranked_sort","in":"query","description":"A list of claim IDs to show first. This will return all charge captures that have a resulting claim with one of the IDs in this list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/EncounterId","nullable":true}}},{"name":"claim_creation_ids_ranked_sort","in":"query","description":"A list of Claim Creation IDs to show first.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","nullable":true}}},{"name":"billing_provider_npis_ranked_sort","in":"query","description":"A list of billing provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"service_facility_name_ranked_sort","in":"query","description":"A string to show first. This will return all charge captures with this service facility name.","required":false,"schema":{"type":"string","nullable":true}},{"name":"primary_payer_ids_ranked_sort","in":"query","description":"A list of primary payer IDs to show first. This will return all charge captures with one of the primary payer IDs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_npis_ranked_sort","in":"query","description":"A list of rendering provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"rendering_provider_names_ranked_sort","in":"query","description":"A list of rendering provider names to show first. This will return all charge captures with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_npis_ranked_sort","in":"query","description":"A list of supervising provider NPIs to show first. This will return all charge captures with one of the NPIs in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"supervising_provider_names_ranked_sort","in":"query","description":"A list of supervising provider names to show first. This will return all charge captures with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"claim_status","in":"query","description":"the status of the claim to filter by created from charge capture bundle.","required":false,"schema":{"$ref":"#/components/schemas/ClaimStatus","nullable":true}},{"name":"claim_creation_category_ranked_sort","in":"query","description":"A list of claim creation categories to sort by. This will return all charge capture claim_creations which include one or more charges with one of the names in this list.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"tags_ranked_sort","in":"query","description":"A list of tags. This will return all charge captures with one of the tags.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"primary_payer_names_ranked_sort","in":"query","description":"A list of primary payer names to sort by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"patient_names_ranked_sort","in":"query","description":"A list of patient names to sort by. This will return all charge captures with one of the names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCapturePage"}}}}},"summary":"Get all Charge Captures","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/charge_captures/v1/create-from-pre-encounter":{"post":{"description":"Create a Charge Capture from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing\npatients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage\nof the pre-encounter service should use the standard create endpoint.\n\nAt encounter creation time, information from the provided patient and appointment objects will be populated\nwhere applicable. In particular, the following fields are populated from the patient and appointment objects:\n  - Patient\n  - Referring Provider\n  - Subscriber Primary\n  - Subscriber Secondary\n  - Referral Number\n  - Responsible Party\n  - Guarantor\n\nNote that these fields should not be populated in the ChargeCaptureData property of this endpoint, as they will be overwritten at encounter creation time.\n\nUtilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the\nencounter has not already been submitted or adjudicated.","operationId":"chargeCapture_v1_create-from-pre-encounter-patient","tags":["ChargeCaptureV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCapture"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["ChargeExternalIdConflictError"]},"content":{"$ref":"#/components/schemas/charge-capturev1ChargeExternalIdConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create a Charge Capture from pre-encounter patient and appointment","x-fern-availability":"in-development","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureData","description":"Charge Capture data contains all the fields needed to create an encounter, but listed as optional. Taiga will use this data when attempting to bundle multiple Charge Captures into a single encounter."},"charge_external_id":{"type":"string","description":"A client-specified unique ID to associate with this encounter; for example, your internal encounter ID or a Dr. Chrono encounter ID. This field should not contain PHI."},"pre_encounter_patient_id":{"$ref":"#/components/schemas/PreEncounterPatientId"},"pre_encounter_appointment_ids":{"type":"array","items":{"$ref":"#/components/schemas/PreEncounterAppointmentId"}},"originating_system":{"type":"string","nullable":true,"description":"An optional string field denoting the originating system of the charge."},"claim_creation_category":{"type":"string","nullable":true,"description":"An optional string field denoting the user defined category of the claim creation."},"ehr_source_url":{"type":"string","nullable":true,"description":"External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page). Send full URL format for the external link (e.g. https://emr_charge_capture_url.com/123)."},"status":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","description":"the status of the charge capture"},"attachment_external_document_ids":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Provide external attachment IDs which have been uploaded to Taiga. They will be associated with the Encounter at Encounter creation time."},"hl7_message_type":{"$ref":"#/components/schemas/charge-capturev1Hl7MessageType","nullable":true,"description":"The HL7 message type that produced this write. Used to differentiate post-submission update behavior. Sent by HL7 producers (conduit); null for manual / script writes."}},"required":["data","charge_external_id","pre_encounter_patient_id","pre_encounter_appointment_ids","status"]}}}}}},"/api/charge_captures/v1/{charge_capture_id}":{"patch":{"operationId":"chargeCapture_v1_update","tags":["ChargeCaptureV1"],"parameters":[{"name":"charge_capture_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ChargeCaptureId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCapture"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Update Charge Capture","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureData","nullable":true},"charge_external_id":{"type":"string","nullable":true,"description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI."},"ehr_source_url":{"type":"string","nullable":true,"description":"External URL reference that links to Charge Capture details within the external system (e.g. the EHR visit page).\nSend full URL format for the external link (e.g. https://emr_charge_capture_url.com/123)."},"originating_system":{"type":"string","nullable":true,"description":"An optional string field denoting the originating system of the charge."},"claim_creation_category":{"type":"string","nullable":true,"description":"An optional string field denoting the user defined category of the claim creation."},"patient_external_id":{"type":"string","nullable":true,"description":"The patient ID from the external EMR platform for the patient"},"status":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus","nullable":true,"description":"the status of the charge capture"},"attachment_external_document_ids":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Provide external attachment IDs which have been uploaded to Taiga. They will be associated with the Encounter at Encounter creation time."},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that adhere to metadata schemas.\nMultiple metadata instances can be associated with a charge capture."},"hl7_message_type":{"$ref":"#/components/schemas/charge-capturev1Hl7MessageType","nullable":true,"description":"The HL7 message type that produced this write. Used to differentiate post-submission update behavior. Sent by HL7 producers (conduit); null for manual / script writes."}}}}}}},"get":{"operationId":"chargeCapture_v1_get","tags":["ChargeCaptureV1"],"parameters":[{"name":"charge_capture_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ChargeCaptureId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/charge-capturev1ChargeCapture"}}}}},"summary":"Get Charge Capture","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/contracts/v2/{contract_id}":{"get":{"description":"This API provides access to Professional Contracts. For Professional and Institutional Contracts use Contracts V3.","operationId":"contracts_v2_get","tags":["ContractsV2"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv2ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv2ContractWithProviders"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"delete":{"operationId":"contracts_v2_delete","tags":["ContractsV2"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv2ContractId"}}],"responses":{"204":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["ContractIsLinkedToFeeScheduleHttpError"]},"content":{"$ref":"#/components/schemas/contractsv2ContractIsLinkedToFeeScheduleError"}}}]}}}}},"summary":"Delete contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"contracts_v2_update","tags":["ContractsV2"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv2ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv2ContractWithProviders"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["ContractInvalidExpirationDateHttpError"]},"content":{"$ref":"#/components/schemas/contractsv2ContractInvalidExpirationDateError"}}}]}}}}},"summary":"Update contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv2RenderingProviderid"},"nullable":true,"description":"A rendering provider isn't contracted directly with the payer but can render\nservices under the contract held by the contracting provider.\nMax items is 4000."},"effective_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The starting day upon which the contract is effective"},"expiration_date":{"$ref":"#/components/schemas/contractsv2DateUpdate","nullable":true,"description":"An optional end day upon which the contract expires"},"regions":{"$ref":"#/components/schemas/contractsv2RegionsUpdate","nullable":true,"description":"If present, the contract's rendering providers will be patched to this exact\nvalue, overriding what was set before."},"contract_status":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true},"authorized_signatory":{"$ref":"#/components/schemas/contractsv2AuthorizedSignatoryUpdate","nullable":true},"commercial_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true},"medicare_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true},"medicaid_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true}}}}}}}},"/api/contracts/v2":{"get":{"description":"This API provides access to Professional Contracts. For Professional and Institutional Contracts use Contracts V3.","operationId":"contracts_v2_get_multi","tags":["ContractsV2"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of contracts returned. Defaults to 1000. Max is 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"contracting_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/contractsv2ContractingProviderId","nullable":true}},{"name":"rendering_provider_ids","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/contractsv2RenderingProviderid","nullable":true}}},{"name":"payer_names","in":"query","description":"Filter to contracts that include any of the included payer names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"states","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/State","nullable":true}}},{"name":"contract_status","in":"query","description":"The status of the contract. Defaults to `pending`","required":false,"schema":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true}},{"name":"sort","in":"query","description":"Potentially sort by a contract related attribute.  Defaults to created_at","required":false,"schema":{"$ref":"#/components/schemas/contractsv2ContractSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Direction of sort, defaulting to desc","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv2ContractsPage"}}}}},"summary":"Get all contracts","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new contract within the user's current organization","operationId":"contracts_v2_create","tags":["ContractsV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv2ContractWithProviders"}}}}},"summary":"Create contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contracting_provider_id":{"$ref":"#/components/schemas/contractsv2ContractingProviderId","description":"The UUID of the provider under agreement to the contract"},"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv2RenderingProviderid"},"description":"A rendering provider isn't contracted directly with the payer but can render\nservices under the contract held by the contracting provider.\nMax items is 4000."},"payer_uuid":{"type":"string","format":"uuid","description":"The UUID of the insurance company under agreement to the contract"}},"required":["contracting_provider_id","rendering_provider_ids","payer_uuid"],"allOf":[{"$ref":"#/components/schemas/contractsv2ContractBase"}]}}}}}},"/api/contracts/v3/{contract_id}":{"get":{"operationId":"contracts_v3_get","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractWithProvidersUnion"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"delete":{"operationId":"contracts_v3_delete","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"204":{"description":""},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["ContractIsLinkedToFeeScheduleHttpError"]},"content":{"$ref":"#/components/schemas/contractsv2ContractIsLinkedToFeeScheduleError"}}}]}}}}},"summary":"Delete contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"contracts_v3_update","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractWithProvidersUnion"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["ContractInvalidExpirationDateHttpError"]},"content":{"$ref":"#/components/schemas/contractsv2ContractInvalidExpirationDateError"}}}]}}}}},"summary":"Update contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractUpdateUnion"}}}}}},"/api/contracts/v3":{"get":{"operationId":"contracts_v3_get_multi","tags":["ContractsV3"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of contracts returned. Defaults to 1000. Max is 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"type","in":"query","description":"The type of contract","required":false,"schema":{"$ref":"#/components/schemas/contractsv3ContractType","nullable":true}},{"name":"contracting_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/contractsv3ContractingProviderId","nullable":true}},{"name":"rendering_provider_ids","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3RenderingProviderid","nullable":true}}},{"name":"payer_names","in":"query","description":"Filter to contracts that include any of the included payer names.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"states","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/State","nullable":true}}},{"name":"contract_status","in":"query","description":"The status of the contract. Defaults to `pending`","required":false,"schema":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true}},{"name":"sort","in":"query","description":"Potentially sort by a contract related attribute.  Defaults to created_at","required":false,"schema":{"$ref":"#/components/schemas/contractsv2ContractSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Direction of sort, defaulting to desc","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractsPage"}}}}},"summary":"Get all contracts","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new contract within the user's current organization","operationId":"contracts_v3_create","tags":["ContractsV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractWithProvidersUnion"}}}}},"summary":"Create contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractCreateUnion"}}}}}},"/api/contracts/v3/{contract_id}/providers":{"get":{"operationId":"contracts_v3_get_contract_providers","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of providers returned per page. Defaults to 100. Max is 1000.","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractProvidersPage"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get contract providers","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Appends a list of rendering provider IDs to the contract. Provider IDs already on the contract are silently ignored.","operationId":"contracts_v3_add_contract_providers","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3AddContractProvidersResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Add providers to contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3RenderingProviderid"},"description":"Provider IDs to add to the contract. Max 100,000 per request."}},"required":["rendering_provider_ids"]}}}}},"delete":{"description":"Removes the specified rendering provider IDs from the contract. Returns a 404 if any of the provided IDs are not currently in the contract.","operationId":"contracts_v3_remove_contract_providers","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractProviderCount"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Remove providers from contract","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3RenderingProviderid"},"description":"Provider IDs to remove from the contract. Max 100,000 per request."}},"required":["rendering_provider_ids"]}}}}}},"/api/contracts/v3/{contract_id}/providers/credentialing":{"get":{"description":"Returns rendering providers linked to a contract with their credentialing spans, scoped to the contract's contracting provider and payer. Providers with no matching spans are included with an empty list.","operationId":"contracts_v3_get_contract_provider_credentialing_spans","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of providers returned per page. Defaults to 100. Max is 1000.","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractProviderCredentialingPage"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get contract provider credentialing spans","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/contracts/v3/{contract_id}/service-facilities":{"post":{"operationId":"contracts_v3_create_contract_service_facility","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractServiceFacility"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create contract service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityBase"}]}}}}}},"/api/contracts/v3/{contract_id}/service-facilities/{contract_service_facility_id}":{"patch":{"operationId":"contracts_v3_update_contract_service_facility","tags":["ContractsV3"],"parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractId"}},{"name":"contract_service_facility_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractsv3ContractServiceFacility"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Update contract service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_facility_id":{"type":"string","format":"uuid","nullable":true,"description":"The UUID of the service facility"},"provider_ids":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true,"description":"The providers who are authorized under the contract"}}}}}}}},"/api/provider-credentialing-span/v2/facility":{"post":{"operationId":"credentialing_v2_createFacility","tags":["CredentialingV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"summary":"Create facility credentialing span","x-fern-availability":"pre-release","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_facility_id":{"type":"string","format":"uuid","description":"The ID of the service facility covered by the credentialing span."},"contracting_provider_id":{"type":"string","format":"uuid","description":"The ID of the billing provider for which the service facility is covered by the credentialing span."},"payer_uuid":{"type":"string","format":"uuid","description":"The ID of the payer covered by the credentialing span."},"start_date":{"type":"string","format":"date","nullable":true,"description":"Start date of the credentialing span."},"end_date":{"type":"string","format":"date","nullable":true,"description":"End date of the credentialing span."},"submitted_date":{"type":"string","format":"date","nullable":true,"description":"Date that the credential paperwork was submitted."},"payer_loaded_date":{"type":"string","format":"date","nullable":true,"description":"Date that the payer loaded the credentialing span into their system."}},"required":["service_facility_id","contracting_provider_id","payer_uuid"]}}}}},"get":{"operationId":"credentialing_v2_getAllFacilities","tags":["CredentialingV2"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"payer_uuid","in":"query","description":"Filter by payer.","required":false,"schema":{"type":"string","format":"uuid","nullable":true}},{"name":"contracting_provider_id","in":"query","description":"Filter to a particular contracting provider.","required":false,"schema":{"type":"string","format":"uuid","nullable":true}},{"name":"service_facility_id","in":"query","description":"Filter to a particular service facility.","required":false,"schema":{"type":"string","format":"uuid","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpanPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get all facility credentialing spans","x-fern-availability":"pre-release","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/provider-credentialing-span/v2/facility/{facility_credentialing_id}":{"get":{"operationId":"credentialing_v2_getFacility","tags":["CredentialingV2"],"parameters":[{"name":"facility_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpanId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get facility credentialing span","x-fern-availability":"pre-release","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"delete":{"description":"Soft deletes a credentialing span rate from the system.","operationId":"credentialing_v2_deleteFacility","tags":["CredentialingV2"],"parameters":[{"name":"facility_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpanId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Delete facility credentialing span","x-fern-availability":"pre-release","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"credentialing_v2_updateFacility","tags":["CredentialingV2"],"parameters":[{"name":"facility_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpanId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Update facility credentialing span","x-fern-availability":"pre-release","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contracting_provider_id":{"type":"string","format":"uuid","description":"The ID of the billing provider for which the service facility is covered by the credentialing span."},"payer_uuid":{"type":"string","format":"uuid","nullable":true,"description":"The ID of the payer doing the credentialing."},"start_date":{"type":"string","format":"date","nullable":true,"description":"Start date of the credentialing span."},"end_date":{"type":"string","format":"date","nullable":true,"description":"End date of the credentialing span."},"submitted_date":{"type":"string","format":"date","nullable":true,"description":"Date that the credential paperwork was submitted."},"payer_loaded_date":{"type":"string","format":"date","nullable":true,"description":"Date that the payer loaded the credentialing span into their system."}},"required":["contracting_provider_id"]}}}}}},"/api/provider-credentialing-span/v2":{"post":{"operationId":"credentialing_v2_create","tags":["CredentialingV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"summary":"Create provider credentialing span","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rendering_provider_id":{"type":"string","format":"uuid","description":"The ID of the rendering provider covered by the credentialing span."},"contracting_provider_id":{"type":"string","format":"uuid","description":"The ID of the billing provider for which the service facility is covered by the credentialing span."},"payer_uuid":{"type":"string","format":"uuid","description":"The ID of the payer covered by the credentialing span."},"start_date":{"type":"string","format":"date","nullable":true,"description":"Start date of the credentialing span."},"end_date":{"type":"string","format":"date","nullable":true,"description":"End date of the credentialing span."},"regions":{"$ref":"#/components/schemas/Regions","description":"The states covered by the credentialing span. A span may be national and cover all states."},"submitted_date":{"type":"string","format":"date","nullable":true,"description":"Date that the credential paperwork was submitted."},"payer_loaded_date":{"type":"string","format":"date","nullable":true,"description":"Date that the payer loaded the credentialing span into their system."}},"required":["rendering_provider_id","contracting_provider_id","payer_uuid","regions"]}}}}},"get":{"operationId":"credentialing_v2_getAll","tags":["CredentialingV2"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"payer_uuid","in":"query","description":"Filter by payer.","required":false,"schema":{"type":"string","format":"uuid","nullable":true}},{"name":"provider_id","in":"query","description":"Filter to a particular provider. Use in conjunction as_rendering_provider and as_contracting_provider.","required":false,"schema":{"type":"string","format":"uuid","nullable":true}},{"name":"as_rendering_provider","in":"query","description":"Filter to credentialing spans where the provider is a rendering provider. To use this filter provider_id is required.","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"as_contracting_provider","in":"query","description":"Filter to credentialing spans where the provider is a contracting provider. To use this filter provider_id is required.","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpanPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get all provider credentialing spans","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/provider-credentialing-span/v2/{provider_credentialing_id}":{"get":{"operationId":"credentialing_v2_get","tags":["CredentialingV2"],"parameters":[{"name":"provider_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ProviderCredentialingSpanId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get provider credentialing span","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"delete":{"description":"Soft deletes a credentialing span rate from the system.","operationId":"credentialing_v2_delete","tags":["CredentialingV2"],"parameters":[{"name":"provider_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ProviderCredentialingSpanId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Delete provider credentialing span","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"credentialing_v2_update","tags":["CredentialingV2"],"parameters":[{"name":"provider_credentialing_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ProviderCredentialingSpanId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpan"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Update provider credentialing span","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contracting_provider_id":{"type":"string","format":"uuid","nullable":true,"description":"The ID of the billing provider for which the service facility is covered by the credentialing span."},"payer_uuid":{"type":"string","format":"uuid","nullable":true,"description":"The ID of the payer doing the credentialing."},"start_date":{"type":"string","format":"date","nullable":true,"description":"Start date of the credentialing span."},"end_date":{"type":"string","format":"date","nullable":true,"description":"End date of the credentialing span."},"regions":{"$ref":"#/components/schemas/Regions","nullable":true,"description":"The states covered by the credentialing span. A span may be national and cover all states."},"submitted_date":{"type":"string","format":"date","nullable":true,"description":"Date that the credential paperwork was submitted."},"payer_loaded_date":{"type":"string","format":"date","nullable":true,"description":"Date that the payer loaded the credentialing span into their system."}}}}}}}},"/api/encounter-attachments/v1/{encounter_id}":{"get":{"operationId":"encounterAttachments_v1_get","tags":["EncounterAttachmentsV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/encounter-attachmentsv1EncounterAttachment"}}}}}},"summary":"Get Encounter Attachments","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"put":{"description":"Uploads a file to the encounter. The file will be stored in the\nencounter's attachments. Deprecated: Use create-v2 instead.","operationId":"encounterAttachments_v1_create","tags":["EncounterAttachmentsV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId"}}}}},"summary":"Create Encounter Attachment","x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"attachment_file":{"type":"string","format":"binary"},"attachment_type":{"$ref":"#/components/schemas/encounter-attachmentsv1EncounterAttachmentType"}}}}}}},"delete":{"operationId":"encounterAttachments_v1_delete","tags":["EncounterAttachmentsV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"204":{"description":""}},"summary":"Delete Encounter Attachment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attachment_id":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId"}},"required":["attachment_id"]}}}}}},"/api/encounter-attachments/v1/{encounter_id}/v2":{"put":{"description":"Uploads a file to the encounter. The file will be stored in the\nencounter's attachments.","operationId":"encounterAttachments_v1_create-with-description","tags":["EncounterAttachmentsV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId"}}}}},"summary":"Create Encounter Attachment V2","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"attachment_file":{"type":"string","format":"binary"},"attachment_type":{"$ref":"#/components/schemas/encounter-attachmentsv1EncounterAttachmentType"},"description":{"type":"string","nullable":true}}}}}}}},"/api/encounter-providers/v2/{encounter_id}":{"patch":{"operationId":"encounterProviders_v2_update_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found or has no referring provider.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderUpdate"}}}}}},"/api/encounter-providers/v2/{encounter_id}/initial-referring-provider":{"patch":{"operationId":"encounterProviders_v2_update_initial_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found or has no initial referring provider.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProviderUpdate"}}}}},"delete":{"operationId":"encounterProviders_v2_delete_initial_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The provider or encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/encounter-providers/v2/{encounter_id}/supervising-provider":{"patch":{"operationId":"encounterProviders_v2_update_supervising_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found or has no supervising provider.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderUpdate"}}}}},"delete":{"operationId":"encounterProviders_v2_delete_supervising_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The provider or encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/encounter-providers/v2/{service_line_id}/ordering-provider":{"patch":{"operationId":"encounterProviders_v2_update_ordering_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found or has no ordering provider.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2OrderingProviderUpdate"}}}}},"delete":{"operationId":"encounterProviders_v2_delete_ordering_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The provider or service line could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/encounter-providers/v2/{encounter_id}/create-referring-provider":{"post":{"operationId":"encounterProviders_v2_create_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter already has a referring provider.","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2ReferringProvider"}}}}}},"/api/encounter-providers/v2/{encounter_id}/create-initial-referring-provider":{"post":{"operationId":"encounterProviders_v2_create_initial_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter already has an initial referring provider.","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Cannot set Initial Referring Provider without an existing Referring Provider.","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProvider"}}}}}},"/api/encounter-providers/v2/{encounter_id}/create-supervising-provider":{"post":{"operationId":"encounterProviders_v2_create_supervising_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The encounter already has a supervising provider.","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProvider"}}}}}},"/api/encounter-providers/v2/{service_line_id}/create-ordering-provider":{"post":{"operationId":"encounterProviders_v2_create_ordering_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The service line could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The service line already has an ordering provider.","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-providersv2OrderingProvider"}}}}}},"/api/encounter-providers/v2/{encounter_id}/referring-provider":{"delete":{"operationId":"encounterProviders_v2_delete_referring_provider","tags":["EncounterProvidersV2"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The provider or encounter could not be found.","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"An encounter cannot have an initial referring provider without a referring provider.","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}}},"x-fern-availability":"deprecated","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/encounter-supplemental-information/v1/{encounter_id}":{"get":{"operationId":"encounterSupplementalInformation_v1_get","tags":["EncounterSupplementalInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformation"}}}}}},"summary":"Get Encounter Supplemental Information","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"put":{"operationId":"encounterSupplementalInformation_v1_create","tags":["EncounterSupplementalInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformation"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Create Encounter Supplemental Information","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1CreateSupplementalInformationRequest"}}}}}},"/api/encounter-supplemental-information/v1/{encounter_id}/{supplemental_information_id}":{"patch":{"operationId":"encounterSupplementalInformation_v1_update","tags":["EncounterSupplementalInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}},{"name":"supplemental_information_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformationId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformation"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Update Encounter Supplemental Information","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1UpdateSupplementalInformationRequest"}}}}},"delete":{"operationId":"encounterSupplementalInformation_v1_delete","tags":["EncounterSupplementalInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}},{"name":"supplemental_information_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformationId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Delete Encounter Supplemental Information","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/encounters/v4":{"get":{"operationId":"encounters_v4_getAll","tags":["EncountersV4"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true},"example":100,"examples":{"Example1":{"value":100}}},{"name":"claim_status","in":"query","description":"Indicates the current status of an insurance claim within the billing process.","required":false,"schema":{"$ref":"#/components/schemas/ClaimStatus","nullable":true},"example":"biller_received","examples":{"Example1":{"value":"biller_received"}}},{"name":"sort","in":"query","description":"Defaults to created_at:desc.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4EncounterSortOptions","nullable":true},"example":"created_at:asc","examples":{"Example1":{"value":"created_at:asc"}}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true},"example":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9","examples":{"Example1":{"value":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"}}},{"name":"date_of_service_min","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25.","required":false,"schema":{"type":"string","format":"date","nullable":true},"example":"2019-08-24","examples":{"Example1":{"value":"2019-08-24"}}},{"name":"date_of_service_max","in":"query","description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25.","required":false,"schema":{"type":"string","format":"date","nullable":true},"example":"2019-08-25","examples":{"Example1":{"value":"2019-08-25"}}},{"name":"primary_payer_names","in":"query","description":"Comma delimited string.","required":false,"schema":{"type":"string","nullable":true},"example":"Medicare,Medicaid","examples":{"Example1":{"value":"Medicare,Medicaid"}}},{"name":"search_term","in":"query","description":"Filter by any of the following fields: encounter_id, claim_id, patient external_id,\npatient date of birth, patient first name, patient last name,\nor encounter external id.","required":false,"schema":{"type":"string","nullable":true},"example":"doe","examples":{"Example1":{"value":"doe"}}},{"name":"external_id","in":"query","description":"Filter to an exact match on encounter external_id, if one exists.","required":false,"schema":{"$ref":"#/components/schemas/EncounterExternalId","nullable":true},"example":"123456","examples":{"Example1":{"value":"123456"}}},{"name":"diagnoses_updated_since","in":"query","description":"ISO 8601 timestamp; ideally in UTC (although not required): 2019-08-24T14:15:22Z.","required":false,"schema":{"type":"string","format":"date-time","nullable":true},"example":"2019-08-24T14:15:22Z","examples":{"Example1":{"value":"2019-08-24T14:15:22Z"}}},{"name":"tag_ids","in":"query","description":"Filter by name of tags on encounters.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagId","nullable":true}}},{"name":"work_queue_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/WorkQueueId","nullable":true}},{"name":"billable_status","in":"query","description":"Defines if the Encounter is to be billed by Taiga to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4BillableStatusType","nullable":true}},{"name":"responsible_party","in":"query","description":"Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4ResponsiblePartyType","nullable":true}},{"name":"owner_of_next_action","in":"query","description":"The party who is responsible for taking the next action on an Encounter, as defined by ownership of open Tasks.","required":false,"schema":{"$ref":"#/components/schemas/encountersv4EncounterOwnerOfNextActionType","nullable":true}},{"name":"patient_external_id","in":"query","description":"The patient ID from the external EMR platform for the patient","required":false,"schema":{"type":"string","nullable":true}},{"name":"include_merged_patient_data","in":"query","description":"If true and patient_external_id is set, then also include the encounters of all alternative patients.","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4EncounterPage"},"examples":{"Example1":{"value":{"items":[{"encounter_id":"B2506E84-4470-4CBA-8A68-6883367739E1","claims":[{"claim_id":"DD9D7F82-37B5-449D-AA63-26925398335B","status":"biller_received","clearinghouse":"Change Healthcare","clearinghouse_claim_id":"5BA7C3AB-2BC2-496C-8B10-6CAC73D0729D","payer_claim_id":"9BB9F259-9756-4F16-8F53-9DBB9F7EB1BB","service_lines":[{"created_at":"2023-01-01T00:00:00Z","modifiers":["22"],"charge_amount_cents":10000,"allowed_amount_cents":8000,"insurance_balance_cents":0,"patient_balance_cents":2000,"paid_amount_cents":8000,"patient_responsibility_cents":2000,"diagnosis_id_zero":"4AC84BCD-12F5-4F86-A57B-E06749127C98","diagnosis_id_one":"EEA5CA5A-8B43-45FD-8CBD-C6CC1103E759","diagnosis_id_two":"5C4AA029-2DB9-4202-916E-E93C708F65FF","diagnosis_id_three":"81795126-A3AC-443C-B47E-7259A16AB4A2","service_line_era_data":{"service_line_adjustments":[{"created_at":"2023-01-01T00:00:00Z","adjustment_group_code":"CO","adjustment_reason_code":"CO","adjustment_amount_cents":1000,"adjustment_note":"test_note"}],"remittance_advice_remark_codes":["N362"]},"service_line_manual_adjustments":[{"created_at":"2023-01-01T00:00:00Z","adjustment_group_code":"CO","adjustment_reason_code":"CO","adjustment_amount_cents":1000,"adjustment_note":"test_note"}],"related_invoices":[{"id":"901BE2F1-41BC-456E-9987-4FE2F84F9D75","created_at":"2023-01-01T00:00:00Z","updated_at":"2023-01-01T00:00:00Z","organzation_id":"F13F73D4-4344-46EA-9D93-33BCFFBB9F36","source_id":"9B626577-8808-4F28-9ED1-F0DFF0D49BBC","source_customer_id":"624D1972-8C69-4C2F-AEFA-10856F734DB3","patient_external_id":"10FED4D6-4C5A-48DF-838A-EEF45A74788D","note":"test_note","due_date":"2023-10-10","status":"draft","url":"https://example.com","customer_invoice_url":"https://example.com","items":[{"service_line_id":"CED00F23-6E68-4678-9DBC-F5AA2969A565","amount_cents":500}]}],"denial_reason":{"reason":"Authorization Required"},"place_of_service_code":"01","service_line_id":"CED00F23-6E68-4678-9DBC-F5AA2969A565","procedure_code":"99213","quantity":"1","units":"MJ","claim_id":"026A1FB8-748E-4859-A2D7-3EA9E07D25AE","date_of_service_range":{"start_date":"2023-01-01","end_date":"2023-01-03"},"date_of_service":"2023-01-01","end_date_of_service":"2023-01-03","test_results":[{"result_type":"HEMOGLOBIN","value":51},{"result_type":"LDL","value":110}]}],"eras":[{"era_id":"4D844EF1-2253-43CD-A4F1-6DB7E65CB54B","check_number":"CHK12345","check_date":"2023-10-12"}]}],"patient":{"individual_id":"93DDBEBF-4956-4482-9A6C-21499B7E4E5D","phone_numbers":[{"number":"1234567890","type":"Home"}],"non_insurance_payers":[{"non_insurance_payer_id":"EB7623AB-D5BC-4B25-B257-2B8FCEC578DE","name":"Sunrise Foundation","category":"Foundation","description":"Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.","enabled":true,"address":{"address1":"123 Main St","city":"San Francisco","state":"CA","zip_code":"94105"},"clinical_trials":[]}],"non_insurance_payers_info":[{"non_insurance_payer":{"non_insurance_payer_id":"EB7623AB-D5BC-4B25-B257-2B8FCEC578DE","name":"Sunrise Foundation","category":"Foundation","description":"Sunrise Foundation is a non-profit organization that provides financial assistance to patients in need.","enabled":true,"address":{"address1":"123 Main St","city":"San Francisco","state":"CA","zip_code":"94105"},"clinical_trials":[]},"member_id":"123456789","clinical_trial_info":[]}],"phone_consent":true,"email":"johndoe@taigabilling.com","email_consent":true,"auto_charge_consent":true,"external_id":"49460F77-6456-41F1-AC6D-0AED08614D39","date_of_birth":"2000-01-01","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"first_name":"John","last_name":"Doe","gender":"male"},"guarantor":{"guarantor_id":"8BBDBE63-58D3-4D40-98C9-40403C050977","phone_numbers":[{"number":"1234567890","type":"Home"}],"phone_consent":true,"email":"johndoe@taigabilling.com","email_consent":true,"auto_charge_consent":true,"first_name":"John","last_name":"Doe","external_id":"49460F77-6456-41F1-AC6D-0AED08614D39","date_of_birth":"2000-01-01","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}},"billing_provider":{"provider_id":"d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"tax_id":"123456789","npi":"1234567890","taxonomy_code":"207Q00000X","first_name":"John","last_name":"Doe","organization_name":"Organization Name"},"rendering_provider":{"provider_id":"d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"tax_id":"123456789","npi":"1234567890","taxonomy_code":"207Q00000X","first_name":"John","last_name":"Doe","organization_name":"Organization Name"},"referring_provider":{"provider_id":"d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"tax_id":"123456789","npi":"1234567890","taxonomy_code":"207Q00000X","first_name":"John","last_name":"Doe","organization_name":"Organization Name"},"service_facility":{"service_facility_id":"2861487B-232C-4DED-A874-616A5DB0688F","organization_name":"Test Organization","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}},"subscriber_primary":{"individual_id":"797348A9-E7E8-4E59-8628-95390D079C0B","insurance_card":{"insurance_card_id":"CA5B7711-4419-4161-9B7C-3494AC40C8D4","member_id":"E85313B4-0FFC-4119-8042-8161A4ECFF0A","payer_name":"John Doe","payer_id":"836DDAA6-863F-4020-ACCA-205A689F0002","rx_bin":"610014","rx_pcn":"MEDDPRIME","image_url_front":"https://s3.amazonaws.com/front.jpg","image_url_back":"https://s3.amazonaws.com/back.jpg","group_number":"ABC12345","plan_name":"Silver PPO Plan","plan_type":"09","insurance_type":"12"},"patient_relationship_to_subscriber_code":"01","date_of_birth":"2000-01-01","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"first_name":"John","last_name":"Doe","gender":"male"},"subscriber_secondary":{"individual_id":"797348A9-E7E8-4E59-8628-95390D079C0B","insurance_card":{"insurance_card_id":"CA5B7711-4419-4161-9B7C-3494AC40C8D4","member_id":"E85313B4-0FFC-4119-8042-8161A4ECFF0A","payer_name":"John Doe","payer_id":"836DDAA6-863F-4020-ACCA-205A689F0002","rx_bin":"610014","rx_pcn":"MEDDPRIME","image_url_front":"https://s3.amazonaws.com/front.jpg","image_url_back":"https://s3.amazonaws.com/back.jpg","group_number":"ABC12345","plan_name":"Silver PPO Plan","plan_type":"09","insurance_type":"12"},"patient_relationship_to_subscriber_code":"01","date_of_birth":"2000-01-01","address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"first_name":"John","last_name":"Doe","gender":"male"},"url":"https://example.com","diagnoses":[{"diagnosis_id":"5C770E00-4BBF-42AF-A73F-99C5E91FC0DB","created_at":"2023-01-01T00:00:00Z","updated_at":"2023-01-01T00:00:00Z","encounter_id":"3F63985B-51A4-4DD4-9418-7D50B2520792","name":"John Doe","code_type":"ABF","code":"I10"}],"clinical_notes":[{"category":"clinical","notes":["Patient complained of mild chest pain."],"notes_structured":[{"text":"Mild chest pain since morning.","author_name":"John Doe","author_npi":"1234567890","timestamp":"2023-01-01T00:00:00Z"}]}],"billing_notes":[{"billing_note_id":"99882EEA-936F-4E71-BC4F-520E4D14E3E2","encounter_id":"8BCFB6A8-2876-4111-9E3F-602B541FCF62","created_at":"2023-01-01T00:00:00Z","author_auth0_id":"F0DE3BF9-F9A1-4FA7-BF6B-28C0B46BADD8","author_name":"John Doe","text":"Patient was billed for an MRI."}],"place_of_service_code":"01","place_of_service_code_as_submitted":"01","patient_histories":[{"category":"present_illness","questions":[{"id":"6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176","text":"Do you have any allergies?","responses":[{"response":"No allergies","follow_ups":[{"id":"4F3D57F9-AC94-49D6-87E4-E804B709917A","text":"Do you have any allergies?","response":"No allergies"}]}]}]}],"patient_payments":[{"patient_payment_id":"CF237BE1-E793-4BBF-8958-61D5179D1D0D","organization_id":"0788CA2A-B20D-4B8E-B8D4-07FA0B3B4907","source_internal_id":"D1A76039-D5C5-4323-A2FC-B7C8B6AEF6A4","source":"MANUAL_ENTRY","amount_cents":2000,"payment_timestamp":"2023-01-01T00:00:00Z","status":"PENDING","payment_name":"John Doe","payment_note":"test payment note","patient_external_id":"B7437260-D6B4-48CF-B9D7-753C09F34E76","encounter_external_id":"0F26B9C3-199F-4CBB-A166-B87EA7C631BB","service_line_id":"B557DC86-C629-478C-850A-02D45AC11783"}],"tags":[{"creator_id":"00EB5A46-35C6-441B-9751-AF307AEF5888","tag_id":"void-claim-submitted","description":"to indicate claims where a void claim has been submitted","color":"black"}],"coding_attribution":"TAIGA","work_queue_id":"12","work_queue_membership_activated_at":"2023-01-01T00:00:00Z","owner_of_next_action":"TAIGA","submission_origin":"TAIGA","external_id":"5C21490F-A9C0-45F4-B5DB-136E3AEC617A","date_of_service":"2023-01-01","end_date_of_service":"2023-01-05","prior_authorization_number":"PA1234567","patient_authorized_release":true,"benefits_assigned_to_provider":true,"provider_accepts_assignment":true,"appointment_type":"Routine Checkup","existing_medications":[{"name":"Lisinopril","rx_cui":"860975","dosage":"10mg","dosage_form":"Tablet","frequency":"Once Daily","as_needed":true}],"interventions":[{"name":"Physical Therapy Session","category":"lifestyle","description":"A session focused on improving muscular strength, flexibility, and range of motion post-injury.","medication":{"name":"Lisinopril","rx_cui":"860975","dosage":"10mg","dosage_form":"Tablet","frequency":"Once Daily","as_needed":true},"labs":[{"name":"Genetic Health Labs","code":"GH12345","code_type":"quest"}]}],"pay_to_address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"},"synchronicity":"Synchronous","billable_status":"BILLABLE","responsible_party":"INSURANCE_PAY","service_authorization_exception_code":"1","admission_date":"2023-01-01","discharge_date":"2023-01-05","onset_of_current_illness_or_symptom_date":"2023-01-01","schema_instances":[{"schema_id":"ec096b13-f80a-471d-aaeb-54b021c9d582","content":{"provider_category":"internist","is_urgent_care":true,"bmi":24.2,"age":38}}],"created_at":"2023-01-01T00:00:00Z","next_responsible_party":"primary","organization_id":"6df0c51d-2b4c-4af8-acc1-5c0b589e9b26"}]}}}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}},"500":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["InternalError"]},"content":{"$ref":"#/components/schemas/InternalErrorMessage"}}}]}}}}},"summary":"Get all encounters","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"operationId":"encounters_v4_create","tags":["EncountersV4"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterPatientControlNumberUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterPatientControlNumberUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterGuarantorMissingContactInfoError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterGuarantorMissingContactInfoErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["CashPayPayerError"]},"content":{"$ref":"#/components/schemas/encountersv4CashPayPayerErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["InvalidTagNamesError"]},"content":{"$ref":"#/components/schemas/encountersv4InvalidTagNamesErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterRenderingOrAttendingProviderRequired"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterRenderingOrAttendingProviderRequiredError"}}}]}}}}},"summary":"Create professional encounter","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4EncounterCreate"}}}}}},"/api/encounters/v4/{encounter_id}":{"get":{"operationId":"encounters_v4_get","tags":["EncountersV4"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}}},"summary":"Get encounter","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"encounters_v4_update","tags":["EncountersV4"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["InvalidTagNamesError"]},"content":{"$ref":"#/components/schemas/encountersv4InvalidTagNamesErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}}]}}}}},"summary":"Update professional encounter","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4EncounterUpdate"}}}}}},"/api/encounters/v4/universal":{"post":{"description":"Notice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.\nNo portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,\nin any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior\nexpress, written consent of AHA.","operationId":"encounters_v4_create-universal","tags":["EncountersV4"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterPatientControlNumberUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterPatientControlNumberUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterGuarantorMissingContactInfoError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterGuarantorMissingContactInfoErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["CashPayPayerError"]},"content":{"$ref":"#/components/schemas/encountersv4CashPayPayerErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["InvalidTagNamesError"]},"content":{"$ref":"#/components/schemas/encountersv4InvalidTagNamesErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterRenderingOrAttendingProviderRequired"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterRenderingOrAttendingProviderRequiredError"}}}]}}}}},"summary":"Create institutional or professional encounter","x-fern-availability":"in-development","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreate"}}}}}},"/api/encounters/v4/create-from-pre-encounter/universal":{"post":{"description":"Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing\npatients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage\nof the pre-encounter service should use the standard create endpoint.\n\nThe endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects\nwhere applicable. In particular, the following fields are populated from the patient and appointment objects:\n  - Patient\n  - Referring Provider\n  - Subscriber Primary\n  - Subscriber Secondary\n  - Referral Number\n  - Responsible Party\n  - Guarantor\n\nUtilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the\nencounter has not already been submitted or adjudicated.\n\nNotice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.\nNo portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,\nin any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior\nexpress, written consent of AHA.","operationId":"encounters_v4_create-from-pre-encounter-patient-universal","tags":["EncountersV4"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterPatientControlNumberUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterPatientControlNumberUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}}]}}}}},"summary":"Create institutional or professional encounter from pre-encounter patient and appointment","x-fern-availability":"in-development","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreateFromPreEncounter"}}}}}},"/api/encounters/v4/create-from-pre-encounter":{"post":{"description":"Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing\npatients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage\nof the pre-encounter service should use the standard create endpoint.\n\nThe endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects\nwhere applicable. In particular, the following fields are populated from the patient and appointment objects:\n  - Patient\n  - Referring Provider\n  - Subscriber Primary\n  - Subscriber Secondary\n  - Referral Number\n  - Responsible Party\n  - Guarantor\n\nUtilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the\nencounter has not already been submitted or adjudicated.","operationId":"encounters_v4_create-from-pre-encounter-patient","tags":["EncountersV4"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterPatientControlNumberUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterPatientControlNumberUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}}]}}}}},"summary":"Create professional encounter from pre-encounter patient and appointment","x-fern-availability":"in-development","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4EncounterCreateFromPreEncounter"}}}}}},"/api/encounters/v4/{encounter_id}/universal":{"patch":{"description":"Notice: The UB-04 Data File, 2025, is copyrighted by American Hospital Association (AHA), Chicago, Illinois.\nNo portion of the THE UB-04 Data File, may be reproduced, stored in a retrieval system, or transmitted,\nin any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior\nexpress, written consent of AHA.","operationId":"encounters_v4_update-universal","tags":["EncountersV4"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/encountersv4Encounter"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterExternalIdUniquenessError"]},"content":{"$ref":"#/components/schemas/encountersv4EncounterExternalIdUniquenessErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["SchemaInstanceValidationHttpFailure"]},"content":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationFailure"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["InvalidTagNamesError"]},"content":{"$ref":"#/components/schemas/encountersv4InvalidTagNamesErrorType"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["PayerPlanGroupPayerDoesNotMatchInsuranceCardHttpError"]},"content":{"$ref":"#/components/schemas/encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError"}}}]}}}}},"summary":"Update institutional or professional encounter","x-fern-availability":"in-development","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/encounters-universalUniversalEncounterUpdate"}}}}}},"/api/fee-schedules/v3/service-line/{service_line_id}/match":{"get":{"description":"Gets the rate that matches a service line.  No result means no rate exists matching the service line's dimensions.","operationId":"feeSchedules_v3_get_match","tags":["FeeSchedulesV3"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3MatchResult","nullable":true}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["FailedToBuildServiceLineDimensions"]},"content":{"$ref":"#/components/schemas/ErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/service-line/{service_line_id}/match/{rate_id}":{"get":{"description":"Tests a service line against a rate to see if it matches.","operationId":"feeSchedules_v3_test_match","tags":["FeeSchedulesV3"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}},{"name":"rate_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/RateId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3MatchTestResult"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["FailedToBuildServiceLineDimensions"]},"content":{"$ref":"#/components/schemas/ErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3":{"get":{"description":"Gets a list of dimensions with their rates. The rates returned will always be the most recent versions of those rates.","operationId":"feeSchedules_v3_get_multi","tags":["FeeSchedulesV3"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of dimensions returned. Defaults to 100. Max is 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"active_date","in":"query","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"payer_uuid","in":"query","required":false,"schema":{"$ref":"#/components/schemas/payersv3PayerUuid","nullable":true}},{"name":"organization_billing_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","nullable":true}},{"name":"states","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/State","nullable":true}}},{"name":"zip_codes","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"license_types","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true}}},{"name":"facility_type_codes","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true}}},{"name":"network_types","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/NetworkType","nullable":true}}},{"name":"payer_plan_group_ids","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerPlanGroupId","nullable":true}}},{"name":"cpt_code","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"modifiers","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier","nullable":true}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3RatesPage"}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Uploads a new fee schedule.\n\nEach rate may either be totally new as qualified by its dimensions or a new version for an existing rate.\n\nIf adding a new version to an existing rate, the rate must be posted with the next version number (previous version + 1) or a EntityConflictError will\nbe returned.\n\nUse the dry run flag to discover already existing rates and to run validations.  If validations for any rate fail, no rates will\nbe saved to the system.","operationId":"feeSchedules_v3_upload_fee_schedule","tags":["FeeSchedulesV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3Rate"}}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["FeeScheduleValidationHttpError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3RateUploadWithPossibleErrors"}}}}]}}}}},"summary":"Upload a fee schedule (a collection of rates)","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dry_run":{"type":"boolean"},"rates":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3RateUpload"}}},"required":["dry_run","rates"]}}}}}},"/api/fee-schedules/v3/unique-dimension-values":{"get":{"description":"Gets unique values for a dimension based on other selection criteria. The response is a list of dimensions with your criteria and the unique values populated. This API is useful for driving pivots on dimension values.","operationId":"feeSchedules_v3_get_unique_values_for_dimension","tags":["FeeSchedulesV3"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"limit","in":"query","description":"Max number of values returned. Defaults to 1000. Max is 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"pivot_dimension","in":"query","description":"The name of the dimension to fetch unique values for.","required":true,"schema":{"$ref":"#/components/schemas/fee-schedulesv3DimensionName"}},{"name":"payer_uuid","in":"query","required":false,"schema":{"$ref":"#/components/schemas/payersv3PayerUuid","nullable":true}},{"name":"organization_billing_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","nullable":true}},{"name":"states","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/State","nullable":true}}},{"name":"zip_codes","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"license_types","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true}}},{"name":"facility_type_codes","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true}}},{"name":"network_types","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/NetworkType","nullable":true}}},{"name":"payer_plan_group_ids","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerPlanGroupId","nullable":true}}},{"name":"cpt_code","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"modifiers","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier","nullable":true}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3DimensionsPage"}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/{rate_id}/history":{"get":{"description":"Gets every version of a rate.","operationId":"feeSchedules_v3_get_rate_history","tags":["FeeSchedulesV3"],"parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/RateId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3Rate"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/{rate_id}/{version}":{"delete":{"description":"Soft deletes a rate from the system.  Only the most recent version of a rate can be deleted.","operationId":"feeSchedules_v3_delete_rate","tags":["FeeSchedulesV3"],"parameters":[{"name":"rate_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/RateId"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}}},"summary":"Delete a rate","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/payer-threshold/default":{"get":{"description":"Gets the default payer threshold","operationId":"feeSchedules_v3_get_payer_thresholds_default","tags":["FeeSchedulesV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3PayerThreshold"}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/payer-threshold":{"get":{"description":"Gets a list of payers and thresholds by their uuids","operationId":"feeSchedules_v3_get_payer_thresholds","tags":["FeeSchedulesV3"],"parameters":[{"name":"payer_uuids","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/payersv3PayerUuid"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3PayerThresholdsPage"}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/fee-schedules/v3/payer-threshold/{payer_uuid}":{"put":{"description":"Sets the threshold information for a payer","operationId":"feeSchedules_v3_set_payer_threshold","tags":["FeeSchedulesV3"],"parameters":[{"name":"payer_uuid","in":"path","required":true,"schema":{"$ref":"#/components/schemas/payersv3PayerUuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3PayerThreshold"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3PayerThreshold"}}}}}},"/api/fee-schedules/v3/hard-delete":{"post":{"description":"Hard deletes rates from the system that match the provided dimensions.  This is a destructive operation and cannot be undone.  If an empty dimensions object is provided, all rates will be hard deleted.  The maximum number of rates this API will delete at a time is 10000.  Returns the number of rates deleted and if that number is the maximum, the caller should call this API again to continue deleting rates.","operationId":"feeSchedules_v3_hard_delete_rates","tags":["FeeSchedulesV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer"}}}}},"summary":"Hard delete rates","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fee-schedulesv3OptionalDimensions"}}}}}},"/api/fee-schedules/v3/hard-delete-by-ids":{"post":{"description":"Hard deletes specific rates from the system by their IDs. This is a destructive operation and cannot be undone. Limited to 100 rate IDs maximum per request. For bulk deletion of more than 100 rates, use the hard_delete_rates endpoint with dimension filters. Returns the number of rates deleted.","operationId":"feeSchedules_v3_hard_delete_rates_by_ids","tags":["FeeSchedulesV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"integer"}}}}},"summary":"Hard delete rates by IDs","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rate_ids":{"type":"array","items":{"$ref":"#/components/schemas/RateId"}}},"required":["rate_ids"]}}}}}},"/api/guarantors/v1/{encounter_id}":{"post":{"description":"Creates a new guarantor and returns the newly created Guarantor object.","operationId":"guarantor_v1_create","tags":["GuarantorV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/guarantorv1Guarantor"}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EncounterHasExistingGuarantorError"]},"content":{"$ref":"#/components/schemas/guarantorv1EncounterHasExistingGuarantorErrorType"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationsError"]},"content":{"type":"array","items":{"$ref":"#/components/schemas/RequestValidationError"}}}}]}}}}},"summary":"Create guarantor","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/guarantorv1GuarantorCreate"}}}}}},"/api/health-care-code-informations/v1/{encounter_id}":{"put":{"operationId":"healthCareCodeInformation_v1_update","tags":["HealthCareCodeInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationGetAllResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationUpdate"}}}}},"get":{"operationId":"healthCareCodeInformation_v1_get_all_for_encounter","tags":["HealthCareCodeInformationV1"],"parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EncounterId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationGetAllResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/insurance-refunds/v1":{"get":{"description":"Returns all insurance refunds satisfying the search criteria AND whose organization_id matches\nthe current organization_id of the authenticated user.","operationId":"insuranceRefunds_v1_get_multi","tags":["InsuranceRefundsV1"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100. The value must be greater than 0 and less than 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"payer_uuid","in":"query","required":false,"schema":{"$ref":"#/components/schemas/payersv3PayerUuid","nullable":true}},{"name":"claim_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ClaimId","nullable":true}},{"name":"service_line_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ServiceLineId","nullable":true}},{"name":"billing_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ProviderId","nullable":true}},{"name":"sort","in":"query","description":"Defaults to refund_timestamp","required":false,"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundsPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get insurance refunds","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.\nThe allocations can describe whether the refund is being applied toward a specific service line,\nclaim, or billing provider.","operationId":"insuranceRefunds_v1_create","tags":["InsuranceRefundsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create insurance refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundCreate"}}}}}},"/api/insurance-refunds/v1/{insurance_refund_id}":{"get":{"description":"Retrieves a previously created insurance refund by its `insurance_refund_id`.\nIf the refund does not exist, a `403` will be thrown.","operationId":"insuranceRefunds_v1_get","tags":["InsuranceRefundsV1"],"parameters":[{"name":"insurance_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get insurance refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"description":"Updates the patient refund record matching the provided insurance_refund_id. If updating the refund amount,\nthen the allocations must be appropriately updated as well.","operationId":"insuranceRefunds_v1_update","tags":["InsuranceRefundsV1"],"parameters":[{"name":"insurance_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"$ref":"#/components/schemas/NoteUpdate","nullable":true},"refund_reason":{"$ref":"#/components/schemas/RefundReasonUpdate","nullable":true}}}}}}},"delete":{"description":"Deletes the insurance refund record matching the provided `insurance_refund_id`.\nIf the matching record's organization_id does not match the authenticated user's\ncurrent organization_id, then a response code of `403` will be returned.","operationId":"insuranceRefunds_v1_delete","tags":["InsuranceRefundsV1"],"parameters":[{"name":"insurance_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Delete insurance refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/non-insurance-payer-payments/v1":{"get":{"description":"Returns all non-insurance payer payments","operationId":"nonInsurancePayerPayments_v1_get_multi","tags":["NonInsurancePayerPaymentsV1"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100. The value must be greater than 0 and less than 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"non_insurance_payer_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId","nullable":true}},{"name":"check_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"invoice_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},{"name":"sort","in":"query","description":"Defaults to refund_timestamp","required":false,"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentsPage"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get non-insurance payer payments","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"operationId":"nonInsurancePayerPayments_v1_create","tags":["NonInsurancePayerPaymentsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPayment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create non-insurance payer payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentCreate"}}}}}},"/api/non-insurance-payer-payments/v1/{non_insurance_payer_payment_id}":{"get":{"description":"Retrieves a previously created non-insurance payer payment by its `non_insurance_payer_payment_id`.","operationId":"nonInsurancePayerPayments_v1_get","tags":["NonInsurancePayerPaymentsV1"],"parameters":[{"name":"non_insurance_payer_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPayment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get non-insurance payer payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"nonInsurancePayerPayments_v1_update","tags":["NonInsurancePayerPaymentsV1"],"parameters":[{"name":"non_insurance_payer_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPayment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"$ref":"#/components/schemas/NoteUpdate","nullable":true},"invoice_id":{"$ref":"#/components/schemas/InvoiceUpdate","nullable":true}}}}}}},"delete":{"description":"Deletes the non-insurance payer payment record matching the provided `non_insurance_payer_payment_id`.","operationId":"nonInsurancePayerPayments_v1_delete","tags":["NonInsurancePayerPaymentsV1"],"parameters":[{"name":"non_insurance_payer_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Delete non-insurance payer payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/non-insurance-payer-refunds/v1":{"get":{"description":"Returns all non-insurance payer refunds satisfying the search criteria","operationId":"nonInsurancePayerRefunds_v1_get_multi","tags":["NonInsurancePayerRefundsV1"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100. The value must be greater than 0 and less than 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"non_insurance_payer_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId","nullable":true}},{"name":"check_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"invoice_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},{"name":"sort","in":"query","description":"Defaults to refund_timestamp","required":false,"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundsPage"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get non-insurance payer refunds refunds","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new non-insurance payer refund record and returns the newly created `NonInsurancePayerRefund` object.\nThe allocations can describe whether the refund is being applied toward a specific service line,\nclaim, or billing provider.","operationId":"nonInsurancePayerRefunds_v1_create","tags":["NonInsurancePayerRefundsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefund"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create non-insurance payer refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundCreate"}}}}}},"/api/non-insurance-payer-refunds/v1/{non_insurance_payer_refund_id}":{"get":{"description":"Retrieves a previously created non-insurance payer refund by its `non_insurance_payer_refund_id`.","operationId":"nonInsurancePayerRefunds_v1_get","tags":["NonInsurancePayerRefundsV1"],"parameters":[{"name":"non_insurance_payer_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefund"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get non-insurance payer refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"description":"Updates the non-insurance payer refund record matching the provided non_insurance_payer_refund_id. If updating the refund amount,\nthen the allocations must be appropriately updated as well.","operationId":"nonInsurancePayerRefunds_v1_update","tags":["NonInsurancePayerRefundsV1"],"parameters":[{"name":"non_insurance_payer_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefund"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"$ref":"#/components/schemas/NoteUpdate","nullable":true},"refund_reason":{"$ref":"#/components/schemas/RefundReasonUpdate","nullable":true},"invoice_id":{"$ref":"#/components/schemas/InvoiceUpdate","nullable":true}}}}}}},"delete":{"description":"Deletes the non-insurance payer refund record matching the provided `non_insurance_payer_refund_id`.","operationId":"nonInsurancePayerRefunds_v1_delete","tags":["NonInsurancePayerRefundsV1"],"parameters":[{"name":"non_insurance_payer_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Delete non-insurance payer refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/non-insurance-payers/v1":{"post":{"operationId":"nonInsurancePayers_v1_create","tags":["NonInsurancePayersV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1CreateNonInsurancePayerRequest"}}}}},"get":{"operationId":"nonInsurancePayers_v1_get_multi","tags":["NonInsurancePayersV1"],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"category","in":"query","description":"Fuzzy-match category names of non-insurance payers.","required":false,"schema":{"type":"string","nullable":true}},{"name":"categories_exact","in":"query","description":"Filter by one or more categories by name.\nWhen multiple are present, non-insurance payers with any of the specified\ncategories will be matched.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"clinical_trial_ids","in":"query","description":"Filter by one or more clinical trials by their `clinical_trial_id`.\nWhen multiple are present, non-insurance payers with any of the specified\nclinical trials will be matched.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClinicalTrialId","nullable":true}}},{"name":"enabled","in":"query","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerSortField","nullable":true}},{"name":"sort_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"limit","in":"query","description":"Defaults to 100","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/non-insurance-payers/v1/{non_insurance_payer_id}/toggle_enablement":{"patch":{"operationId":"nonInsurancePayers_v1_toggle_enablement","tags":["NonInsurancePayersV1"],"parameters":[{"name":"non_insurance_payer_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1ToggleNonInsurancePayerEnablementRequest"}}}}}},"/api/non-insurance-payers/v1/categories":{"get":{"description":"Returns a paginated list of all non-insurance payer categories.\n\nNon-insurance payer categories are simply strings and are not stored as a\nseparate object in Taiga. They are created when added to at least one\nnon-insurance payer's `category` field and are deleted when there are no\nlonger any non-insurance payers that contain them.","operationId":"nonInsurancePayers_v1_getCategories","tags":["NonInsurancePayersV1"],"parameters":[{"name":"search_term","in":"query","description":"Filters categories by fuzzy matching on name.","required":false,"schema":{"type":"string","nullable":true}},{"name":"limit","in":"query","description":"Limits the maximum number of categories that will be returned. Defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","description":"The page token to continue paging through a previous request.","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerCategoriesPage"}}}}},"summary":"Get non-insurance payer categories","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/non-insurance-payers/v1/{non_insurance_payer_id}":{"get":{"operationId":"nonInsurancePayers_v1_get","tags":["NonInsurancePayersV1"],"parameters":[{"name":"non_insurance_payer_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"nonInsurancePayers_v1_update","tags":["NonInsurancePayersV1"],"parameters":[{"name":"non_insurance_payer_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerUpdateRequest"}}}}},"delete":{"operationId":"nonInsurancePayers_v1_delete","tags":["NonInsurancePayersV1"],"parameters":[{"name":"non_insurance_payer_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/organization-providers/v3/{organization_provider_id}":{"get":{"operationId":"organizationProviders_v3_get","tags":["OrganizationProvidersV3"],"parameters":[{"name":"organization_provider_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId"},"example":"965A563A-0285-4910-9569-E3739C0F6EAB","examples":{"Example1":{"value":"965A563A-0285-4910-9569-E3739C0F6EAB"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2"},"examples":{"Example1":{"value":{"npi":"1234567890","is_rendering":true,"is_billing":true,"first_name":"John","last_name":"Doe","organization_name":"Acme Medical","provider_type":"INDIVIDUAL","tax_id":"123456789","taxonomy_code":"1234567890","license_type":"MD","employment_start_date":"2020-10-07","employment_termination_date":"2021-10-07","organization_provider_id":"965A563A-0285-4910-9569-E3739C0F6EAB","qualifications":[{"identifier_id":"123e4567-e89b-12d3-a456-426614174000","identifier_code":"MCR","identifier_value":{"type":"medicare_provider_identifier","state":"CA","provider_number":"1234567890"}}]}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get organization provider","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"organizationProviders_v3_update","tags":["OrganizationProvidersV3"],"parameters":[{"name":"organization_provider_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UpdatesDisabledDueToExternalSystemIntegrationError"]},"content":{"$ref":"#/components/schemas/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"}}}]}}}}},"summary":"Update organization provider","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderUpdateV2"}}}}}},"/api/organization-providers/v3":{"get":{"operationId":"organizationProviders_v3_get_multi","tags":["OrganizationProvidersV3"],"parameters":[{"name":"limit","in":"query","description":"Limit the number of results returned. Defaults to 100.","required":false,"schema":{"type":"integer","nullable":true},"example":100,"examples":{"Example1":{"value":100}}},{"name":"search_term","in":"query","description":"Filter to a name or a part of a name.","required":false,"schema":{"type":"string","nullable":true},"example":"john","examples":{"Example1":{"value":"john"}}},{"name":"npi","in":"query","description":"Filter to a specific NPI.","required":false,"schema":{"type":"string","nullable":true},"example":"1234567890","examples":{"Example1":{"value":"1234567890"}}},{"name":"is_rendering","in":"query","description":"Filter to only rendering providers.","required":false,"schema":{"type":"boolean","nullable":true},"example":true,"examples":{"Example1":{"value":true}}},{"name":"is_billing","in":"query","description":"Filter to only billing providers.","required":false,"schema":{"type":"boolean","nullable":true},"example":true,"examples":{"Example1":{"value":true}}},{"name":"organization_provider_ids","in":"query","description":"Filter to the provided organization provider IDs.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","nullable":true}}},{"name":"page_token","in":"query","description":"The page token to continue paging through a previous request.","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true},"example":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9","examples":{"Example1":{"value":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"}}},{"name":"sort","in":"query","description":"Defaults to PROVIDER_NAME_ASC.","required":false,"schema":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderSortOptions","nullable":true},"example":"provider_name:asc","examples":{"Example1":{"value":"provider_name:asc"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderPageV2"},"examples":{"Example1":{"value":{"items":[{"npi":"1234567890","is_rendering":true,"is_billing":true,"first_name":"John","last_name":"Doe","organization_name":"Acme Medical","provider_type":"INDIVIDUAL","tax_id":"123456789","taxonomy_code":"1234567890","license_type":"MD","employment_start_date":"2020-10-07","employment_termination_date":"2021-10-07","organization_provider_id":"965A563A-0285-4910-9569-E3739C0F6EAB","qualifications":[{"identifier_id":"123e4567-e89b-12d3-a456-426614174000","identifier_code":"MCR","identifier_value":{"type":"medicare_provider_identifier","state":"CA","provider_number":"1234567890"}}]}]}}}}}}},"summary":"Get all organization providers","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"operationId":"organizationProviders_v3_create","tags":["OrganizationProvidersV3"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}},{"type":"object","properties":{"errorName":{"type":"string","enum":["UpdatesDisabledDueToExternalSystemIntegrationError"]},"content":{"$ref":"#/components/schemas/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"}}}]}}}}},"summary":"Create organization provider","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderCreateV2"}}}}}},"/api/organization-service-facilities/v2/{organization_service_facility_id}":{"get":{"operationId":"organizationServiceFacilities_v2_get","tags":["OrganizationServiceFacilitiesV2"],"parameters":[{"name":"organization_service_facility_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get organization service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"operationId":"organizationServiceFacilities_v2_update","tags":["OrganizationServiceFacilitiesV2"],"parameters":[{"name":"organization_service_facility_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId"},"example":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569","examples":{"Example1":{"value":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility"},"examples":{"Example1":{"value":{"organization_service_facility_id":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569","name":"Test Service Facility","aliases":["Test Service Facility Alias"],"description":"Test Service Facility Description","status":"active","operational_status":"C","mode":"instance","type":"DX","physical_type":"si","telecoms":["555-555-5555"],"address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Update organization service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityUpdate"},"examples":{"Example1":{"value":{"name":"Test Service Facility","aliases":["Test Service Facility Alias"],"description":"Test Service Facility Description","status":"active","operational_status":"C","mode":"instance","type":"DX","physical_type":"si","telecoms":["555-555-5555"],"address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}}}}}}}},"delete":{"operationId":"organizationServiceFacilities_v2_delete","tags":["OrganizationServiceFacilitiesV2"],"parameters":[{"name":"organization_service_facility_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId"},"example":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569","examples":{"Example1":{"value":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"}}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Delete organization service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/organization-service-facilities/v2":{"get":{"operationId":"organizationServiceFacilities_v2_get_multi","tags":["OrganizationServiceFacilitiesV2"],"parameters":[{"name":"limit","in":"query","description":"Limit the number of results returned. Defaults to 100.","required":false,"schema":{"type":"integer","nullable":true},"example":100,"examples":{"Example1":{"value":100}}},{"name":"name","in":"query","description":"Filter to a name or a part of a name.","required":false,"schema":{"type":"string","nullable":true},"example":"Test Service Facility","examples":{"Example1":{"value":"Test Service Facility"}}},{"name":"organization_service_facility_ids","in":"query","description":"Filter to the provided organization service facility IDs.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true}}},{"name":"external_ids","in":"query","description":"Filter by one or more external_ids.","required":false,"schema":{"type":"array","items":{"type":"string","nullable":true}}},{"name":"place_of_service_code","in":"query","description":"Filter by Place of Service (POS) code.","required":false,"schema":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true}},{"name":"page_token","in":"query","description":"The page token to continue paging through a previous request.","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true},"example":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9","examples":{"Example1":{"value":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityPage"},"examples":{"Example1":{"value":{"items":[{"organization_service_facility_id":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569","name":"Test Service Facility","aliases":["Test Service Facility Alias"],"description":"Test Service Facility Description","status":"active","operational_status":"C","mode":"instance","type":"DX","physical_type":"si","telecoms":["555-555-5555"],"address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}}]}}}}}}},"summary":"Get all organization service facilities","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"operationId":"organizationServiceFacilities_v2_create","tags":["OrganizationServiceFacilitiesV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility"},"examples":{"Example1":{"value":{"organization_service_facility_id":"30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569","name":"Test Service Facility","aliases":["Test Service Facility Alias"],"description":"Test Service Facility Description","status":"active","operational_status":"C","mode":"instance","type":"DX","physical_type":"si","telecoms":["555-555-5555"],"address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}}}}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Create organization service facility","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityCreate"},"examples":{"Example1":{"value":{"name":"Test Service Facility","aliases":["Test Service Facility Alias"],"description":"Test Service Facility Description","status":"active","operational_status":"C","mode":"instance","type":"DX","physical_type":"si","telecoms":["555-555-5555"],"address":{"address1":"123 Main St","address2":"Apt 1","city":"New York","state":"NY","zip_code":"10001","zip_plus_four_code":"1234"}}}}}}}}},"/api/organization-service-facilities/v2/external-id/{external_id}":{"get":{"description":"Looks up a single organization service facility by its `external_id` field. This can be useful\nfor finding service facilities within Taiga which are associated with service facilities in\nan external system.","operationId":"organizationServiceFacilities_v2_get_by_external_id","tags":["OrganizationServiceFacilitiesV2"],"parameters":[{"name":"external_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get organization service facility by external_id","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/patient-payments/v4":{"get":{"description":"Returns all patient payments satisfying the search criteria AND whose organization_id matches\nthe current organization_id of the authenticated user.","operationId":"patientPayments_v4_getMulti","tags":["PatientPaymentsV4"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100. The value must be greater than 0 and less than 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"patient_external_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PatientExternalId","nullable":true}},{"name":"claim_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ClaimId","nullable":true}},{"name":"service_line_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ServiceLineId","nullable":true}},{"name":"billing_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ProviderId","nullable":true}},{"name":"unattributed","in":"query","description":"returns payments with unattributed allocations if set to true","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"invoice_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatientTransactionSource","nullable":true}}},{"name":"source_internal_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"sort","in":"query","description":"Defaults to payment_timestamp","required":false,"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentsPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get patient payments","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new patient payment record and returns the newly created PatientPayment object.\nThe allocations can describe whether the payment is being applied toward a specific service line,\nclaim, or billing provider.","operationId":"patientPayments_v4_create","tags":["PatientPaymentsV4"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPayment"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Create patient payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_cents":{"type":"integer"},"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"type":"string","nullable":true},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/AllocationCreate"}},"invoice":{"$ref":"#/components/schemas/InvoiceId","nullable":true},"payment_method_detail":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethodDetailCreate","nullable":true},"payment_source":{"$ref":"#/components/schemas/PatientPaymentCreateSource","nullable":true},"source_internal_id":{"type":"string","nullable":true}},"required":["amount_cents","patient_external_id","allocations"]}}}}}},"/api/patient-payments/v4/{patient_payment_id}":{"get":{"description":"Retrieves a previously created patient payment by its `patient_payment_id`.","operationId":"patientPayments_v4_get","tags":["PatientPaymentsV4"],"parameters":[{"name":"patient_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPayment"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get patient payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"description":"Updates the patient payment record matching the provided patient_payment_id.","operationId":"patientPayments_v4_update","tags":["PatientPaymentsV4"],"parameters":[{"name":"patient_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPayment"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"$ref":"#/components/schemas/NoteUpdate","nullable":true},"invoice":{"$ref":"#/components/schemas/InvoiceUpdate","nullable":true}}}}}}},"delete":{"description":"Deletes the patient payment record matching the provided patient_payment_id.","operationId":"patientPayments_v4_delete","tags":["PatientPaymentsV4"],"parameters":[{"name":"patient_payment_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Delete patient payment","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/patient-refunds/v1":{"get":{"description":"Returns all patient refunds satisfying the search criteria AND whose organization_id matches\nthe current organization_id of the authenticated user.","operationId":"patientRefunds_v1_getMulti","tags":["PatientRefundsV1"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100. The value must be greater than 0 and less than 1000.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"patient_external_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PatientExternalId","nullable":true}},{"name":"claim_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ClaimId","nullable":true}},{"name":"service_line_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ServiceLineId","nullable":true}},{"name":"billing_provider_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ProviderId","nullable":true}},{"name":"unattributed","in":"query","description":"returns payments with unattributed allocations if set to true","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"invoice_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatientTransactionSource","nullable":true}}},{"name":"sort","in":"query","description":"Defaults to refund_timestamp","required":false,"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Sort direction. Defaults to descending order if not provided.","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundsPage"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get patient refunds","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new patient refund record and returns the newly created PatientRefund object.\nThe allocations can describe whether the refund is being applied toward a specific service line,\nclaim, or billing provider.","operationId":"patientRefunds_v1_create","tags":["PatientRefundsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}},{"type":"object","description":"thrown if `raise_on_overdraft` is true and the refund would cause any account to be overdrafted.","properties":{"errorName":{"type":"string","enum":["ReallocationWouldOverdraftError"]},"content":{"$ref":"#/components/schemas/ReallocationWouldOverdraftErrorContent"}}}]}}}}},"summary":"Create patient refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_cents":{"type":"integer"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/AllocationCreate"}},"invoice":{"$ref":"#/components/schemas/InvoiceId","nullable":true},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true},"raise_on_overdraft":{"type":"boolean","nullable":true,"description":"If true, the refund will be rejected if it would cause any account to be overdrafted. Defaults to false."}},"required":["amount_cents","patient_external_id","allocations"]}}}}}},"/api/patient-refunds/v1/{patient_refund_id}":{"get":{"description":"Retrieves a previously created patient refund by its `patient_refund_id`.","operationId":"patientRefunds_v1_get","tags":["PatientRefundsV1"],"parameters":[{"name":"patient_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}}},"summary":"Get patient refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]},"patch":{"description":"Updates the patient refund record matching the provided patient_refund_id.","operationId":"patientRefunds_v1_update","tags":["PatientRefundsV1"],"parameters":[{"name":"patient_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefund"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"$ref":"#/components/schemas/NoteUpdate","nullable":true},"invoice":{"$ref":"#/components/schemas/InvoiceUpdate","nullable":true},"refund_reason":{"$ref":"#/components/schemas/RefundReasonUpdate","nullable":true}}}}}}},"delete":{"description":"Deletes the patient refund record matching the provided patient_refund_id.","operationId":"patientRefunds_v1_delete","tags":["PatientRefundsV1"],"parameters":[{"name":"patient_refund_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Delete patient refund","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/payers/v3/{payer_uuid}":{"get":{"operationId":"payers_v3_get","tags":["PayersV3"],"parameters":[{"name":"payer_uuid","in":"path","required":true,"schema":{"$ref":"#/components/schemas/payersv3PayerUuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payersv3Payer"}}}}},"summary":"Get payer","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/payers/v3":{"get":{"operationId":"payers_v3_getAll","tags":["PayersV3"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true},"example":100,"examples":{"Example1":{"value":100}}},{"name":"search_term","in":"query","required":false,"schema":{"type":"string","nullable":true},"example":"john","examples":{"Example1":{"value":"john"}}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true},"example":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9","examples":{"Example1":{"value":"eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payersv3PayerPage"},"examples":{"Example1":{"value":{"items":[{"payer_uuid":"A6431FD2-0712-4714-B1B1-DD094DAF9F42","payer_id":"12345","payer_name":"Payer Name","availity_payer_name":"Availity Payer Name","availity_claims_payer_id":"54321","availity_eligibility_id":"54321","availity_remittance_payer_id":"54321"}]}}}}}}},"summary":"Get all payers","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/payers/v4/{payer_uuid}":{"get":{"operationId":"payers_v4_get","tags":["PayersV4"],"parameters":[{"name":"payer_uuid","in":"path","required":true,"schema":{"$ref":"#/components/schemas/payersv4PayerUuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payersv4Payer"}}}}},"summary":"Get payer","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/payers/v4":{"get":{"operationId":"payers_v4_getAll","tags":["PayersV4"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of entities per page, defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"search_term","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payersv4PayerPage"}}}}},"summary":"Get all payers","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/service-lines/v2":{"post":{"operationId":"serviceLines_v2_create","tags":["ServiceLinesV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLine"}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Create Service Line","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateStandalone"}}}}}},"/api/service-lines/v2/universal":{"post":{"operationId":"serviceLines_v2_create-universal","tags":["ServiceLinesV2"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLine"}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Create Professional or Institutional Service Line","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2UniversalServiceLineCreateStandalone"}}}}}},"/api/service-lines/v2/{service_line_id}/universal":{"patch":{"operationId":"serviceLines_v2_update-universal","tags":["ServiceLinesV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLine"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Update service line for encounter that may be institutional or professional.","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2UniversalServiceLineUpdate"}}}}}},"/api/service-lines/v2/{service_line_id}":{"patch":{"operationId":"serviceLines_v2_update","tags":["ServiceLinesV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLine"}}}},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["HttpRequestValidationError"]},"content":{"$ref":"#/components/schemas/RequestValidationError"}}}]}}}}},"summary":"Update Service Line","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/service-linesv2ServiceLineUpdate"}}}}},"delete":{"operationId":"serviceLines_v2_delete","tags":["ServiceLinesV2"],"parameters":[{"name":"service_line_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ServiceLineId"}}],"responses":{"204":{"description":""},"403":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["UnauthorizedError"]},"content":{"$ref":"#/components/schemas/UnauthorizedErrorMessage"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityNotFoundError"]},"content":{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["EntityConflictError"]},"content":{"$ref":"#/components/schemas/EntityConflictErrorMessage"}}}]}}}}},"summary":"Delete Service Line","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/api/tasks/v3":{"get":{"operationId":"tasks_v3_get_multi","tags":["TasksV3"],"parameters":[{"name":"limit","in":"query","description":"Defaults to 100","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PageToken","nullable":true}},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/tasksTaskStatus","nullable":true}},{"name":"statuses","in":"query","description":"Only return tasks with a status that matches one in this comma-separated list.","required":false,"schema":{"type":"string","nullable":true}},{"name":"task_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/tasksTaskType","nullable":true}},{"name":"task_types","in":"query","description":"Only return tasks with a task_type that matches one in this comma-separated list.","required":false,"schema":{"type":"string","nullable":true}},{"name":"categories","in":"query","description":"Only return tasks with categories that match one in this comma-separated list.","required":false,"schema":{"type":"string","nullable":true}},{"name":"updated_since","in":"query","description":"Only return tasks updated on or after this date-time","required":false,"schema":{"type":"string","format":"date-time","nullable":true}},{"name":"encounter_id","in":"query","description":"Only return tasks associated with this encounter","required":false,"schema":{"$ref":"#/components/schemas/EncounterId","nullable":true}},{"name":"search_term","in":"query","description":"Query tasks by encounter_id, claim_id, task_id, or external_id","required":false,"schema":{"type":"string","nullable":true}},{"name":"assigned_to_id","in":"query","description":"Only return tasks assigned to this user","required":false,"schema":{"$ref":"#/components/schemas/UserId","nullable":true}},{"name":"date_of_service_min","in":"query","description":"The minimum date of service for the linked encounter","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"date_of_service_max","in":"query","description":"The maximum date of service for the linked encounter","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"billing_provider_npi","in":"query","description":"The NPI of the billing provider associated with the task's claim","required":false,"schema":{"type":"string","nullable":true}},{"name":"sort","in":"query","description":"Defaults to updated_at:desc","required":false,"schema":{"$ref":"#/components/schemas/tasksv3TaskSortOptions","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tasksv3TaskPage"}}}},"422":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Limit parameter provided must be greater than 0 and less than 1000.","properties":{"errorName":{"type":"string","enum":["UnprocessableEntityError"]},"content":{"$ref":"#/components/schemas/UnprocessableEntityErrorMessage"}}}]}}}}},"summary":"Get all tasks","servers":[{"url":"https://api.taigabilling.com"},{"url":"https://api-staging.taigabilling.com"},{"url":"https://sandbox-api.taigabilling.com"},{"url":"https://staging-api.taigabilling.com"},{"url":"http://localhost:5050"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1":{"post":{"description":"Adds an appointment.  VersionConflictError is returned when the placer_appointment_id is already in use.","operationId":"preEncounter_appointments_v1_create","tags":["PreEncounterAppointmentsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1MutableAppointment"}}}}}},"/appointments/v1/visits":{"get":{"description":"Gets all Visits within a given time range. The return list is ordered by start_time ascending.\n\n**IMPORTANT:** This endpoint requires a date filter on `appointment.startTimestamp` to ensure acceptable query performance.\nWithout date filtering, the query can take 50+ seconds on large datasets due to grouping and aggregation operations.\n\nExample filters:\n- `appointment.startTimestamp|gt|2024-01-01` - appointments after January 1, 2024\n- `appointment.startTimestamp|eq|2024-12-08` - appointments on December 8, 2024\n- `appointment.startTimestamp|lt|2024-12-31` - appointments before December 31, 2024\n\nYou can combine the date filter with other filters using commas:\n- `appointment.startTimestamp|gt|2024-01-01,appointment.status|eq|PENDING`","operationId":"preEncounter_appointments_v1_get_visits","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"sort_field","in":"query","description":"Defaults to appointment.start_time.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterlistsv1SortFieldString","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to ascending.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"filters","in":"query","description":"**Required:** Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators).\nExample: appointment.startTimestamp|gt|2024-01-01","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterFilterQueryString","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1VisitsPage"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1/visits/counts":{"get":{"description":"Gets aggregate counts for the visits matching the given filters.\n\nThe counts respect all provided filters but are independent of pagination, so this can be fetched\nonce when filters change instead of on every page of `get_visits`.\n\n**IMPORTANT:** Like `get_visits`, this endpoint requires a date filter on `appointment.startTimestamp`\nto ensure acceptable query performance.","operationId":"preEncounter_appointments_v1_get_counts","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"filters","in":"query","description":"**Required:** Must include a date filter on appointment.startTimestamp (using gt, lt, or eq operators).\nExample: appointment.startTimestamp|gt|2024-01-01","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterFilterQueryString","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1CountsResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1/{id}":{"get":{"description":"Gets an appointment.","operationId":"preEncounter_appointments_v1_get","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterAppointmentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1/{id}/history":{"get":{"description":"Gets an appointment along with it's full history.  The return list is ordered by version ascending.","operationId":"preEncounter_appointments_v1_get_history","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterAppointmentId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1/{id}/{version}":{"put":{"description":"Updates an appointment. The path must contain the next version number to prevent race conditions. For example, if the current version of the appointment is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the appointment. Updating historic versions is not supported.","operationId":"preEncounter_appointments_v1_update","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterAppointmentId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterappointmentsv1MutableAppointment"}}}}},"delete":{"description":"Sets an appointment as deactivated.  The path must contain the most recent version to prevent race conditions.  Deactivating historic versions is not supported. Subsequent updates via PUT to the appointment will \"reactivate\" the appointment and set the deactivated flag to false.","operationId":"preEncounter_appointments_v1_deactivate","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterAppointmentId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/appointments/v1/updates/scan":{"get":{"description":"Scans up to 100 appointment updates.  The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.","operationId":"preEncounter_appointments_v1_scan","tags":["PreEncounterAppointmentsV1"],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1":{"post":{"description":"Creates a new Coverage. A Coverage provides the high-level identifiers and descriptors of a specific insurance plan for a specific individual - typically the information you can find on an insurance card. Additionally a coverage will include detailed benefits information covered by the specific plan for the individual.","operationId":"preEncounter_coverages_v1_create","tags":["PreEncounterCoveragesV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage"}}}}},"get":{"description":"Returns a list of Coverages based on the search criteria.","operationId":"preEncounter_coverages_v1_get_multi","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"type":"string","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1/{id}/{version}":{"put":{"description":"Updates a Coverage. The path must contain the next version number to prevent race conditions. For example, if the current version of the coverage is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the coverage. Updating historic versions is not supported.","operationId":"preEncounter_coverages_v1_update","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterCoverageId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage"}}}}}},"/coverages/v1/get-multi-paginated":{"get":{"description":"Returns a page of Coverages based on the search criteria.","operationId":"preEncounter_coverages_v1_get_multi_paginated","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"payer_plan_group_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"limit","in":"query","description":"Must be between 0 and 1000. Defaults to 100","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoveragesPage"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1/{id}":{"get":{"description":"gets a specific Coverage","operationId":"preEncounter_coverages_v1_get","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterCoverageId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1/{id}/history":{"get":{"description":"Gets a coverage's history. Full history is returned if no filters are \ndefined. The return list is ordered by version, defaulting to ascending.","operationId":"preEncounter_coverages_v1_get_history","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterCoverageId"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"end","in":"query","required":false,"schema":{"type":"string","format":"date","nullable":true}},{"name":"non_auto_updated_coverages_only","in":"query","description":"If true, only returns coverages that have NOT been auto-updated by the system.","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to ascending. Sorts by version.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"limit","in":"query","description":"Must be between 0 and 1000. No default.","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1/updates/scan":{"get":{"description":"Scans up to 100 coverage updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.\n\n**Polling Pattern:**\nTo continuously poll for updates without gaps:\n1. Make your initial request with a `since` timestamp (e.g., `since=2020-01-01T13:00:00.000Z`)\n2. The API returns up to 100 coverage records, sorted by `updated_at` ascending\n3. Find the `updated_at` value from the last record in the response\n4. Use that `updated_at` value as the `since` parameter in your next request\n5. Repeat steps 2-4 to ingest updates until you receive an empty list\n\n**Important Notes:**\n- The `since` parameter is inclusive, so you may receive the last record from the previous batch again (you can deduplicate by ID and version)\n- All coverage records include `updated_at`, `id`, `version`, `deactivated`, and `updating_user` fields for tracking changes\n- Timestamps have millisecond resolution for precise ordering","operationId":"preEncounter_coverages_v1_scan","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/coverages/v1/batch-update-ppg/{ppg_id}":{"post":{"description":"Finds all coverages associated with the given ppg_id and updates the ppg_fields for each coverage.","operationId":"preEncounter_coverages_v1_batch_update_ppg","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"ppg_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPayerPlanGroupId"}}],"responses":{"204":{"description":""}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1PayerPlanGroupFields"}}}}}},"/coverages/v1/{id}/eligibility":{"post":{"description":"Initiates an eligibility check. Returns the metadata of the check if successfully initiated.","operationId":"preEncounter_coverages_v1_check_eligibility","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterCoverageId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckMetadata"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_code":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceTypeCode"},"date_of_service":{"type":"string","format":"date"},"npi":{"type":"string"}},"required":["service_code","date_of_service","npi"]}}}}}},"/coverages/v1/{id}/eligibility/{check_id}":{"get":{"description":"Gets the eligibility of a patient for a specific coverage if successful.","operationId":"preEncounter_coverages_v1_get_eligibility","tags":["PreEncounterCoveragesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterCoverageId"}},{"name":"check_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageEligibilityCheckResponse"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/eligibility-checks/v1":{"post":{"description":"Sends real-time eligibility checks to payers through Stedi.","operationId":"preEncounter_eligibilityChecks_v1_post","tags":["PreEncounterEligibilityChecksV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityResponse"}}}}},"x-fern-availability":"generally-available","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRequest"}}}}}},"/eligibility-checks/v1/batch":{"post":{"description":"Sends a batch of eligibility checks to payers through Stedi.","operationId":"preEncounter_eligibilityChecks_v1_batch","tags":["PreEncounterEligibilityChecksV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1BatchEligibilityResponse"}}}}},"x-fern-availability":"generally-available","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRequest"}}}}}}},"/eligibility-checks/v1/batch/{batch_id}":{"get":{"description":"Polls the status of a batch eligibility check.","operationId":"preEncounter_eligibilityChecks_v1_poll-batch","tags":["PreEncounterEligibilityChecksV1"],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckPage"}}}}},"x-fern-availability":"generally-available","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/eligibility-checks/v1/payer/search":{"get":{"description":"Searches for payers that match the query parameters.","operationId":"preEncounter_eligibilityChecks_v1_payer-search","tags":["PreEncounterEligibilityChecksV1"],"parameters":[{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"query","in":"query","required":false,"schema":{"type":"string","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1PayerSearchResponse"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/eligibility-checks/v1/recommendation":{"get":{"description":"Gets recommendation for eligibility checks based on filters. This endpoint will retrieve all the latest eligibility recommendations for each \neligibility recommendation type for the given filters. If you want to get a specific recommendation type, you can use the `type` query parameter.","operationId":"preEncounter_eligibilityChecks_v1_recommendation","tags":["PreEncounterEligibilityChecksV1"],"parameters":[{"name":"filters","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterFilterQueryString","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendation"}}}}}},"x-fern-availability":"generally-available","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Create an eligibiilty recommendation based on the request.","operationId":"preEncounter_eligibilityChecks_v1_create-recommendation","tags":["PreEncounterEligibilityChecksV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendation"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1PostEligibilityRecommendationRequest"}}}}}},"/eligibility-checks/v1/recommendation/{recommendation_id}/{version}/vote":{"put":{"description":"Submit user feedback on an eligibility recommendation. The path must contain the next version number to prevent race conditions. For example, if the current version of the recommendation is n, you will need to send a request to this endpoint with `/{recommendation_id}/{n+1}/vote` to update the vote.","operationId":"preEncounter_eligibilityChecks_v1_vote-recommendation","tags":["PreEncounterEligibilityChecksV1"],"parameters":[{"name":"recommendation_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendation"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"x-fern-availability":"generally-available","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1Vote"}}}}}},"/eligibility-checks/v1/get-multi/":{"get":{"operationId":"preEncounter_eligibilityChecks_v1_get-multi","tags":["PreEncounterEligibilityChecksV1"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"subscriber_member_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"payer_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"provider_npi","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"date_of_service","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"initiated_at_min","in":"query","required":false,"schema":{"type":"string","format":"date-time","nullable":true}},{"name":"initiated_at_max","in":"query","required":false,"schema":{"type":"string","format":"date-time","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckPage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/eligibility-checks/v1/insurance-discovery":{"post":{"description":"Sends an insurance discovery check to find potential coverage matches for a patient through Stedi.\nGiven patient demographics, this endpoint discovers what insurance coverages exist for the patient.","operationId":"preEncounter_eligibilityChecks_v1_insurance-discovery","tags":["PreEncounterEligibilityChecksV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryResponse"}}}}},"x-fern-availability":"in-development","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryRequest"}}}}}},"/eligibility-checks/v1/coordination-of-benefits":{"post":{"description":"Sends a coordination of benefits check through Stedi to determine whether a patient has\ncoverage overlap across multiple payers and, if so, which payer is primary.\nMedicare and Medicare Advantage plans are not supported.","operationId":"preEncounter_eligibilityChecks_v1_coordination-of-benefits","tags":["PreEncounterEligibilityChecksV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CoordinationOfBenefitsResponse"}}}}},"x-fern-availability":"in-development","servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CoordinationOfBenefitsRequest"}}}}}},"/images/v1":{"post":{"description":"Adds an image.  VersionConflictError is returned if a front or back of this coverage already exists.","operationId":"preEncounter_images_v1_create","tags":["PreEncounterImagesV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1Image"}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1MutableImage"}}}}},"get":{"description":"Searches for images that match the query parameters.","operationId":"preEncounter_images_v1_getMulti","tags":["PreEncounterImagesV1"],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"coverage_id","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"file_type","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"patient_notes","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"sort_field","in":"query","description":"The field to order by. Defaults to updatedAt.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"The direction to order by. Defaults to desc.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterimagesv1Image"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/images/v1/{id}":{"get":{"description":"Gets an image by imageId.","operationId":"preEncounter_images_v1_get","tags":["PreEncounterImagesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1Image"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/images/v1/{id}/{version}":{"put":{"description":"Updates an Image.  The path must contain the most recent version to prevent races.","operationId":"preEncounter_images_v1_update","tags":["PreEncounterImagesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1Image"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1MutableImage"}}}}},"delete":{"description":"Sets an Image as deactivated.  The path must contain the most recent version to prevent races.","operationId":"preEncounter_images_v1_deactivate","tags":["PreEncounterImagesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/lists/v1/patient":{"get":{"description":"Gets patients with dependent objects for patients that match the query parameters.","operationId":"preEncounter_lists_v1_get_patient_list","tags":["PreEncounterListsV1"],"parameters":[{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"sort_field","in":"query","description":"Defaults to patient.updatedAt.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterlistsv1SortFieldString","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to ascending.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"filters","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterFilterQueryString","nullable":true}},{"name":"include_deactivated","in":"query","description":"If true, includes deactivated patients in the results. Defaults to false.","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"redirect_to_primary","in":"query","description":"If true, and filtering by mrn equals, then only return the primary version of the patient requested","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"hide_alternatives","in":"query","description":"If true, then do not show alternative patients","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterlistsv1PatientListPage"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/lists/v1/appointment":{"get":{"description":"Searches for appointments that match the query parameters.","operationId":"preEncounter_lists_v1_get_appointment_list","tags":["PreEncounterListsV1"],"parameters":[{"name":"sort_field","in":"query","description":"Defaults to appointment.startTimestamp.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterlistsv1SortFieldString","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to asc.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"limit","in":"query","description":"Defaults to 100.","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"filters","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterFilterQueryString","nullable":true}},{"name":"include_deactivated","in":"query","description":"If true, includes deactivated appointments in the results. Defaults to false.","required":false,"schema":{"type":"boolean","nullable":true}},{"name":"include_merged_patient_data","in":"query","description":"If true and a patient id is specified, then also include appointments from any alternative patients that are merged into this patient. Defaults to false.","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterlistsv1AppointmentListPage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/notes/v1/{id}":{"get":{"description":"Gets a note by NoteId.","operationId":"preEncounter_notes_v1_get","tags":["PreEncounterNotesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterNoteId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounternotesv1Note"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/notes/v1":{"post":{"description":"Adds a new note.","operationId":"preEncounter_notes_v1_create","tags":["PreEncounterNotesV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounternotesv1Note"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounternotesv1MutableNote"}}}}}},"/notes/v1/{id}/{version}":{"put":{"description":"Updates a note. The path must contain the most recent version to prevent races.","operationId":"preEncounter_notes_v1_update","tags":["PreEncounterNotesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterNoteId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounternotesv1Note"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounternotesv1MutableNote"}}}}},"delete":{"description":"Sets a note as deactivated.  The path must contain the most recent version to prevent races.","operationId":"preEncounter_notes_v1_deactivate","tags":["PreEncounterNotesV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterNoteId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/organization-external-providers/v1/{id}":{"get":{"description":"Gets an organization external provider by ID.","operationId":"preEncounter_organizationExternalProviders_v1_get","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/organization-external-providers/v1":{"get":{"description":"Searches for organization external providers that match the query parameters.","operationId":"preEncounter_organizationExternalProviders_v1_getMulti","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"sort_field","in":"query","description":"Defaults to name.family.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to ascending.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"npi","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderType","nullable":true}},{"name":"first_name","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"last_name","in":"query","required":false,"schema":{"type":"string","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderPage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Creates a new organization external provider. BadRequestError is returned when the NPI is already in use.","operationId":"preEncounter_organizationExternalProviders_v1_create","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1MutableOrganizationExternalProvider"}}}}}},"/organization-external-providers/v1/{id}/{version}":{"put":{"description":"Updates an organization external provider. The path must contain the next version number to prevent race conditions. For example, if the current version of the provider is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the provider. Updating historic versions is not supported. BadRequestError is returned when the NPI is already in use by another provider.","operationId":"preEncounter_organizationExternalProviders_v1_update","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1MutableOrganizationExternalProvider"}}}}},"delete":{"description":"Sets an organization external provider as deactivated. The path must contain the most recent version plus 1 to prevent race conditions. Deactivating historic versions is not supported.","operationId":"preEncounter_organizationExternalProviders_v1_deactivate","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/organization-external-providers/v1/updates/scan":{"get":{"description":"Scans up to 1000 organization external provider updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.\n\n**Polling Pattern:**\nTo continuously poll for updates without gaps:\n1. Make your initial request with a `since` timestamp (e.g., `since=2020-01-01T13:00:00.000Z`)\n2. The API returns 100 by default and up to 1000 records, sorted by `updated_at` ascending\n3. Find the `updated_at` value from the last record in the response\n4. Use that `updated_at` value as the `since` parameter in your next request\n5. Repeat steps 2-4 to ingest updates until you receive an empty list\n\n**Important Notes:**\n- The `since` parameter is inclusive, so you may receive the last record from the previous batch again (you can deduplicate by ID and version)\n- All records include `updated_at`, `id`, `version`, `deactivated`, and `updating_user` fields for tracking changes\n- Timestamps have millisecond resolution for precise ordering","operationId":"preEncounter_organizationExternalProviders_v1_scan","tags":["PreEncounterOrganizationExternalProvidersV1"],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"maxResults","in":"query","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1":{"post":{"description":"Adds a patient.  VersionConflictError is returned when the patient's external ID is already in use.","operationId":"preEncounter_patients_v1_create","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"skip_duplicate_check","in":"query","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatient"}}}}},"get":{"description":"Returns a list of Patients based on the search criteria.","operationId":"preEncounter_patients_v1_search","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"mrn","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"similar_name_ordering","in":"query","description":"A string that is used to order similar names in search results.","required":false,"schema":{"type":"string","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/with_mrn":{"post":{"description":"Adds a patient and hydrates their MRN with a pre-existing MRN.  Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.","operationId":"preEncounter_patients_v1_create_with_mrn","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"skip_duplicate_check","in":"query","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}},"400":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["BadRequestError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatientWithMrn"}}}}}},"/patients/v1/get_multi":{"get":{"description":"Searches for patients that match the query parameters.","operationId":"preEncounter_patients_v1_get_multi","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"mrn","in":"query","required":false,"schema":{"type":"string","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}},{"name":"sort_field","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1PatientSortField","nullable":true}},{"name":"sort_direction","in":"query","description":"Defaults to ascending.","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterSortDirection","nullable":true}},{"name":"redirect_to_primary","in":"query","description":"If true, then only return the primary version of any patients requested","required":false,"schema":{"type":"boolean","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1PatientPage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/search_providers":{"get":{"description":"Searches for referring providers that match the query parameters.  The search is case-insensitive, supports fuzzy matching, and matches against provider name and NPI. The search criteria must be an alphanumeric string, and the search is limited to the first 20 results.","operationId":"preEncounter_patients_v1_search_providers","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"search_criteria","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterExternalProvider"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/{id}":{"get":{"description":"Gets a patient.","operationId":"preEncounter_patients_v1_get","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/mrn/{mrn}":{"get":{"description":"Gets a patient by mrn.","operationId":"preEncounter_patients_v1_get_by_mrn","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"mrn","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/{id}/history":{"get":{"description":"Gets a patient along with it's full history.  The return list is ordered by version ascending.","operationId":"preEncounter_patients_v1_get_history","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/{id}/snapshot":{"get":{"description":"Gets a patient along with their coverages at a specific point in time. Note that the date passed in is only used to determine what the filing order was for that patient during that time. The actual data returned will always be the latest version of the patient and coverages.","operationId":"preEncounter_patients_v1_get_coverage_snapshot","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}},{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date-time","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1PatientCoverageSnapshot"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/{id}/{version}":{"put":{"description":"Updates a patient. The path must contain the next version number to prevent race conditions. For example, if the current version of the patient is n, you will need to send a request to this endpoint with `/{id}/n+1` to update the patient. Updating historic versions is not supported.","operationId":"preEncounter_patients_v1_update","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatient"}}}}},"delete":{"description":"Sets a patient as deactivated.  The path must contain the most recent version plus 1 to prevent race conditions.  Deactivating historic versions is not supported.","operationId":"preEncounter_patients_v1_deactivate","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]},"patch":{"description":"Removes the deactivated flag for a patient.  The path must contain the most recent version plus 1 to prevent race conditions.  Reactivating historic versions is not supported.","operationId":"preEncounter_patients_v1_reactivate","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterPatientId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""},"404":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["NotFoundError"]},"content":{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}}}]}}}},"409":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"errorName":{"type":"string","enum":["VersionConflictError"]},"content":{"$ref":"#/components/schemas/pre-encounterVersionConflictErrorBody"}}}]}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/patients/v1/updates/scan":{"get":{"description":"Scans up to 1000 patient updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.\n\n**Polling Pattern:**\nTo continuously poll for updates without gaps:\n1. Make your initial request with a `since` timestamp (e.g., `since=2020-01-01T13:00:00.000Z`)\n2. The API returns 100 by default and up to 1000 patient records, sorted by `updated_at` ascending\n3. Find the `updated_at` value from the last record in the response\n4. Use that `updated_at` value as the `since` parameter in your next request\n5. Repeat steps 2-4 to ingest updates until you receive an empty list\n\n**Important Notes:**\n- The `since` parameter is inclusive, so you may receive the last record from the previous batch again (you can deduplicate by ID and version)\n- All patient records include `updated_at`, `id`, `version`, `deactivated`, and `updating_user` fields for tracking changes\n- Timestamps have millisecond resolution for precise ordering","operationId":"preEncounter_patients_v1_scan","tags":["PreEncounterPatientsV1"],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"maxResults","in":"query","required":false,"schema":{"type":"integer","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/tags/v1/{id}":{"get":{"description":"Gets a tag by TagId.","operationId":"preEncounter_tags_v1_get","tags":["PreEncounterTagsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterTagId"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1Tag"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}},"/tags/v1":{"get":{"description":"Gets all tags. Defaults to page size of 1000.","operationId":"preEncounter_tags_v1_getAll","tags":["PreEncounterTagsV1"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","nullable":true}},{"name":"page_token","in":"query","required":false,"schema":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1TagPage"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]},"post":{"description":"Adds a new tag if it does not already exist, otherwise, returns the existing tag.","operationId":"preEncounter_tags_v1_create","tags":["PreEncounterTagsV1"],"parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1Tag"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1MutableTag"}}}}}},"/tags/v1/{id}/{version}":{"put":{"description":"Updates a tag. The path must contain the most recent version to prevent races.","operationId":"preEncounter_tags_v1_update","tags":["PreEncounterTagsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterTagId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1Tag"}}}}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pre-encountertagsv1MutableTag"}}}}},"delete":{"description":"Sets a tag as deactivated.  The path must contain the most recent version to prevent races.","operationId":"preEncounter_tags_v1_deactivate","tags":["PreEncounterTagsV1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/pre-encounterTagId"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":""}},"servers":[{"url":"https://pre-api.taigabilling.com"},{"url":"https://pre-api-staging.taigabilling.com"},{"url":"https://sandbox-pre-api.taigabilling.com"},{"url":"https://staging-pre-api.taigabilling.com"},{"url":"http://localhost:4000"}],"security":[{"BearerAuth":[]}]}}},"components":{"schemas":{"authdefaultAuthGetTokenResponse":{"title":"authdefaultAuthGetTokenResponse","type":"object","properties":{"access_token":{"type":"string","example":"eyJz93a...k4laUWw"},"expires_in":{"type":"integer","description":"Time in seconds.","example":86400},"token_type":{"type":"string","example":"Bearer"}},"required":["access_token","expires_in","token_type"]},"authdefaultTooManyRequestsErrorType":{"title":"authdefaultTooManyRequestsErrorType","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"authdefaultInvalidContentTypeErrorType":{"title":"authdefaultInvalidContentTypeErrorType","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"billing-notesv2BillingNoteId":{"title":"billing-notesv2BillingNoteId","type":"string","format":"uuid"},"billing-notesv2BillingNoteBaseOptional":{"title":"billing-notesv2BillingNoteBaseOptional","type":"object","properties":{"text":{"type":"string","nullable":true,"description":"Empty string not allowed."}}},"billing-notesv2BillingNoteBase":{"title":"billing-notesv2BillingNoteBase","type":"object","properties":{"text":{"type":"string","description":"Empty string not allowed."}},"required":["text"]},"billing-notesv2BillingNote":{"title":"billing-notesv2BillingNote","type":"object","properties":{"billing_note_id":{"$ref":"#/components/schemas/billing-notesv2BillingNoteId"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"created_at":{"type":"string","format":"date-time","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.","example":"2023-01-01T00:00:00Z"},"author_auth0_id":{"type":"string","nullable":true},"author_name":{"type":"string","nullable":true},"billing_note_type":{"$ref":"#/components/schemas/billing-notesv2BillingNoteType","nullable":true},"billing_note_metadata":{"$ref":"#/components/schemas/billing-notesv2BillingNoteMetadata","nullable":true}},"required":["billing_note_id","encounter_id","created_at"],"allOf":[{"$ref":"#/components/schemas/billing-notesv2BillingNoteBase"}]},"billing-notesv2BillingNoteType":{"title":"billing-notesv2BillingNoteType","type":"string","enum":["manual","system","queue_added","queue_moved","task_created"]},"billing-notesv2BillingNoteMetadata":{"title":"billing-notesv2BillingNoteMetadata","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["queue_added"]}}},{"$ref":"#/components/schemas/billing-notesv2QueueAddedMetadata"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["queue_moved"]}}},{"$ref":"#/components/schemas/billing-notesv2QueueMovedMetadata"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["task_created"]}}},{"$ref":"#/components/schemas/billing-notesv2TaskCreatedMetadata"}],"required":["type"]}]},"billing-notesv2QueueAddedMetadata":{"title":"billing-notesv2QueueAddedMetadata","type":"object","properties":{"queue_id":{"type":"string"},"queue_name":{"type":"string"}},"required":["queue_id","queue_name"]},"billing-notesv2QueueMovedMetadata":{"title":"billing-notesv2QueueMovedMetadata","type":"object","properties":{"from_queue_id":{"type":"string"},"from_queue_name":{"type":"string"},"to_queue_id":{"type":"string"},"to_queue_name":{"type":"string"}},"required":["from_queue_id","from_queue_name","to_queue_id","to_queue_name"]},"billing-notesv2TaskCreatedMetadata":{"title":"billing-notesv2TaskCreatedMetadata","type":"object","properties":{"task_id":{"type":"string","format":"uuid"},"task_type":{"type":"string"}},"required":["task_id","task_type"]},"charge-capture-bundlesv1ChargeCaptureClaimCreationPage":{"title":"charge-capture-bundlesv1ChargeCaptureClaimCreationPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreation"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"charge-capture-bundlesv1ChargeCaptureClaimCreation":{"title":"charge-capture-bundlesv1ChargeCaptureClaimCreation","type":"object","properties":{"id":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId"},"created_encounter_id":{"$ref":"#/components/schemas/EncounterId","nullable":true},"status":{"$ref":"#/components/schemas/charge-capture-bundlesv1ChargeCaptureClaimCreationStatus","description":"Status of the Claim Creation, Successful means that the Claim Creation created a corresponding Claim"},"characteristics":{"type":"object","additionalProperties":{"nullable":true},"description":"A dictionary of characteristics that are used to group charge captures together based on the bundling configuration.\nExample: {\"service_facility.npi\": \"99999999\", \"date_of_service\": \"2023-01-01\"}"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureError"},"description":"All errors that were found when the Claim was attempted to be created.\nErrors can correspond to the Claim Creation as a whole or specific underlying Charge Captures."},"encounter_creation_input":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureData","nullable":true,"description":"If a ChargeCaptureBundle attempts creation, this is the input that was created from the underlying charges and used to attempt encounter creation."}},"required":["id","status","characteristics","errors"]},"charge-capture-bundlesv1ChargeCaptureClaimCreationSummary":{"title":"charge-capture-bundlesv1ChargeCaptureClaimCreationSummary","type":"object","properties":{"charge_capture_charges_not_linked_to_claims_count":{"type":"integer","description":"The count of charge captures which are not part of a Claim Creation."},"charge_capture_claim_creations_not_started_count":{"type":"integer","description":"The count of charge capture claim_creations that have a Claim Creation status of NOT_STARTED."},"charge_capture_held_claim_creations_count":{"type":"integer","description":"The count of charge capture claim_creations that have a Claim Creation status of HELD."},"charge_capture_claim_creations_in_error_count":{"type":"integer","description":"The count of charge capture claim_creations that have a Claim Creation status of IN_ERROR."},"charge_capture_unresolved_change_count":{"type":"integer","description":"The number of ChargeCapturePostBilledChange items that are unresolved."}},"required":["charge_capture_charges_not_linked_to_claims_count","charge_capture_claim_creations_not_started_count","charge_capture_held_claim_creations_count","charge_capture_claim_creations_in_error_count","charge_capture_unresolved_change_count"]},"charge-capture-bundlesv1ChargeCaptureClaimCreationStatus":{"title":"charge-capture-bundlesv1ChargeCaptureClaimCreationStatus","type":"string","enum":["not-started","in-error","successful","successful-dry-run","aborted","held"]},"charge-capture-bundlesv1ChargeCaptureClaimCreationSortField":{"title":"charge-capture-bundlesv1ChargeCaptureClaimCreationSortField","type":"string","enum":["created_at"]},"charge-capturev1ChargeCaptureData":{"title":"charge-capturev1ChargeCaptureData","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterDeepOptional"}]},"charge-capturev1ChargeCapturePage":{"title":"charge-capturev1ChargeCapturePage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/charge-capturev1ChargeCapture"}},"item_count":{"type":"integer"}},"required":["items","item_count"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"charge-capturev1ChargeCapture":{"title":"charge-capturev1ChargeCapture","type":"object","properties":{"id":{"$ref":"#/components/schemas/ChargeCaptureId"},"status":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureStatus"},"charge_capture_data":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureData"},"date_of_service":{"type":"string","format":"date","nullable":true},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"charge_external_id":{"type":"string"},"ehr_source_url":{"type":"string","nullable":true},"originating_system":{"type":"string","nullable":true},"claim_creation_category":{"type":"string","nullable":true},"metadata":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that adhere to metadata schemas.\nMultiple metadata instances can be associated with a charge capture."},"error":{"$ref":"#/components/schemas/charge-capturev1ChargeCaptureError","nullable":true},"updates":{"type":"array","items":{"$ref":"#/components/schemas/charge-capturev1ChargeCapturePostBilledChange"},"description":"This list of updates will always return at most 1 update that is not resolved. The singular update will contain the difference between the updated charge and the created encounter."},"claim_creation_id":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","nullable":true}},"required":["id","status","charge_capture_data","patient_external_id","charge_external_id","updates"]},"charge-capturev1ChargeCaptureError":{"title":"charge-capturev1ChargeCaptureError","type":"object","properties":{"id":{"type":"string","format":"uuid"},"charge_capture_id":{"$ref":"#/components/schemas/ChargeCaptureId","nullable":true,"description":"The underlying Charge Capture that this error object references.\nThe Charge Capture referenced will be a part of the Claim Creation tied to this error.\nErrors may also refer to all charge_captures present in a Claim Creation, in which case this field will be null."},"message":{"type":"string","description":"A human readable error explaining why this charge capture Claim Creation failed to create a claim."},"resolved":{"type":"boolean","nullable":true,"description":"Whether or not the error has been resolved as part of user workflows"},"resolved_by":{"type":"string","nullable":true,"description":"A string denoting who resolved the error within taiga's system."},"resolution_reason":{"type":"string","nullable":true,"description":"A string denoting how or why an error was resolved."},"field_in_error":{"type":"string","nullable":true,"description":"The field of the corresponding underlying ChargeCapture that has a field that is failing validations,\nis not present but marked as required, or otherwise in error."},"claim_creation_id":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","description":"The ID of the ChargeCaptureClaimCreation associated with this Error."}},"required":["id","message","claim_creation_id"]},"charge-capturev1Hl7MessageType":{"title":"charge-capturev1Hl7MessageType","type":"string","enum":["BAR","DFT","ADT"],"description":"HL7 message type that produced a charge-capture write. Values match the bare MSH-9-1 code emitted by HL7 producers (conduit). Constrains the `hl7_message_type` field on charge-capture create/update payloads so that whitespace, case drift, or non-canonical values are rejected at the API boundary instead of silently bypassing the BAR/DFT discriminator."},"charge-capturev1ChargeCaptureSortField":{"title":"charge-capturev1ChargeCaptureSortField","type":"string","enum":["created_at","date_of_service"]},"charge-capturev1ChargeCaptureStatus":{"title":"charge-capturev1ChargeCaptureStatus","type":"string","enum":["planned","not-billable","billable","aborted","entered-in-error"]},"charge-capturev1ChargeCapturePostBilledChange":{"title":"charge-capturev1ChargeCapturePostBilledChange","type":"object","description":"ChargeCapturePostBilledChange represents a change to a ChargeCapture that occurred after the ChargeCapture's status moved to BILLED. Action must be taken to resolve the update, and then the update should be marked as resolved.","properties":{"id":{"$ref":"#/components/schemas/ChargeCapturePostBilledChangeId"},"message":{"type":"string"},"resolved":{"type":"boolean"}},"required":["id","message","resolved"]},"charge-capturev1ChargeExternalIdConflictErrorMessage":{"title":"charge-capturev1ChargeExternalIdConflictErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"claim-submissionv1ExternalClaimSubmissionCreate":{"title":"claim-submissionv1ExternalClaimSubmissionCreate","type":"object","properties":{"claim_created_at":{"type":"string","format":"date-time","description":"When the claim was created in the external system.","example":"2023-01-01T12:00:00.000000Z"},"patient_control_number":{"type":"string","description":"The Patient Control Number sent on the claim to the payer. To guarantee compatibility with all payers, this field must consist\nonly of uppercase letters and numbers and be no more than 14 characters long.","example":"PATIENT_CONTROL_NUMBER"},"submission_records":{"type":"array","items":{"$ref":"#/components/schemas/claim-submissionv1ClaimSubmissionRecordCreate"},"description":"A successful claim submission record will be created for each value provided.\nAn empty list may be provided for cases where the claim originated in an external system but was never submitted to a payer."}},"required":["claim_created_at","patient_control_number","submission_records"]},"claim-submissionv1ExternalClaimSubmissionCreateOptional":{"title":"claim-submissionv1ExternalClaimSubmissionCreateOptional","type":"object","properties":{"claim_created_at":{"type":"string","format":"date-time","nullable":true,"description":"When the claim was created in the external system."},"patient_control_number":{"type":"string","nullable":true,"description":"The Patient Control Number sent on the claim to the payer. To guarantee compatibility with all payers, this field must consist\nonly of uppercase letters and numbers and be no more than 14 characters long."},"submission_records":{"type":"array","items":{"$ref":"#/components/schemas/claim-submissionv1ClaimSubmissionRecordCreateOptional"},"nullable":true,"description":"A successful claim submission record will be created for each value provided.\nAn empty list may be provided for cases where the claim originated in an external system but was never submitted to a payer."}}},"claim-submissionv1ClaimSubmissionRecordCreate":{"title":"claim-submissionv1ClaimSubmissionRecordCreate","type":"object","description":"Data about each external submission.","properties":{"submitted_at":{"type":"string","format":"date-time","description":"When the claim was submitted to the payer.","example":"2023-01-01T13:00:00.000000Z"},"claim_frequency_code":{"$ref":"#/components/schemas/x12v1TypeOfBillFrequencyCode","nullable":true},"payer_responsibility":{"$ref":"#/components/schemas/ClaimSubmissionPayerResponsibilityType","nullable":true},"intended_submission_medium":{"$ref":"#/components/schemas/IntendedSubmissionMedium","nullable":true,"description":"The medium by which the claim was submitted to the payer: paper or electronic.\nIf omitted, defaults to electronic."}},"required":["submitted_at"]},"claim-submissionv1ClaimSubmissionRecordCreateOptional":{"title":"claim-submissionv1ClaimSubmissionRecordCreateOptional","type":"object","description":"Data about each external submission.","properties":{"submitted_at":{"type":"string","format":"date-time","nullable":true,"description":"When the claim was submitted to the payer."},"claim_frequency_code":{"$ref":"#/components/schemas/x12v1TypeOfBillFrequencyCode","nullable":true},"payer_responsibility":{"$ref":"#/components/schemas/ClaimSubmissionPayerResponsibilityType","nullable":true},"intended_submission_medium":{"$ref":"#/components/schemas/IntendedSubmissionMedium","nullable":true,"description":"The medium by which the claim was submitted to the payer: paper or electronic.\nIf omitted, defaults to electronic."}}},"clinical-trialsv1MutableClinicalTrial":{"title":"clinical-trialsv1MutableClinicalTrial","type":"object","properties":{"name":{"type":"string"},"clinical_trial_number":{"type":"string","description":"Must be 8 characters long"},"clinical_trial_phase":{"$ref":"#/components/schemas/clinical-trialsv1ClinicalTrialPhase","nullable":true}},"required":["name","clinical_trial_number"]},"clinical-trialsv1ClinicalTrial":{"title":"clinical-trialsv1ClinicalTrial","type":"object","properties":{"clinical_trial_id":{"$ref":"#/components/schemas/ClinicalTrialId"},"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"is_active":{"type":"boolean"}},"required":["clinical_trial_id","non_insurance_payer_id","is_active"],"allOf":[{"$ref":"#/components/schemas/clinical-trialsv1MutableClinicalTrial"}]},"clinical-trialsv1ClinicalTrialPhase":{"title":"clinical-trialsv1ClinicalTrialPhase","type":"string","enum":["Phase 1","Phase 2","Phase 3"]},"contractsv2ContractIsLinkedToFeeScheduleError":{"title":"contractsv2ContractIsLinkedToFeeScheduleError","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"contractsv2ContractInvalidExpirationDateError":{"title":"contractsv2ContractInvalidExpirationDateError","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"contractsv2ContractId":{"title":"contractsv2ContractId","type":"string","format":"uuid"},"contractsv2ContractingProviderId":{"title":"contractsv2ContractingProviderId","type":"string","format":"uuid"},"contractsv2RenderingProviderid":{"title":"contractsv2RenderingProviderid","type":"string","format":"uuid"},"contractsv2RegionsUpdate":{"title":"contractsv2RegionsUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"$ref":"#/components/schemas/Regions"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"contractsv2DateUpdate":{"title":"contractsv2DateUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"$ref":"#/components/schemas/Date"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"contractsv2AuthorizedSignatoryUpdate":{"title":"contractsv2AuthorizedSignatoryUpdate","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]}}},{"$ref":"#/components/schemas/contractsv2AuthorizedSignatory"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"contractsv2InsuranceTypes":{"title":"contractsv2InsuranceTypes","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["allApply"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["noneApply"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["theseApply"]},"value":{"type":"array","items":{"$ref":"#/components/schemas/InsuranceTypeCode"}}},"required":["type"]}]},"contractsv2ContractBase":{"title":"contractsv2ContractBase","type":"object","properties":{"effective_date":{"$ref":"#/components/schemas/Date","description":"The starting day upon which the contract is effective"},"expiration_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"An optional end day upon which the contract expires"},"regions":{"$ref":"#/components/schemas/Regions","description":"The state(s) to which the contract's coverage extends.\nIt may also be set to \"national\" for the entirety of the US."},"contract_status":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true},"authorized_signatory":{"$ref":"#/components/schemas/contractsv2AuthorizedSignatory","nullable":true},"commercial_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The commercial plan insurance types this contract applies."},"medicare_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The Medicare plan insurance types this contract applies."},"medicaid_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The Medicaid plan insurance types this contract applies."}},"required":["effective_date","regions","commercial_insurance_types","medicare_insurance_types","medicaid_insurance_types"]},"contractsv2Contract":{"title":"contractsv2Contract","type":"object","properties":{"contract_id":{"$ref":"#/components/schemas/contractsv2ContractId"},"contracting_provider":{"$ref":"#/components/schemas/organization-providersv2OrganizationProvider","description":"The provider under contract"},"provider_count":{"type":"integer","description":"The number of linked providers who can render medical services under this contract"},"payer":{"$ref":"#/components/schemas/payersv3Payer","description":"The insurance company under contract"}},"required":["contract_id","contracting_provider","provider_count","payer"],"allOf":[{"$ref":"#/components/schemas/contractsv2ContractBase"}]},"contractsv2ContractWithProviders":{"title":"contractsv2ContractWithProviders","type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The providers who can render medical services under the contract"}},"required":["rendering_provider_ids"],"allOf":[{"$ref":"#/components/schemas/contractsv2Contract"}]},"contractsv2ContractsPage":{"title":"contractsv2ContractsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/contractsv2Contract"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"contractsv2ContractStatus":{"title":"contractsv2ContractStatus","type":"string","enum":["pending","effective","cancelled"]},"contractsv2ContractSortField":{"title":"contractsv2ContractSortField","type":"string","enum":["created_at","payer_name","payer_id","billing_provider_name","effective_date","contract_status"]},"contractsv2AuthorizedSignatory":{"title":"contractsv2AuthorizedSignatory","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true}}},"contractsv3ContractId":{"title":"contractsv3ContractId","type":"string","format":"uuid"},"contractsv3ContractServiceFacilityId":{"title":"contractsv3ContractServiceFacilityId","type":"string","format":"uuid"},"contractsv3ContractingProviderId":{"title":"contractsv3ContractingProviderId","type":"string","format":"uuid"},"contractsv3RenderingProviderid":{"title":"contractsv3RenderingProviderid","type":"string","format":"uuid"},"contractsv3ContractType":{"title":"contractsv3ContractType","type":"string","enum":["professional","institutional"]},"contractsv3ContractServiceFacilityBase":{"title":"contractsv3ContractServiceFacilityBase","type":"object","properties":{"service_facility_id":{"type":"string","format":"uuid","description":"The UUID of the service facility"},"provider_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The providers who are authorized under the contract"}},"required":["service_facility_id","provider_ids"]},"contractsv3ContractServiceFacility":{"title":"contractsv3ContractServiceFacility","type":"object","properties":{"contract_id":{"$ref":"#/components/schemas/contractsv3ContractId","description":"The UUID of the contract"},"contract_service_facility_id":{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityId"}},"required":["contract_id","contract_service_facility_id"],"allOf":[{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityBase"}]},"contractsv3ContractBase":{"title":"contractsv3ContractBase","type":"object","properties":{"effective_date":{"$ref":"#/components/schemas/Date","description":"The starting day upon which the contract is effective"},"expiration_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"An optional end day upon which the contract expires"},"regions":{"$ref":"#/components/schemas/Regions","description":"The state(s) to which the contract's coverage extends.\nIt may also be set to \"national\" for the entirety of the US."},"contract_status":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true},"authorized_signatory":{"$ref":"#/components/schemas/contractsv2AuthorizedSignatory","nullable":true},"commercial_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The commercial plan insurance types this contract applies."},"medicare_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The Medicare plan insurance types this contract applies."},"medicaid_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","description":"The Medicaid plan insurance types this contract applies."}},"required":["effective_date","regions","commercial_insurance_types","medicare_insurance_types","medicaid_insurance_types"]},"contractsv3Contract":{"title":"contractsv3Contract","type":"object","properties":{"contract_id":{"$ref":"#/components/schemas/contractsv3ContractId"},"contracting_provider":{"$ref":"#/components/schemas/organization-providersv2OrganizationProvider","description":"The provider under contract"},"provider_count":{"type":"integer","description":"The number of linked providers who can render medical services under this contract"},"payer":{"$ref":"#/components/schemas/payersv3Payer","description":"The insurance company under contract"}},"required":["contract_id","contracting_provider","provider_count","payer"],"allOf":[{"$ref":"#/components/schemas/contractsv3ContractBase"}]},"contractsv3ProfessionalContract":{"title":"contractsv3ProfessionalContract","type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Deprecated. Use the dedicated providers endpoints to manage rendering providers\n(GET/POST/DELETE /api/contracts/v3/{contract_id}/providers).\nThis field returns a maximum of 4,000 IDs","x-fern-availability":"deprecated"}},"required":["rendering_provider_ids"],"allOf":[{"$ref":"#/components/schemas/contractsv3Contract"}]},"contractsv3InstitutionalContract":{"title":"contractsv3InstitutionalContract","type":"object","properties":{"contract_service_facilities":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3ContractServiceFacility"},"description":"The service facilities under contract"}},"required":["contract_service_facilities"],"allOf":[{"$ref":"#/components/schemas/contractsv3Contract"}]},"contractsv3ContractUnion":{"title":"contractsv3ContractUnion","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["professional"]}}},{"$ref":"#/components/schemas/contractsv3Contract"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["institutional"]}}},{"$ref":"#/components/schemas/contractsv3Contract"}],"required":["type"]}]},"contractsv3ContractWithProvidersUnion":{"title":"contractsv3ContractWithProvidersUnion","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["professional"]}}},{"$ref":"#/components/schemas/contractsv3ProfessionalContract"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["institutional"]}}},{"$ref":"#/components/schemas/contractsv3InstitutionalContract"}],"required":["type"]}]},"contractsv3ContractCreate":{"title":"contractsv3ContractCreate","type":"object","properties":{"contract_type":{"$ref":"#/components/schemas/contractsv3ContractType","description":"The type of contract"},"contracting_provider_id":{"$ref":"#/components/schemas/contractsv3ContractingProviderId","description":"The UUID of the provider under agreement to the contract"},"payer_uuid":{"type":"string","format":"uuid","description":"The UUID of the insurance company under agreement to the contract"}},"required":["contract_type","contracting_provider_id","payer_uuid"],"allOf":[{"$ref":"#/components/schemas/contractsv3ContractBase"}]},"contractsv3ProfessionalContractCreate":{"title":"contractsv3ProfessionalContractCreate","type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3RenderingProviderid"}}},"required":["rendering_provider_ids"],"allOf":[{"$ref":"#/components/schemas/contractsv3ContractCreate"}]},"contractsv3InstitutionalContractCreate":{"title":"contractsv3InstitutionalContractCreate","type":"object","properties":{"contract_service_facilities":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityBase"}}},"required":["contract_service_facilities"],"allOf":[{"$ref":"#/components/schemas/contractsv3ContractCreate"}]},"contractsv3ContractCreateUnion":{"title":"contractsv3ContractCreateUnion","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["professional"]}}},{"$ref":"#/components/schemas/contractsv3ProfessionalContractCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["institutional"]}}},{"$ref":"#/components/schemas/contractsv3InstitutionalContractCreate"}],"required":["type"]}]},"contractsv3ContractUpdate":{"title":"contractsv3ContractUpdate","type":"object","properties":{"effective_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The starting day upon which the contract is effective"},"expiration_date":{"$ref":"#/components/schemas/contractsv2DateUpdate","nullable":true,"description":"An optional end day upon which the contract expires"},"regions":{"$ref":"#/components/schemas/contractsv2RegionsUpdate","nullable":true,"description":"If present, the contract's rendering providers will be patched to this exact\nvalue, overriding what was set before."},"contract_status":{"$ref":"#/components/schemas/contractsv2ContractStatus","nullable":true},"authorized_signatory":{"$ref":"#/components/schemas/contractsv2AuthorizedSignatoryUpdate","nullable":true},"commercial_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true},"medicare_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true},"medicaid_insurance_types":{"$ref":"#/components/schemas/contractsv2InsuranceTypes","nullable":true}}},"contractsv3ProfessionalContractUpdate":{"title":"contractsv3ProfessionalContractUpdate","type":"object","properties":{"rendering_provider_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3RenderingProviderid"},"nullable":true,"description":"Deprecated. Use the dedicated providers endpoints to manage rendering providers\n(GET/POST/DELETE /api/contracts/v3/{contract_id}/providers).\nAttempting to set this property will raise an error if the contract already has more than 4,000 rendering providers.","x-fern-availability":"deprecated"}},"allOf":[{"$ref":"#/components/schemas/contractsv3ContractUpdate"}]},"contractsv3InstitutionalContractUpdate":{"title":"contractsv3InstitutionalContractUpdate","type":"object","properties":{"contract_service_facility_ids":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3ContractServiceFacilityId"},"nullable":true}},"allOf":[{"$ref":"#/components/schemas/contractsv3ContractUpdate"}]},"contractsv3ContractUpdateUnion":{"title":"contractsv3ContractUpdateUnion","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["professional"]}}},{"$ref":"#/components/schemas/contractsv3ProfessionalContractUpdate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["institutional"]}}},{"$ref":"#/components/schemas/contractsv3InstitutionalContractUpdate"}],"required":["type"]}]},"contractsv3ContractsPage":{"title":"contractsv3ContractsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3ContractUnion"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"contractsv3ContractProvidersPage":{"title":"contractsv3ContractProvidersPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProvider"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"contractsv3ContractProviderCredentialing":{"title":"contractsv3ContractProviderCredentialing","type":"object","description":"A rendering provider with their credentialing spans scoped to the contract's contracting provider and payer.","properties":{"provider":{"$ref":"#/components/schemas/organization-providersv2OrganizationProvider"},"credentialing_spans":{"type":"array","items":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpan"}}},"required":["provider","credentialing_spans"]},"contractsv3ContractProviderCredentialingPage":{"title":"contractsv3ContractProviderCredentialingPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/contractsv3ContractProviderCredentialing"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"contractsv3ContractProviderCount":{"title":"contractsv3ContractProviderCount","type":"object","properties":{"provider_count":{"type":"integer","description":"The total number of rendering providers currently associated with this contract"}},"required":["provider_count"]},"contractsv3AddContractProvidersResponse":{"title":"contractsv3AddContractProvidersResponse","type":"object","properties":{"provider_count":{"type":"integer","description":"The total number of rendering providers currently associated with this contract after the operation"},"added_count":{"type":"integer","description":"The number of rendering providers that were newly added to the contract"},"ignored_count":{"type":"integer","description":"The number of rendering provider IDs that were already associated with the contract and thus ignored"}},"required":["provider_count","added_count","ignored_count"]},"credentialingv2ProviderCredentialingSpanId":{"title":"credentialingv2ProviderCredentialingSpanId","type":"string","format":"uuid"},"credentialingv2FacilityCredentialingSpanId":{"title":"credentialingv2FacilityCredentialingSpanId","type":"string","format":"uuid"},"credentialingv2BaseCredentialingSpan":{"title":"credentialingv2BaseCredentialingSpan","type":"object","properties":{"contracting_provider":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2","description":"The practice location at which the rendering provider is covered by the credentialing span."},"payer":{"$ref":"#/components/schemas/payersv3Payer","description":"The payer doing the credentialing."},"start_date":{"type":"string","format":"date","nullable":true,"description":"Start date of the credentialing span."},"end_date":{"type":"string","format":"date","nullable":true,"description":"End date of the credentialing span."},"submitted_date":{"type":"string","format":"date","nullable":true,"description":"Date that the credential paperwork was submitted."},"credentialing_status":{"$ref":"#/components/schemas/credentialingv2CredentialingSpanStatus","description":"Status of the credentialing span."},"payer_loaded_date":{"type":"string","format":"date","nullable":true,"description":"Date that the payer loaded the credentialing span into their system."},"is_enabled":{"type":"boolean","description":"Is the credentialing span enabled?"}},"required":["contracting_provider","payer","credentialing_status","is_enabled"]},"credentialingv2ProviderCredentialingSpan":{"title":"credentialingv2ProviderCredentialingSpan","type":"object","properties":{"provider_credentialing_span_id":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpanId"},"rendering_provider":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2","description":"The rendering provider covered by the credentialing span."},"regions":{"$ref":"#/components/schemas/Regions","description":"The states covered by the credentialing span. A span may be national and cover all states."},"medallion_payer_enrollment_id":{"type":"string","format":"uuid","nullable":true,"description":"Provider ID for the related medallion payer enrollment."},"source":{"type":"string","description":"Source of the credentialing span."}},"required":["provider_credentialing_span_id","rendering_provider","regions","source"],"allOf":[{"$ref":"#/components/schemas/credentialingv2BaseCredentialingSpan"}]},"credentialingv2FacilityCredentialingSpan":{"title":"credentialingv2FacilityCredentialingSpan","type":"object","properties":{"facility_credentialing_span_id":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpanId"},"service_facility":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility","description":"The service facility covered by the credentialing span."}},"required":["facility_credentialing_span_id","service_facility"],"allOf":[{"$ref":"#/components/schemas/credentialingv2BaseCredentialingSpan"}]},"credentialingv2CredentialingSpanStatus":{"title":"credentialingv2CredentialingSpanStatus","type":"string","enum":["work_in_progress","pending","effective","expired"],"description":"Stage of a credentialing span in the credentialing workflow."},"credentialingv2ProviderCredentialingSpanPage":{"title":"credentialingv2ProviderCredentialingSpanPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/credentialingv2ProviderCredentialingSpan"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"credentialingv2FacilityCredentialingSpanPage":{"title":"credentialingv2FacilityCredentialingSpanPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/credentialingv2FacilityCredentialingSpan"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"custom-schemasv1Schema":{"title":"custom-schemasv1Schema","type":"object","properties":{"id":{"$ref":"#/components/schemas/SchemaId"},"name":{"type":"string","example":"General Medicine"},"description":{"type":"string","nullable":true},"fields":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaField"}}},"required":["id","name","fields"]},"custom-schemasv1SchemaInstance":{"title":"custom-schemasv1SchemaInstance","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId","description":"The schema to which the content must adhere."},"content":{"type":"object","additionalProperties":true,"description":"A set of key-value pairs that adhere to the naming and type convention of the schema. Not all keys in the schema must be included, but attaching any key that does not exist in the schema or attaching a key with the incorrect value type will result in errors."}},"required":["schema_id","content"]},"custom-schemasv1SchemaInstanceOptional":{"title":"custom-schemasv1SchemaInstanceOptional","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId","nullable":true,"description":"The schema to which the content must adhere."},"content":{"type":"object","additionalProperties":true,"nullable":true,"description":"A set of key-value pairs that adhere to the naming and type convention of the schema. Not all keys in the schema must be included, but attaching any key that does not exist in the schema or attaching a key with the incorrect value type will result in errors."}}},"custom-schemasv1SchemaField":{"title":"custom-schemasv1SchemaField","type":"object","properties":{"key":{"type":"string","example":"provider_category"},"type":{"$ref":"#/components/schemas/Primitive"}},"required":["key","type"]},"custom-schemasv1SchemaGetMultiResponse":{"title":"custom-schemasv1SchemaGetMultiResponse","type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1Schema"}}},"required":["schemas"]},"custom-schemasv1SchemaWithNameAlreadyExistsError":{"title":"custom-schemasv1SchemaWithNameAlreadyExistsError","type":"object","properties":{"name":{"type":"string"},"id":{"$ref":"#/components/schemas/SchemaId"}},"required":["name","id"]},"custom-schemasv1KeyWithNameAlreadyExistsError":{"title":"custom-schemasv1KeyWithNameAlreadyExistsError","type":"object","properties":{"key":{"type":"string"},"value_type":{"$ref":"#/components/schemas/Primitive"}},"required":["key","value_type"]},"custom-schemasv1SchemaValidationFailure":{"title":"custom-schemasv1SchemaValidationFailure","type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaValidationError"}}},"required":["errors"]},"custom-schemasv1SchemaValidationError":{"title":"custom-schemasv1SchemaValidationError","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["schema_name_already_exists"]}}},{"$ref":"#/components/schemas/custom-schemasv1SchemaWithNameAlreadyExistsError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["key_name_already_exists"]}}},{"$ref":"#/components/schemas/custom-schemasv1KeyWithNameAlreadyExistsError"}],"required":["type"]}]},"encounter-attachmentsv1AttachmentId":{"title":"encounter-attachmentsv1AttachmentId","type":"string","format":"uuid"},"encounter-attachmentsv1BaseAttachment":{"title":"encounter-attachmentsv1BaseAttachment","type":"object","properties":{"attachment_id":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId"},"file_name":{"type":"string"},"description":{"type":"string"},"content_type":{"type":"string"},"authed_url":{"$ref":"#/components/schemas/LinkUrl"}},"required":["attachment_id","file_name","description","content_type","authed_url"]},"encounter-attachmentsv1EncounterAttachment":{"title":"encounter-attachmentsv1EncounterAttachment","type":"object","properties":{"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"attachment_type":{"$ref":"#/components/schemas/encounter-attachmentsv1EncounterAttachmentType"},"created_at":{"type":"string","format":"date-time"},"created_by":{"$ref":"#/components/schemas/usersv2UserV2"}},"required":["encounter_id","attachment_type","created_at","created_by"],"allOf":[{"$ref":"#/components/schemas/encounter-attachmentsv1BaseAttachment"}]},"encounter-attachmentsv1EncounterAttachmentType":{"title":"encounter-attachmentsv1EncounterAttachmentType","type":"string","enum":["DOCUMENTATION","EOB","OTHER"]},"encounter-attachmentsv1ChargeCaptureAttachment":{"title":"encounter-attachmentsv1ChargeCaptureAttachment","type":"object","properties":{"attachment_type":{"$ref":"#/components/schemas/encounter-attachmentsv1EncounterAttachmentType"}},"required":["attachment_type"],"allOf":[{"$ref":"#/components/schemas/encounter-attachmentsv1BaseAttachment"}]},"encounter-providersv2EncounterProviderBase":{"title":"encounter-providersv2EncounterProviderBase","type":"object","properties":{"first_name":{"type":"string","nullable":true,"description":"If the provider is an individual, this should be set instead of organization name"},"last_name":{"type":"string","nullable":true,"description":"If the provider is an individual, this should be set instead of organization name"},"organization_name":{"type":"string","nullable":true,"description":"If the provider is an organization, this should be set instead of first + last name"}}},"encounter-providersv2RenderingProvider":{"title":"encounter-providersv2RenderingProvider","type":"object","properties":{"npi":{"type":"string","description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentification","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2310BB G2\nSecondary Identification"}},"required":["npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2RenderingProviderUpdate":{"title":"encounter-providersv2RenderingProviderUpdate","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentification","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2310BB G2\nSecondary Identification"}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2ReferringProviderSecondaryIdentificationQualifier":{"title":"encounter-providersv2ReferringProviderSecondaryIdentificationQualifier","type":"string","enum":["0B","1G","G2"]},"encounter-providersv2ReferringProviderSecondaryIdentification":{"title":"encounter-providersv2ReferringProviderSecondaryIdentification","type":"object","properties":{"reference_identification":{"type":"string"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentificationQualifier"}},"required":["reference_identification","reference_identification_qualifier"]},"encounter-providersv2ReferringProviderSecondaryIdentificationOptional":{"title":"encounter-providersv2ReferringProviderSecondaryIdentificationOptional","type":"object","properties":{"reference_identification":{"type":"string","nullable":true},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentificationQualifier","nullable":true}}},"encounter-providersv2ReferringProvider":{"title":"encounter-providersv2ReferringProvider","type":"object","properties":{"npi":{"type":"string","description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentification","nullable":true}},"required":["npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2ReferringProviderUpdate":{"title":"encounter-providersv2ReferringProviderUpdate","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentification","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2InitialReferringProvider":{"title":"encounter-providersv2InitialReferringProvider","type":"object","properties":{"npi":{"type":"string","description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"qualifier":{"$ref":"#/components/schemas/QualifierCode","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentification","nullable":true}},"required":["npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2InitialReferringProviderUpdate":{"title":"encounter-providersv2InitialReferringProviderUpdate","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"qualifier":{"$ref":"#/components/schemas/QualifierCode","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentification","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2SupervisingProviderSecondaryIdentification":{"title":"encounter-providersv2SupervisingProviderSecondaryIdentification","type":"object","properties":{"reference_identification":{"type":"string"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentificationQualifier"}},"required":["reference_identification","reference_identification_qualifier"]},"encounter-providersv2SupervisingProviderSecondaryIdentificationOptional":{"title":"encounter-providersv2SupervisingProviderSecondaryIdentificationOptional","type":"object","properties":{"reference_identification":{"type":"string","nullable":true},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentificationQualifier","nullable":true}}},"encounter-providersv2SupervisingProvider":{"title":"encounter-providersv2SupervisingProvider","type":"object","properties":{"npi":{"type":"string","description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderSecondaryIdentification","nullable":true}},"required":["npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2SupervisingProviderUpdate":{"title":"encounter-providersv2SupervisingProviderUpdate","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderSecondaryIdentification","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2OrderingProvider":{"title":"encounter-providersv2OrderingProvider","type":"object","properties":{"npi":{"type":"string","description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true}},"required":["npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2OrderingProviderOptional":{"title":"encounter-providersv2OrderingProviderOptional","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZipOptional","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2OrderingProviderUpdate":{"title":"encounter-providersv2OrderingProviderUpdate","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2BillingProviderSecondaryIdentificationQualifier":{"title":"encounter-providersv2BillingProviderSecondaryIdentificationQualifier","type":"string","enum":["G2","LU"]},"encounter-providersv2BillingProviderSecondaryIdentification":{"title":"encounter-providersv2BillingProviderSecondaryIdentification","type":"object","properties":{"reference_identification":{"type":"string","description":"Represents REF02 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment. Value cannot exceed 50 characters"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderSecondaryIdentificationQualifier","nullable":true,"description":"Represents REF01 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment.\nValid values include G2 (Provider Commercial Number) and LU (Location Number). Defaults to G2 if not set."}},"required":["reference_identification"]},"encounter-providersv2BillingProviderSecondaryIdentificationOptional":{"title":"encounter-providersv2BillingProviderSecondaryIdentificationOptional","type":"object","properties":{"reference_identification":{"type":"string","nullable":true,"description":"Represents REF02 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment. Value cannot exceed 50 characters"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderSecondaryIdentificationQualifier","nullable":true,"description":"Represents REF01 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment.\nValid values include G2 (Provider Commercial Number) and LU (Location Number). Defaults to G2 if not set."}}},"encounter-providersv2ProviderSecondaryIdentificationQualifier":{"title":"encounter-providersv2ProviderSecondaryIdentificationQualifier","type":"string","enum":["0B","1G","G2","LU"]},"encounter-providersv2ProviderSecondaryIdentification":{"title":"encounter-providersv2ProviderSecondaryIdentification","type":"object","properties":{"reference_identification":{"type":"string","description":"Represents REF02 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment. Value cannot exceed 50 characters"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentificationQualifier","nullable":true,"description":"Represents REF01 on the EDI 837 Loop 2010BB Provider Secondary Identification segment."}},"required":["reference_identification"]},"encounter-providersv2ProviderSecondaryIdentificationOptional":{"title":"encounter-providersv2ProviderSecondaryIdentificationOptional","type":"object","properties":{"reference_identification":{"type":"string","nullable":true,"description":"Represents REF02 on the EDI 837 Loop 2010BB Billing Provider Secondary Identification segment. Value cannot exceed 50 characters"},"reference_identification_qualifier":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentificationQualifier","nullable":true,"description":"Represents REF01 on the EDI 837 Loop 2010BB Provider Secondary Identification segment."}}},"encounter-providersv2BillingProvider":{"title":"encounter-providersv2BillingProvider","type":"object","description":"The billing provider is the provider or business entity submitting the claim.\nBilling provider may be, but is not necessarily, the same person/NPI as the rendering provider.\nFrom a payer's perspective, this represents the person or entity being reimbursed.\nWhen a contract exists with the target payer, the billing provider should be the entity contracted with the payer.\nIn some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the\ntax ID (TIN) that the provider gave to the payer during contracting.\nIn other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID.\nBox 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form.","properties":{"address":{"$ref":"#/components/schemas/StreetAddressLongZip"},"tax_id":{"type":"string","description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"npi":{"type":"string"},"taxonomy_code":{"type":"string","nullable":true},"provider_commercial_license_type":{"$ref":"#/components/schemas/BillingProviderCommercialLicenseType","nullable":true,"description":"837i Loop2010BB G2\nProvider Commercial Number"},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderSecondaryIdentification","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2010BB G2\nSecondary Identification"}},"required":["address","tax_id","npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2BillingProviderUpdate":{"title":"encounter-providersv2BillingProviderUpdate","type":"object","description":"The billing provider is the provider or business entity submitting the claim.\nBilling provider may be, but is not necessarily, the same person/NPI as the rendering provider.\nFrom a payer's perspective, this represents the person or entity being reimbursed.\nWhen a contract exists with the target payer, the billing provider should be the entity contracted with the payer.\nIn some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the\ntax ID (TIN) that the provider gave to the payer during contracting.\nIn other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID.\nBox 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form.","properties":{"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"npi":{"type":"string","nullable":true},"taxonomy_code":{"type":"string","nullable":true},"provider_commercial_license_type":{"$ref":"#/components/schemas/BillingProviderCommercialLicenseType","nullable":true,"description":"837i Loop2010BB G2\nProvider Commercial Number"},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderSecondaryIdentification","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2010BB G2\nSecondary Identification"}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2BillingProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2BillingProviderUpdateWithOptionalAddress","type":"object","description":"The billing provider is the provider or business entity submitting the claim.\nBilling provider may be, but is not necessarily, the same person/NPI as the rendering provider.\nFrom a payer's perspective, this represents the person or entity being reimbursed.\nWhen a contract exists with the target payer, the billing provider should be the entity contracted with the payer.\nIn some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the\ntax ID (TIN) that the provider gave to the payer during contracting.\nIn other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID.\nBox 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form.\nThe address fields here are optional.","properties":{"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"npi":{"type":"string","nullable":true},"taxonomy_code":{"type":"string","nullable":true},"provider_commercial_license_type":{"$ref":"#/components/schemas/BillingProviderCommercialLicenseType","nullable":true,"description":"837i Loop2010BB G2\nProvider Commercial Number"},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderSecondaryIdentificationOptional","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2010BB G2\nSecondary Identification"}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2RenderingProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2RenderingProviderUpdateWithOptionalAddress","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentificationOptional","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2310BB G2\nSecondary Identification"}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2InitialReferringProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2InitialReferringProviderUpdateWithOptionalAddress","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"qualifier":{"$ref":"#/components/schemas/QualifierCode","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentificationOptional","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2ReferringProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2ReferringProviderUpdateWithOptionalAddress","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderSecondaryIdentificationOptional","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2SupervisingProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2SupervisingProviderUpdateWithOptionalAddress","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderSecondaryIdentificationOptional","nullable":true}},"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-providersv2TreatingProvider":{"title":"encounter-providersv2TreatingProvider","type":"object","description":"The treating provider for professional encounters. Unlike other provider types, the treating provider has an optional NPI and no organization_name field.","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true,"description":"The license type of the treating provider (e.g., MD, NP, PA, LCSW)."}},"required":["first_name","last_name"],"x-fern-availability":"in-development"},"encounter-providersv2TreatingProviderUpdate":{"title":"encounter-providersv2TreatingProviderUpdate","type":"object","description":"Update type for the treating provider. All fields are optional.","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true,"description":"The license type of the treating provider (e.g., MD, NP, PA, LCSW)."}},"x-fern-availability":"in-development"},"encounter-providersv2TreatingProviderUpdateWithOptionalAddress":{"title":"encounter-providersv2TreatingProviderUpdateWithOptionalAddress","type":"object","description":"Update type for the treating provider with optional address fields. Used in contexts where address fields may be partially provided.","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZipOptional","nullable":true},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true,"description":"The license type of the treating provider (e.g., MD, NP, PA, LCSW)."}},"x-fern-availability":"in-development"},"encounter-providersv2EncounterAdditionalProvider":{"title":"encounter-providersv2EncounterAdditionalProvider","type":"object","description":"A lighter-weight provider type with optional NPI. Used for treating providers and other additional provider roles that may not have full NPI credentials.","properties":{"provider_id":{"$ref":"#/components/schemas/encounter-providersv2ProviderId"},"first_name":{"type":"string"},"last_name":{"type":"string"},"npi":{"type":"string","nullable":true,"description":"A National Provider Identifier is a unique 10-digit identification\nnumber issued to health care providers in the United States"},"taxonomy_code":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"tax_id":{"type":"string","nullable":true},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true,"description":"The license type of the provider (e.g., MD, NP, PA, LCSW)."}},"required":["provider_id","first_name","last_name"],"x-fern-availability":"in-development"},"encounter-providersv2ProviderId":{"title":"encounter-providersv2ProviderId","type":"string","format":"uuid"},"encounter-providersv2EncounterProvider":{"title":"encounter-providersv2EncounterProvider","type":"object","properties":{"provider_id":{"$ref":"#/components/schemas/encounter-providersv2ProviderId"},"address":{"$ref":"#/components/schemas/StreetAddressLongZip"},"tax_id":{"type":"string","nullable":true},"npi":{"type":"string","example":"1234567890"},"taxonomy_code":{"type":"string","nullable":true},"qualifier":{"$ref":"#/components/schemas/QualifierCode","nullable":true},"provider_commercial_license_type":{"$ref":"#/components/schemas/BillingProviderCommercialLicenseType","nullable":true,"description":"837i Loop2010BB G2\nProvider Commercial Number"},"secondary_identification":{"$ref":"#/components/schemas/encounter-providersv2ProviderSecondaryIdentification","nullable":true,"description":"Only one of provider_commercial_license_type or secondary_identification may be provided\n837i Loop2010BB G2\nSecondary Identification"}},"required":["provider_id","address","npi"],"allOf":[{"$ref":"#/components/schemas/encounter-providersv2EncounterProviderBase"}]},"encounter-supplemental-informationv1SupplementalInformationId":{"title":"encounter-supplemental-informationv1SupplementalInformationId","type":"string","format":"uuid"},"encounter-supplemental-informationv1AttachmentInclusion":{"title":"encounter-supplemental-informationv1AttachmentInclusion","type":"string","enum":["not_included","included_on_next_submission","included_on_all_submissions"]},"encounter-supplemental-informationv1CreateSupplementalInformationRequest":{"title":"encounter-supplemental-informationv1CreateSupplementalInformationRequest","type":"object","properties":{"attachment_id":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId","nullable":true},"attachment_report_type_code":{"$ref":"#/components/schemas/ReportTypeCode"},"attachment_transmission_code":{"$ref":"#/components/schemas/ReportTransmissionCode"},"attachment_control_number":{"type":"string","nullable":true},"attachment_inclusion":{"$ref":"#/components/schemas/encounter-supplemental-informationv1AttachmentInclusion"}},"required":["attachment_report_type_code","attachment_transmission_code","attachment_inclusion"]},"encounter-supplemental-informationv1UpdateSupplementalInformationRequest":{"title":"encounter-supplemental-informationv1UpdateSupplementalInformationRequest","type":"object","properties":{"attachment_id":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId","nullable":true},"attachment_report_type_code":{"$ref":"#/components/schemas/ReportTypeCode","nullable":true},"attachment_transmission_code":{"$ref":"#/components/schemas/ReportTransmissionCode","nullable":true},"attachment_control_number":{"type":"string","nullable":true},"attachment_inclusion":{"$ref":"#/components/schemas/encounter-supplemental-informationv1AttachmentInclusion","nullable":true}}},"encounter-supplemental-informationv1SupplementalInformation":{"title":"encounter-supplemental-informationv1SupplementalInformation","type":"object","properties":{"supplemental_information_id":{"$ref":"#/components/schemas/encounter-supplemental-informationv1SupplementalInformationId"},"attachment_id":{"$ref":"#/components/schemas/encounter-attachmentsv1AttachmentId","nullable":true},"attachment_report_type_code":{"$ref":"#/components/schemas/ReportTypeCode"},"attachment_transmission_code":{"$ref":"#/components/schemas/ReportTransmissionCode"},"attachment_control_number":{"type":"string","nullable":true},"attachment_inclusion":{"$ref":"#/components/schemas/encounter-supplemental-informationv1AttachmentInclusion"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"}},"required":["supplemental_information_id","attachment_report_type_code","attachment_transmission_code","attachment_inclusion","encounter_id"]},"encounters-universalUniversalEncounterCreate":{"title":"encounters-universalUniversalEncounterCreate","type":"object","properties":{"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2BillingProvider","description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. This box is not used on a UB-04 or 837i claim form. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2UniversalServiceLineCreate"},"nullable":true},"health_care_code_information":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationCreate","nullable":true,"description":"The health care code information associated with this encounter, which includes things such as diagnoses, vitals, procedures, occurrences, reason for visit, and numerous other code related fields."},"submission_expectation":{"$ref":"#/components/schemas/encountersv4EncounterSubmissionExpectation","description":"Describes the currently expected target form for this encounter.  This can change later, but it orients this encounter in the pipeline and affects reporting.","x-fern-availability":"in-development"},"attending_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has overall responsibility for the patient in institutional claims processing.","x-fern-availability":"in-development"},"admission_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the admission date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"admission_type_code":{"$ref":"#/components/schemas/x12v1TypeOfAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"admission_source_code":{"$ref":"#/components/schemas/x12v1PointOfOriginForAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"discharge_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the discharge date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"discharge_status":{"$ref":"#/components/schemas/x12v1PatientDischargeStatusCode","nullable":true,"description":"837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field on UB-04 claims.\nCode indicating patient status as of the \"statement covers through date\" .","x-fern-availability":"in-development"},"operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has primary responsibility for surgical procedures in institutional claims processing.","x-fern-availability":"in-development"},"other_operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing.  Only used when operating_provider is also set.","x-fern-availability":"in-development"},"type_of_bill":{"$ref":"#/components/schemas/x12v1TypeOfBillCompositeUpdate","nullable":true,"description":"Four digit code used in institutional forms to indicate the type of bill (e.g., hospital inpatient, hospital outpatient). First digit is a leading 0, followed by the type_of_facility, type_of_care, then frequency_code. Professional forms are not required to submit this attribute. You may send the 4 digit code via raw_code, or each individual digit separately via composite_codes.","x-fern-availability":"in-development"},"accident_state_or_province_code":{"$ref":"#/components/schemas/State","nullable":true,"description":"837i-REF1000 -- an optional state indicating where an accident related to the encounter occurred.","x-fern-availability":"in-development"}},"required":["billing_provider","submission_expectation"],"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreateBase"}]},"encounters-universalUniversalEncounterCreateBase":{"title":"encounters-universalUniversalEncounterCreateBase","type":"object","properties":{"patient":{"$ref":"#/components/schemas/PatientCreate","description":"Contains the identification information of the individual receiving medical services."},"referring_provider":{"$ref":"#/components/schemas/encounter-providersv2ReferringProvider","nullable":true,"description":"The final provider who referred the services that were rendered.\nAll physicians who order services or refer Medicare beneficiaries must\nreport this data."},"initial_referring_provider":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProvider","nullable":true,"description":"The second iteration of Loop ID-2310 on an 837P form. Use code \"P3 - Primary Care Provider\" in this loop to\nindicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.\nNot used in an 837i claim"},"supervising_provider":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProvider","nullable":true,"description":"Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send."},"treating_provider":{"$ref":"#/components/schemas/encounter-providersv2TreatingProvider","nullable":true,"description":"The treating provider is the provider who treats the patient. This is only supported for professional encounters.","x-fern-availability":"in-development"},"service_facility":{"$ref":"#/components/schemas/EncounterServiceFacilityBase","nullable":true,"description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is no equivalent on the paper UB-04 claim form, but this field is equivalent to Loop 2310E Service Facility Location details on an 837i form, and is used when this is different to the entity identified as the Billing Provider. Note that for an in-network claim to be successfully adjudicated, the service facility address listed. This field is mutually exclusive with service_facility_id — providing both will result in a 422 error."},"service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true,"description":"The ID of an existing Organization Service Facility to use for this encounter. The service facility's canonical data (name, address, NPI, etc.) will be populated automatically. If the value does not match an existing Organization Service Facility, the request will fail with a 422 error. This field is mutually exclusive with service_facility — providing both will result in a 422 error."},"subscriber_primary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).\nThese are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).\nHowever, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Taiga.\nNote: Cash Pay is no longer a valid payer_id in v4, please use responsible party to define self-pay claims."},"subscriber_secondary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Please always include this when you have it, even for self-pay claims."},"subscriber_tertiary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Please always include this when you have it, even for self-pay claims."},"prior_authorization_number":{"$ref":"#/components/schemas/encountersv4PriorAuthorizationNumber","nullable":true,"description":"Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form."},"responsible_party":{"$ref":"#/components/schemas/encountersv4ResponsiblePartyType","description":"Defines the party to be billed with the initial balance owed on the claim."},"clinical_notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteCategoryCreate"},"nullable":true,"description":"Holds a collection of clinical observations made by healthcare providers during patient encounters. Please note that medical records for appeals should be sent using the Encounter Attachments API."},"billing_notes":{"type":"array","items":{"$ref":"#/components/schemas/billing-notesv2BillingNoteBase"},"nullable":true,"description":"Spot to store misc, human-readable, notes about this encounter to be used\nin the billing process."},"patient_histories":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategory"},"nullable":true},"guarantor":{"$ref":"#/components/schemas/guarantorv1GuarantorCreate","nullable":true,"description":"Personal and contact info for the guarantor of the patient responsibility."},"external_claim_submission":{"$ref":"#/components/schemas/claim-submissionv1ExternalClaimSubmissionCreate","nullable":true,"description":"To be included for claims that have been submitted outside of Taiga.\nTaiga supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).","x-fern-availability":"in-development"},"tag_ids":{"type":"array","items":{"$ref":"#/components/schemas/TagId"},"nullable":true,"description":"Names of tags that should be on the encounter."},"schema_instances":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema\ninstances cannot be created for the same schema on an encounter.","x-fern-availability":"in-development"},"referral_number":{"type":"string","nullable":true,"description":"Refers to REF*9F on the 837p and 837i. Value cannot be greater than 50 characters."},"epsdt_referral":{"$ref":"#/components/schemas/encountersv4EPSDTReferral","nullable":true,"description":"Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P and 837i form"},"claim_supplemental_information":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClaimSupplementalInformation"},"nullable":true,"description":"Refers to Loop 2300 - Segment PWK on the 837P and 837i forms. No more than 10 entries are permitted."},"secondary_payer_carrier_code":{"type":"string","nullable":true,"description":"When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states."},"related_causes_information":{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformationCreate","nullable":true,"description":"Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837)"},"property_casualty_claim_number":{"type":"string","nullable":true,"description":"837p Loop2010 REF02, CMS1500 Box 11b"},"accident_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*439, CMS1500 Box 15"},"property_casualty_patient_identifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierCreate","nullable":true,"description":"Patient identifier for Property and Casualty claims\n837p Loop 2010CA"}},"required":["patient","responsible_party"],"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterBase"}]},"encounters-universalUniversalEncounterUpdate":{"title":"encounters-universalUniversalEncounterUpdate","type":"object","properties":{"health_care_code_information":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationUpdate","nullable":true,"description":"The health care code information associated with this encounter, which includes things such as diagnoses, vitals, procedures, occurrences, reason for visit, and numerous other code related fields.","x-fern-availability":"in-development"},"attending_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProviderUpdate","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has overall responsibility for the patient in institutional claims processing.","x-fern-availability":"in-development"},"admission_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the admission date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"admission_type_code":{"$ref":"#/components/schemas/x12v1TypeOfAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"admission_source_code":{"$ref":"#/components/schemas/x12v1PointOfOriginForAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"discharge_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the discharge date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"discharge_status":{"$ref":"#/components/schemas/x12v1PatientDischargeStatusCode","nullable":true,"description":"837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field on UB-04 claims.\nCode indicating patient status as of the \"statement covers through date\".","x-fern-availability":"in-development"},"operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProviderUpdate","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has primary responsibility for surgical procedures in institutional claims processing.","x-fern-availability":"in-development"},"other_operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProviderUpdate","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing.  Only used when operating_provider is also set.","x-fern-availability":"in-development"},"type_of_bill":{"$ref":"#/components/schemas/x12v1TypeOfBillCompositeUpdate","nullable":true,"description":"Four digit code used in institutional forms to indicate the type of bill (e.g., hospital inpatient, hospital outpatient). First digit is a leading 0, followed by the type_of_facility, type_of_care, then frequency_code. Professional forms are not required to submit this attribute. You may send the 4 digit code via raw_code, or each individual digit separately via composite_codes.","x-fern-availability":"in-development"},"accident_state_or_province_code":{"$ref":"#/components/schemas/State","nullable":true,"description":"837i-REF1000 -- an optional state indicating where an accident related to the encounter occurred.","x-fern-availability":"in-development"},"submission_expectation":{"$ref":"#/components/schemas/encountersv4EncounterSubmissionExpectation","nullable":true,"description":"Describes the currently expected target form for this encounter.  This affects what validations and queues the form is processed under.  When this value is not set, it should be assumed to be TARGET_PROFESSIONAL.","x-fern-availability":"in-development"}},"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterUpdateBase"}]},"encounters-universalUniversalEncounterUpdateBase":{"title":"encounters-universalUniversalEncounterUpdateBase","type":"object","properties":{"epsdt_referral":{"$ref":"#/components/schemas/encountersv4EPSDTReferral","nullable":true,"description":"Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P and 837i form"},"clinical_notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteCategoryCreate"},"nullable":true,"description":"Holds a collection of clinical observations made by healthcare providers during patient encounters. Please note that medical records for appeals should be sent using the Encounter Attachments API."},"claim_supplemental_information":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClaimSupplementalInformation"},"nullable":true,"description":"Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10 entries are permitted."},"schema_instances":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema\ninstances cannot be created for the same schema on an encounter. Updating schema instances utilizes PUT\nsemantics, so the schema instances on the encounter will be set to whatever inputs are provided. If null\nis provided as an input, then the encounter's schema instances will be cleared."},"existing_medications":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4Medication"},"nullable":true,"description":"Existing medications that should be on the encounter.\nNote all current existing medications on encounter will be overridden with this list."},"guarantor":{"$ref":"#/components/schemas/guarantorv1GuarantorUpdate","nullable":true,"description":"Personal and contact info for the guarantor of the patient responsibility."},"subscriber_primary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Contains details of the primary insurance subscriber."},"subscriber_secondary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Contains details of the secondary insurance subscriber."},"subscriber_tertiary":{"$ref":"#/components/schemas/SubscriberCreate","nullable":true,"description":"Contains details of the tertiary insurance subscriber."},"pay_to_address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true,"description":"Specifies the address to which payments for the claim should be sent."},"initial_referring_provider":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProviderUpdate","nullable":true,"description":"The second iteration of Loop ID-2310 on an 837P form. Use code \"P3 - Primary Care Provider\" in this loop to\nindicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.\nNot used in an 837i claim"},"referring_provider":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderUpdate","nullable":true,"description":"The final provider who referred the services that were rendered.\nAll physicians who order services or refer Medicare beneficiaries must\nreport this data."},"patient":{"$ref":"#/components/schemas/PatientUpdate","nullable":true,"description":"Contains the identification information of the individual receiving medical services."},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProviderUpdate","nullable":true,"description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"service_facility":{"$ref":"#/components/schemas/EncounterServiceFacilityUpdate","nullable":true,"description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is no equivalent on the paper UB-04 claim form, but this field is equivalent to Loop 2310E Service Facility Location details on an 837i form, and is used when this is different to the entity identified as the Billing Provider. Note that for an in-network claim to be successfully adjudicated, the service facility address listed"},"supervising_provider":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderUpdate","nullable":true,"description":"Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send."},"treating_provider":{"$ref":"#/components/schemas/encounter-providersv2TreatingProviderUpdate","nullable":true,"description":"The treating provider is the provider who treats the patient. This is supported for professional and institutional encounters.","x-fern-availability":"in-development"},"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderUpdate","nullable":true,"description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form."},"place_of_service_code_as_submitted":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. This box is not used on a UB-04 or 837i claim form. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"related_causes_information":{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformationUpdate","nullable":true,"description":"Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837)"},"property_casualty_claim_number":{"type":"string","nullable":true,"description":"837p Loop2010 REF02, CMS1500 Box 11b"},"accident_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*439, CMS1500 Box 15"},"property_casualty_patient_identifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierUpdate","nullable":true,"description":"Patient identifier for Property and Casualty claims\n837p Loop 2010CA"}},"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterOptional"}]},"encounters-universalUniversalEncounterCreateFromPreEncounter":{"title":"encounters-universalUniversalEncounterCreateFromPreEncounter","type":"object","properties":{"submission_expectation":{"$ref":"#/components/schemas/encountersv4EncounterSubmissionExpectation","description":"Describes the currently expected target form for this encounter.  This affects what validations and queues the form is processed under.","x-fern-availability":"in-development"},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"health_care_code_information":{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationCreate","nullable":true,"description":"The health care code information associated with this encounter, which includes things such as diagnoses, vitals, procedures, occurrences, reason for visit, and numerous other code related fields."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. This box is not used on a UB-04 or 837i claim form. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2UniversalServiceLineCreate"},"nullable":true},"attending_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has overall responsibility for the patient in institutional claims processing.","x-fern-availability":"in-development"},"admission_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the admission date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"admission_type_code":{"$ref":"#/components/schemas/x12v1TypeOfAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"admission_source_code":{"$ref":"#/components/schemas/x12v1PointOfOriginForAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"discharge_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the discharge date with hour (0-23 integer) details.","x-fern-availability":"in-development"},"discharge_status":{"$ref":"#/components/schemas/x12v1PatientDischargeStatusCode","nullable":true,"description":"837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field on UB-04 claims.\nCode indicating patient status as of the \"statement covers through date\" .","x-fern-availability":"in-development"},"operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has primary responsibility for surgical procedures in institutional claims processing.","x-fern-availability":"in-development"},"other_operating_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing.  Only used when operating_provider is also set.","x-fern-availability":"in-development"},"type_of_bill":{"$ref":"#/components/schemas/x12v1TypeOfBillCompositeUpdate","nullable":true,"description":"Four digit code used in institutional forms to indicate the type of bill (e.g., hospital inpatient, hospital outpatient). First digit is a leading 0, followed by the type_of_facility, type_of_care, then frequency_code. Professional forms are not required to submit this attribute. You may send the 4 digit code via raw_code, or each individual digit separately via composite_codes.","x-fern-availability":"in-development"},"accident_state_or_province_code":{"$ref":"#/components/schemas/State","nullable":true,"description":"837i-REF1000 -- an optional state indicating where an accident related to the encounter occurred.","x-fern-availability":"in-development"}},"required":["submission_expectation"],"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreateFromPreEncounterBase"}]},"encounters-universalUniversalEncounterCreateFromPreEncounterBase":{"title":"encounters-universalUniversalEncounterCreateFromPreEncounterBase","type":"object","properties":{"pre_encounter_patient_id":{"$ref":"#/components/schemas/PreEncounterPatientId"},"pre_encounter_appointment_ids":{"type":"array","items":{"$ref":"#/components/schemas/PreEncounterAppointmentId"}},"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2BillingProvider","description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim or Form Locator 1 on a UB-04 claim form."},"initial_referring_provider":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProvider","nullable":true,"description":"The second iteration of Loop ID-2310 on an 837P form. Use code \"P3 - Primary Care Provider\" in this loop to\nindicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction.\nNot used in an 837i claim"},"supervising_provider":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProvider","nullable":true,"description":"Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send."},"service_facility":{"$ref":"#/components/schemas/EncounterServiceFacilityBase","nullable":true,"description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is no equivalent on the paper UB-04 claim form, but this field is equivalent to Loop 2310E Service Facility Location details on an 837i form, and is used when this is different to the entity identified as the Billing Provider. Note that for an in-network claim to be successfully adjudicated, the service facility address listed. This field is mutually exclusive with service_facility_id — providing both will result in a 422 error."},"service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true,"description":"The ID of an existing Organization Service Facility to use for this encounter. The service facility's canonical data (name, address, NPI, etc.) will be populated automatically. If the value does not match an existing Organization Service Facility, the request will fail with a 422 error. This field is mutually exclusive with service_facility — providing both will result in a 422 error."},"clinical_notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteCategoryCreate"},"nullable":true,"description":"Holds a collection of clinical observations made by healthcare providers during patient encounters. Please note that medical records for appeals should be sent using the Encounter Attachments API."},"billing_notes":{"type":"array","items":{"$ref":"#/components/schemas/billing-notesv2BillingNoteBase"},"nullable":true,"description":"Spot to store misc, human-readable, notes about this encounter to be used\nin the billing process."},"patient_histories":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategory"},"nullable":true},"external_claim_submission":{"$ref":"#/components/schemas/claim-submissionv1ExternalClaimSubmissionCreate","nullable":true,"description":"To be included for claims that have been submitted outside of Taiga.\nTaiga supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).","x-fern-availability":"in-development"},"tag_ids":{"type":"array","items":{"$ref":"#/components/schemas/TagId"},"nullable":true,"description":"Names of tags that should be on the encounter."},"schema_instances":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"nullable":true,"description":"Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema\ninstances cannot be created for the same schema on an encounter.","x-fern-availability":"in-development"},"related_causes_information":{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformationCreate","nullable":true,"description":"Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837)"},"property_casualty_claim_number":{"type":"string","nullable":true,"description":"837p Loop2010 REF02, CMS1500 Box 11b"},"accident_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*439, CMS1500 Box 15"},"property_casualty_patient_identifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierCreate","nullable":true,"description":"Patient identifier for Property and Casualty claims\n837p Loop 2010CA"}},"required":["pre_encounter_patient_id","pre_encounter_appointment_ids","billing_provider"],"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterBase"}]},"encountersv4EncounterCreate":{"title":"encountersv4EncounterCreate","type":"object","properties":{"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2BillingProvider","description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form  or Form Locator 1 on a UB-04 claim form.."},"diagnoses":{"type":"array","items":{"$ref":"#/components/schemas/DiagnosisCreate"},"description":"Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses\nmay be submitted at this time, and coders will later prioritize the 12 that will be\nsubmitted to the payor."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLineCreate"},"nullable":true,"description":"Each service line must be linked to a diagnosis. Concretely,\n`service_line.diagnosis_pointers`must contain at least one entry which should be\nin bounds of the diagnoses list field."}},"required":["billing_provider","diagnoses","place_of_service_code","rendering_provider"],"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreateBase"}]},"encountersv4EncounterUpdate":{"title":"encountersv4EncounterUpdate","type":"object","properties":{"vitals":{"$ref":"#/components/schemas/encountersv4VitalsUpdate","nullable":true,"description":"If a vitals entity already exists for the encounter, then all values will be updated to the provided values.\nOtherwise, a new vitals object will be created for the encounter."},"diagnosis_ids":{"type":"array","items":{"$ref":"#/components/schemas/DiagnosisId"},"nullable":true,"description":"Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses\nmay be submitted at this time, and coders will later prioritize the 12 that will be\nsubmitted to the payor."}},"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterUpdateBase"}]},"encountersv4Encounter":{"title":"encountersv4Encounter","type":"object","properties":{"accident_state_or_province_code":{"$ref":"#/components/schemas/State","nullable":true,"description":"837i-REF1000 -- an optional state indicating where an accident related to the encounter occurred.","x-fern-availability":"in-development"},"claim_creation_id":{"$ref":"#/components/schemas/ChargeCaptureClaimCreationId","nullable":true,"description":"If the encounter was created from ingested charge captures, this is the associated Charge Capture Claim Creation Id."},"patient_control_number":{"type":"string","nullable":true,"description":"A patient control number (PCN) is a unique identifier assigned to a patient within a healthcare system or facility.\nIt's used to track and manage a patient's medical records, treatments, and other healthcare-related information."},"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/Claim"}},"patient":{"$ref":"#/components/schemas/Patient","description":"Contains the identification information of the individual receiving medical services."},"guarantor":{"$ref":"#/components/schemas/guarantorv1Guarantor","nullable":true,"description":"Personal and contact info for the guarantor of the patient responsibility."},"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form or Form Locator 1 on a UB-04 claim form."},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"attending_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has overall responsibility for the patient in institutional claims processing.","x-fern-availability":"in-development"},"admission_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the admission date with hour (0-23) details.\nRequired for institutional submission.","x-fern-availability":"in-development"},"admission_type_code":{"$ref":"#/components/schemas/x12v1TypeOfAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CL1-01 Code used to indicate the priority of an admission or visit. Equivalent to Form Locator 14 Priority of Admission on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"admission_source_code":{"$ref":"#/components/schemas/x12v1PointOfOriginForAdmissionOrVisitCode","nullable":true,"description":"837i Loop 2300 CLI1-02 Code used to indicate the conditions under which an admission occurs. Equivalent to Form Locator 15 Point of Origin on a UB-04 claim, not used on CMS-1500 claim forms.","x-fern-availability":"in-development"},"discharge_hour":{"type":"integer","nullable":true,"description":"837i Loop 2300 DTP-03\nExtension of the discharge date with hour (0-23) details.","x-fern-availability":"in-development"},"discharge_status":{"$ref":"#/components/schemas/x12v1PatientDischargeStatusCode","nullable":true,"description":"837i CL1-03 or Form Locator 17 on a UB-04 claim form. This is a required field on UB-04 claims.\nCode indicating patient status as of the \"statement covers through date\".","x-fern-availability":"in-development"},"operating_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has primary responsibility for surgical procedures in institutional claims processing.","x-fern-availability":"in-development"},"other_operating_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true,"description":"837i NM1 2500 variant for Loop ID-2310.  Used to indicate the individual whom has secondary responsibility for surgical procedures in institutional claims processing.  Only used when operating_provider is also set.","x-fern-availability":"in-development"},"treating_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterAdditionalProvider","nullable":true,"description":"The treating provider is the provider who treats the patient. This is only supported for professional encounters.","x-fern-availability":"in-development"},"related_causes_information":{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformation","nullable":true},"property_casualty_claim_number":{"type":"string","nullable":true,"description":"837p Loop2010 REF02, CMS1500 Box 11b"},"accident_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*439, CMS1500 Box 15"},"property_casualty_patient_identifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifier","nullable":true,"description":"Patient identifier for Property and Casualty claims.\n837p Loop2010CA"},"submission_expectation":{"$ref":"#/components/schemas/encountersv4EncounterSubmissionExpectation","nullable":true,"description":"Describes the currently expected target form for this encounter.  This affects what validations and queues the form is processed under.  When this value is not set, it should be assumed to be TARGET_PROFESSIONAL.","x-fern-availability":"in-development"},"type_of_bill":{"$ref":"#/components/schemas/x12v1TypeOfBillComposite","nullable":true,"description":"Four digit code used in institutional forms to indicate the type of bill (e.g., hospital inpatient, hospital outpatient). First digit is a leading 0, followed by the type_of_facility, type_of_care, then frequency_code. Professional forms are not required to submit this attribute. You may send the 4 digit code via raw_code, or each individual digit separately via composite_codes.","x-fern-availability":"in-development"},"referring_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true},"initial_referring_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true},"supervising_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true},"service_facility":{"$ref":"#/components/schemas/EncounterServiceFacility","description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is no equivalent on the paper UB-04 claim form, but this field is equivalent to Loop 2310E Service Facility Location details on an 837i form, and is used when this is different to the entity identified as the Billing Provider. Note that for an in-network claim to be successfully adjudicated, the service facility address listed"},"subscriber_primary":{"$ref":"#/components/schemas/Subscriber","nullable":true,"description":"Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).\nThese are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).\nHowever, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Taiga.\nNote: Cash Pay is no longer a valid payer_id in v4, please use responsible party to define self-pay claims."},"subscriber_secondary":{"$ref":"#/components/schemas/Subscriber","nullable":true,"description":"Contains details of the secondary insurance subscriber."},"subscriber_tertiary":{"$ref":"#/components/schemas/Subscriber","nullable":true,"description":"Contains details of the tertiary insurance subscriber."},"prior_authorization_number":{"$ref":"#/components/schemas/encountersv4PriorAuthorizationNumber","nullable":true,"description":"Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form."},"responsible_party":{"$ref":"#/components/schemas/encountersv4ResponsiblePartyType","description":"Defines the party to be billed with the initial balance owed on the claim."},"url":{"$ref":"#/components/schemas/LinkUrl","description":"URL that links directly to the claim created in Taiga."},"diagnoses":{"type":"array","items":{"$ref":"#/components/schemas/Diagnosis"},"description":"Contains the primary and other diagnosis health care code information objects associated with this encounter. For professional claims, these diagnoses correspond with those that are set on service lines directly, where as for institutional claims these are only associated directly with the claim itself.  See also Health Care Code Information objects and corresponding apis."},"clinical_notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteCategory"},"description":"Holds a collection of clinical observations made by healthcare providers during patient encounters. Please note that medical records for appeals should be sent using the Encounter Attachments API."},"billing_notes":{"type":"array","items":{"$ref":"#/components/schemas/billing-notesv2BillingNote"},"nullable":true,"description":"Spot to store misc, human-readable, notes about this encounter to be\nused in the billing process."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"place_of_service_code_as_submitted":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"patient_histories":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategory"}},"patient_payments":{"type":"array","items":{"$ref":"#/components/schemas/patient-paymentsv3PatientPayment"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"coding_attribution":{"$ref":"#/components/schemas/encountersv4CodingAttributionType","nullable":true,"description":"The entity that performed the coding of medical services for the claim."},"work_queue_id":{"$ref":"#/components/schemas/WorkQueueId","nullable":true},"work_queue_membership_activated_at":{"type":"string","format":"date-time","nullable":true},"owner_of_next_action":{"$ref":"#/components/schemas/encountersv4EncounterOwnerOfNextActionType","description":"The party who is responsible for taking the next action on an Encounter, as defined by ownership of open Tasks."},"submission_origin":{"$ref":"#/components/schemas/encountersv4EncounterSubmissionOriginType","description":"The party who originally submitted the Claim.\nFor Claims originating in Taiga, this will be EncounterSubmissionOriginType.TAIGA.\nFor Encounters created with an external_claim_submission object, this will be EncounterSubmissionOriginType.EXTERNAL."},"schema_instances":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstance"},"description":"Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema\ninstances cannot be created for the same schema on an encounter.","x-fern-availability":"in-development"},"referral_number":{"type":"string","nullable":true,"description":"Refers to REF*9F on the 837p. Value cannot be greater than 50 characters."},"epsdt_referral":{"$ref":"#/components/schemas/encountersv4EPSDTReferral","nullable":true,"description":"Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P and 837i form"},"claim_supplemental_information":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClaimSupplementalInformation"},"nullable":true,"description":"Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10 entries are permitted."},"secondary_payer_carrier_code":{"type":"string","nullable":true,"description":"When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states."},"last_submitted_at":{"type":"string","format":"date-time","nullable":true,"description":"The date and time the encounter was last submitted to a payer."},"created_at":{"type":"string","format":"date-time","description":"The date and time the encounter was created.","example":"2023-01-01T00:00:00Z"},"next_responsible_party":{"$ref":"#/components/schemas/NextResponsibleParty","nullable":true,"description":"The party (payer, patient, etc.) responsible for the remainder of the balance on the claim."},"organization_id":{"$ref":"#/components/schemas/OrganizationId","nullable":true}},"required":["encounter_id","claims","patient","billing_provider","rendering_provider","service_facility","responsible_party","url","diagnoses","clinical_notes","patient_histories","patient_payments","tags","owner_of_next_action","submission_origin","schema_instances","created_at"],"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterBase"}]},"encountersv4EncounterCreateFromPreEncounter":{"title":"encountersv4EncounterCreateFromPreEncounter","type":"object","properties":{"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProvider","description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service.\nFor telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"diagnoses":{"type":"array","items":{"$ref":"#/components/schemas/DiagnosisCreate"},"description":"Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses\nmay be submitted at this time, and coders will later prioritize the 12 that will be\nsubmitted to the payor."},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLineCreate"},"nullable":true,"description":"Each service line must be linked to a diagnosis. Concretely,\n`service_line.diagnosis_pointers`must contain at least one entry which should be\nin bounds of the diagnoses list field."}},"required":["rendering_provider","place_of_service_code","diagnoses"],"allOf":[{"$ref":"#/components/schemas/encounters-universalUniversalEncounterCreateFromPreEncounterBase"}]},"encountersv4EncounterBase":{"title":"encountersv4EncounterBase","type":"object","properties":{"external_id":{"$ref":"#/components/schemas/EncounterExternalId","description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI."},"date_of_service":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.\nBox 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.\nIf service occurred over a range of dates, this should be the start date.\ndate_of_service must be defined on either the encounter or the service lines but not both.\nIf there are greater than zero service lines, it is recommended to specify date_of_service on the service_line instead of on the encounter to prepare for future API versions."},"end_date_of_service":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25.\nThis date must be the local date in the timezone where the service occurred.\nIf omitted, the Encounter is assumed to be for a single day.\nMust not be temporally before the date_of_service field.\nIf there are greater than zero service lines, it is recommended to specify end_date_of_service on the service_line instead of on the encounter to prepare for future API versions."},"patient_authorized_release":{"type":"boolean","description":"Whether this patient has authorized the release of medical information\nfor billing purpose.\nBox 12 on the CMS-1500 claim form  or Form Locator 52 on a UB-04 claim form."},"benefits_assigned_to_provider":{"type":"boolean","description":"Whether this patient has authorized insurance payments to be made to you,\nnot them. If false, patient may receive reimbursement.\nBox 13 on the CMS-1500 claim form or Form Locator 53 on a UB-04 claim form."},"provider_accepts_assignment":{"type":"boolean","description":"Whether you have accepted the patient's authorization for insurance payments\nto be made to you, not them.\nBox 27 on the CMS-1500 claim form. There is no exact equivalent of this field on a UB-04 claim, however contributes to the concept of Form Locator 53."},"appointment_type":{"type":"string","nullable":true,"description":"Human-readable description of the appointment type (ex: \"Acupuncture - Headaches\")."},"existing_medications":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4Medication"},"nullable":true},"interventions":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4Intervention"},"nullable":true},"pay_to_address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true,"description":"Specifies the address to which payments for the claim should be sent."},"synchronicity":{"$ref":"#/components/schemas/encountersv4SynchronicityType","nullable":true,"description":"Whether or not this was a synchronous or asynchronous encounter.\nAsynchronous encounters occur when providers and patients communicate online using\nforms, instant messaging, or other pre-recorded digital mediums.\nSynchronous encounters occur in live, real-time settings where the patient interacts\ndirectly with the provider, such as over video or a phone call."},"vitals":{"$ref":"#/components/schemas/encountersv4Vitals","nullable":true},"billable_status":{"$ref":"#/components/schemas/encountersv4BillableStatusType","description":"Defines if the Encounter is to be billed by Taiga to the responsible_party.\nExamples for when this should be set to NOT_BILLABLE include\nif the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party."},"additional_information":{"type":"string","nullable":true,"description":"Defines additional information on the claim needed by the payer.\nBox 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form."},"service_authorization_exception_code":{"$ref":"#/components/schemas/encountersv4ServiceAuthorizationExceptionCode","nullable":true,"description":"837p Loop2300 REF*4N\nRequired when mandated by government law or regulation to obtain authorization for specific service(s) but, for the\nreasons listed in one of the enum values of ServiceAuthorizationExceptionCode, the service was performed without\nobtaining the authorization."},"admission_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.\nRequired on all ambulance claims when the patient was known to be admitted to the hospital.\nOR\nRequired on all claims involving inpatient medical visits."},"discharge_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the patient was discharged from the facility and the discharge date is known. Not used on an institutional claim."},"onset_of_current_illness_or_symptom_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*431, CMS-1500 Box 14\nRequired for the initial medical service or visit performed in response to a medical emergency when the date is available and is different than the date of service.\nOR\nThis date is the onset of acute symptoms for the current illness or condition.\n For UB-04 claims, this is populated separately via occurrence codes."},"last_menstrual_period_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*484, CMS-1500 Box 14\nRequired when, in the judgment of the provider, the services on this claim are related to the patient's pregnancy.\nThis field is populated separately via occurrence codes for UB-04 claim forms."},"delay_reason_code":{"$ref":"#/components/schemas/DelayReasonCode","nullable":true,"description":"Code indicating the reason why a claim submission was delayed.\nCorresponds to CLM-20 in the 837 specification (both professional and institutional)."}},"required":["external_id","patient_authorized_release","benefits_assigned_to_provider","provider_accepts_assignment","billable_status"]},"encountersv4EncounterOptional":{"title":"encountersv4EncounterOptional","type":"object","properties":{"benefits_assigned_to_provider":{"type":"boolean","nullable":true,"description":"Whether this patient has authorized insurance payments to be made to you, not them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim form or Form Locator 53 on a UB-04 claim form."},"prior_authorization_number":{"$ref":"#/components/schemas/encountersv4PriorAuthorizationNumber","nullable":true,"description":"Box 23 on the CMS-1500 claim form or Form Locator 63 on a UB-04 claim form."},"external_id":{"$ref":"#/components/schemas/EncounterExternalId","nullable":true,"description":"A client-specified unique ID to associate with this encounter;\nfor example, your internal encounter ID or a Dr. Chrono encounter ID.\nThis field should not contain PHI."},"date_of_service":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-24.\nThis date must be the local date in the timezone where the service occurred.\nBox 24a on the CMS-1500 claim form or Form Locator 45 on the UB-04 claim form.\nIf service occurred over a range of dates, this should be the start date.\nIf service lines have distinct date_of_service values, updating the encounter's date_of_service will fail. If all service line date_of_service values are the same, updating the encounter's date_of_service will update all service line date_of_service values."},"tag_ids":{"type":"array","items":{"$ref":"#/components/schemas/TagId"},"nullable":true,"description":"Names of tags that should be on the encounter.  Note all tags on encounter will be overridden with this list."},"billable_status":{"$ref":"#/components/schemas/encountersv4BillableStatusType","nullable":true,"description":"Defines if the Encounter is to be billed by Taiga to the responsible_party. Examples for when this should be set to NOT_BILLABLE include if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party."},"responsible_party":{"$ref":"#/components/schemas/encountersv4ResponsiblePartyType","nullable":true,"description":"Defines the party to be billed with the initial balance owed on the claim. Use SELF_PAY if you intend to bill self pay/cash pay."},"provider_accepts_assignment":{"type":"boolean","nullable":true,"description":"Whether you have accepted the patient's authorization for insurance payments to be made to you, not them. Box 27 on the CMS-1500 claim form. There is no exact equivalent of this field on a UB-04 claim, however contributes to the concept of Form Locator 53."},"synchronicity":{"$ref":"#/components/schemas/encountersv4SynchronicityType","nullable":true,"description":"Whether or not this was a synchronous or asynchronous encounter. Asynchronous encounters occur when providers and patients communicate online using forms, instant messaging, or other pre-recorded digital mediums. Synchronous encounters occur in live, real-time settings where the patient interacts directly with the provider, such as over video or a phone call."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"appointment_type":{"type":"string","nullable":true,"description":"Human-readable description of the appointment type (ex: \"Acupuncture - Headaches\")."},"end_date_of_service":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25.\nThis date must be the local date in the timezone where the service occurred.\nIf omitted, the Encounter is assumed to be for a single day.\nMust not be temporally before the date_of_service field.\nIf service lines have distinct end_date_of_service values, updating the encounter's end_date_of_service will fail. If all service line end_date_of_service values are the same, updating the encounter's end_date_of_service will update all service line date_of_service values."},"additional_information":{"type":"string","nullable":true,"description":"Defines additional information on the claim needed by the payer.\nBox 19 on the CMS-1500 claim form or Form Locator 80 on a UB-04 claim form."},"service_authorization_exception_code":{"$ref":"#/components/schemas/encountersv4ServiceAuthorizationExceptionCode","nullable":true,"description":"837p Loop2300 REF*4N\nRequired when mandated by government law or regulation to obtain authorization for specific service(s) but, for the\nreasons listed in one of the enum values of ServiceAuthorizationExceptionCode, the service was performed without\nobtaining the authorization."},"admission_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*435, CMS-1500 Box 18 or UB-04 Form Locator 12.\nRequired on all ambulance claims when the patient was known to be admitted to the hospital.\nOR\nRequired on all claims involving inpatient medical visits."},"discharge_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*096, CMS-1500 Box 18 Required for inpatient claims when the patient was discharged from the facility and the discharge date is known. Not used on an institutional claim."},"onset_of_current_illness_or_symptom_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*431, CMS-1500 Box 14\nRequired for the initial medical service or visit performed in response to a medical emergency when the date is available and is different than the date of service.\nOR\nThis date is the onset of acute symptoms for the current illness or condition.\n For UB-04 claims, this is populated separately via occurrence codes."},"last_menstrual_period_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*484, CMS-1500 Box 14\nRequired when, in the judgment of the provider, the services on this claim are related to the patient's pregnancy.de\nThis field is populated separately via occurrence codes for UB-04 claim forms."},"delay_reason_code":{"$ref":"#/components/schemas/DelayReasonCode","nullable":true,"description":"Code indicating the reason why a claim submission was delayed.\nCorresponds to CLM-20 in the 837 specification (both professional and institutional)."},"patient_authorized_release":{"type":"boolean","nullable":true,"description":"Whether this patient has authorized the release of medical information\nfor billing purpose.\nBox 12 on the CMS-1500 claim form  or Form Locator 52 on a UB-04 claim form.","x-fern-availability":"in-development"},"referral_number":{"type":"string","nullable":true,"description":"Refers to REF*9F on the 837p. Value cannot be greater than 50 characters."},"secondary_payer_carrier_code":{"type":"string","nullable":true,"description":"When Medicaid is billed as the secondary payer the Carrier Code is used to identify the primary payer. This is required for certain states."}}},"encountersv4EncounterDeepOptional":{"title":"encountersv4EncounterDeepOptional","type":"object","properties":{"vitals":{"$ref":"#/components/schemas/encountersv4VitalsUpdate","nullable":true,"description":"If a vitals entity already exists for the encounter, then all values will be updated to the provided values.\nOtherwise, a new vitals object will be created for the encounter."},"diagnoses":{"type":"array","items":{"$ref":"#/components/schemas/DiagnosisCreateOptional"},"nullable":true,"description":"Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses\nmay be submitted at this time, and coders will later prioritize the 12 that will be\nsubmitted to the payor."},"clinical_notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteCategoryCreateOptional"},"nullable":true,"description":"Holds a collection of clinical observations made by healthcare providers during patient encounters. Please note that medical records for appeals should be sent using the Encounter Attachments API."},"claim_supplemental_information":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClaimSupplementalInformationOptional"},"nullable":true,"description":"Refers to Loop 2300 - Segment PWK on the 837P and 837i form. No more than 10 entries are permitted."},"epsdt_referral":{"$ref":"#/components/schemas/encountersv4EPSDTReferralOptional","nullable":true,"description":"Refers to Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the 837P and 837i form"},"existing_medications":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4MedicationOptional"},"nullable":true,"description":"Existing medications that should be on the encounter.\nNote all current existing medications on encounter will be overridden with this list."},"guarantor":{"$ref":"#/components/schemas/guarantorv1GuarantorOptional","nullable":true,"description":"Personal and contact info for the guarantor of the patient responsibility."},"subscriber_primary":{"$ref":"#/components/schemas/SubscriberCreateOptional","nullable":true,"description":"Contains details of the primary insurance subscriber."},"subscriber_secondary":{"$ref":"#/components/schemas/SubscriberCreateOptional","nullable":true,"description":"Contains details of the secondary insurance subscriber."},"subscriber_tertiary":{"$ref":"#/components/schemas/SubscriberCreateOptional","nullable":true,"description":"Contains details of the tertiary insurance subscriber."},"interventions":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4InterventionOptional"},"nullable":true},"schema_instances":{"type":"array","items":{"$ref":"#/components/schemas/custom-schemasv1SchemaInstanceOptional"},"nullable":true,"description":"Key-value pairs that must adhere to a schema created via the Custom Schema API. Multiple schema\ninstances cannot be created for the same schema on an encounter. Updating schema instances utilizes PUT\nsemantics, so the schema instances on the encounter will be set to whatever inputs are provided. If null\nis provided as an input, then the encounter's schema instances will be cleared."},"external_claim_submission":{"$ref":"#/components/schemas/claim-submissionv1ExternalClaimSubmissionCreateOptional","nullable":true,"description":"***This field is in beta.***\nTo be included for claims that have been submitted outside of Taiga.\nTaiga supports posting remits and payments to these claims and working them in-platform (e.g. editing, resubmitting).","x-fern-availability":"in-development"},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateOptional"},"nullable":true,"description":"Each service line must be linked to a diagnosis. Concretely,\n`service_line.diagnosis_pointers`must contain at least one entry which should be\nin bounds of the diagnoses list field."},"patient_histories":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategoryOptional"},"nullable":true},"billing_notes":{"type":"array","items":{"$ref":"#/components/schemas/billing-notesv2BillingNoteBaseOptional"},"nullable":true,"description":"Spot to store misc, human-readable, notes about this encounter to be\nused in the billing process."},"patient":{"$ref":"#/components/schemas/PatientUpdateWithOptionalAddress","nullable":true,"description":"Contains the identification information of the individual receiving medical services."},"service_facility":{"$ref":"#/components/schemas/EncounterServiceFacilityUpdateWithOptionalAddress","nullable":true,"description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. There is no equivalent on the paper UB-04 claim form, but this field is equivalent to Loop 2310E Service Facility Location details on an 837i form, and is used when this is different to the entity identified as the Billing Provider. Note that for an in-network claim to be successfully adjudicated, the service facility address listed"},"service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true,"description":"The ID of an existing Organization Service Facility to use for this encounter. The service facility's canonical data (name, address, NPI, etc.) will be populated automatically. If the value does not match an existing Organization Service Facility, the request will fail with a 422 error. This field is mutually exclusive with service_facility — providing both will result in a 422 error."},"rendering_provider":{"$ref":"#/components/schemas/encounter-providersv2RenderingProviderUpdateWithOptionalAddress","nullable":true,"description":"The rendering provider is the practitioner -- physician, nurse practitioner, etc. -- performing the service. For telehealth services, the rendering provider performs the visit, asynchronous communication, or other service. The rendering provider address should generally be the same as the service facility address."},"initial_referring_provider":{"$ref":"#/components/schemas/encounter-providersv2InitialReferringProviderUpdateWithOptionalAddress","nullable":true,"description":"The second iteration of Loop ID-2310. Use code \"P3 - Primary Care Provider\" in this loop to\nindicate the initial referral from the primary care provider or whatever provider wrote the initial referral for this patient's episode of care being billed/reported in this transaction."},"referring_provider":{"$ref":"#/components/schemas/encounter-providersv2ReferringProviderUpdateWithOptionalAddress","nullable":true,"description":"The final provider who referred the services that were rendered.\nAll physicians who order services or refer Medicare beneficiaries must\nreport this data."},"supervising_provider":{"$ref":"#/components/schemas/encounter-providersv2SupervisingProviderUpdateWithOptionalAddress","nullable":true,"description":"Required when the rendering provider is supervised by a physician. If not required by this implementation guide, do not send."},"treating_provider":{"$ref":"#/components/schemas/encounter-providersv2TreatingProviderUpdateWithOptionalAddress","nullable":true,"description":"The treating provider is the provider who treats the patient. This is supported for professional and institutional encounters.","x-fern-availability":"in-development"},"billing_provider":{"$ref":"#/components/schemas/encounter-providersv2BillingProviderUpdateWithOptionalAddress","nullable":true,"description":"The billing provider is the provider or business entity submitting the claim. Billing provider may be, but is not necessarily, the same person/NPI as the rendering provider. From a payer's perspective, this represents the person or entity being reimbursed. When a contract exists with the target payer, the billing provider should be the entity contracted with the payer. In some circumstances, this will be an individual provider. In that case, submit that provider's NPI and the tax ID (TIN) that the provider gave to the payer during contracting. In other cases, the billing entity will be a medical group. If so, submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form or Form Locator 1 on a UB-04 claim form."},"pay_to_address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true,"description":"Specifies the address to which payments for the claim should be sent."},"related_causes_information":{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformationCreateOptional","nullable":true,"description":"Corresponds to box 10a on the CMS-1500 (Loop 2300 on 837)"},"property_casualty_claim_number":{"type":"string","nullable":true,"description":"837p Loop2010 REF02, CMS1500 Box 11b"},"accident_date":{"type":"string","format":"date","nullable":true,"description":"837p Loop2300 DTP*439, CMS1500 Box 15"},"property_casualty_patient_identifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierCreateOptional","nullable":true,"description":"Patient identifier for Property and Casualty claims.\n837p Loop2010CA"}},"allOf":[{"$ref":"#/components/schemas/encountersv4EncounterOptional"}]},"encountersv4EncounterSortOptions":{"title":"encountersv4EncounterSortOptions","type":"string","enum":["created_at:asc","created_at:desc","date_of_service:asc","date_of_service:desc"]},"encountersv4Medication":{"title":"encountersv4Medication","type":"object","properties":{"name":{"type":"string","example":"Lisinopril"},"rx_cui":{"$ref":"#/components/schemas/encountersv4RxCui","nullable":true},"dosage":{"type":"string","nullable":true},"dosage_form":{"type":"string","nullable":true},"frequency":{"type":"string","nullable":true},"as_needed":{"type":"boolean","nullable":true}},"required":["name"]},"encountersv4MedicationOptional":{"title":"encountersv4MedicationOptional","type":"object","properties":{"name":{"type":"string","nullable":true},"rx_cui":{"$ref":"#/components/schemas/encountersv4RxCui","nullable":true},"dosage":{"type":"string","nullable":true},"dosage_form":{"type":"string","nullable":true},"frequency":{"type":"string","nullable":true},"as_needed":{"type":"boolean","nullable":true}}},"encountersv4Intervention":{"title":"encountersv4Intervention","type":"object","properties":{"name":{"type":"string","example":"Physical Therapy Session"},"category":{"$ref":"#/components/schemas/encountersv4InterventionCategory"},"description":{"type":"string","nullable":true,"description":"\"Examples: 'Birth Control LAC', 'Tracking', 'Stress Management', 'Supplement', 'Labs'\""},"medication":{"$ref":"#/components/schemas/encountersv4Medication","nullable":true,"description":"Required when `type` is `allopathic`."},"labs":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4Lab"},"nullable":true,"description":"Required when `type` is `tests`."}},"required":["name","category"]},"encountersv4InterventionOptional":{"title":"encountersv4InterventionOptional","type":"object","properties":{"name":{"type":"string","nullable":true},"category":{"$ref":"#/components/schemas/encountersv4InterventionCategory","nullable":true},"description":{"type":"string","nullable":true,"description":"\"Examples: 'Birth Control LAC', 'Tracking', 'Stress Management', 'Supplement', 'Labs'\""},"medication":{"$ref":"#/components/schemas/encountersv4MedicationOptional","nullable":true,"description":"Required when `type` is `allopathic`."},"labs":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4LabOptional"},"nullable":true,"description":"Required when `type` is `tests`."}}},"encountersv4InterventionCategory":{"title":"encountersv4InterventionCategory","type":"string","enum":["allopathic","naturopathic","tests","lifestyle"]},"encountersv4Lab":{"title":"encountersv4Lab","type":"object","properties":{"name":{"type":"string","example":"Genetic Health Labs"},"code":{"type":"string","nullable":true},"code_type":{"$ref":"#/components/schemas/encountersv4LabCodeType","nullable":true}},"required":["name"]},"encountersv4LabOptional":{"title":"encountersv4LabOptional","type":"object","properties":{"name":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"code_type":{"$ref":"#/components/schemas/encountersv4LabCodeType","nullable":true}}},"encountersv4LabCodeType":{"title":"encountersv4LabCodeType","type":"string","enum":["quest","labcorp"]},"encountersv4PatientHistoryCategory":{"title":"encountersv4PatientHistoryCategory","type":"object","properties":{"category":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategoryEnum"},"questions":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeQuestion"},"description":"Must contain at least one item."}},"required":["category","questions"]},"encountersv4PatientHistoryCategoryOptional":{"title":"encountersv4PatientHistoryCategoryOptional","type":"object","properties":{"category":{"$ref":"#/components/schemas/encountersv4PatientHistoryCategoryEnum","nullable":true},"questions":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeQuestionOptional"},"nullable":true,"description":"Must contain at least one item."}}},"encountersv4PatientHistoryCategoryEnum":{"title":"encountersv4PatientHistoryCategoryEnum","type":"string","enum":["present_illness","medical","family","social"]},"encountersv4IntakeQuestion":{"title":"encountersv4IntakeQuestion","type":"object","properties":{"id":{"$ref":"#/components/schemas/encountersv4IntakeQuestionId"},"text":{"type":"string","example":"Do you have any allergies?"},"responses":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeResponseAndFollowUps"},"nullable":true}},"required":["id","text"]},"encountersv4IntakeQuestionOptional":{"title":"encountersv4IntakeQuestionOptional","type":"object","properties":{"id":{"$ref":"#/components/schemas/encountersv4IntakeQuestionId","nullable":true},"text":{"type":"string","nullable":true},"responses":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeResponseAndFollowUpsOptional"},"nullable":true}}},"encountersv4IntakeResponseAndFollowUps":{"title":"encountersv4IntakeResponseAndFollowUps","type":"object","properties":{"response":{"type":"string","nullable":true},"follow_ups":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeFollowUp"},"nullable":true}}},"encountersv4IntakeResponseAndFollowUpsOptional":{"title":"encountersv4IntakeResponseAndFollowUpsOptional","type":"object","properties":{"response":{"type":"string","nullable":true},"follow_ups":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4IntakeFollowUpOptional"},"nullable":true}}},"encountersv4IntakeFollowUp":{"title":"encountersv4IntakeFollowUp","type":"object","properties":{"id":{"$ref":"#/components/schemas/encountersv4IntakeFollowUpId"},"text":{"type":"string","example":"Do you have any allergies?"},"response":{"type":"string","nullable":true}},"required":["id","text"]},"encountersv4IntakeFollowUpOptional":{"title":"encountersv4IntakeFollowUpOptional","type":"object","properties":{"id":{"$ref":"#/components/schemas/encountersv4IntakeFollowUpId","nullable":true},"text":{"type":"string","nullable":true},"response":{"type":"string","nullable":true}}},"encountersv4ClinicalNoteCategoryCreate":{"title":"encountersv4ClinicalNoteCategoryCreate","type":"object","properties":{"category":{"$ref":"#/components/schemas/encountersv4NoteCategory"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNote"}}},"required":["category","notes"]},"encountersv4NoteCategory":{"title":"encountersv4NoteCategory","type":"string","enum":["clinical","care_plan","diagnoses","vitals","physical_exam","review_of_systems","medical_decisions","history_of_present_illness","patient_info","chief_complaint","health_record","consent","procedure","time_in_appointment"]},"encountersv4ClinicalNoteCategoryCreateOptional":{"title":"encountersv4ClinicalNoteCategoryCreateOptional","type":"object","properties":{"category":{"$ref":"#/components/schemas/encountersv4NoteCategory","nullable":true},"notes":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNoteOptional"},"nullable":true}}},"encountersv4ClinicalNoteCategory":{"title":"encountersv4ClinicalNoteCategory","type":"object","properties":{"category":{"$ref":"#/components/schemas/encountersv4NoteCategory"},"notes":{"type":"array","items":{"type":"string"},"example":["Patient complained of mild chest pain."]},"notes_structured":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4ClinicalNote"},"nullable":true}},"required":["category","notes"]},"encountersv4ClinicalNote":{"title":"encountersv4ClinicalNote","type":"object","properties":{"text":{"type":"string"},"author_name":{"type":"string"},"author_npi":{"$ref":"#/components/schemas/Npi","nullable":true},"timestamp":{"type":"string","format":"date-time"}},"required":["text","author_name","timestamp"]},"encountersv4ClinicalNoteOptional":{"title":"encountersv4ClinicalNoteOptional","type":"object","properties":{"text":{"type":"string","nullable":true},"author_name":{"type":"string","nullable":true},"author_npi":{"$ref":"#/components/schemas/Npi","nullable":true},"timestamp":{"type":"string","format":"date-time","nullable":true}}},"encountersv4ResponsiblePartyType":{"title":"encountersv4ResponsiblePartyType","type":"string","enum":["INSURANCE_PAY","SELF_PAY","UNKNOWN"]},"encountersv4BillableStatusType":{"title":"encountersv4BillableStatusType","type":"string","enum":["BILLABLE","NOT_BILLABLE"]},"encountersv4EncounterOwnerOfNextActionType":{"title":"encountersv4EncounterOwnerOfNextActionType","type":"string","enum":["TAIGA","CUSTOMER","CODER","NONE"]},"encountersv4EncounterSubmissionOriginType":{"title":"encountersv4EncounterSubmissionOriginType","type":"string","enum":["TAIGA","EXTERNAL"]},"encountersv4SynchronicityType":{"title":"encountersv4SynchronicityType","type":"string","enum":["Synchronous","Asynchronous"]},"encountersv4CodingAttributionType":{"title":"encountersv4CodingAttributionType","type":"string","enum":["TAIGA","CUSTOMER","TCN","PJF"]},"encountersv4EPSDTReferral":{"title":"encountersv4EPSDTReferral","type":"object","properties":{"condition_indicator1":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode"},"condition_indicator2":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode","nullable":true},"condition_indicator3":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode","nullable":true}},"required":["condition_indicator1"]},"encountersv4EPSDTReferralOptional":{"title":"encountersv4EPSDTReferralOptional","type":"object","properties":{"condition_indicator1":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode","nullable":true},"condition_indicator2":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode","nullable":true},"condition_indicator3":{"$ref":"#/components/schemas/EPSDTReferralConditionIndicatorCode","nullable":true}}},"encountersv4ClaimSupplementalInformationOptional":{"title":"encountersv4ClaimSupplementalInformationOptional","type":"object","properties":{"attachment_report_type_code":{"$ref":"#/components/schemas/ReportTypeCode","nullable":true},"attachment_transmission_code":{"$ref":"#/components/schemas/ReportTransmissionCode","nullable":true},"attachment_control_number":{"type":"string","nullable":true}}},"encountersv4ClaimSupplementalInformation":{"title":"encountersv4ClaimSupplementalInformation","type":"object","properties":{"attachment_report_type_code":{"$ref":"#/components/schemas/ReportTypeCode"},"attachment_transmission_code":{"$ref":"#/components/schemas/ReportTransmissionCode"},"attachment_control_number":{"type":"string","nullable":true}},"required":["attachment_report_type_code","attachment_transmission_code"]},"encountersv4EncounterPage":{"title":"encountersv4EncounterPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4Encounter"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"encountersv4PriorAuthorizationNumber":{"title":"encountersv4PriorAuthorizationNumber","type":"string"},"encountersv4RxCui":{"title":"encountersv4RxCui","type":"string"},"encountersv4IntakeQuestionId":{"title":"encountersv4IntakeQuestionId","type":"string"},"encountersv4IntakeFollowUpId":{"title":"encountersv4IntakeFollowUpId","type":"string"},"encountersv4EncounterExternalIdUniquenessErrorType":{"title":"encountersv4EncounterExternalIdUniquenessErrorType","type":"object","properties":{"external_id":{"$ref":"#/components/schemas/EncounterExternalId","nullable":true}}},"encountersv4EncounterPatientControlNumberUniquenessErrorType":{"title":"encountersv4EncounterPatientControlNumberUniquenessErrorType","type":"object","properties":{"patient_control_number":{"type":"string"}},"required":["patient_control_number"]},"encountersv4EncounterGuarantorMissingContactInfoErrorType":{"title":"encountersv4EncounterGuarantorMissingContactInfoErrorType","type":"object","properties":{"missing_fields":{"type":"array","items":{"type":"string"}}},"required":["missing_fields"]},"encountersv4CashPayPayerErrorMessage":{"title":"encountersv4CashPayPayerErrorMessage","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"encountersv4InvalidTagNamesErrorType":{"title":"encountersv4InvalidTagNamesErrorType","type":"object","properties":{"invalid_tag_names":{"type":"array","items":{"type":"string"}}},"required":["invalid_tag_names"]},"encountersv4ServiceAuthorizationExceptionCode":{"title":"encountersv4ServiceAuthorizationExceptionCode","type":"string","enum":["1","2","3","4","5","6","7"],"description":"Required when mandated by government law or regulation to obtain authorization for specific service(s) but, for the\nreasons listed in one of the enum values, the service was performed without obtaining the authorization."},"encountersv4SchemaInstanceValidationFailure":{"title":"encountersv4SchemaInstanceValidationFailure","type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/encountersv4SchemaInstanceValidationError"}}},"required":["errors"]},"encountersv4KeyDoesNotExistError":{"title":"encountersv4KeyDoesNotExistError","type":"object","properties":{"key":{"type":"string"},"schema_id":{"$ref":"#/components/schemas/SchemaId"}},"required":["key","schema_id"]},"encountersv4SchemaDoesNotExistError":{"title":"encountersv4SchemaDoesNotExistError","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId"}},"required":["schema_id"]},"encountersv4SchemaUnauthorizedAccessError":{"title":"encountersv4SchemaUnauthorizedAccessError","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId"}},"required":["schema_id"]},"encountersv4ValueDoesNotMatchKeyTypeError":{"title":"encountersv4ValueDoesNotMatchKeyTypeError","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId"},"key":{"type":"string"},"expected_value_type":{"$ref":"#/components/schemas/Primitive"},"value":{}},"required":["schema_id","key","expected_value_type","value"]},"encountersv4MultipleInstancesForSchemaError":{"title":"encountersv4MultipleInstancesForSchemaError","type":"object","properties":{"schema_id":{"$ref":"#/components/schemas/SchemaId"}},"required":["schema_id"]},"encountersv4SchemaInstanceValidationError":{"title":"encountersv4SchemaInstanceValidationError","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["multiple_instances_for_schema"]}}},{"$ref":"#/components/schemas/encountersv4MultipleInstancesForSchemaError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["value_does_not_match_key_type"]}}},{"$ref":"#/components/schemas/encountersv4ValueDoesNotMatchKeyTypeError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["key_does_not_exist"]}}},{"$ref":"#/components/schemas/encountersv4KeyDoesNotExistError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["schema_does_not_exist"]}}},{"$ref":"#/components/schemas/encountersv4SchemaDoesNotExistError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["schema_unauthorized_access"]}}},{"$ref":"#/components/schemas/encountersv4SchemaUnauthorizedAccessError"}],"required":["type"]}]},"encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError":{"title":"encountersv4PayerPlanGroupPayerDoesNotMatchInsuranceCardError","type":"object","properties":{"payer_plan_group_payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"},"insurance_card_payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid","nullable":true}},"required":["payer_plan_group_payer_uuid"]},"encountersv4EncounterRenderingOrAttendingProviderRequiredError":{"title":"encountersv4EncounterRenderingOrAttendingProviderRequiredError","type":"object","properties":{}},"encountersv4EncounterSubmissionExpectation":{"title":"encountersv4EncounterSubmissionExpectation","type":"string","enum":["TARGET_PROFESSIONAL","TARGET_INSTITUTIONAL"],"description":"Used to describe the currently expected target form for this encounter.  This affects what\nvalidations and queues the form is processed under.  Before submission,\nthis value will be required by some rules or user intervention.  It can be changed\nat any time, although doing so may incur other rules."},"encountersv4Vitals":{"title":"encountersv4Vitals","type":"object","properties":{"height_in":{"type":"integer","nullable":true},"weight_lbs":{"type":"integer","nullable":true},"blood_pressure_systolic_mmhg":{"type":"integer","nullable":true},"blood_pressure_diastolic_mmhg":{"type":"integer","nullable":true},"body_temperature_f":{"type":"number","format":"double","nullable":true},"hemoglobin_gdl":{"type":"number","format":"double","nullable":true},"hematocrit_pct":{"type":"number","format":"double","nullable":true}}},"encountersv4VitalsUpdate":{"title":"encountersv4VitalsUpdate","type":"object","properties":{"height_in":{"type":"integer","nullable":true},"weight_lbs":{"type":"integer","nullable":true},"blood_pressure_systolic_mmhg":{"type":"integer","nullable":true},"blood_pressure_diastolic_mmhg":{"type":"integer","nullable":true},"body_temperature_f":{"type":"number","format":"double","nullable":true},"hemoglobin_gdl":{"type":"number","format":"double","nullable":true},"hematocrit_pct":{"type":"number","format":"double","nullable":true}}},"eventsv1EventId":{"title":"eventsv1EventId","type":"string","format":"uuid"},"eventsv1Event":{"title":"eventsv1Event","type":"object","properties":{"id":{"$ref":"#/components/schemas/eventsv1EventId"},"created_at":{"type":"string","format":"date-time"},"timestamp":{"type":"string","format":"date-time"},"event_type":{"type":"string"},"schema_version":{"type":"string"},"payload":{}},"required":["id","created_at","timestamp","event_type","schema_version","payload"]},"eventsv1EventScanPage":{"title":"eventsv1EventScanPage","type":"object","properties":{"next_page_token":{"$ref":"#/components/schemas/PageToken","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/eventsv1Event"}}},"required":["items"]},"exportsv3GetExportsResponse":{"title":"exportsv3GetExportsResponse","type":"object","properties":{"name":{"type":"string","description":"Report name; contains date strings representing the start and end date of the export.","example":"John Doe"},"created_at":{"type":"string","format":"date-time","example":"2021-10-07T00:00:00Z"},"authenticated_download_url":{"type":"string","description":"Authenticated URL where a customer's report can be retrieved.","example":"https://example.com"},"authenticated_download_url_expiration":{"type":"string","format":"date-time","description":"Expiration datetime of the authenticated URL. URLs expire after 2 minutes.","example":"2021-10-07T00:02:00Z"}},"required":["name","created_at","authenticated_download_url","authenticated_download_url_expiration"]},"external-payment-account-configv1ExternalPaymentAccountConfig":{"title":"external-payment-account-configv1ExternalPaymentAccountConfig","type":"object","properties":{"id":{"$ref":"#/components/schemas/PaymentAccountConfigId"},"account_name":{"type":"string"}},"required":["id","account_name"]},"external-payment-account-configv1ExternalPaymentAccountConfigPage":{"title":"external-payment-account-configv1ExternalPaymentAccountConfigPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/external-payment-account-configv1ExternalPaymentAccountConfig"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"fee-schedulesv3Dimensions":{"title":"fee-schedulesv3Dimensions","type":"object","description":"Dimension values that qualify a rate. For the optional dimensions, a null value signifies \"all apply\". For set-type dimensions, an empty set signifies \"all apply\". Only one of, but not both, of `network_types` and `payer_plan_group_id` may be populated.","properties":{"payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"},"organization_billing_provider_id":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId"},"states":{"type":"array","items":{"$ref":"#/components/schemas/State"}},"zip_codes":{"type":"array","items":{"type":"string"}},"license_types":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2LicenseType"}},"facility_type_codes":{"type":"array","items":{"$ref":"#/components/schemas/FacilityTypeCode"}},"network_types":{"type":"array","items":{"$ref":"#/components/schemas/NetworkType"}},"payer_plan_group_ids":{"type":"array","items":{"$ref":"#/components/schemas/PayerPlanGroupId"}},"cpt_code":{"type":"string"},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"}}},"required":["payer_uuid","organization_billing_provider_id","states","zip_codes","license_types","facility_type_codes","network_types","payer_plan_group_ids","cpt_code","modifiers"]},"fee-schedulesv3OptionalDimensions":{"title":"fee-schedulesv3OptionalDimensions","type":"object","description":"A dimensions object where all properties are optional.","properties":{"payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid","nullable":true},"organization_billing_provider_id":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","nullable":true},"states":{"type":"array","items":{"$ref":"#/components/schemas/State"}},"zip_codes":{"type":"array","items":{"type":"string"}},"license_types":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2LicenseType"}},"facility_type_codes":{"type":"array","items":{"$ref":"#/components/schemas/FacilityTypeCode"}},"network_types":{"type":"array","items":{"$ref":"#/components/schemas/NetworkType"}},"payer_plan_group_ids":{"type":"array","items":{"$ref":"#/components/schemas/PayerPlanGroupId"}},"cpt_code":{"type":"string","nullable":true},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"}}},"required":["states","zip_codes","license_types","facility_type_codes","network_types","payer_plan_group_ids","modifiers"]},"fee-schedulesv3MatchCptCode":{"title":"fee-schedulesv3MatchCptCode","type":"object","description":"Match information for a CPT code","properties":{"value":{"type":"string"},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["value","match","explanation"]},"fee-schedulesv3MatchPayer":{"title":"fee-schedulesv3MatchPayer","type":"object","description":"Match information for a payer","properties":{"value":{"$ref":"#/components/schemas/payersv3PayerUuid"},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["value","match","explanation"]},"fee-schedulesv3MatchGeo":{"title":"fee-schedulesv3MatchGeo","type":"object","description":"Match information for state or zip code","properties":{"zip_code":{"type":"string","nullable":true},"state":{"$ref":"#/components/schemas/State","nullable":true},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["match","explanation"]},"fee-schedulesv3MatchProvider":{"title":"fee-schedulesv3MatchProvider","type":"object","description":"Match information for a billing provider","properties":{"value":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","nullable":true},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["match","explanation"]},"fee-schedulesv3MatchDate":{"title":"fee-schedulesv3MatchDate","type":"object","description":"Match information for date of service","properties":{"value":{"type":"string","format":"date","nullable":true},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["match","explanation"]},"fee-schedulesv3MatchModifiers":{"title":"fee-schedulesv3MatchModifiers","type":"object","description":"Match information for procedure modifiers","properties":{"value":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"}},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["value","match","explanation"]},"fee-schedulesv3MatchLicenseType":{"title":"fee-schedulesv3MatchLicenseType","type":"object","description":"Match information for rendering provider license type","properties":{"value":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["match","explanation"]},"fee-schedulesv3MatchFacilityTypeCode":{"title":"fee-schedulesv3MatchFacilityTypeCode","type":"object","description":"Match information for facility type code","properties":{"value":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["match","explanation"]},"fee-schedulesv3MatchNetworkTypes":{"title":"fee-schedulesv3MatchNetworkTypes","type":"object","description":"Match information for network types","properties":{"value":{"type":"array","items":{"$ref":"#/components/schemas/NetworkType"}},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["value","match","explanation"]},"fee-schedulesv3MatchPayerPlanGroups":{"title":"fee-schedulesv3MatchPayerPlanGroups","type":"object","description":"Match information for a payer plan","properties":{"value":{"type":"array","items":{"$ref":"#/components/schemas/PayerPlanGroupId"}},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["value","match","explanation"]},"fee-schedulesv3DimensionMatch":{"title":"fee-schedulesv3DimensionMatch","type":"object","description":"Dimension matching for a service line","properties":{"payer":{"$ref":"#/components/schemas/fee-schedulesv3MatchPayer"},"geography":{"$ref":"#/components/schemas/fee-schedulesv3MatchGeo"},"organization_billing_provider":{"$ref":"#/components/schemas/fee-schedulesv3MatchProvider"},"date_of_service":{"$ref":"#/components/schemas/fee-schedulesv3MatchDate"},"cpt_code":{"$ref":"#/components/schemas/fee-schedulesv3MatchCptCode"},"modifiers":{"$ref":"#/components/schemas/fee-schedulesv3MatchModifiers"},"license_type":{"$ref":"#/components/schemas/fee-schedulesv3MatchLicenseType"},"facility_type_code":{"$ref":"#/components/schemas/fee-schedulesv3MatchFacilityTypeCode"},"network_types":{"$ref":"#/components/schemas/fee-schedulesv3MatchNetworkTypes"},"payer_plan_groups":{"$ref":"#/components/schemas/fee-schedulesv3MatchPayerPlanGroups"}},"required":["payer","geography","organization_billing_provider","date_of_service","cpt_code","modifiers","license_type","facility_type_code","network_types","payer_plan_groups"]},"fee-schedulesv3ThresholdMatch":{"title":"fee-schedulesv3ThresholdMatch","type":"object","description":"Threshold and dollar amount matching for a service line","properties":{"threshold":{"$ref":"#/components/schemas/fee-schedulesv3PayerThreshold"},"rate_cents":{"type":"integer"},"match":{"type":"boolean"},"explanation":{"type":"string"}},"required":["threshold","rate_cents","match","explanation"]},"fee-schedulesv3DimensionName":{"title":"fee-schedulesv3DimensionName","type":"string","enum":["payer_uuid","organization_billing_provider_id","cpt_code"],"description":"The name of a dimension."},"fee-schedulesv3MatchResult":{"title":"fee-schedulesv3MatchResult","type":"object","properties":{"threshold":{"$ref":"#/components/schemas/fee-schedulesv3ThresholdMatch"},"rate_id":{"$ref":"#/components/schemas/RateId"}},"required":["threshold","rate_id"]},"fee-schedulesv3MatchTestResult":{"title":"fee-schedulesv3MatchTestResult","type":"object","properties":{"dimensions":{"$ref":"#/components/schemas/fee-schedulesv3DimensionMatch"},"threshold":{"$ref":"#/components/schemas/fee-schedulesv3ThresholdMatch"}},"required":["dimensions","threshold"]},"fee-schedulesv3RateEntry":{"title":"fee-schedulesv3RateEntry","type":"object","description":"A rate value in cents for a specific time range.  Rate entries can be deactivated, which is set by using the delete_rate endpoint.  Deactivated rate entries are not considered when matching against service lines.","properties":{"start_date":{"type":"string","format":"date","example":"2024-04-11"},"end_date":{"type":"string","format":"date","nullable":true},"rate_cents":{"type":"integer","example":33000},"is_deactivated":{"type":"boolean","example":false}},"required":["start_date","rate_cents","is_deactivated"]},"fee-schedulesv3Rate":{"title":"fee-schedulesv3Rate","type":"object","description":"A comprehensive rate including the current rate value and all values for historic time ranges. The time ranges specified by each RateEntry are disjoint.  A rate must always have at least one entry.","properties":{"rate_id":{"$ref":"#/components/schemas/RateId"},"dimensions":{"$ref":"#/components/schemas/fee-schedulesv3Dimensions","description":"The dimension values that distinguish this rate from others."},"version":{"type":"integer","description":"The version of this rate in the system."},"updated_at":{"type":"string","format":"date"},"updated_by":{"$ref":"#/components/schemas/UserId"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3RateEntry"}}},"required":["rate_id","dimensions","version","updated_at","updated_by","entries"]},"fee-schedulesv3NewRate":{"title":"fee-schedulesv3NewRate","type":"object","properties":{"dimensions":{"$ref":"#/components/schemas/fee-schedulesv3Dimensions"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3RateEntry"}}},"required":["dimensions","entries"]},"fee-schedulesv3NewRateVersion":{"title":"fee-schedulesv3NewRateVersion","type":"object","properties":{"rate_id":{"$ref":"#/components/schemas/RateId"},"previous_version":{"type":"integer","description":"New versions of rates must indicate the exact version they modify. When the system attempts to save this new version, if the latest version in the system does not equal this previous_version, the request will be rejected with a EntityConflictError."},"entries":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3RateEntry"}}},"required":["rate_id","previous_version","entries"]},"fee-schedulesv3RateUpload":{"title":"fee-schedulesv3RateUpload","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["new_rate"]}}},{"$ref":"#/components/schemas/fee-schedulesv3NewRate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["new_version"]}}},{"$ref":"#/components/schemas/fee-schedulesv3NewRateVersion"}],"required":["type"]}]},"fee-schedulesv3RateUploadWithPossibleErrors":{"title":"fee-schedulesv3RateUploadWithPossibleErrors","type":"object","properties":{"rate_upload":{"$ref":"#/components/schemas/fee-schedulesv3RateUpload"},"existing_rate":{"$ref":"#/components/schemas/fee-schedulesv3Rate","nullable":true},"possible_errors":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3ValidationError"}}},"required":["rate_upload","possible_errors"]},"fee-schedulesv3RatesPage":{"title":"fee-schedulesv3RatesPage","type":"object","properties":{"rates":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3Rate"}}},"required":["rates"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"fee-schedulesv3DimensionsPage":{"title":"fee-schedulesv3DimensionsPage","type":"object","properties":{"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/fee-schedulesv3OptionalDimensions"}}},"required":["dimensions"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"fee-schedulesv3PayerThreshold":{"title":"fee-schedulesv3PayerThreshold","type":"object","description":"Rate thresholds that determine fee schedule rate matching behavior.  When a service line is adjudicated by a payer Taiga determines if the payer's\nallowed amount \"matches\" the rate value.  If the allowed amount doesn't equal the rate value, Taiga moves the claim to a PAID_INCORRECTLY state.  These\noptional thresholds allow a user to set wiggle room to avoid claims moving to PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID\nwhen the payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and less than [rate_cents + upper_threshold_cents].\n\nAdditionally, a client can set disable_paid_incorrectly to avoid the PAID_INCORRECTLY claim status entirely.","properties":{"upper_threshold_cents":{"type":"integer","nullable":true},"lower_threshold_cents":{"type":"integer","nullable":true},"disable_paid_incorrectly":{"type":"boolean"}},"required":["disable_paid_incorrectly"]},"fee-schedulesv3PayerThresholdsPage":{"title":"fee-schedulesv3PayerThresholdsPage","type":"object","properties":{"payer_thresholds":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/fee-schedulesv3PayerThreshold"}}},"required":["payer_thresholds"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"fee-schedulesv3OverlappingRateEntriesError":{"title":"fee-schedulesv3OverlappingRateEntriesError","type":"object","description":"This error is thrown when two rate entries have time ranges that overlap.","properties":{"message":{"type":"string"},"rate_a":{"$ref":"#/components/schemas/fee-schedulesv3RateEntry"},"rate_b":{"$ref":"#/components/schemas/fee-schedulesv3RateEntry"}},"required":["message","rate_a","rate_b"]},"fee-schedulesv3PayerPlanGroupDoesNotMatchRatePayerError":{"title":"fee-schedulesv3PayerPlanGroupDoesNotMatchRatePayerError","type":"object","properties":{"rate_payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"},"payer_plan_group_payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"}},"required":["rate_payer_uuid","payer_plan_group_payer_uuid"]},"fee-schedulesv3ValidationError":{"title":"fee-schedulesv3ValidationError","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["overlapping_rate_entries"]}}},{"$ref":"#/components/schemas/fee-schedulesv3OverlappingRateEntriesError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["version_conflict"]}}},{"$ref":"#/components/schemas/EntityConflictErrorMessage"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["organization_provider_not_found"]}}},{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["duplicate_rate"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["empty_entries"]}},"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["payer_plan_group_not_found"]}}},{"$ref":"#/components/schemas/EntityNotFoundErrorMessage"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["payer_plan_group_does_not_match_rate_payer"]}}},{"$ref":"#/components/schemas/fee-schedulesv3PayerPlanGroupDoesNotMatchRatePayerError"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["payer_plan_group_network_type_mutual_exclusion"]}}},{"$ref":"#/components/schemas/EntityConflictErrorMessage"}],"required":["type"]}]},"guarantorv1GuarantorId":{"title":"guarantorv1GuarantorId","type":"string","format":"uuid"},"guarantorv1GuarantorBase":{"title":"guarantorv1GuarantorBase","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"external_id":{"type":"string"},"date_of_birth":{"type":"string","format":"date","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZip"}},"required":["first_name","last_name","external_id","address"]},"guarantorv1Guarantor":{"title":"guarantorv1Guarantor","type":"object","properties":{"guarantor_id":{"$ref":"#/components/schemas/guarantorv1GuarantorId"},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"}},"phone_consent":{"type":"boolean","example":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","example":true},"auto_charge_consent":{"type":"boolean","example":true}},"required":["guarantor_id","phone_numbers","phone_consent","email_consent","auto_charge_consent"],"allOf":[{"$ref":"#/components/schemas/guarantorv1GuarantorBase"}]},"guarantorv1GuarantorCreate":{"title":"guarantorv1GuarantorCreate","type":"object","properties":{"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"},"auto_charge_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"}},"allOf":[{"$ref":"#/components/schemas/guarantorv1GuarantorBase"}]},"guarantorv1GuarantorUpdate":{"title":"guarantorv1GuarantorUpdate","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"external_id":{"type":"string","nullable":true,"description":"A unique identifier for the guarantor assigned by an external system."},"date_of_birth":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25."},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","nullable":true},"auto_charge_consent":{"type":"boolean","nullable":true}}},"guarantorv1GuarantorOptional":{"title":"guarantorv1GuarantorOptional","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"external_id":{"type":"string","nullable":true,"description":"A unique identifier for the guarantor assigned by an external system."},"date_of_birth":{"type":"string","format":"date","nullable":true,"description":"Date formatted as YYYY-MM-DD; eg: 2019-08-25."},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumberOptional"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","nullable":true},"auto_charge_consent":{"type":"boolean","nullable":true}}},"guarantorv1EncounterHasExistingGuarantorErrorType":{"title":"guarantorv1EncounterHasExistingGuarantorErrorType","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"health-care-code-informationv1HealthCareCodeInformationCreate":{"title":"health-care-code-informationv1HealthCareCodeInformationCreate","type":"object","properties":{"principal_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalDiagnosisNew","nullable":true},"other_diagnosis_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherDiagnosisInformationNew"},"nullable":true},"admitting_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1AdmittingDiagnosisNew","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"patient_reasons_for_visit":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1PatientReasonForVisitNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"external_causes_of_injury":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ExternalCauseOfInjuryNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"diagnosis_related_groups":{"$ref":"#/components/schemas/health-care-code-informationv1DiagnosisRelatedGroupNew","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"principal_procedure":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalProcedureInformationNew","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"other_procedure_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherProcedureInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"occurrence_span_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"occurrence_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"treatment_code_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCodeInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"value_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ValueInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."},"condition_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionInformationNew"},"nullable":true,"description":"This object only applies to 837i institutional claim forms."}}},"health-care-code-informationv1SetOrClearPrincipalDiagnosis":{"title":"health-care-code-informationv1SetOrClearPrincipalDiagnosis","type":"object","properties":{"value":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalDiagnosis","nullable":true}}},"health-care-code-informationv1SetOrClearAdmittingDiagnosis":{"title":"health-care-code-informationv1SetOrClearAdmittingDiagnosis","type":"object","properties":{"value":{"$ref":"#/components/schemas/health-care-code-informationv1AdmittingDiagnosis","nullable":true}}},"health-care-code-informationv1SetOrClearDiagnosisRelatedGroup":{"title":"health-care-code-informationv1SetOrClearDiagnosisRelatedGroup","type":"object","properties":{"value":{"$ref":"#/components/schemas/health-care-code-informationv1DiagnosisRelatedGroup","nullable":true}}},"health-care-code-informationv1SetOrClearPrincipalProcedureInformation":{"title":"health-care-code-informationv1SetOrClearPrincipalProcedureInformation","type":"object","properties":{"value":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalProcedureInformation","nullable":true}}},"health-care-code-informationv1HealthCareCodeInformationUpdate":{"title":"health-care-code-informationv1HealthCareCodeInformationUpdate","type":"object","properties":{"principal_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1SetOrClearPrincipalDiagnosis","nullable":true,"description":"Set & Replace semantics.  If the id matches the existing principal_diagnosis, that diagnosis is updated in place.  If the entry has no id, it is created newly, its id will be in the response, and any existing principal_diagnosis is deleted and removed from any service line pointers."},"other_diagnosis_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherDiagnosisInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous other_diagnosis_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted, including having it removed from any service line pointers."},"admitting_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1SetOrClearAdmittingDiagnosis","nullable":true,"description":"Set & Replace semantics.  If the id matches the existing admitting_diagnosis, that diagnosis is updated in place.  If the entry has no id, it is created newly, its id will be in the response, and any existing principal_diagnosis is deleted. This object only applies to 837i institutional claim forms."},"patient_reasons_for_visit":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1PatientReasonForVisit"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous patient_reasons_for_visit by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"external_causes_of_injury":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ExternalCauseOfInjury"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous external_causes_of_injury by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"diagnosis_related_groups":{"$ref":"#/components/schemas/health-care-code-informationv1SetOrClearDiagnosisRelatedGroup","nullable":true,"description":"Set & Replace semantics.  If the id matches the existing diagnosis_related_groups, that diagnosis_related_group is updated in place.  If the entry has no id, it is created newly, its id will be in the response, and any existing diagnosis_related_groups is deleted. This object only applies to 837i institutional claim forms."},"principal_procedure":{"$ref":"#/components/schemas/health-care-code-informationv1SetOrClearPrincipalProcedureInformation","nullable":true,"description":"Set & Replace semantics.  If the id matches the existing principal_procedure, that principal_procedure is updated in place.  If the entry has no id, it is created newly, its id will be in the response, and any existing principal_procedure is deleted. This object only applies to 837i institutional claim forms."},"other_procedure_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherProcedureInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous other_procedure_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"occurrence_span_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous occurrence_span_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"occurrence_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous occurrence_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"treatment_code_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCodeInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous treatment_code_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"value_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ValueInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous value_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."},"condition_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionInformation"},"nullable":true,"description":"Set & Replace semantics.  For each entry that has an id, any previous condition_information by that id is updated in place.  For each entry without an id, it is created newly and its id will be in the response.  For each existing entry that was not referred to by id, it is deleted. This object only applies to 837i institutional claim forms."}}},"health-care-code-informationv1HealthCareCodeInformationGetAllResponse":{"title":"health-care-code-informationv1HealthCareCodeInformationGetAllResponse","type":"object","properties":{"principal_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalDiagnosis","nullable":true},"other_diagnosis_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherDiagnosisInformation"}},"admitting_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1AdmittingDiagnosis","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"patient_reasons_for_visit":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1PatientReasonForVisit"},"description":"This object only applies to 837i institutional claim forms."},"external_causes_of_injury":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ExternalCauseOfInjury"},"description":"This object only applies to 837i institutional claim forms."},"diagnosis_related_groups":{"$ref":"#/components/schemas/health-care-code-informationv1DiagnosisRelatedGroup","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"principal_procedure":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalProcedureInformation","nullable":true,"description":"This object only applies to 837i institutional claim forms."},"other_procedure_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OtherProcedureInformation"},"description":"This object only applies to 837i institutional claim forms."},"occurrence_span_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanInformation"},"description":"This object only applies to 837i institutional claim forms."},"occurrence_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceInformation"},"description":"This object only applies to 837i institutional claim forms."},"treatment_code_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCodeInformation"},"description":"This object only applies to 837i institutional claim forms."},"value_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ValueInformation"},"description":"This object only applies to 837i institutional claim forms."},"condition_information":{"type":"array","items":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionInformation"},"description":"This object only applies to 837i institutional claim forms."}},"required":["other_diagnosis_information","patient_reasons_for_visit","external_causes_of_injury","other_procedure_information","occurrence_span_information","occurrence_information","treatment_code_information","value_information","condition_information"]},"health-care-code-informationv1PrincipalDiagnosisCodeQualifier":{"title":"health-care-code-informationv1PrincipalDiagnosisCodeQualifier","type":"string","enum":["BK","ABK"]},"health-care-code-informationv1ICDCode":{"title":"health-care-code-informationv1ICDCode","type":"string"},"health-care-code-informationv1MSDRGCode":{"title":"health-care-code-informationv1MSDRGCode","type":"string"},"health-care-code-informationv1TreatmentCode":{"title":"health-care-code-informationv1TreatmentCode","type":"string"},"health-care-code-informationv1D8Date":{"title":"health-care-code-informationv1D8Date","type":"string","format":"date"},"health-care-code-informationv1RD8Date":{"title":"health-care-code-informationv1RD8Date","type":"object","properties":{"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"}},"required":["start","end"]},"health-care-code-informationv1PrincipalDiagnosis":{"title":"health-care-code-informationv1PrincipalDiagnosis","type":"object","description":"This corresponds to BK or ABK code qualifier values.","properties":{"principal_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalDiagnosisCodeQualifier"},"primary_diagnosis_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["principal_diagnosis_code_qualifier","primary_diagnosis_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1PrincipalDiagnosisNew":{"title":"health-care-code-informationv1PrincipalDiagnosisNew","type":"object","description":"This corresponds to BK or ABK code qualifier values.","properties":{"principal_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalDiagnosisCodeQualifier"},"primary_diagnosis_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["principal_diagnosis_code_qualifier","primary_diagnosis_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1AdmittingDiagnosisCodeQualifier":{"title":"health-care-code-informationv1AdmittingDiagnosisCodeQualifier","type":"string","enum":["BJ","ABJ"]},"health-care-code-informationv1AdmittingDiagnosis":{"title":"health-care-code-informationv1AdmittingDiagnosis","type":"object","description":"This corresponds to BJ or ABJ code qualifier values.","properties":{"admitting_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1AdmittingDiagnosisCodeQualifier"},"admitting_diagnosis_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"}},"required":["admitting_diagnosis_code_qualifier","admitting_diagnosis_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1AdmittingDiagnosisNew":{"title":"health-care-code-informationv1AdmittingDiagnosisNew","type":"object","description":"This corresponds to BJ or ABJ code qualifier values.","properties":{"admitting_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1AdmittingDiagnosisCodeQualifier"},"admitting_diagnosis_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"}},"required":["admitting_diagnosis_code_qualifier","admitting_diagnosis_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1PatientReasonForVisitCodeQualifier":{"title":"health-care-code-informationv1PatientReasonForVisitCodeQualifier","type":"string","enum":["PR","APR"]},"health-care-code-informationv1PatientReasonForVisit":{"title":"health-care-code-informationv1PatientReasonForVisit","type":"object","description":"This corresponds to PR or APR code qualifier values.","properties":{"patient_reason_for_visit_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PatientReasonForVisitCodeQualifier"},"patient_reason_for_visit":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"}},"required":["patient_reason_for_visit_code_qualifier","patient_reason_for_visit"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1PatientReasonForVisitNew":{"title":"health-care-code-informationv1PatientReasonForVisitNew","type":"object","description":"This corresponds to PR or APR code qualifier values.","properties":{"patient_reason_for_visit_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PatientReasonForVisitCodeQualifier"},"patient_reason_for_visit":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"}},"required":["patient_reason_for_visit_code_qualifier","patient_reason_for_visit"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1ExternalCauseOfInjuryCodeQualifier":{"title":"health-care-code-informationv1ExternalCauseOfInjuryCodeQualifier","type":"string","enum":["BN","ABN"]},"health-care-code-informationv1ExternalCauseOfInjury":{"title":"health-care-code-informationv1ExternalCauseOfInjury","type":"object","description":"This corresponds to BN or ABN code qualifier values.","properties":{"external_cause_of_injury_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ExternalCauseOfInjuryCodeQualifier"},"external_cause_of_injury_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["external_cause_of_injury_code_qualifier","external_cause_of_injury_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1ExternalCauseOfInjuryNew":{"title":"health-care-code-informationv1ExternalCauseOfInjuryNew","type":"object","description":"This corresponds to BN or ABN code qualifier values.","properties":{"external_cause_of_injury_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ExternalCauseOfInjuryCodeQualifier"},"external_cause_of_injury_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["external_cause_of_injury_code_qualifier","external_cause_of_injury_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1DiagnosisRelatedGroupCodeQualifier":{"title":"health-care-code-informationv1DiagnosisRelatedGroupCodeQualifier","type":"string","enum":["DR"]},"health-care-code-informationv1DiagnosisRelatedGroup":{"title":"health-care-code-informationv1DiagnosisRelatedGroup","type":"object","description":"This corresponds to DR code qualifier values.","properties":{"diagnosis_related_group_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1DiagnosisRelatedGroupCodeQualifier"},"diagnosis_related_group_code":{"$ref":"#/components/schemas/health-care-code-informationv1MSDRGCode"}},"required":["diagnosis_related_group_code_qualifier","diagnosis_related_group_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1DiagnosisRelatedGroupNew":{"title":"health-care-code-informationv1DiagnosisRelatedGroupNew","type":"object","description":"This corresponds to DR code qualifier values.","properties":{"diagnosis_related_group_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1DiagnosisRelatedGroupCodeQualifier"},"diagnosis_related_group_code":{"$ref":"#/components/schemas/health-care-code-informationv1MSDRGCode"}},"required":["diagnosis_related_group_code_qualifier","diagnosis_related_group_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1OtherDiagnosisInformationCodeQualifier":{"title":"health-care-code-informationv1OtherDiagnosisInformationCodeQualifier","type":"string","enum":["BF","ABF"]},"health-care-code-informationv1OtherDiagnosisInformation":{"title":"health-care-code-informationv1OtherDiagnosisInformation","type":"object","description":"This corresponds to BF and ABF code qualifier values.","properties":{"other_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OtherDiagnosisInformationCodeQualifier"},"other_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["other_diagnosis_code_qualifier","other_diagnosis"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1OtherDiagnosisInformationNew":{"title":"health-care-code-informationv1OtherDiagnosisInformationNew","type":"object","description":"This corresponds to BF and ABF code qualifier values.","properties":{"other_diagnosis_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OtherDiagnosisInformationCodeQualifier"},"other_diagnosis":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"present_on_admission_indicator":{"$ref":"#/components/schemas/health-care-code-informationv1PresentOnAdmissionIndicatorCode","nullable":true}},"required":["other_diagnosis_code_qualifier","other_diagnosis"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1PrincipalProcedureInformationCodeQualifier":{"title":"health-care-code-informationv1PrincipalProcedureInformationCodeQualifier","type":"string","enum":["BBR","BR","CAH"]},"health-care-code-informationv1PrincipalProcedureInformation":{"title":"health-care-code-informationv1PrincipalProcedureInformation","type":"object","description":"This correspond to BBR, BR, and CAH code qualifier values.","properties":{"principal_procedure_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalProcedureInformationCodeQualifier"},"principal_procedure_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"procedure_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["principal_procedure_code_qualifier","principal_procedure_code","procedure_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1PrincipalProcedureInformationNew":{"title":"health-care-code-informationv1PrincipalProcedureInformationNew","type":"object","description":"This correspond to BBR, BR, and CAH code qualifier values.","properties":{"principal_procedure_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1PrincipalProcedureInformationCodeQualifier"},"principal_procedure_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"procedure_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["principal_procedure_code_qualifier","principal_procedure_code","procedure_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1OtherProcedureInformationCodeQualifier":{"title":"health-care-code-informationv1OtherProcedureInformationCodeQualifier","type":"string","enum":["BBQ","BQ"]},"health-care-code-informationv1OtherProcedureInformation":{"title":"health-care-code-informationv1OtherProcedureInformation","type":"object","description":"This corresponds to the BBQ or BQ code qualifier values.","properties":{"other_procedure_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OtherProcedureInformationCodeQualifier"},"other_procedure_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"other_procedure_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["other_procedure_code_qualifier","other_procedure_code","other_procedure_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1OtherProcedureInformationNew":{"title":"health-care-code-informationv1OtherProcedureInformationNew","type":"object","description":"This corresponds to the BBQ or BQ code qualifier values.","properties":{"other_procedure_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OtherProcedureInformationCodeQualifier"},"other_procedure_code":{"$ref":"#/components/schemas/health-care-code-informationv1ICDCode"},"other_procedure_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["other_procedure_code_qualifier","other_procedure_code","other_procedure_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1OccurrenceSpanCodeQualifier":{"title":"health-care-code-informationv1OccurrenceSpanCodeQualifier","type":"string","enum":["BI"]},"health-care-code-informationv1OccurrenceSpanInformation":{"title":"health-care-code-informationv1OccurrenceSpanInformation","type":"object","description":"This corresponds to the BI code qualifier value.","properties":{"occurrence_span_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanCodeQualifier"},"occurrence_span_code":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanCode"},"occurrence_span_date":{"$ref":"#/components/schemas/health-care-code-informationv1RD8Date"}},"required":["occurrence_span_code_qualifier","occurrence_span_code","occurrence_span_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1OccurrenceSpanInformationNew":{"title":"health-care-code-informationv1OccurrenceSpanInformationNew","type":"object","description":"This corresponds to the BI code qualifier value.","properties":{"occurrence_span_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanCodeQualifier"},"occurrence_span_code":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceSpanCode"},"occurrence_span_date":{"$ref":"#/components/schemas/health-care-code-informationv1RD8Date"}},"required":["occurrence_span_code_qualifier","occurrence_span_code","occurrence_span_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1OccurrenceInformationCodeQualifier":{"title":"health-care-code-informationv1OccurrenceInformationCodeQualifier","type":"string","enum":["BH"]},"health-care-code-informationv1OccurrenceInformation":{"title":"health-care-code-informationv1OccurrenceInformation","type":"object","description":"This corresponds to the BH code qualifier value.","properties":{"occurrence_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceInformationCodeQualifier"},"occurrence_code":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceCode"},"occurrence_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["occurrence_code_qualifier","occurrence_code","occurrence_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1OccurrenceInformationNew":{"title":"health-care-code-informationv1OccurrenceInformationNew","type":"object","description":"This corresponds to the BH code qualifier value.","properties":{"occurrence_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceInformationCodeQualifier"},"occurrence_code":{"$ref":"#/components/schemas/health-care-code-informationv1OccurrenceCode"},"occurrence_date":{"$ref":"#/components/schemas/health-care-code-informationv1D8Date","description":"An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).\nFor example, 2017-07-21T17:32:28Z.\nIn practice, only the date portion of this is used for claim submission, so\nmidnight time is fine."}},"required":["occurrence_code_qualifier","occurrence_code","occurrence_date"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1TreatmentCodeQualifier":{"title":"health-care-code-informationv1TreatmentCodeQualifier","type":"string","enum":["TC"]},"health-care-code-informationv1TreatmentCodeInformation":{"title":"health-care-code-informationv1TreatmentCodeInformation","type":"object","description":"This corresponds to the TC code qualifier value.","properties":{"treatment_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCodeQualifier"},"treatment_code":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCode"}},"required":["treatment_code_qualifier","treatment_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1TreatmentCodeInformationNew":{"title":"health-care-code-informationv1TreatmentCodeInformationNew","type":"object","description":"This corresponds to the TC code qualifier value.","properties":{"treatment_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCodeQualifier"},"treatment_code":{"$ref":"#/components/schemas/health-care-code-informationv1TreatmentCode"}},"required":["treatment_code_qualifier","treatment_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1ValueCodeQualifier":{"title":"health-care-code-informationv1ValueCodeQualifier","type":"string","enum":["BE"]},"health-care-code-informationv1ValueInformation":{"title":"health-care-code-informationv1ValueInformation","type":"object","description":"This corresponds to the BE code qualifier value.","properties":{"value_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ValueCodeQualifier"},"value_code":{"$ref":"#/components/schemas/health-care-code-informationv1ValueCode"},"value_code_amount":{"$ref":"#/components/schemas/Decimal"}},"required":["value_code_qualifier","value_code","value_code_amount"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1ValueInformationNew":{"title":"health-care-code-informationv1ValueInformationNew","type":"object","description":"This corresponds to the BE code qualifier value.","properties":{"value_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ValueCodeQualifier"},"value_code":{"$ref":"#/components/schemas/health-care-code-informationv1ValueCode"},"value_code_amount":{"$ref":"#/components/schemas/Decimal"}},"required":["value_code_qualifier","value_code","value_code_amount"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1ConditionInformationCodeQualifier":{"title":"health-care-code-informationv1ConditionInformationCodeQualifier","type":"string","enum":["BG"]},"health-care-code-informationv1ConditionInformation":{"title":"health-care-code-informationv1ConditionInformation","type":"object","description":"This corresponds to the BG code qualifier value.","properties":{"condition_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionInformationCodeQualifier"},"condition_code":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionCode"}},"required":["condition_code_qualifier","condition_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformation"}]},"health-care-code-informationv1ConditionInformationNew":{"title":"health-care-code-informationv1ConditionInformationNew","type":"object","description":"This corresponds to the BG code qualifier value.","properties":{"condition_code_qualifier":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionInformationCodeQualifier"},"condition_code":{"$ref":"#/components/schemas/health-care-code-informationv1ConditionCode"}},"required":["condition_code_qualifier","condition_code"],"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1ConditionCode":{"title":"health-care-code-informationv1ConditionCode","type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","A0","A1","A2","A3","A4","A5","A6","A7","A9","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","B0","B1","B2","B3","B4","BP","C1","C2","C3","C4","C5","C6","C7","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DR(a)","E0","G0","H0","H2","H3","H4","H5","P1","P7","R1","R2","R3","R4","R5","R6","R7","R8","R9","W0","W2","W3","W4","W5"],"description":"\nFL 18-28 - Condition Codes\nSource: UB-04 Manual 2025, Pages 64-81 (FL18-28, Pages 1-18)\nExcludes codes designated as \"Payer Codes\" or \"FOR PUBLIC HEALTH DATA REPORTING ONLY\"\nunless usage on claims is indicated.","x-fern-availability":"in-development"},"health-care-code-informationv1OccurrenceSpanCode":{"title":"health-care-code-informationv1OccurrenceSpanCode","type":"string","enum":["70","71","72","73","74","75","76","77","78","80","81","82","M0","M1","M2","M3","M4"],"x-fern-availability":"in-development"},"health-care-code-informationv1OccurrenceCode":{"title":"health-care-code-informationv1OccurrenceCode","type":"string","enum":["01","02","03","04","05","06","09","10","11","12","16","17","18","19","20","21","22","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","50","51","52","54","55","56","61","62","A1","A2","A3","A4","B1","B2","B3","C1","C2","C3"],"x-fern-availability":"in-development"},"health-care-code-informationv1PresentOnAdmissionIndicatorCode":{"title":"health-care-code-informationv1PresentOnAdmissionIndicatorCode","type":"string","enum":["Y","N","U","W","1"]},"health-care-code-informationv1HealthCareCodeInformation":{"title":"health-care-code-informationv1HealthCareCodeInformation","type":"object","properties":{"id":{"type":"string","format":"uuid","nullable":true,"description":"The id of this health care code information if it is already stored.\nIf this is not set, this is referring to a new health care code information to be added\nto the encounter.  If it is set, this refers to an update of an existing health care code\ninformation object on the encounter."},"encounter_id":{"$ref":"#/components/schemas/EncounterId","nullable":true,"description":"The encounter_id of this health care code information if it is already stored.\nThis will be set by the server in responses, but clients are not expected to set it."}},"allOf":[{"$ref":"#/components/schemas/health-care-code-informationv1HealthCareCodeInformationNew"}]},"health-care-code-informationv1HealthCareCodeInformationNew":{"title":"health-care-code-informationv1HealthCareCodeInformationNew","type":"object","properties":{}},"health-care-code-informationv1ValueCode":{"title":"health-care-code-informationv1ValueCode","type":"string","enum":["01","02","04","05","06","08","09","10","11","12","13","14","15","16","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","66","67","68","69","80","81","82","83","84","85","87","89","90","91","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","B1","B2","B3","B7","BA","BB","C1","C2","C3","C7","CA","CB","D3","D4","D5","D6","FC","FD","G8","P1","P2","P3","Y1","Y2","Y3","Y4","Y5"]},"import-invoicev1ImportInvoice":{"title":"import-invoicev1ImportInvoice","type":"object","properties":{"id":{"$ref":"#/components/schemas/InvoiceId"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"items":{"$ref":"#/components/schemas/invoicesv2InvoiceItemInfo","description":"The InvoiceItem rollup which contains all claim and service line invoice items"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"external_customer_identifier":{"type":"string","description":"Id of the customer in the source system"},"status":{"$ref":"#/components/schemas/invoicesv2InvoiceStatus"},"external_identifier":{"type":"string","description":"Id of the invoice being imported in the source system"},"note":{"type":"string","nullable":true},"customer_invoice_url":{"type":"string","nullable":true,"description":"Link to the patient view of the invoice in the third-party service"},"due_date":{"type":"string","format":"date"},"amount_cents":{"type":"integer","description":"Total monetary amount (in cents) of all Invoice Items"}},"required":["id","created_at","updated_at","items","patient_external_id","external_customer_identifier","status","external_identifier","due_date","amount_cents"]},"import-invoicev1CreateImportInvoiceRequest":{"title":"import-invoicev1CreateImportInvoiceRequest","type":"object","properties":{"external_payment_account_config_id":{"$ref":"#/components/schemas/PaymentAccountConfigId"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"external_customer_identifier":{"type":"string","description":"Id of the customer in the source system"},"note":{"type":"string","nullable":true},"due_date":{"type":"string","format":"date","nullable":true,"description":"If given as None, days_until_due in the payment config will be used to create a default date"},"items":{"type":"array","items":{"$ref":"#/components/schemas/invoicesv2InvoiceItemCreate"}},"status":{"$ref":"#/components/schemas/invoicesv2InvoiceStatus"},"external_identifier":{"type":"string","description":"Id of the invoice being imported in the source system. Warning - This field CANNOT be updated."},"customer_invoice_url":{"type":"string","nullable":true,"description":"Link to the patient view of the invoice in the third-party service"}},"required":["external_payment_account_config_id","patient_external_id","external_customer_identifier","items","status","external_identifier"]},"import-invoicev1InvoiceItemUpdateType":{"title":"import-invoicev1InvoiceItemUpdateType","type":"string","enum":["APPEND","OVERWRITE"]},"import-invoicev1ImportInvoicesPage":{"title":"import-invoicev1ImportInvoicesPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/import-invoicev1ImportInvoice"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"import-invoicev1InvoiceItemInfoUpdate":{"title":"import-invoicev1InvoiceItemInfoUpdate","type":"object","properties":{"update_type":{"$ref":"#/components/schemas/import-invoicev1InvoiceItemUpdateType","description":"The only supported update operations for invoice items is to either overwrite the entire list of invoice items\nor to append new invoice items"},"items":{"type":"array","items":{"$ref":"#/components/schemas/invoicesv2InvoiceItemCreate"}}},"required":["update_type","items"]},"import-invoicev1ImportInvoiceUpdateRequest":{"title":"import-invoicev1ImportInvoiceUpdateRequest","type":"object","properties":{"customer_invoice_url":{"type":"string","nullable":true,"description":"Link to the patient view of the invoice in the third-party service"},"status":{"$ref":"#/components/schemas/invoicesv2InvoiceStatus","nullable":true},"note":{"type":"string","nullable":true},"due_date":{"type":"string","format":"date","nullable":true},"items":{"$ref":"#/components/schemas/import-invoicev1InvoiceItemInfoUpdate","nullable":true,"description":"None here represents there is no update to the invoice items"}}},"insurance-adjudicationsv1InsuranceAdjudicationId":{"title":"insurance-adjudicationsv1InsuranceAdjudicationId","type":"string","format":"uuid"},"insurance-adjudicationsv1ServiceLineAdjudicationId":{"title":"insurance-adjudicationsv1ServiceLineAdjudicationId","type":"string","format":"uuid"},"insurance-adjudicationsv1InsuranceAdjudication":{"title":"insurance-adjudicationsv1InsuranceAdjudication","type":"object","properties":{"insurance_adjudication_id":{"$ref":"#/components/schemas/insurance-adjudicationsv1InsuranceAdjudicationId"},"payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"},"post_date":{"type":"string","format":"date","nullable":true},"check_number":{"type":"string","nullable":true},"check_date":{"type":"string","format":"date"},"note":{"type":"string","nullable":true},"claims":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/insurance-adjudicationsv1ClaimAdjudication"}}}},"required":["insurance_adjudication_id","payer_uuid","check_date","claims"]},"insurance-adjudicationsv1ClaimAdjudication":{"title":"insurance-adjudicationsv1ClaimAdjudication","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId"},"insurance_allowed_amount_cents":{"type":"integer","nullable":true},"insurance_paid_amount_cents":{"type":"integer","nullable":true},"charge_amount_cents":{"type":"integer","nullable":true},"service_lines":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/insurance-adjudicationsv1ServiceLineAdjudication"}}},"payer_claim_number":{"type":"string","nullable":true},"carcs":{"type":"array","items":{"$ref":"#/components/schemas/x12v1ClaimAdjustmentReasonCode"}}},"required":["claim_id","service_lines","carcs"]},"insurance-adjudicationsv1ServiceLineAdjudication":{"title":"insurance-adjudicationsv1ServiceLineAdjudication","type":"object","properties":{"service_line_adjudication_id":{"$ref":"#/components/schemas/insurance-adjudicationsv1ServiceLineAdjudicationId"},"denial_reason":{"$ref":"#/components/schemas/service-linesv2DenialReasonContent","nullable":true,"description":"Will be treated as a denial if present"},"insurance_allowed_amount_cents":{"type":"integer","nullable":true},"insurance_paid_amount_cents":{"type":"integer","nullable":true},"deductible_amount_cents":{"type":"integer","nullable":true},"coinsurance_amount_cents":{"type":"integer","nullable":true},"copay_amount_cents":{"type":"integer","nullable":true},"carcs":{"type":"array","items":{"$ref":"#/components/schemas/x12v1ClaimAdjustmentReasonCode"}},"rarcs":{"type":"array","items":{"$ref":"#/components/schemas/x12v1RemittanceAdviceRemarkCode"}}},"required":["service_line_adjudication_id","carcs","rarcs"]},"insurance-cardsv2InsuranceCardId":{"title":"insurance-cardsv2InsuranceCardId","type":"string","format":"uuid"},"insurance-cardsv2InsuranceCardBase":{"title":"insurance-cardsv2InsuranceCardBase","type":"object","properties":{"group_number":{"type":"string","nullable":true,"description":"Box 11 on the CMS-1500 claim form."},"plan_name":{"type":"string","nullable":true,"description":"Box 11c on the CMS-1500 claim form."},"plan_type":{"$ref":"#/components/schemas/SourceOfPaymentCode","nullable":true},"insurance_type":{"$ref":"#/components/schemas/InsuranceTypeCode","nullable":true},"payer_plan_group_id":{"$ref":"#/components/schemas/PayerPlanGroupId","nullable":true},"payer_address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true}}},"insurance-cardsv2InsuranceCardCreate":{"title":"insurance-cardsv2InsuranceCardCreate","type":"object","properties":{"member_id":{"type":"string"},"payer_name":{"type":"string"},"payer_id":{"type":"string"},"rx_bin":{"type":"string","nullable":true},"rx_pcn":{"type":"string","nullable":true},"image_url_front":{"type":"string","nullable":true},"image_url_back":{"type":"string","nullable":true},"emr_payer_crosswalk":{"$ref":"#/components/schemas/EmrPayerCrosswalk","nullable":true,"description":"Set to PAYER_PLAN_GROUP to use Payer Plans for automatic payer resolution. See Payer Information documentation for details."},"payer_plan_group_name":{"type":"string","nullable":true,"description":"When using emr_payer_crosswalk set to PAYER_PLAN_GROUP, specify the payer plan name here. See Payer Information documentation for details."}},"required":["member_id","payer_name","payer_id"],"allOf":[{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCardBase"}]},"insurance-cardsv2InsuranceCardCreateOptional":{"title":"insurance-cardsv2InsuranceCardCreateOptional","type":"object","properties":{"group_number":{"type":"string","nullable":true,"description":"Box 11 on the CMS-1500 claim form."},"plan_name":{"type":"string","nullable":true,"description":"Box 11c on the CMS-1500 claim form."},"plan_type":{"$ref":"#/components/schemas/SourceOfPaymentCode","nullable":true},"insurance_type":{"$ref":"#/components/schemas/InsuranceTypeCode","nullable":true},"payer_plan_group_id":{"$ref":"#/components/schemas/PayerPlanGroupId","nullable":true},"payer_address":{"$ref":"#/components/schemas/StreetAddressLongZipOptional","nullable":true},"member_id":{"type":"string","nullable":true},"payer_name":{"type":"string","nullable":true},"payer_id":{"type":"string","nullable":true},"rx_bin":{"type":"string","nullable":true},"rx_pcn":{"type":"string","nullable":true},"image_url_front":{"type":"string","nullable":true},"image_url_back":{"type":"string","nullable":true},"emr_payer_crosswalk":{"$ref":"#/components/schemas/EmrPayerCrosswalk","nullable":true,"description":"Set to PAYER_PLAN_GROUP to use Payer Plans for automatic payer resolution. See Payer Information documentation for details."},"payer_plan_group_name":{"type":"string","nullable":true,"description":"When using emr_payer_crosswalk set to PAYER_PLAN_GROUP, specify the payer plan name here. See Payer Information documentation for details."}}},"insurance-cardsv2InsuranceCard":{"title":"insurance-cardsv2InsuranceCard","type":"object","properties":{"insurance_card_id":{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCardId"},"member_id":{"type":"string","example":"E85313B4-0FFC-4119-8042-8161A4ECFF0A"},"payer_name":{"type":"string","example":"John Doe"},"payer_id":{"type":"string","example":"836DDAA6-863F-4020-ACCA-205A689F0002"},"rx_bin":{"type":"string","nullable":true},"rx_pcn":{"type":"string","nullable":true},"image_url_front":{"type":"string","nullable":true},"image_url_back":{"type":"string","nullable":true},"payer_uuid":{"$ref":"#/components/schemas/payersv4PayerUuid","nullable":true}},"required":["insurance_card_id","member_id","payer_name","payer_id"],"allOf":[{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCardBase"}]},"insurance-refundsv1InsuranceRefundId":{"title":"insurance-refundsv1InsuranceRefundId","type":"string","format":"uuid"},"insurance-refundsv1InsuranceRefund":{"title":"insurance-refundsv1InsuranceRefund","type":"object","properties":{"insurance_refund_id":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefundId"},"payer":{"$ref":"#/components/schemas/payersv3Payer"},"amount_cents":{"type":"integer"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true}},"required":["insurance_refund_id","payer","amount_cents","allocations"]},"insurance-refundsv1InsuranceRefundCreate":{"title":"insurance-refundsv1InsuranceRefundCreate","type":"object","properties":{"payer_identifier":{"$ref":"#/components/schemas/payersv3PayerIdentifier"},"amount_cents":{"type":"integer"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/AllocationCreate"}},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true}},"required":["payer_identifier","amount_cents","allocations"]},"insurance-refundsv1InsuranceRefundsPage":{"title":"insurance-refundsv1InsuranceRefundsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/insurance-refundsv1InsuranceRefund"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"insurance-refundsv1InsuranceRefundSortField":{"title":"insurance-refundsv1InsuranceRefundSortField","type":"string","enum":["amount_cents","refund_timestamp","refund_note","refund_reason"]},"invoicesv2InvoiceSortField":{"title":"invoicesv2InvoiceSortField","type":"string","enum":["CREATED_AT","UPDATED_AT","PATIENT_EXTERNAL_ID","NOTE","DUE_DATE","STATUS"]},"invoicesv2InvoiceDestination":{"title":"invoicesv2InvoiceDestination","type":"string","enum":["STRIPE","CEDAR","HEALTHIE","COLLECTLY","THIRD_PARTY_PAYERS","INSTAMED","REVSPRING"]},"invoicesv2InvoiceStatus":{"title":"invoicesv2InvoiceStatus","type":"string","enum":["DRAFT","OPEN","PAID","VOID","UNCOLLECTIBLE","HELD"]},"invoicesv2InvoiceDestinationMetadata":{"title":"invoicesv2InvoiceDestinationMetadata","type":"object","properties":{"invoice_destination":{"$ref":"#/components/schemas/invoicesv2InvoiceDestination","description":"Defines which third-party service this invoice was created in"},"source_id":{"type":"string","description":"The id of the invoice in the third-party service"},"source_customer_id":{"type":"string","description":"The id of the customer that the invoice is attributed to in the third-party service"},"destination_status":{"type":"string","nullable":true,"description":"The status of the invoice in the third-party service"}},"required":["invoice_destination","source_id","source_customer_id"]},"invoicesv2Invoice":{"title":"invoicesv2Invoice","type":"object","properties":{"amount_cents":{"type":"integer","description":"Total monetary amount (in cents) of all Invoice Items"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"invoice_destination_metadata":{"$ref":"#/components/schemas/invoicesv2InvoiceDestinationMetadata","description":"Contains all relevant information from the third-party service this invoice was created in"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"note":{"type":"string","nullable":true},"due_date":{"type":"string","format":"date"},"status":{"$ref":"#/components/schemas/invoicesv2InvoiceStatus"},"url":{"type":"string","nullable":true,"description":"Link to the admin view of the invoice in the third-party service"},"customer_invoice_url":{"type":"string","nullable":true,"description":"Link to the patient view of the invoice in the third-party service"},"items":{"$ref":"#/components/schemas/invoicesv2InvoiceItemInfo","description":"The InvoiceItem rollup which contains all claim and service line invoice items"}},"required":["amount_cents","created_at","updated_at","organization_id","invoice_destination_metadata","patient_external_id","due_date","status","items"]},"invoicesv2InvoiceInfo":{"title":"invoicesv2InvoiceInfo","type":"object","properties":{"id":{"$ref":"#/components/schemas/InvoiceId"},"invoice":{"$ref":"#/components/schemas/invoicesv2Invoice"},"invoice_type":{"$ref":"#/components/schemas/invoicesv2InvoiceDestination"}},"required":["id","invoice","invoice_type"]},"invoicesv2InvoiceItemAttributionCreate":{"title":"invoicesv2InvoiceItemAttributionCreate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["service_line_id"]},"value":{"$ref":"#/components/schemas/ServiceLineId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["claim_id"]},"value":{"$ref":"#/components/schemas/ClaimId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["unattributed"]}},"required":["type"]}],"description":"Points to the claim or service line that this invoice is attributed to"},"invoicesv2InvoiceItemCreate":{"title":"invoicesv2InvoiceItemCreate","type":"object","properties":{"attribution":{"$ref":"#/components/schemas/invoicesv2InvoiceItemAttributionCreate"},"amount_cents":{"type":"integer"}},"required":["attribution","amount_cents"]},"invoicesv2ServiceLineInvoiceItem":{"title":"invoicesv2ServiceLineInvoiceItem","type":"object","properties":{"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"amount_cents":{"type":"integer"}},"required":["service_line_id","amount_cents"]},"invoicesv2ClaimInvoiceItem":{"title":"invoicesv2ClaimInvoiceItem","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId"},"amount_cents":{"type":"integer"}},"required":["claim_id","amount_cents"]},"invoicesv2ClaimInvoiceItemInfo":{"title":"invoicesv2ClaimInvoiceItemInfo","type":"object","properties":{"claim_invoice_item":{"$ref":"#/components/schemas/invoicesv2ClaimInvoiceItem","nullable":true},"service_line_invoice_items":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/invoicesv2ServiceLineInvoiceItem"}}},"required":["service_line_invoice_items"]},"invoicesv2UnattributedInvoiceItem":{"title":"invoicesv2UnattributedInvoiceItem","type":"object","properties":{"amount_cents":{"type":"integer"}},"required":["amount_cents"]},"invoicesv2InvoiceItemInfo":{"title":"invoicesv2InvoiceItemInfo","type":"object","properties":{"claim_invoice_items":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/invoicesv2ClaimInvoiceItemInfo"}},"unattributed_items":{"type":"array","items":{"$ref":"#/components/schemas/invoicesv2UnattributedInvoiceItem"}}},"required":["claim_invoice_items","unattributed_items"]},"medication-dispensev1MedicationDispenseCreate":{"title":"medication-dispensev1MedicationDispenseCreate","type":"object","properties":{"medication_dispense_external_id":{"type":"string"},"patient_external_id":{"type":"string"},"procedure_code":{"type":"string"},"quantity":{"$ref":"#/components/schemas/Decimal"},"units":{"$ref":"#/components/schemas/ServiceLineUnits"},"date_of_service":{"type":"string","format":"date"},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentification","nullable":true},"description":{"type":"string","nullable":true},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true}},"required":["medication_dispense_external_id","patient_external_id","procedure_code","quantity","units","date_of_service"]},"non-insurance-payer-paymentsv1NonInsurancePayerPaymentId":{"title":"non-insurance-payer-paymentsv1NonInsurancePayerPaymentId","type":"string","format":"uuid"},"non-insurance-payer-paymentsv1NonInsurancePayerPayment":{"title":"non-insurance-payer-paymentsv1NonInsurancePayerPayment","type":"object","properties":{"non_insurance_payer_payment_id":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPaymentId"},"non_insurance_payer":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"},"amount_cents":{"type":"integer"},"check_number":{"type":"string","nullable":true},"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"invoice_id":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},"required":["non_insurance_payer_payment_id","non_insurance_payer","amount_cents","allocations"]},"non-insurance-payer-paymentsv1NonInsurancePayerPaymentCreate":{"title":"non-insurance-payer-paymentsv1NonInsurancePayerPaymentCreate","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"amount_cents":{"type":"integer"},"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"type":"string","nullable":true},"check_number":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/AllocationCreate"}},"invoice_id":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},"required":["non_insurance_payer_id","amount_cents","allocations"]},"non-insurance-payer-paymentsv1NonInsurancePayerPaymentsPage":{"title":"non-insurance-payer-paymentsv1NonInsurancePayerPaymentsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payer-paymentsv1NonInsurancePayerPayment"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"non-insurance-payer-paymentsv1NonInsurancePayerPaymentSortField":{"title":"non-insurance-payer-paymentsv1NonInsurancePayerPaymentSortField","type":"string","enum":["amount_cents","payment_timestamp"]},"non-insurance-payer-refundsv1NonInsurancePayerRefundId":{"title":"non-insurance-payer-refundsv1NonInsurancePayerRefundId","type":"string","format":"uuid"},"non-insurance-payer-refundsv1NonInsurancePayerRefund":{"title":"non-insurance-payer-refundsv1NonInsurancePayerRefund","type":"object","properties":{"non_insurance_payer_refund_id":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefundId"},"non_insurance_payer":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"},"amount_cents":{"type":"integer"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"check_number":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true},"invoice_id":{"$ref":"#/components/schemas/InvoiceId","nullable":true}},"required":["non_insurance_payer_refund_id","non_insurance_payer","amount_cents","allocations"]},"non-insurance-payer-refundsv1NonInsurancePayerRefundCreate":{"title":"non-insurance-payer-refundsv1NonInsurancePayerRefundCreate","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"invoice_id":{"$ref":"#/components/schemas/InvoiceId","nullable":true},"amount_cents":{"type":"integer"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"check_number":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/AllocationCreate"}},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true}},"required":["non_insurance_payer_id","amount_cents","allocations"]},"non-insurance-payer-refundsv1NonInsurancePayerRefundsPage":{"title":"non-insurance-payer-refundsv1NonInsurancePayerRefundsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payer-refundsv1NonInsurancePayerRefund"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"non-insurance-payer-refundsv1NonInsurancePayerRefundSortField":{"title":"non-insurance-payer-refundsv1NonInsurancePayerRefundSortField","type":"string","enum":["amount_cents","refund_timestamp"]},"non-insurance-payersv1NonInsurancePayerId":{"title":"non-insurance-payersv1NonInsurancePayerId","type":"string","format":"uuid"},"non-insurance-payersv1NonInsurancePayer":{"title":"non-insurance-payersv1NonInsurancePayer","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"name":{"type":"string","example":"Sunrise Foundation"},"description":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"enabled":{"type":"boolean","example":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true},"clinical_trials":{"type":"array","items":{"$ref":"#/components/schemas/clinical-trialsv1ClinicalTrial"}}},"required":["non_insurance_payer_id","name","enabled","clinical_trials"]},"non-insurance-payersv1CreateNonInsurancePayerRequest":{"title":"non-insurance-payersv1CreateNonInsurancePayerRequest","type":"object","properties":{"name":{"type":"string","description":"Max 50 characters allowed"},"description":{"type":"string","nullable":true,"description":"Max 255 characters allowed"},"category":{"type":"string","nullable":true,"description":"Max 255 characters allowed"},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true},"clinical_trials":{"type":"array","items":{"$ref":"#/components/schemas/clinical-trialsv1MutableClinicalTrial"},"nullable":true,"description":"The same name cannot be used across several clinical trials"}},"required":["name"]},"non-insurance-payersv1NonInsurancePayerPage":{"title":"non-insurance-payersv1NonInsurancePayerPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"non-insurance-payersv1NonInsurancePayerSortField":{"title":"non-insurance-payersv1NonInsurancePayerSortField","type":"string","enum":["NAME","CATEGORY","ENABLED","UPDATED_AT"]},"non-insurance-payersv1NonInsurancePayerDescriptionUpdate":{"title":"non-insurance-payersv1NonInsurancePayerDescriptionUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"type":"string"}},"required":["type"]}]},"non-insurance-payersv1NonInsurancePayerCategoryUpdate":{"title":"non-insurance-payersv1NonInsurancePayerCategoryUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"type":"string"}},"required":["type"]}]},"non-insurance-payersv1NonInsurancePayerAddressUpdate":{"title":"non-insurance-payersv1NonInsurancePayerAddressUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true}},"required":["type"]}]},"non-insurance-payersv1ToggleNonInsurancePayerEnablementRequest":{"title":"non-insurance-payersv1ToggleNonInsurancePayerEnablementRequest","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"non-insurance-payersv1NonInsurancePayerUpdateRequest":{"title":"non-insurance-payersv1NonInsurancePayerUpdateRequest","type":"object","properties":{"name":{"type":"string","nullable":true,"description":"Max 50 characters allowed"},"description":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerDescriptionUpdate","nullable":true},"category":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerCategoryUpdate","nullable":true},"address":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerAddressUpdate","nullable":true}}},"non-insurance-payersv1NonInsurancePayerCategoriesPage":{"title":"non-insurance-payersv1NonInsurancePayerCategoriesPage","type":"object","properties":{"items":{"type":"array","items":{"type":"string"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"organization-providersv2OrganizationProviderId":{"title":"organization-providersv2OrganizationProviderId","type":"string","format":"uuid"},"organization-providersv2OrganizationProviderBase":{"title":"organization-providersv2OrganizationProviderBase","type":"object","properties":{"npi":{"type":"string","description":"The NPI of the provider. This must be all digits [0-9] and exactly 10 characters long."},"is_rendering":{"type":"boolean","description":"Whether the provider can be used to render services."},"is_billing":{"type":"boolean","description":"Whether the provider can be used to bill services."},"first_name":{"type":"string","nullable":true,"description":"The first name of the provider, if the provider is an individual."},"last_name":{"type":"string","nullable":true,"description":"The last name of the provider, if the provider is an individual."},"organization_name":{"type":"string","nullable":true,"description":"The name of the provider, if the provider is an organization."},"provider_type":{"$ref":"#/components/schemas/organization-providersv2ProviderType","description":"Whether the provider is an individual (NPPES Type 1) or organization (NPPES Type 2) provider."},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"taxonomy_code":{"type":"string","nullable":true,"description":"A code designating classification and specialization."},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","description":"The type of license that the provider holds."},"ptan":{"type":"string","nullable":true,"description":"The Provider Transaction Access Number for the provider."},"medicaid_provider_id":{"type":"string","nullable":true,"description":"The medicaid provider ID for the provider."},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderAddress"},"nullable":true,"description":"The addresses associated with this provider."}},"required":["npi","is_rendering","is_billing","provider_type","license_type"]},"organization-providersv2OrganizationProvider":{"title":"organization-providersv2OrganizationProvider","type":"object","properties":{"organization_provider_id":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","description":"Auto-generated ID set on creation"},"employment_status":{"$ref":"#/components/schemas/organization-providersv2EmploymentStatus","description":"The employment status for the provider."},"employment_start_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The employment start date for the provider."},"employment_termination_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The employment termination date for the provider."}},"required":["organization_provider_id","employment_status"],"allOf":[{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderBase"}]},"organization-providersv2OrganizationProviderSortOptions":{"title":"organization-providersv2OrganizationProviderSortOptions","type":"string","enum":["provider_name:asc","provider_name:desc","npi:asc","npi:desc"]},"organization-providersv2ProviderType":{"title":"organization-providersv2ProviderType","type":"string","enum":["INDIVIDUAL","ORGANIZATION"]},"organization-providersv2LicenseType":{"title":"organization-providersv2LicenseType","type":"string","enum":["MD","NP","PA","LMFT","LCPC","LCSW","PMHNP","FNP","LPCC","DO","RD","SLP","APRN","LPC","PHD","PSYD","LMSW","LMHC","OTHER_MASTERS","BCBA","UNKNOWN","RPH","PHT","LAC","LMT","DC","ND","MA","PT","IBCLC","RN","DPT","LCMHC","CNM","RNFA","ACSW","APC","BCABA","BHA","OD","DPM","DA","DDS","DEH","DMD","PTA","LCADC","LCAT","LCMHCS","LCMHCA","LCSWA","LICSW","LISW","LMFTS","LMFTA","LPCI","LSCSW","MHCA","MHT","RBT","RCSWI","RHMCI","LPN","OTD","OMS","MFTA","APCC","DNP","AGNPBC","ANP","FNPPP","LCSWR","ALC","RMFTI","LAMFT","LPCA","LSWI","CSW","CPC","LGMFT","LLPC","PLPC","PLMFT","LMHCA","CIT","CT","MFT","LSW","PLMHP","PCMSW","LMHP","OTR/L","RPA","COTA","CRNP","SLP-CF","NP-C","PA-C","AMFT","CDN","CGC","CNS","MDPHD","AuD","ATC","LAT"]},"organization-providersv2EmploymentStatus":{"title":"organization-providersv2EmploymentStatus","type":"string","enum":["ACTIVE","TERMINATED"]},"organization-providersv2OrganizationProviderAddress":{"title":"organization-providersv2OrganizationProviderAddress","type":"object","properties":{"address":{"$ref":"#/components/schemas/StreetAddressLongZip","description":"The address of the provider"},"address_type":{"$ref":"#/components/schemas/organization-providersv2AddressType","description":"The address type of the provider"}},"required":["address","address_type"]},"organization-providersv2AddressType":{"title":"organization-providersv2AddressType","type":"string","enum":["DEFAULT"]},"organization-providersv3OrganizationProviderV2":{"title":"organization-providersv3OrganizationProviderV2","type":"object","properties":{"npi":{"type":"string","description":"The NPI of the provider. This must be all digits [0-9] and exactly 10 characters long.","example":"1234567890"},"is_rendering":{"type":"boolean","description":"Whether the provider can be used to render services.","example":true},"is_billing":{"type":"boolean","description":"Whether the provider can be used to bill services.","example":true},"first_name":{"type":"string","nullable":true,"description":"The first name of the provider, if the provider is an individual."},"last_name":{"type":"string","nullable":true,"description":"The last name of the provider, if the provider is an individual."},"organization_name":{"type":"string","nullable":true,"description":"The name of the provider, if the provider is an organization."},"provider_type":{"$ref":"#/components/schemas/organization-providersv2ProviderType","description":"Whether the provider is an individual (NPPES Type 1) or organization (NPPES Type 2) provider."},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"taxonomy_code":{"type":"string","nullable":true,"description":"A code designating classification and specialization."},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","description":"The type of license that the provider holds."},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderAddress"},"nullable":true,"description":"The addresses associated with this provider."},"employment_start_date":{"type":"string","format":"date","nullable":true,"description":"The employment start date for the provider."},"employment_termination_date":{"type":"string","format":"date","nullable":true,"description":"The employment termination date for the provider."},"organization_provider_id":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderId","description":"Auto-generated ID set on creation."},"qualifications":{"type":"array","items":{"$ref":"#/components/schemas/Identifier"},"description":"Qualification given to a provider (PTAN, Medicaid Provider Id etc.)."}},"required":["npi","is_rendering","is_billing","provider_type","license_type","organization_provider_id","qualifications"]},"organization-providersv3OrganizationProviderCreateV2":{"title":"organization-providersv3OrganizationProviderCreateV2","type":"object","properties":{"npi":{"type":"string","description":"The NPI of the provider. This must be all digits [0-9] and exactly 10 characters long."},"is_rendering":{"type":"boolean","description":"Whether the provider can be used to render services."},"is_billing":{"type":"boolean","description":"Whether the provider can be used to bill services."},"first_name":{"type":"string","nullable":true,"description":"The first name of the provider, if the provider is an individual."},"last_name":{"type":"string","nullable":true,"description":"The last name of the provider, if the provider is an individual."},"organization_name":{"type":"string","nullable":true,"description":"The name of the provider, if the provider is an organization."},"provider_type":{"$ref":"#/components/schemas/organization-providersv2ProviderType","description":"Whether the provider is an individual (NPPES Type 1) or organization (NPPES Type 2) provider."},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"taxonomy_code":{"type":"string","nullable":true,"description":"A code designating classification and specialization."},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","description":"The type of license that the provider holds."},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderAddress"},"nullable":true,"description":"The addresses associated with this provider."},"employment_start_date":{"type":"string","format":"date","nullable":true,"description":"The employment start date for the provider."},"employment_termination_date":{"type":"string","format":"date","nullable":true,"description":"The employment termination date for the provider."},"qualifications":{"type":"array","items":{"$ref":"#/components/schemas/IdentifierCreate"},"description":"A provider's qualifications such as PTAN, Medicaid Provider Id, etc."}},"required":["npi","is_rendering","is_billing","provider_type","license_type","qualifications"]},"organization-providersv3OrganizationProviderUpdateV2":{"title":"organization-providersv3OrganizationProviderUpdateV2","type":"object","properties":{"npi":{"type":"string","nullable":true,"description":"The NPI of the provider. This must be all digits [0-9] and exactly 10 characters long."},"is_rendering":{"type":"boolean","nullable":true,"description":"Whether the provider can be used to render services."},"is_billing":{"type":"boolean","nullable":true,"description":"Whether the provider can be used to bill services."},"first_name":{"type":"string","nullable":true,"description":"The first name of the provider, if the provider is an individual."},"last_name":{"type":"string","nullable":true,"description":"The last name of the provider, if the provider is an individual."},"organization_name":{"type":"string","nullable":true,"description":"The name of the provider, if the provider is an organization."},"provider_type":{"$ref":"#/components/schemas/organization-providersv2ProviderType","nullable":true,"description":"Whether the provider is an individual (NPPES Type 1) or organization (NPPES Type 2) provider."},"tax_id":{"type":"string","nullable":true,"description":"If the provider has a contract with insurance, this must be the same tax ID given to the payer on an IRS W-9 form completed during contracting."},"taxonomy_code":{"type":"string","nullable":true,"description":"A code designating classification and specialization."},"license_type":{"$ref":"#/components/schemas/organization-providersv2LicenseType","nullable":true,"description":"The type of license that the provider holds."},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv2OrganizationProviderAddress"},"nullable":true,"description":"The addresses associated with this provider."},"employment_start_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The employment start date for the provider."},"employment_termination_date":{"$ref":"#/components/schemas/Date","nullable":true,"description":"The employment termination date for the provider."},"qualifications":{"type":"array","items":{"$ref":"#/components/schemas/UpdatableIdentifier"},"nullable":true,"description":"Provider's qualifications (medicare provider number, medicaid provider number, etc.)"}}},"organization-providersv3OrganizationProviderPageV2":{"title":"organization-providersv3OrganizationProviderPageV2","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/organization-providersv3OrganizationProviderV2"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"organization-service-facilitiesv2ServiceFacilityStatus":{"title":"organization-service-facilitiesv2ServiceFacilityStatus","type":"string","enum":["active","inactive","suspended"]},"organization-service-facilitiesv2ServiceFacilityOperationalStatus":{"title":"organization-service-facilitiesv2ServiceFacilityOperationalStatus","type":"string","enum":["C","H","I","K","O","U"]},"organization-service-facilitiesv2ServiceFacilityMode":{"title":"organization-service-facilitiesv2ServiceFacilityMode","type":"string","enum":["instance","kind"]},"organization-service-facilitiesv2ServiceFacilityPhysicalType":{"title":"organization-service-facilitiesv2ServiceFacilityPhysicalType","type":"string","enum":["si","bu","wi","wa","lvl","co","ro","bd","ve","ho","ca","rd","area","jdn"]},"organization-service-facilitiesv2ServiceFacilityType":{"title":"organization-service-facilitiesv2ServiceFacilityType","type":"string","enum":["DX","CVDX","CATH","ECHO","GIDX","ENDOS","RADDX","RADO","RNEU","HOSP","CHR","GACH","MHSP","PSYCHF","RH","RHAT","RHII","RHMAD","RHPI","RHPIH","RHPIMS","RHPIVS","RHYAD","HU","BMTU","CCU","CHEST","EPIL","ER","ETU","HD","HLAB","INLAB","OUTLAB","HRAD","HUSCS","ICU","PEDICU","PEDNICU","INPHARM","MBL","NCCS","NS","OUTPHARM","PEDU","PHU","RHU","SLEEP","NCCF","SNF","OF","ALL","AMPUT","BMTC","BREAST","CANC","CAPC","CARD","PEDCARD","COAG","CRS","DERM","ENDO","PEDE","ENT","FMC","GI","PEDGI","GIM","GYN","HEM","PEDHEM","HTN","IEC","INFD","PEDID","INV","LYMPH","MGEN","NEPH","PEDNEPH","NEUR","OB","OMS","ONCL","PEDHO","OPH","OPTC","ORTHO","HAND","PAINCL","PC","PEDC","PEDRHEUM","POD","PREV","PROCTO","PROFF","PROS","PSI","PSY","RHEUM","SPMED","SU","PLS","URO","TR","TRAVEL","WND","RTF","PRC","SURF","DADDR","MOBL","AMB","PHARM","ACC","COMM","CSC","PTRES","SCHOOL","UPC","WORK"]},"organization-service-facilitiesv2OrganizationServiceFacilityId":{"title":"organization-service-facilitiesv2OrganizationServiceFacilityId","type":"string","format":"uuid"},"organization-service-facilitiesv2OrganizationServiceFacility":{"title":"organization-service-facilitiesv2OrganizationServiceFacility","type":"object","properties":{"organization_service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId"},"name":{"type":"string","description":"The name of the service facility.","example":"Test Service Facility"},"aliases":{"type":"array","items":{"type":"string"},"description":"A list of alternate names for the service facility.","example":["Test Service Facility Alias"]},"description":{"type":"string","nullable":true,"description":"A description of the service facility."},"external_id":{"type":"string","nullable":true,"description":"An ID for this service facility used in an external system (e.g. your EMR). Service facilities can be queried by this field."},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"The Place of Service (POS) code for this service facility."},"clia_number":{"type":"string","nullable":true,"description":"The associated CLIA number with this service facility. Can be used to populate CLIA numbers on encounters."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."},"status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityStatus","nullable":true,"description":"The status of the service facility."},"operational_status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityOperationalStatus","nullable":true,"description":"The operational status of the service facility."},"mode":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityMode","nullable":true,"description":"The mode of the service facility."},"type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityType","nullable":true,"description":"The type of the service facility."},"physical_type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityPhysicalType","nullable":true,"description":"The physical type of the service facility."},"telecoms":{"type":"array","items":{"type":"string"},"description":"A list of contact methods for the service facility.","example":["555-555-5555"]},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","description":"The address of the service facility."}},"required":["organization_service_facility_id","name","aliases","telecoms","address"]},"organization-service-facilitiesv2OrganizationServiceFacilityUpdate":{"title":"organization-service-facilitiesv2OrganizationServiceFacilityUpdate","type":"object","properties":{"name":{"type":"string","nullable":true,"description":"The name of the service facility."},"aliases":{"type":"array","items":{"type":"string"},"nullable":true,"description":"A list of alternate names for the service facility."},"description":{"type":"string","nullable":true,"description":"A description of the service facility."},"external_id":{"type":"string","nullable":true,"description":"An ID for this service facility used in an external system (e.g. your EMR). Service facilities can be queried by this field."},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"The Place of Service (POS) code for this service facility."},"clia_number":{"type":"string","nullable":true,"description":"The associated CLIA number with this service facility. Can be used to populate CLIA numbers on encounters."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."},"status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityStatus","nullable":true,"description":"The status of the service facility."},"operational_status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityOperationalStatus","nullable":true,"description":"The operational status of the service facility."},"mode":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityMode","nullable":true,"description":"The mode of the service facility."},"type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityType","nullable":true,"description":"The type of the service facility."},"physical_type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityPhysicalType","nullable":true,"description":"The physical type of the service facility."},"telecoms":{"type":"array","items":{"type":"string"},"nullable":true,"description":"A list of contact methods for the service facility."},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true,"description":"The address of the service facility."}}},"organization-service-facilitiesv2OrganizationServiceFacilityCreate":{"title":"organization-service-facilitiesv2OrganizationServiceFacilityCreate","type":"object","properties":{"name":{"type":"string","description":"The name of the service facility.","example":"Test Service Facility"},"aliases":{"type":"array","items":{"type":"string"},"description":"A list of alternate names for the service facility.","example":["Test Service Facility Alias"]},"description":{"type":"string","nullable":true,"description":"A description of the service facility."},"external_id":{"type":"string","nullable":true,"description":"An ID for this service facility used in an external system (e.g. your EMR). Service facilities can be queried by this field."},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"The Place of Service (POS) code for this service facility."},"clia_number":{"type":"string","nullable":true,"description":"The associated CLIA number with this service facility. Can be used to populate CLIA numbers on encounters."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."},"status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityStatus","nullable":true,"description":"The status of the service facility."},"operational_status":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityOperationalStatus","nullable":true,"description":"The operational status of the service facility."},"mode":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityMode","nullable":true,"description":"The mode of the service facility."},"type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityType","nullable":true,"description":"The type of the service facility."},"physical_type":{"$ref":"#/components/schemas/organization-service-facilitiesv2ServiceFacilityPhysicalType","nullable":true,"description":"The physical type of the service facility."},"telecoms":{"type":"array","items":{"type":"string"},"description":"A list of contact methods for the service facility.","example":["555-555-5555"]},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","description":"The address of the service facility."}},"required":["name","aliases","telecoms","address"]},"organization-service-facilitiesv2OrganizationServiceFacilityPage":{"title":"organization-service-facilitiesv2OrganizationServiceFacilityPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacility"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"patient-arv1InvoiceItemizationResponse":{"title":"patient-arv1InvoiceItemizationResponse","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId","description":"The ID of the claim associated with the invoice itemization."},"patient_balance_cents":{"type":"integer","description":"The total patient balance in cents for the claim. Negative values indicate a credit balance."},"claim_level_patient_payments":{"$ref":"#/components/schemas/patient-arv1PatientPaymentInfo"},"service_line_itemization":{"type":"array","items":{"$ref":"#/components/schemas/patient-arv1ServiceLineItemization"},"description":"A list of service line itemizations for the claim."}},"required":["claim_id","patient_balance_cents","claim_level_patient_payments","service_line_itemization"]},"patient-arv1ServiceLineItemization":{"title":"patient-arv1ServiceLineItemization","type":"object","properties":{"service_line_id":{"$ref":"#/components/schemas/ServiceLineId","description":"The ID of the service line."},"procedure_code":{"type":"string","description":"The procedure code (CPT/HCPCS) associated with the service line."},"date_of_service":{"type":"string","format":"date","description":"The date of service for the service line."},"patient_balance_cents":{"type":"integer","description":"The total patient balance in cents for the service line. Negative values indicate a credit balance."},"charge_amount_cents":{"type":"integer","description":"The total charge amount in cents for the service line."},"insurance_adjustments":{"$ref":"#/components/schemas/patient-arv1InsuranceAdjustmentInfo"},"insurance_payments":{"$ref":"#/components/schemas/patient-arv1InsurancePaymentInfo"},"non_insurance_adjustments":{"$ref":"#/components/schemas/patient-arv1NonInsuranceAdjustmentInfo"},"non_insurance_payments":{"$ref":"#/components/schemas/patient-arv1NonInsurancePaymentInfo"},"patient_adjustments":{"$ref":"#/components/schemas/patient-arv1PatientAdjustmentInfo"},"patient_payments":{"$ref":"#/components/schemas/patient-arv1PatientPaymentInfo"},"copay_cents":{"type":"integer","description":"The copay amount in cents for the service line."},"coinsurance_cents":{"type":"integer","description":"The coinsurance amount in cents for the service line."},"deductible_cents":{"type":"integer","description":"The deductible amount in cents for the service line."}},"required":["service_line_id","procedure_code","date_of_service","patient_balance_cents","charge_amount_cents","insurance_adjustments","insurance_payments","non_insurance_adjustments","non_insurance_payments","patient_adjustments","patient_payments","copay_cents","coinsurance_cents","deductible_cents"]},"patient-arv1InsuranceAdjustmentInfo":{"title":"patient-arv1InsuranceAdjustmentInfo","type":"object","properties":{"total_adjustment_cents":{"type":"integer","description":"The total amount of insurance adjustments in cents for the service line."}},"required":["total_adjustment_cents"]},"patient-arv1InsurancePaymentInfo":{"title":"patient-arv1InsurancePaymentInfo","type":"object","properties":{"total_payment_cents":{"type":"integer","description":"The total amount of insurance payments in cents for the service line."}},"required":["total_payment_cents"]},"patient-arv1NonInsuranceAdjustmentInfo":{"title":"patient-arv1NonInsuranceAdjustmentInfo","type":"object","properties":{"total_adjustment_cents":{"type":"integer","description":"The total amount of non-insurance adjustments in cents for the service line."}},"required":["total_adjustment_cents"]},"patient-arv1NonInsurancePaymentInfo":{"title":"patient-arv1NonInsurancePaymentInfo","type":"object","properties":{"total_payment_cents":{"type":"integer","description":"The total amount of non-insurance payments in cents for the service line."}},"required":["total_payment_cents"]},"patient-arv1PatientAdjustmentInfo":{"title":"patient-arv1PatientAdjustmentInfo","type":"object","properties":{"total_adjustment_cents":{"type":"integer","description":"The total amount of patient adjustments in cents for the service line."}},"required":["total_adjustment_cents"]},"patient-arv1PatientPaymentInfo":{"title":"patient-arv1PatientPaymentInfo","type":"object","properties":{"total_payment_cents":{"type":"integer","description":"The total amount of patient payments in cents for the service line."},"items":{"type":"array","items":{"$ref":"#/components/schemas/patient-arv1PatientPaymentAllocation"},"description":"A list of patient payment items associated with the service line."}},"required":["total_payment_cents","items"]},"patient-arv1PatientPaymentAllocation":{"title":"patient-arv1PatientPaymentAllocation","type":"object","properties":{"source_id":{"type":"string","nullable":true,"description":"Payment identifier from the source system (e.g., patient portal, manual entry). Note multiple allocations may exist for a single payment and\nthus may share the same source_id."},"amount_cents":{"type":"integer","description":"The amount of the patient payment in cents."}},"required":["amount_cents"]},"patient-arv1ListInventoryPagedResponse":{"title":"patient-arv1ListInventoryPagedResponse","type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/patient-arv1InventoryRecord"},"description":"List of inventory records matching the filters"},"next_page_token":{"$ref":"#/components/schemas/PageToken","nullable":true,"description":"Token for the next page of results, if available"}},"required":["records"]},"patient-arv1InventoryRecord":{"title":"patient-arv1InventoryRecord","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"timestamp":{"type":"string","format":"date-time"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"patient_ar_status":{"$ref":"#/components/schemas/patient-arv1PatientARStatus"}},"required":["claim_id","encounter_id","timestamp","patient_external_id","patient_ar_status"]},"patient-arv1PatientARStatus":{"title":"patient-arv1PatientARStatus","type":"string","enum":["invoiceable","non_invoiceable"]},"patient-arv1InvalidFiltersErrorType":{"title":"patient-arv1InvalidFiltersErrorType","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"patient-paymentsv3PatientPaymentId":{"title":"patient-paymentsv3PatientPaymentId","type":"string"},"patient-paymentsv3PatientPaymentSource":{"title":"patient-paymentsv3PatientPaymentSource","type":"string","enum":["MANUAL_ENTRY","CHARGEBEE_PAYMENTS","CHARGEBEE MANUALLY VOIDED BY TAIGA","CHARGEBEE_REFUNDS","SQUARE_REFUNDS","SQUARE_PAYMENTS","STRIPE_CHARGES","STRIPE_REFUNDS","ELATION_PAYMENTS"]},"patient-paymentsv3PatientPayment":{"title":"patient-paymentsv3PatientPayment","type":"object","properties":{"patient_payment_id":{"$ref":"#/components/schemas/patient-paymentsv3PatientPaymentId"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"source_internal_id":{"type":"string","example":"D1A76039-D5C5-4323-A2FC-B7C8B6AEF6A4"},"source":{"$ref":"#/components/schemas/patient-paymentsv3PatientPaymentSource"},"amount_cents":{"type":"integer","example":2000},"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"status":{"$ref":"#/components/schemas/patient-paymentsv3PatientPaymentStatus","nullable":true},"payment_name":{"type":"string","nullable":true},"payment_note":{"type":"string","nullable":true},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId","nullable":true},"encounter_external_id":{"$ref":"#/components/schemas/EncounterExternalId","nullable":true},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId","nullable":true}},"required":["patient_payment_id","organization_id","source_internal_id","source","amount_cents"]},"patient-paymentsv3PatientPaymentStatus":{"title":"patient-paymentsv3PatientPaymentStatus","type":"string","enum":["PENDING","paid","CANCELED","voided","FAILED","COMPLETED","succeeded","pending","failed","requires_action","canceled"]},"patient-paymentsv4PatientPaymentId":{"title":"patient-paymentsv4PatientPaymentId","type":"string","format":"uuid"},"patient-paymentsv4PatientPayment":{"title":"patient-paymentsv4PatientPayment","type":"object","properties":{"patient_payment_id":{"$ref":"#/components/schemas/patient-paymentsv4PatientPaymentId"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"source_internal_id":{"type":"string","nullable":true},"payment_source":{"$ref":"#/components/schemas/PatientTransactionSource"},"amount_cents":{"type":"integer"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"payment_timestamp":{"type":"string","format":"date-time","nullable":true},"payment_note":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"invoice":{"$ref":"#/components/schemas/InvoiceId","nullable":true},"payment_method_detail":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethodDetail","nullable":true}},"required":["patient_payment_id","organization_id","payment_source","amount_cents","patient_external_id","allocations"]},"patient-paymentsv4PaymentMethodProviderInfo":{"title":"patient-paymentsv4PaymentMethodProviderInfo","type":"object","properties":{"npi":{"$ref":"#/components/schemas/Npi","nullable":true},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true}}},"patient-paymentsv4PaymentMethodDetail":{"title":"patient-paymentsv4PaymentMethodDetail","type":"object","properties":{"payment_method":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethod"},"collected_at_address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true},"provider_info":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethodProviderInfo","nullable":true}},"required":["payment_method"]},"patient-paymentsv4PaymentMethod":{"title":"patient-paymentsv4PaymentMethod","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["cash"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CashPaymentMethod"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["check"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CheckPaymentMethod"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["card"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CardPaymentMethod"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["money_order"]}}},{"$ref":"#/components/schemas/patient-paymentsv4MoneyOrderPaymentMethod"}],"required":["type"]}]},"patient-paymentsv4CashPaymentMethod":{"title":"patient-paymentsv4CashPaymentMethod","type":"object","properties":{}},"patient-paymentsv4CheckPaymentMethod":{"title":"patient-paymentsv4CheckPaymentMethod","type":"object","properties":{"check_number":{"type":"string"}},"required":["check_number"]},"patient-paymentsv4CardPaymentMethod":{"title":"patient-paymentsv4CardPaymentMethod","type":"object","properties":{"authorization_number":{"type":"string","nullable":true}}},"patient-paymentsv4MoneyOrderPaymentMethod":{"title":"patient-paymentsv4MoneyOrderPaymentMethod","type":"object","properties":{"money_order_serial_number":{"type":"string"}},"required":["money_order_serial_number"]},"patient-paymentsv4PaymentMethodDetailCreate":{"title":"patient-paymentsv4PaymentMethodDetailCreate","type":"object","properties":{"payment_method":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethodCreate"},"collected_at_address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true},"organization_service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true},"provider_info":{"$ref":"#/components/schemas/patient-paymentsv4PaymentMethodProviderInfo","nullable":true}},"required":["payment_method"]},"patient-paymentsv4PaymentMethodCreate":{"title":"patient-paymentsv4PaymentMethodCreate","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["cash"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CashPaymentMethodCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["check"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CheckPaymentMethodCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["card"]}}},{"$ref":"#/components/schemas/patient-paymentsv4CardPaymentMethodCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["money_order"]}}},{"$ref":"#/components/schemas/patient-paymentsv4MoneyOrderPaymentMethodCreate"}],"required":["type"]}]},"patient-paymentsv4CashPaymentMethodCreate":{"title":"patient-paymentsv4CashPaymentMethodCreate","type":"object","properties":{}},"patient-paymentsv4CheckPaymentMethodCreate":{"title":"patient-paymentsv4CheckPaymentMethodCreate","type":"object","properties":{"check_number":{"type":"string"}},"required":["check_number"]},"patient-paymentsv4CardPaymentMethodCreate":{"title":"patient-paymentsv4CardPaymentMethodCreate","type":"object","properties":{"authorization_number":{"type":"string","nullable":true}}},"patient-paymentsv4MoneyOrderPaymentMethodCreate":{"title":"patient-paymentsv4MoneyOrderPaymentMethodCreate","type":"object","properties":{"money_order_serial_number":{"type":"string"}},"required":["money_order_serial_number"]},"patient-paymentsv4PatientPaymentsPage":{"title":"patient-paymentsv4PatientPaymentsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/patient-paymentsv4PatientPayment"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"patient-paymentsv4PatientPaymentSortField":{"title":"patient-paymentsv4PatientPaymentSortField","type":"string","enum":["payment_source","amount_cents","payment_timestamp","payment_note"]},"patient-refundsv1PatientRefundId":{"title":"patient-refundsv1PatientRefundId","type":"string","format":"uuid"},"patient-refundsv1PatientRefund":{"title":"patient-refundsv1PatientRefund","type":"object","properties":{"patient_refund_id":{"$ref":"#/components/schemas/patient-refundsv1PatientRefundId"},"organization_id":{"$ref":"#/components/schemas/OrganizationId"},"source_internal_id":{"type":"string","nullable":true},"refund_source":{"$ref":"#/components/schemas/PatientTransactionSource"},"amount_cents":{"type":"integer"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"refund_timestamp":{"type":"string","format":"date-time","nullable":true},"refund_note":{"type":"string","nullable":true},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"invoice":{"$ref":"#/components/schemas/InvoiceId","nullable":true},"refund_reason":{"$ref":"#/components/schemas/RefundReason","nullable":true}},"required":["patient_refund_id","organization_id","refund_source","amount_cents","patient_external_id","allocations"]},"patient-refundsv1PatientRefundsPage":{"title":"patient-refundsv1PatientRefundsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/patient-refundsv1PatientRefund"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"patient-refundsv1PatientRefundSortField":{"title":"patient-refundsv1PatientRefundSortField","type":"string","enum":["refund_source","amount_cents","refund_timestamp","refund_reason","refund_note"]},"payer-plan-groupsv1MutablePayerPlanGroup":{"title":"payer-plan-groupsv1MutablePayerPlanGroup","type":"object","properties":{"plan_group_name":{"type":"string"},"payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid"},"plan_type":{"$ref":"#/components/schemas/SourceOfPaymentCode"}},"required":["plan_group_name","payer_uuid","plan_type"]},"payer-plan-groupsv1PayerPlanGroup":{"title":"payer-plan-groupsv1PayerPlanGroup","type":"object","properties":{"payer_plan_group_id":{"$ref":"#/components/schemas/PayerPlanGroupId"},"payer":{"$ref":"#/components/schemas/payersv3Payer"},"is_active":{"type":"boolean"}},"required":["payer_plan_group_id","payer","is_active"],"allOf":[{"$ref":"#/components/schemas/payer-plan-groupsv1MutablePayerPlanGroup"}]},"payer-plan-groupsv1PayerPlanGroupPage":{"title":"payer-plan-groupsv1PayerPlanGroupPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/payer-plan-groupsv1PayerPlanGroup"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"payer-plan-groupsv1PayerPlanGroupSortField":{"title":"payer-plan-groupsv1PayerPlanGroupSortField","type":"string","enum":["plan_group_name","plan_type","created_at"]},"payer-plan-groupsv1PayerPlanGroupAlreadyExistsError":{"title":"payer-plan-groupsv1PayerPlanGroupAlreadyExistsError","type":"object","properties":{"message":{"type":"string"},"id":{"$ref":"#/components/schemas/PayerPlanGroupId"}},"required":["message","id"]},"payersv3PayerUuid":{"title":"payersv3PayerUuid","type":"string","format":"uuid"},"payersv3PayerId":{"title":"payersv3PayerId","type":"string"},"payersv3PayerName":{"title":"payersv3PayerName","type":"string"},"payersv3PayerPage":{"title":"payersv3PayerPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/payersv3Payer"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"payersv3Payer":{"title":"payersv3Payer","type":"object","properties":{"payer_uuid":{"$ref":"#/components/schemas/payersv3PayerUuid","description":"Auto-generated ID set on creation."},"payer_id":{"type":"string","description":"The primary national payer ID of the payer.","example":"12345"},"payer_name":{"type":"string","description":"The primary display name of the payer.","example":"Payer Name"},"availity_payer_name":{"type":"string","nullable":true,"description":"The name of the payer as it appears in Availity."},"availity_claims_payer_id":{"type":"string","nullable":true,"description":"The ID of the payer as it appears in Availity."},"availity_eligibility_id":{"type":"string","nullable":true,"description":"The eligibility ID of the payer as it appears in Availity."},"availity_remittance_payer_id":{"type":"string","nullable":true,"description":"The remittance ID of the payer as it appears in Availity."},"street_address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true}},"required":["payer_uuid","payer_id","payer_name"]},"payersv3PayerInfo":{"title":"payersv3PayerInfo","type":"object","properties":{"payer_id":{"$ref":"#/components/schemas/payersv3PayerId"},"payer_name":{"$ref":"#/components/schemas/payersv3PayerName"}},"required":["payer_id","payer_name"]},"payersv3PayerIdentifier":{"title":"payersv3PayerIdentifier","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["payer_info"]}}},{"$ref":"#/components/schemas/payersv3PayerInfo"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["payer_uuid"]},"value":{"$ref":"#/components/schemas/payersv3PayerUuid"}},"required":["type"]}]},"payersv4PayerUuid":{"title":"payersv4PayerUuid","type":"string","format":"uuid"},"payersv4PayerPage":{"title":"payersv4PayerPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/payersv4Payer"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"payersv4SupportState":{"title":"payersv4SupportState","type":"string","enum":["NOT_SUPPORTED","SUPPORTED_ENROLLMENT_NOT_REQUIRED","SUPPORTED_ENROLLMENT_REQUIRED"]},"payersv4PrimaryPayerIds":{"title":"payersv4PrimaryPayerIds","type":"object","properties":{"claims_payer_id":{"type":"string","description":"The payer ID for claim submission"},"eligibility_payer_id":{"type":"string","nullable":true,"description":"The payer ID for eligibility"},"remittance_payer_id":{"type":"string","nullable":true,"description":"The payer ID for remittance"}},"required":["claims_payer_id"]},"payersv4PayerIds":{"title":"payersv4PayerIds","type":"object","properties":{"claims_payer_id":{"type":"string","nullable":true,"description":"The payer ID for claim submission"},"eligibility_payer_id":{"type":"string","nullable":true,"description":"The payer ID for eligibility"},"remittance_payer_id":{"type":"string","nullable":true,"description":"The payer ID for remittance"}}},"payersv4ClearinghousePayerInfo":{"title":"payersv4ClearinghousePayerInfo","type":"object","properties":{"payer_name":{"type":"string","description":"The clearinghouse display name of the payer."},"professional_payer_ids":{"$ref":"#/components/schemas/payersv4PayerIds","description":"Payer IDs for professional claims"},"institutional_payer_ids":{"$ref":"#/components/schemas/payersv4PayerIds","description":"Payer IDs for institutional claims"},"professional_claims_support":{"$ref":"#/components/schemas/payersv4SupportState","description":"The support state for claims submission"},"institutional_claims_support":{"$ref":"#/components/schemas/payersv4SupportState","description":"The support state for institutional claims submission"},"eligibility_support":{"$ref":"#/components/schemas/payersv4SupportState","description":"The support state for eligibility"},"remittance_support":{"$ref":"#/components/schemas/payersv4SupportState","description":"The support state for remittance"},"claim_attachment_support":{"$ref":"#/components/schemas/payersv4SupportState","description":"The support state for claim attachment submission"}},"required":["payer_name","professional_payer_ids","institutional_payer_ids","professional_claims_support","institutional_claims_support","eligibility_support","remittance_support","claim_attachment_support"]},"payersv4PayerCategory":{"title":"payersv4PayerCategory","type":"string","enum":["BCBS","AETNA_AFFILIATED","CIGNA_AFFILIATED","UNITED_AFFILIATED","MEDICARE","NON_TRADITIONAL_MEDICARE","MEDICAID","HOSPICE","SNF","TRICARE","WORKERS_COMP","OTHER_GOVERNMENT","AUTO_TPL","LIEN","HUMANA","MOLINA","OTHER_FACILITY"]},"payersv4Payer":{"title":"payersv4Payer","type":"object","properties":{"payer_uuid":{"$ref":"#/components/schemas/payersv4PayerUuid","description":"Auto-generated ID set on creation."},"payer_ids":{"$ref":"#/components/schemas/payersv4PrimaryPayerIds","description":"The primary national payer IDs of the payer."},"payer_name":{"type":"string","description":"The primary display name of the payer."},"payer_category":{"$ref":"#/components/schemas/payersv4PayerCategory","nullable":true,"description":"The category of the payer."},"alternate_payer_names":{"type":"array","items":{"type":"string"},"description":"The alternate display names of the payer."},"clearinghouse_payer_info":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/payersv4ClearinghousePayerInfo"}},"street_address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true},"alternate_payer_addresses":{"type":"array","items":{"$ref":"#/components/schemas/StreetAddressLongZip"}}},"required":["payer_uuid","payer_ids","payer_name","alternate_payer_names","clearinghouse_payer_info","alternate_payer_addresses"]},"property-and-casualtyv1PropertyCasualtyPatientIdentifierQualifier":{"title":"property-and-casualtyv1PropertyCasualtyPatientIdentifierQualifier","type":"string","enum":["1W","SY"]},"property-and-casualtyv1PropertyCasualtyPatientIdentifier":{"title":"property-and-casualtyv1PropertyCasualtyPatientIdentifier","type":"object","properties":{"property_casualty_patient_identifier_qualifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierQualifier","description":"Represents REF01 on the EDI 837 Loop 2010CA Property and Casualty Patient Identifier segment.\nValid values include 1W (Member Identification Number) and SY (Social Security Number)."},"property_casualty_patient_identifier":{"type":"string","description":"Represents REF02 on the EDI 837 Loop 2010CA Property and Casualty Patient Identifier segment. Value cannot exceed 50 characters"}},"required":["property_casualty_patient_identifier_qualifier","property_casualty_patient_identifier"]},"property-and-casualtyv1PropertyCasualtyPatientIdentifierCreate":{"title":"property-and-casualtyv1PropertyCasualtyPatientIdentifierCreate","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifier"}]},"property-and-casualtyv1PropertyCasualtyPatientIdentifierUpdate":{"title":"property-and-casualtyv1PropertyCasualtyPatientIdentifierUpdate","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifier"}]},"property-and-casualtyv1PropertyCasualtyPatientIdentifierCreateOptional":{"title":"property-and-casualtyv1PropertyCasualtyPatientIdentifierCreateOptional","type":"object","properties":{"property_casualty_patient_identifier_qualifier":{"$ref":"#/components/schemas/property-and-casualtyv1PropertyCasualtyPatientIdentifierQualifier","nullable":true,"description":"Represents REF01 on the EDI 837 Loop 2010CA Property and Casualty Patient Identifier segment.\nValid values include 1W (Member Identification Number) and SY (Social Security Number)."},"property_casualty_patient_identifier":{"type":"string","nullable":true,"description":"Represents REF02 on the EDI 837 Loop 2010CA Property and Casualty Patient Identifier segment. Value cannot exceed 50 characters"}}},"related-causesv1RelatedCausesCode":{"title":"related-causesv1RelatedCausesCode","type":"string","enum":["AA","AB","AP","EM","OA","ZZ"]},"related-causesv1RelatedCausesInformation":{"title":"related-causesv1RelatedCausesInformation","type":"object","properties":{"related_causes_code_1":{"$ref":"#/components/schemas/related-causesv1RelatedCausesCode"},"related_causes_code_2":{"$ref":"#/components/schemas/related-causesv1RelatedCausesCode","nullable":true},"state_or_province_code":{"type":"string","nullable":true}},"required":["related_causes_code_1"]},"related-causesv1RelatedCausesInformationCreate":{"title":"related-causesv1RelatedCausesInformationCreate","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformation"}]},"related-causesv1RelatedCausesInformationUpdate":{"title":"related-causesv1RelatedCausesInformationUpdate","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/related-causesv1RelatedCausesInformation"}]},"related-causesv1RelatedCausesInformationCreateOptional":{"title":"related-causesv1RelatedCausesInformationCreateOptional","type":"object","properties":{"related_causes_code_1":{"$ref":"#/components/schemas/related-causesv1RelatedCausesCode","nullable":true},"related_causes_code_2":{"$ref":"#/components/schemas/related-causesv1RelatedCausesCode","nullable":true},"state_or_province_code":{"type":"string","nullable":true}}},"service-linesv2ServiceLineCreate":{"title":"service-linesv2ServiceLineCreate","type":"object","properties":{"diagnosis_pointers":{"type":"array","items":{"type":"integer"},"description":"Indices (zero-indexed) of all the diagnoses this service line references"}},"required":["diagnosis_pointers"],"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateBase"}]},"service-linesv2UniversalServiceLineCreate":{"title":"service-linesv2UniversalServiceLineCreate","type":"object","properties":{"diagnosis_pointers":{"type":"array","items":{"type":"integer"},"nullable":true,"description":"Indices (zero-indexed) of all the diagnoses this service line references"},"revenue_code":{"type":"string","nullable":true,"description":"A 4 digit code that specifies facility department or type of service arrangement for institutional service line items (837i). This code is not required for professional claim billing (837p)."},"procedure_code":{"type":"string","nullable":true}},"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateBaseBase"}]},"service-linesv2ServiceLineCreateBase":{"title":"service-linesv2ServiceLineCreateBase","type":"object","properties":{"procedure_code":{"type":"string"}},"required":["procedure_code"],"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateBaseBase"}]},"service-linesv2ServiceLineCreateBaseBase":{"title":"service-linesv2ServiceLineCreateBaseBase","type":"object","properties":{"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true},"has_epsdt_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"has_family_planning_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"quantity":{"$ref":"#/components/schemas/Decimal","description":"String representation of a Decimal that can be parsed by most libraries.\nFor professional claims, a ServiceLine quantity cannot contain more than one digit of precision\n(Example: 1.1 is valid, 1.11 is not). For institutional claims, a ServiceLine quantity cannot contain\nmore than three decimal digits of precision."},"units":{"$ref":"#/components/schemas/ServiceLineUnits"},"charge_amount_cents":{"type":"integer","nullable":true,"description":"The total amount charged for this service line, factoring in quantity. If procedure_code is updated and this is not, the system will attempt to set it based on chargemasters entries and the service line’s quantity. For example, if a single unit has an entry of 100 cents and 2 units were rendered, the charge_amount_cents will be set to 200, if there is no chargemaster entry, it will default to the amount set in this field."},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentification","nullable":true},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. This enum is not used or required in 837i claims. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"description":{"type":"string","nullable":true,"description":"A free-form description to clarify the related data elements and their content. Maps to SV1-01, C003-07 on a 837-P and SV2-02, C003-07 on a 837-I form."},"date_of_service":{"type":"string","format":"date","nullable":true},"end_date_of_service":{"type":"string","format":"date","nullable":true},"ordering_provider":{"$ref":"#/components/schemas/encounter-providersv2OrderingProvider","nullable":true,"description":"Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.\nIf not required by this implementation guide, do not send."},"test_results":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2TestResult"},"nullable":true,"description":"Contains a list of test results. Test result types may map to MEA-02 on the 837-P (ex: Hemoglobin, Hematocrit).\nThis is unused by 837-i and ignored for institutional service lines.\nNo more than 5 MEA-02 test results may be submitted per service line."},"note":{"type":"string","nullable":true,"description":"Maps to NTE02 loop 2400 on the EDI 837."},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}},"required":["quantity","units"]},"service-linesv2ServiceLineCreateOptional":{"title":"service-linesv2ServiceLineCreateOptional","type":"object","properties":{"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true},"has_epsdt_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"has_family_planning_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"procedure_code":{"type":"string","nullable":true},"quantity":{"$ref":"#/components/schemas/Decimal","nullable":true,"description":"String representation of a Decimal that can be parsed by most libraries.\nFor professional claims, a ServiceLine quantity cannot contain more than one digit of precision\n(Example: 1.1 is valid, 1.11 is not). For institutional claims, a ServiceLine quantity cannot contain\nmore than three decimal digits of precision."},"units":{"$ref":"#/components/schemas/ServiceLineUnits","nullable":true},"charge_amount_cents":{"type":"integer","nullable":true,"description":"The total amount charged for this service line, factoring in quantity. If procedure_code is updated and this is not, the system will attempt to set it based on chargemasters entries and the service line’s quantity. For example, if a single unit has an entry of 100 cents and 2 units were rendered, the charge_amount_cents will be set to 200, if there is no chargemaster entry, it will default to the amount set in this field."},"diagnosis_pointers":{"type":"array","items":{"type":"integer"},"nullable":true,"description":"Indices (zero-indexed) of all the diagnoses this service line references"},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentificationOptional","nullable":true},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. This enum is not used or required in 837i claims. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"description":{"type":"string","nullable":true,"description":"A free-form description to clarify the related data elements and their content. Maps to SV1-01, C003-07 on a 837-P and SV2-02, C003-07 on a 837-I form."},"date_of_service":{"type":"string","format":"date","nullable":true},"end_date_of_service":{"type":"string","format":"date","nullable":true},"ordering_provider":{"$ref":"#/components/schemas/encounter-providersv2OrderingProviderOptional","nullable":true,"description":"Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.\nIf not required by this implementation guide, do not send."},"test_results":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2TestResultOptional"},"nullable":true,"description":"Contains a list of test results. Test result types may map to MEA-02 on the 837-P (ex: Hemoglobin, Hematocrit).\nThis is unused by 837-i and ignored for institutional service lines.\nNo more than 5 MEA-02 test results may be submitted per service line."},"note":{"type":"string","nullable":true,"description":"Maps to NTE02 loop 2400 on the EDI 837."},"revenue_code":{"type":"string","nullable":true,"description":"A 4 digit code that specifies facility department or type of service arrangement for institutional service line items (837i). This code is not required for professional claim billing (837p)."},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}}},"service-linesv2UniversalServiceLineCreateStandalone":{"title":"service-linesv2UniversalServiceLineCreateStandalone","type":"object","properties":{"diagnosis_id_zero":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_one":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_two":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_three":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"revenue_code":{"type":"string","nullable":true,"description":"A 4 digit code that specifies facility department or type of service arrangement for institutional service line items (837i). This code is not required for professional claim billing (837p)."},"procedure_code":{"type":"string","nullable":true,"description":"Pass `null` to create the service line as uncoded, which is valid for institutional (837i) claims that bill by\nrevenue code rather than a CPT/HCPCS code."},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}},"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateStandaloneBaseBase"}]},"service-linesv2ServiceLineCreateStandalone":{"title":"service-linesv2ServiceLineCreateStandalone","type":"object","properties":{"diagnosis_id_zero":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_one":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_two":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_three":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}},"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateStandaloneBase"}]},"service-linesv2ServiceLineCreateStandaloneBase":{"title":"service-linesv2ServiceLineCreateStandaloneBase","type":"object","properties":{"procedure_code":{"type":"string"}},"required":["procedure_code"],"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineCreateStandaloneBaseBase"}]},"service-linesv2ServiceLineCreateStandaloneBaseBase":{"title":"service-linesv2ServiceLineCreateStandaloneBaseBase","type":"object","properties":{"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true},"charge_amount_cents":{"type":"integer","nullable":true,"description":"The total amount charged for this service line, factoring in quantity. The system will attempt to set it based on the chargemaster configuration and the service line’s quantity. For example, if a single unit has an entry of 100 cents and 2 units were rendered, the charge_amount_cents will be set to 200. If there is no chargemaster entry, the system will default to the amount set via this field."},"denial_reason":{"$ref":"#/components/schemas/service-linesv2ServiceLineDenialReason","nullable":true},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. This enum is not used or required in 837i claims. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"quantity":{"$ref":"#/components/schemas/Decimal","description":"String representation of a Decimal that can be parsed by most libraries.\nFor professional claims, a ServiceLine quantity cannot contain more than one digit of precision\n(Example: 1.1 is valid, 1.11 is not). For institutional claims, a ServiceLine quantity cannot contain\nmore than three decimal digits of precision."},"units":{"$ref":"#/components/schemas/ServiceLineUnits"},"claim_id":{"$ref":"#/components/schemas/ClaimId"},"description":{"type":"string","nullable":true,"description":"A free-form description to clarify the related data elements and their content. Maps to SV1-01, C003-07 on a 837-P and SV2-02, C003-07 on a 837-I form."},"date_of_service":{"type":"string","format":"date","nullable":true},"end_date_of_service":{"type":"string","format":"date","nullable":true},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentification","nullable":true},"ordering_provider":{"$ref":"#/components/schemas/encounter-providersv2OrderingProvider","nullable":true,"description":"Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.\nIf not required by this implementation guide, do not send."},"test_results":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2TestResult"},"nullable":true,"description":"Contains a list of test results. Test result types may map to MEA-02 on the 837-P (ex: Hemoglobin, Hematocrit).\nThis is unused by 837-i and ignored for institutional service lines.\nNo more than 5 MEA-02 test results may be submitted per service line."},"has_epsdt_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"has_family_planning_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"note":{"type":"string","nullable":true,"description":"Maps to NTE02 loop 2400 on the EDI 837."}},"required":["quantity","units","claim_id"]},"service-linesv2UniversalServiceLineUpdate":{"title":"service-linesv2UniversalServiceLineUpdate","type":"object","properties":{"revenue_code":{"type":"string","nullable":true,"description":"A 4 digit code that specifies facility department or type of service arrangement for institutional service line items (837i). This code is not required for professional claim billing (837p)."},"diagnosis_id_zero":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_one":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_two":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_three":{"$ref":"#/components/schemas/DiagnosisId","nullable":true}},"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineUpdateBase"}]},"service-linesv2ServiceLineUpdate":{"title":"service-linesv2ServiceLineUpdate","type":"object","properties":{"diagnosis_id_zero":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_one":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_two":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_three":{"$ref":"#/components/schemas/DiagnosisId","nullable":true}},"allOf":[{"$ref":"#/components/schemas/service-linesv2ServiceLineUpdateBase"}]},"service-linesv2ServiceLineUpdateBase":{"title":"service-linesv2ServiceLineUpdateBase","type":"object","properties":{"edit_reason":{"type":"string","nullable":true},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true},"charge_amount_cents":{"type":"integer","nullable":true,"description":"The total amount charged for this service line, factoring in quantity. If procedure_code is updated and this is not, the system will attempt to set it based on chargemasters entries and the service line’s quantity. For example, if a single unit has an entry of 100 cents and 2 units were rendered, the charge_amount_cents will be set to 200, if there is no chargemaster entry, it will default to the amount set in this field."},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentification","nullable":true},"denial_reason":{"$ref":"#/components/schemas/service-linesv2ServiceLineDenialReason","nullable":true},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. This enum is not used or required in 837i claims. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"units":{"$ref":"#/components/schemas/ServiceLineUnits","nullable":true},"procedure_code":{"type":"string","nullable":true,"description":"If `procedure_code` is updated, and `charge_amount_cents` is not, then `charge_amount_cents` will be set by the system.\nPass `null` to uncode the service line, which is valid for institutional (837i) claims that bill by revenue code\nrather than a CPT/HCPCS code."},"quantity":{"$ref":"#/components/schemas/Decimal","nullable":true,"description":"String representation of a Decimal that can be parsed by most libraries.\nFor professional claims, a ServiceLine quantity cannot contain more than one digit of precision\n(Example: 1.1 is valid, 1.11 is not). For institutional claims, a ServiceLine quantity cannot contain\nmore than three decimal digits of precision."},"description":{"type":"string","nullable":true,"description":"A free-form description to clarify the related data elements and their content. Maps to SV1-01, C003-07 on a 837-P and SV2-02, C003-07 on a 837-I form."},"date_of_service":{"type":"string","format":"date","nullable":true,"description":"date_of_service must be defined on either the encounter or the service lines but not both."},"end_date_of_service":{"type":"string","format":"date","nullable":true},"test_results":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2TestResult"},"nullable":true,"description":"Contains a list of test results. Test result types may map to MEA-02 on the 837-P (ex: Hemoglobin, Hematocrit).\nThis is unused by 837-i and ignored for institutional service lines.\nNo more than 5 MEA-02 test results may be submitted per service line.\nUpdating test results utilizes PUT semantics, so the test results on the service line will be set to whatever inputs are provided."},"has_epsdt_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500. If the value is true, the box will be populated with “Y”. Otherwise, the box will not be populated. This box is not used on an 837i."},"has_family_planning_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"note":{"type":"string","nullable":true,"description":"Maps to NTE02 loop 2400 on the EDI 837."},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}}},"service-linesv2ServiceLine":{"title":"service-linesv2ServiceLine","type":"object","properties":{"created_at":{"type":"string","format":"date-time","example":"2023-01-01T00:00:00Z"},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/ProcedureModifier"},"nullable":true},"charge_amount_cents":{"type":"integer","nullable":true},"allowed_amount_cents":{"type":"integer","nullable":true},"insurance_balance_cents":{"type":"integer","nullable":true},"patient_balance_cents":{"type":"integer","nullable":true},"paid_amount_cents":{"type":"integer","nullable":true},"primary_paid_amount_cents":{"type":"integer","nullable":true},"secondary_paid_amount_cents":{"type":"integer","nullable":true},"tertiary_paid_amount_cents":{"type":"integer","nullable":true},"patient_responsibility_cents":{"type":"integer","nullable":true},"copay_cents":{"type":"integer","nullable":true},"coinsurance_cents":{"type":"integer","nullable":true},"deductible_cents":{"type":"integer","nullable":true},"diagnosis_id_zero":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_one":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_two":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"diagnosis_id_three":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"drug_identification":{"$ref":"#/components/schemas/service-linesv2DrugIdentification","nullable":true},"service_line_era_data":{"$ref":"#/components/schemas/service-linesv2ServiceLineERAData","nullable":true},"service_line_manual_adjustments":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLineAdjustment"},"nullable":true},"related_invoices":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"},"nullable":true},"related_invoice_info":{"type":"array","items":{"$ref":"#/components/schemas/invoicesv2InvoiceInfo"},"nullable":true},"denial_reason":{"$ref":"#/components/schemas/service-linesv2ServiceLineDenialReason","nullable":true},"place_of_service_code":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. This enum is not used or required in 837i claims. If your organization does not intend to submit claims with a different place of service at the service line level, this field should not be populated. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"place_of_service_code_as_submitted":{"$ref":"#/components/schemas/FacilityTypeCode","nullable":true,"description":"837p Loop2300, SV105. 02 for telemedicine, 11 for in-person. Full list [here](https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set)."},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"procedure_code":{"type":"string","example":"99213"},"ordering_provider":{"$ref":"#/components/schemas/encounter-providersv2EncounterProvider","nullable":true},"revenue_code":{"type":"string","nullable":true,"description":"A 4 digit code that specifies facility department or type of service arrangement for institutional service line items (837i). This code is not required for professional claim billing (837p)."},"quantity":{"$ref":"#/components/schemas/Decimal","description":"String representation of a Decimal that can be parsed by most libraries.\nFor professional claims, a ServiceLine quantity cannot contain more than one digit of precision\n(Example: 1.1 is valid, 1.11 is not). For institutional claims, a ServiceLine quantity cannot contain\nmore than three decimal digits of precision."},"units":{"$ref":"#/components/schemas/ServiceLineUnits"},"claim_id":{"$ref":"#/components/schemas/ClaimId"},"date_of_service_range":{"$ref":"#/components/schemas/DateRangeOptionalEnd","description":"A range of dates of service for this service line. If the service line is for a single date, the end date\nwill be empty."},"description":{"type":"string","nullable":true,"description":"A free-form description to clarify the related data elements and their content. Maps to SV1-01, C003-07 on a 837-P and SV2-02, C003-07 on a 837-I form."},"date_of_service":{"type":"string","format":"date","example":"2023-01-01"},"end_date_of_service":{"type":"string","format":"date","nullable":true},"test_results":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2TestResult"},"nullable":true,"description":"Contains a list of test results. Test result types may map to MEA-02 on the 837-P (ex: Hemoglobin, Hematocrit).\nThis is unused by 837-i and ignored for institutional service lines.\nNo more than 5 MEA-02 test results may be submitted per service line."},"has_epsdt_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"has_family_planning_indicator":{"type":"boolean","nullable":true,"description":"Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.\nIf the value is true, the box will be populated with \"Y\". Otherwise, the box will not be populated."},"note":{"type":"string","nullable":true,"description":"Maps to NTE02 loop 2400 on the EDI 837."},"prior_authorization_number":{"type":"string","nullable":true,"description":"Prior authorization number for this service line. Maps to the appropriate REF segment on Loop 2400 of the EDI 837p. This is not used for institutional claims (EDI 837i)."},"external_id":{"type":"string","nullable":true,"description":"An external identifier for this service line. This is not used in the EDI 837, but can be used to identify the service line in external systems.\nThis field should not contain PHI. Must be unique on a given claim."}},"required":["created_at","service_line_id","procedure_code","quantity","units","claim_id","date_of_service_range","date_of_service"]},"service-linesv2ServiceLineERAData":{"title":"service-linesv2ServiceLineERAData","type":"object","properties":{"service_line_adjustments":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLineAdjustment"},"description":"Deprecated. This field aggregates all CARCs across a service line's history\nwithout granular context\n(e.g., which CARCs relate to denials vs. payments vs. reversals), making it\nunsuitable for denial analysis or operational workflows.","x-fern-availability":"deprecated"},"remittance_advice_remark_codes":{"type":"array","items":{"type":"string"}}},"required":["service_line_adjustments","remittance_advice_remark_codes"]},"service-linesv2ServiceLineAdjustment":{"title":"service-linesv2ServiceLineAdjustment","type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"adjustment_group_code":{"type":"string","nullable":true},"adjustment_reason_code":{"type":"string","nullable":true},"adjustment_amount_cents":{"type":"integer","nullable":true},"adjustment_note":{"type":"string","nullable":true}},"required":["created_at"]},"service-linesv2ServiceLineDenialReason":{"title":"service-linesv2ServiceLineDenialReason","type":"object","description":"The reason a given service line was denied within a given time range.\nA service line may be denied for different reasons over time, but only one reason at a time.","properties":{"reason":{"$ref":"#/components/schemas/service-linesv2DenialReasonContent","nullable":true,"description":"Text of the denial reason"}}},"service-linesv2DenialReasonContent":{"title":"service-linesv2DenialReasonContent","type":"string","enum":["Authorization Required","Referral Required","Medical Records Requested","Timely Filing","Duplicate Claim","Full Contractual Adjustment","Incorrect Place of Service","Incorrect Patient Gender","Incorrect Patient Info","Bundled","Exceeded Billable Time","Invalid Provider Information","Invalid Diagnosis Code","Incorrect Procedure Code","Invalid Modifier","Missing NDC Code","Invalid Insurance Data","No Active Coverage","Coordination of Benefits","Incorrect Payer","Credentialing","No Effective Contract","Missing W-9","Missing Contract Linkage","Non-Covered Benefit","Experimental Procedure","Not Medically Necessary","Info Requested from Provider","Info Requested from Patient","Billing Error","Unknown","Max Benefit Reached"]},"service-linesv2DrugIdentificationOptional":{"title":"service-linesv2DrugIdentificationOptional","type":"object","properties":{"service_id_qualifier":{"$ref":"#/components/schemas/service-linesv2ServiceIdQualifier","nullable":true},"national_drug_code":{"type":"string","nullable":true},"national_drug_unit_count":{"type":"string","nullable":true},"measurement_unit_code":{"$ref":"#/components/schemas/service-linesv2MeasurementUnitCode","nullable":true},"link_sequence_number":{"type":"string","nullable":true},"pharmacy_prescription_number":{"type":"string","nullable":true},"conversion_formula":{"type":"string","nullable":true},"drug_description":{"type":"string","nullable":true}}},"service-linesv2DrugIdentification":{"title":"service-linesv2DrugIdentification","type":"object","properties":{"service_id_qualifier":{"$ref":"#/components/schemas/service-linesv2ServiceIdQualifier"},"national_drug_code":{"type":"string"},"national_drug_unit_count":{"type":"string"},"measurement_unit_code":{"$ref":"#/components/schemas/service-linesv2MeasurementUnitCode"},"link_sequence_number":{"type":"string","nullable":true},"pharmacy_prescription_number":{"type":"string","nullable":true},"conversion_formula":{"type":"string","nullable":true},"drug_description":{"type":"string","nullable":true}},"required":["service_id_qualifier","national_drug_code","national_drug_unit_count","measurement_unit_code"]},"service-linesv2TestResultType":{"title":"service-linesv2TestResultType","type":"string","enum":["HEMATOCRIT","HEMOGLOBIN","LDL","VITAMIN_D"]},"service-linesv2TestResultOptional":{"title":"service-linesv2TestResultOptional","type":"object","properties":{"value":{"type":"number","format":"double","nullable":true},"result_type":{"$ref":"#/components/schemas/service-linesv2TestResultType","nullable":true}}},"service-linesv2TestResult":{"title":"service-linesv2TestResult","type":"object","properties":{"value":{"type":"number","format":"double"},"result_type":{"$ref":"#/components/schemas/service-linesv2TestResultType"}},"required":["value","result_type"]},"service-linesv2ServiceIdQualifier":{"title":"service-linesv2ServiceIdQualifier","type":"string","enum":["EN","EO","HI","N4","ON","UK","UP"]},"service-linesv2MeasurementUnitCode":{"title":"service-linesv2MeasurementUnitCode","type":"string","enum":["ML","UN","GR","F2","ME"]},"superbillsv1SuperbillOutputFormat":{"title":"superbillsv1SuperbillOutputFormat","type":"string","enum":["DOCX","PDF"],"description":"Output format for the generated superbill."},"superbillsv1Superbill":{"title":"superbillsv1Superbill","type":"object","properties":{"superbill_id":{"type":"string","description":"Primary id of the superbill."},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId","description":"external_id of the patient."},"authed_url":{"type":"string","description":"Authenticated URL for downloading the generated superbill file."},"date_range_min":{"type":"string","format":"date","description":"Minimum (inclusive) date selected for this superbill."},"date_range_max":{"type":"string","format":"date","description":"Maximum (inclusive) date selected for this superbill."},"file_name":{"type":"string","description":"Original filename of the superbill."}},"required":["superbill_id","patient_external_id","authed_url","date_range_min","date_range_max","file_name"]},"superbillsv1SuperbillResponse":{"title":"superbillsv1SuperbillResponse","type":"object","properties":{"superbills":{"type":"array","items":{"$ref":"#/components/schemas/superbillsv1Superbill"},"description":"Each object represents a single Superbill for a single billing provider."}},"required":["superbills"]},"tasksv3Task":{"title":"tasksv3Task","type":"object","properties":{"task_id":{"$ref":"#/components/schemas/TaskId"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"task_type":{"$ref":"#/components/schemas/tasksTaskType"},"description":{"type":"string"},"blocks_claim_submission":{"type":"boolean"},"external_id":{"type":"string"},"patient_name":{"type":"string"},"patient_external_id":{"type":"string"},"payer_name":{"type":"string","nullable":true},"payer_id":{"type":"string","nullable":true},"status":{"$ref":"#/components/schemas/tasksTaskStatus"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/tasksv3TaskNote"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time","description":"The time of most recent update to the task only"},"agg_updated_at":{"type":"string","format":"date-time","description":"The time of most recent update to the task or any of its notes"},"date_of_service":{"type":"string","format":"date"},"assignments":{"type":"array","items":{"$ref":"#/components/schemas/tasksv3TaskAssignment"}},"category":{"$ref":"#/components/schemas/tasksTaskCategory","nullable":true},"configurable_rule_id":{"$ref":"#/components/schemas/ConfigurableRuleId","nullable":true}},"required":["task_id","encounter_id","task_type","description","blocks_claim_submission","external_id","patient_name","patient_external_id","status","notes","created_at","updated_at","agg_updated_at","date_of_service","assignments"]},"tasksv3TaskNote":{"title":"tasksv3TaskNote","type":"object","properties":{"task_note_id":{"$ref":"#/components/schemas/TaskNoteId"},"text":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"author_name":{"type":"string"},"author_organization_name":{"type":"string"}},"required":["task_note_id","text","created_at","author_name","author_organization_name"]},"tasksv3TaskAssignment":{"title":"tasksv3TaskAssignment","type":"object","properties":{"task_assignment_id":{"$ref":"#/components/schemas/TaskAssignmentId"},"assignee_user_id":{"$ref":"#/components/schemas/UserId","nullable":true}},"required":["task_assignment_id"]},"tasksv3TaskSortOptions":{"title":"tasksv3TaskSortOptions","type":"string","enum":["updated_at:asc","updated_at:desc","patient_name:asc","patient_name:desc","patient_external_id:asc","patient_external_id:desc","payer_name:asc","payer_name:desc","payer_id:asc","payer_id:desc","status:asc","status:desc","task_type:asc","task_type:desc","category:asc","category:desc","agg_updated_at:asc","agg_updated_at:desc","date_of_service:asc","date_of_service:desc","blocks_claim_submission:asc","blocks_claim_submission:desc"]},"tasksv3TaskActionType":{"title":"tasksv3TaskActionType","type":"string","enum":["close_task","close_task_and_reprocess"]},"tasksv3TaskActionExecutionMethod":{"title":"tasksv3TaskActionExecutionMethod","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["close_task"]}},"required":["type"]}]},"tasksv3TaskActions":{"title":"tasksv3TaskActions","type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/tasksv3TaskAction"}}},"required":["actions"]},"tasksv3TaskAction":{"title":"tasksv3TaskAction","type":"object","properties":{"display_name":{"type":"string"},"execution_method":{"$ref":"#/components/schemas/tasksv3TaskActionExecutionMethod"},"type":{"$ref":"#/components/schemas/tasksv3TaskActionType"}},"required":["display_name","execution_method","type"]},"tasksv3TaskCreateV3":{"title":"tasksv3TaskCreateV3","type":"object","properties":{"encounter_id":{"$ref":"#/components/schemas/EncounterId"},"task_type":{"$ref":"#/components/schemas/tasksTaskType"},"description":{"type":"string"},"blocks_claim_submission":{"type":"boolean","nullable":true},"assignee_user_id":{"$ref":"#/components/schemas/UserId","nullable":true},"category":{"$ref":"#/components/schemas/tasksTaskCategory","nullable":true},"work_queue_id":{"$ref":"#/components/schemas/WorkQueueId"}},"required":["encounter_id","task_type","description","work_queue_id"]},"tasksv3TaskUpdateV3":{"title":"tasksv3TaskUpdateV3","type":"object","properties":{"status":{"$ref":"#/components/schemas/tasksTaskStatus","nullable":true},"assignee_user_id":{"$ref":"#/components/schemas/UserId","nullable":true},"blocks_claim_submission":{"type":"boolean","nullable":true}}},"tasksv3TaskPage":{"title":"tasksv3TaskPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/tasksv3Task"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"tasksv3TaskUpdatedToDeprecatedStatusErrorType":{"title":"tasksv3TaskUpdatedToDeprecatedStatusErrorType","type":"object","properties":{"deprecated_status":{"$ref":"#/components/schemas/tasksTaskStatus","nullable":true}}},"usersv2HumanUserMetadata":{"title":"usersv2HumanUserMetadata","type":"object","properties":{"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"},"email":{"type":"string","example":"john.doe@example.com"}},"required":["first_name","last_name","email"]},"usersv2MachineUserMetadata":{"title":"usersv2MachineUserMetadata","type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"usersv2UserMetadata":{"title":"usersv2UserMetadata","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["machine_user_metadata"]}}},{"$ref":"#/components/schemas/usersv2MachineUserMetadata"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["human_user_metadata"]}}},{"$ref":"#/components/schemas/usersv2HumanUserMetadata"}],"required":["type"]}]},"usersv2AuthZeroMetadata":{"title":"usersv2AuthZeroMetadata","type":"object","properties":{"auth0_id":{"type":"string","example":"auth0|5f9b3b5a7b0b0d006a2b0b0b"}},"required":["auth0_id"]},"usersv2GoogleAppsMetadata":{"title":"usersv2GoogleAppsMetadata","type":"object","properties":{"google_apps_id":{"type":"string"}},"required":["google_apps_id"]},"usersv2OtherIdpMetadata":{"title":"usersv2OtherIdpMetadata","type":"object","properties":{"idp_external_id":{"type":"string"}},"required":["idp_external_id"]},"usersv2IdpUserMetadata":{"title":"usersv2IdpUserMetadata","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["auth_zero_metadata"]}}},{"$ref":"#/components/schemas/usersv2AuthZeroMetadata"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["google_apps_metadata"]}}},{"$ref":"#/components/schemas/usersv2GoogleAppsMetadata"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["other_idp_metadata"]}}},{"$ref":"#/components/schemas/usersv2OtherIdpMetadata"}],"required":["type"]}]},"usersv2UserV2":{"title":"usersv2UserV2","type":"object","properties":{"user_id":{"$ref":"#/components/schemas/UserId"},"idp_metadata":{"type":"array","items":{"$ref":"#/components/schemas/usersv2IdpUserMetadata"}},"primary_organization_id":{"$ref":"#/components/schemas/OrganizationId","nullable":true},"user_metadata":{"$ref":"#/components/schemas/usersv2UserMetadata"}},"required":["user_id","idp_metadata","user_metadata"]},"write-offsv1WriteOffId":{"title":"write-offsv1WriteOffId","type":"string","format":"uuid"},"write-offsv1WriteOff":{"title":"write-offsv1WriteOff","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["patient"]}}},{"$ref":"#/components/schemas/write-offsv1PatientWriteOff"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["insurance"]}}},{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOff"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["non_insurance_payer"]}}},{"$ref":"#/components/schemas/write-offsv1NonInsurancePayerWriteOff"}],"required":["type"]}]},"write-offsv1WriteOffCreate":{"title":"write-offsv1WriteOffCreate","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["patient"]}}},{"$ref":"#/components/schemas/write-offsv1PatientWriteOffCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["insurance"]}}},{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["non_insurance_payer"]}}},{"$ref":"#/components/schemas/write-offsv1NonInsurancePayerWriteOffCreate"}],"required":["type"]}]},"write-offsv1PatientWriteOffReason":{"title":"write-offsv1PatientWriteOffReason","type":"string","enum":["SMALL_BALANCE","CHARITY_OR_FINANCIAL_ASSISTANCE","PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY","OON_COURTESY_ADJUSTMENT","PROMPT_PAY_DISCOUNT","BAD_DEBT","COLLECTION_AGENCY","OTHER","UNKNOWN","UNCOLLECTIBLE_OR_NON_BILLABLE","DECEASED","BANKRUPTCY"]},"write-offsv1PatientWriteOff":{"title":"write-offsv1PatientWriteOff","type":"object","properties":{"write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId"},"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1PatientWriteOffReason"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"claim_id":{"$ref":"#/components/schemas/ClaimId"},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"reverts_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"reverted_by_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"amount_cents":{"type":"integer"}},"required":["write_off_id","write_off_timestamp","write_off_reason","patient_external_id","claim_id","service_line_id","amount_cents"]},"write-offsv1PatientWriteOffCreate":{"title":"write-offsv1PatientWriteOffCreate","type":"object","properties":{"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1PatientWriteOffReason"},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"amount_cents":{"type":"integer"}},"required":["write_off_timestamp","write_off_reason","service_line_id","amount_cents"]},"write-offsv1InsuranceWriteOff":{"title":"write-offsv1InsuranceWriteOff","type":"object","properties":{"write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId"},"payer":{"$ref":"#/components/schemas/payersv3Payer"},"write_off_target":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffTarget"},"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffReason"},"reverts_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"reverted_by_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"amount_cents":{"type":"integer"}},"required":["write_off_id","payer","write_off_target","write_off_timestamp","write_off_reason","amount_cents"]},"write-offsv1InsuranceWriteOffCreate":{"title":"write-offsv1InsuranceWriteOffCreate","type":"object","properties":{"payer_identifier":{"$ref":"#/components/schemas/payersv3PayerIdentifier"},"write_off_target":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffTarget"},"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffReason"},"amount_cents":{"type":"integer"}},"required":["payer_identifier","write_off_target","write_off_timestamp","write_off_reason","amount_cents"]},"write-offsv1InsuranceWriteOffTarget":{"title":"write-offsv1InsuranceWriteOffTarget","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["service_line_id"]},"value":{"$ref":"#/components/schemas/ServiceLineId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["claim_id"]},"value":{"$ref":"#/components/schemas/ClaimId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["billing_provider_id"]},"value":{"$ref":"#/components/schemas/ProviderId"}},"required":["type"]}]},"write-offsv1NonInsurancePayerWriteOffCreate":{"title":"write-offsv1NonInsurancePayerWriteOffCreate","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffReason"},"amount_cents":{"type":"integer"}},"required":["non_insurance_payer_id","service_line_id","write_off_timestamp","write_off_reason","amount_cents"]},"write-offsv1NonInsurancePayerWriteOff":{"title":"write-offsv1NonInsurancePayerWriteOff","type":"object","properties":{"write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId"},"non_insurance_payer":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"write_off_timestamp":{"type":"string","format":"date-time"},"write_off_note":{"type":"string","nullable":true},"write_off_reason":{"$ref":"#/components/schemas/write-offsv1InsuranceWriteOffReason"},"reverts_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"reverted_by_write_off_id":{"$ref":"#/components/schemas/write-offsv1WriteOffId","nullable":true},"amount_cents":{"type":"integer"}},"required":["write_off_id","non_insurance_payer","service_line_id","write_off_timestamp","write_off_reason","amount_cents"]},"write-offsv1InsuranceWriteOffReason":{"title":"write-offsv1InsuranceWriteOffReason","type":"string","enum":["SMALL_BALANCE","NO_AUTHORIZATION_REFERRAL","TIMELY_FILING","STALE_DATE","TIMELY_FILING_LATE_ENCOUNTER","CREDENTIALING_OR_CONTRACTING","NON_COVERED_MAX_BENEFIT","NOT_MEDICALLY_NECESSARY","BUNDLED_OR_INCLUSIVE","UNCOLLECTIBLE_OR_NON_BILLABLE","EFFORTS_EXHAUSTED","ADMINISTRATIVE_WRITE_OFF","CASE_RATE_OR_CAPITATED","OTHER","UNKNOWN","CONTRACTUAL_ADJUSTMENT","PRIMARY_PAID_MAX_BENEFITS","INTEREST"]},"write-offsv1CreateWriteOffsResponse":{"title":"write-offsv1CreateWriteOffsResponse","type":"object","properties":{"write_offs":{"type":"array","items":{"$ref":"#/components/schemas/write-offsv1WriteOff"}}},"required":["write_offs"]},"write-offsv1WriteOffsPage":{"title":"write-offsv1WriteOffsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/write-offsv1WriteOff"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/ResourcePage"}]},"write-offsv1WriteOffSortField":{"title":"write-offsv1WriteOffSortField","type":"string","enum":["amount_cents","write_off_timestamp","write_off_note"]},"x12v1ClaimAdjustmentReasonCode":{"title":"x12v1ClaimAdjustmentReasonCode","type":"object","properties":{"group_code":{"$ref":"#/components/schemas/ClaimAdjustmentGroupCodes"},"reason_code":{"$ref":"#/components/schemas/x12v1Carc"},"amount_cents":{"type":"integer"}},"required":["group_code","reason_code","amount_cents"]},"x12v1RemittanceAdviceRemarkCode":{"title":"x12v1RemittanceAdviceRemarkCode","type":"object","properties":{"reason_code":{"$ref":"#/components/schemas/x12v1Rarc"}},"required":["reason_code"]},"x12v1Carc":{"title":"x12v1Carc","type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11","12","13","14","16","18","19","20","21","22","23","24","26","27","29","31","32","33","34","35","39","40","44","45","49","50","51","53","54","55","56","58","59","60","61","66","69","70","74","75","76","78","85","89","90","91","94","95","96","97","100","101","102","103","104","105","106","107","108","109","110","111","112","114","115","116","117","118","119","121","122","125","128","129","130","131","132","133","134","135","136","137","139","140","142","143","144","146","147","148","149","150","151","152","153","154","155","157","158","159","160","161","163","164","166","167","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","192","193","194","195","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","215","216","219","222","223","224","225","226","227","228","229","231","232","233","234","235","236","237","238","239","240","241","242","243","245","246","247","248","249","250","251","252","253","254","256","257","258","259","260","261","262","263","264","265","266","267","268","269","270","271","272","273","274","275","276","277","278","279","280","281","282","283","284","285","286","287","288","289","290","291","292","293","294","295","296","297","298","299","300","301","302","303","304","305","A0","A1","A5","A6","A8","B1","B4","B7","B8","B9","B10","B11","B12","B13","B14","B15","B16","B20","B22","B23","P1","P2","P3","P4","P5","P6","P7","P8","P9","P10","P11","P12","P13","P14","P15","P16","P17","P18","P19","P20","P21","P22","P23","P24","P25","P26","P27","P28","P29","P30","P31","P32","15","17","25","28","30","36","37","38","41","42","43","46","47","48","52","57","62","63","64","65","67","68","71","72","73","77","79","80","81","82","83","84","86","87","88","92","93","98","99","113","120","123","124","126","127","138","141","145","156","162","165","168","191","196","214","217","218","220","221","230","244","255","A2","A3","A4","A7","B2","B3","B5","B6","B17","B18","B19","B21","D1","D2","D3","D4","D5","D6","D7","D8","D9","D10","D11","D12","D14","D15","D16","D17","D18","D19","D20","D21","D22","D23","W1","W2","W3","W4","W5","W6","W7","W8","W9","Y1","Y2","Y3","UNKNOWN"]},"x12v1Rarc":{"title":"x12v1Rarc","type":"string","enum":["M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","M13","M14","M15","M16","M17","M18","M19","M20","M21","M22","M23","M24","M25","M26","M27","M28","M29","M30","M31","M32","M33","M34","M35","M36","M37","M38","M39","M40","M41","M42","M43","M44","M45","M46","M47","M48","M49","M50","M51","M52","M53","M54","M55","M56","M57","M58","M59","M60","M61","M62","M63","M64","M65","M66","M67","M68","M69","M70","M71","M72","M73","M74","M75","M76","M77","M78","M79","M80","M81","M82","M83","M84","M85","M86","M87","M88","M89","M90","M91","M92","M93","M94","M95","M96","M97","M98","M99","M100","M101","M102","M103","M104","M105","M106","M107","M108","M109","M110","M111","M112","M113","M114","M115","M116","M117","M118","M119","M120","M121","M122","M123","M124","M125","M126","M127","M128","M129","M130","M131","M132","M133","M134","M135","M136","M137","M138","M139","M140","M141","M142","M143","M144","MA01","MA02","MA03","MA04","MA05","MA06","MA07","MA08","MA09","MA10","MA11","MA12","MA13","MA14","MA15","MA16","MA17","MA18","MA19","MA20","MA21","MA22","MA23","MA24","MA25","MA26","MA27","MA28","MA29","MA30","MA31","MA32","MA33","MA34","MA35","MA36","MA37","MA38","MA39","MA40","MA41","MA42","MA43","MA44","MA45","MA46","MA47","MA48","MA49","MA50","MA51","MA52","MA53","MA54","MA55","MA56","MA57","MA58","MA59","MA60","MA61","MA62","MA63","MA64","MA65","MA66","MA67","MA68","MA69","MA70","MA71","MA72","MA73","MA74","MA75","MA76","MA77","MA78","MA79","MA80","MA81","MA82","MA83","MA84","MA85","MA86","MA87","MA88","MA89","MA90","MA91","MA92","MA93","MA94","MA95","MA96","MA97","MA98","MA99","MA100","MA101","MA102","MA103","MA104","MA105","MA106","MA107","MA108","MA109","MA110","MA111","MA112","MA113","MA114","MA115","MA116","MA117","MA118","MA119","MA120","MA121","MA122","MA123","MA124","MA125","MA126","MA127","MA128","MA129","MA130","MA131","MA132","MA133","MA134","N1","N2","N3","N4","N5","N6","N7","N8","N9","N10","N11","N12","N13","N14","N15","N16","N17","N18","N19","N20","N21","N22","N23","N24","N25","N26","N27","N28","N29","N30","N31","N32","N33","N34","N35","N36","N37","N38","N39","N40","N41","N42","N43","N44","N45","N46","N47","N48","N49","N50","N51","N52","N53","N54","N55","N56","N57","N58","N59","N60","N61","N62","N63","N64","N65","N66","N67","N68","N69","N70","N71","N72","N73","N74","N75","N76","N77","N78","N79","N80","N81","N82","N83","N84","N85","N86","N87","N88","N89","N90","N91","N92","N93","N94","N95","N96","N97","N98","N99","N100","N101","N102","N103","N104","N105","N106","N107","N108","N109","N110","N111","N112","N113","N114","N115","N116","N117","N118","N119","N120","N121","N122","N123","N124","N125","N126","N127","N128","N129","N130","N131","N132","N133","N134","N135","N136","N137","N138","N139","N140","N141","N142","N143","N144","N145","N146","N147","N148","N149","N150","N151","N152","N153","N154","N155","N156","N157","N158","N159","N160","N161","N162","N163","N164","N165","N166","N167","N168","N169","N170","N171","N172","N173","N174","N175","N176","N177","N178","N179","N180","N181","N182","N183","N184","N185","N186","N187","N188","N189","N190","N191","N192","N193","N194","N195","N196","N197","N198","N199","N200","N201","N202","N203","N204","N205","N206","N207","N208","N209","N210","N211","N212","N213","N214","N215","N216","N217","N218","N219","N220","N221","N222","N223","N224","N225","N226","N227","N228","N229","N230","N231","N232","N233","N234","N235","N236","N237","N238","N239","N240","N241","N242","N243","N244","N245","N246","N247","N248","N249","N250","N251","N252","N253","N254","N255","N256","N257","N258","N259","N260","N261","N262","N263","N264","N265","N266","N267","N268","N269","N270","N271","N272","N273","N274","N275","N276","N277","N278","N279","N280","N281","N282","N283","N284","N285","N286","N287","N288","N289","N290","N291","N292","N293","N294","N295","N296","N297","N298","N299","N300","N301","N302","N303","N304","N305","N306","N307","N308","N309","N310","N311","N312","N313","N314","N315","N316","N317","N318","N319","N320","N321","N322","N323","N324","N325","N326","N327","N328","N329","N330","N331","N332","N333","N334","N335","N336","N337","N338","N339","N340","N341","N342","N343","N344","N345","N346","N347","N348","N349","N350","N351","N352","N353","N354","N355","N356","N357","N358","N359","N360","N361","N362","N363","N364","N365","N366","N367","N368","N369","N370","N371","N372","N373","N374","N375","N376","N377","N378","N379","N380","N381","N382","N383","N384","N385","N386","N387","N388","N389","N390","N391","N392","N393","N394","N395","N396","N397","N398","N399","N400","N401","N402","N403","N404","N405","N406","N407","N408","N409","N410","N411","N412","N413","N414","N415","N416","N417","N418","N419","N420","N421","N422","N423","N424","N425","N426","N427","N428","N429","N430","N431","N432","N433","N434","N435","N436","N437","N438","N439","N440","N441","N442","N443","N444","N445","N446","N447","N448","N449","N450","N451","N452","N453","N454","N455","N456","N457","N458","N459","N460","N461","N462","N463","N464","N465","N466","N467","N468","N469","N470","N471","N472","N473","N474","N475","N476","N477","N478","N479","N480","N481","N482","N483","N484","N485","N486","N487","N488","N489","N490","N491","N492","N493","N494","N495","N496","N497","N498","N499","N500","N501","N502","N503","N504","N505","N506","N507","N508","N509","N510","N511","N512","N513","N514","N515","N516","N517","N518","N519","N520","N521","N522","N523","N524","N525","N526","N527","N528","N529","N530","N531","N532","N533","N534","N535","N536","N537","N538","N539","N540","N541","N542","N543","N544","N545","N546","N547","N548","N549","N550","N551","N552","N553","N554","N555","N556","N557","N558","N559","N560","N561","N562","N563","N564","N565","N566","N567","N568","N569","N570","N571","N572","N573","N574","N575","N576","N577","N578","N579","N580","N581","N582","N583","N584","N585","N586","N587","N588","N589","N590","N591","N592","N593","N594","N595","N596","N597","N598","N599","N600","N601","N602","N603","N604","N605","N606","N607","N608","N609","N610","N611","N612","N613","N614","N615","N616","N617","N618","N619","N620","N621","N622","N623","N624","N625","N626","N627","N628","N629","N630","N631","N632","N633","N634","N635","N636","N637","N638","N639","N640","N641","N642","N643","N644","N645","N646","N647","N648","N649","N650","N651","N652","N653","N654","N655","N656","N657","N658","N659","N660","N661","N662","N663","N664","N665","N666","N667","N668","N669","N670","N671","N672","N673","N674","N675","N676","N677","N678","N679","N680","N681","N682","N683","N684","N685","N686","N687","N688","N689","N690","N691","N692","N693","N694","N695","N696","N697","N698","N699","N700","N701","N702","N703","N704","N705","N706","N707","N708","N709","N710","N711","N712","N713","N714","N715","N716","N717","N718","N719","N720","N721","N722","N723","N724","N725","N726","N727","N728","N729","N730","N731","N732","N733","N734","N735","N736","N737","N738","N739","N740","N741","N742","N743","N744","N745","N746","N747","N748","N749","N750","N751","N752","N753","N754","N755","N756","N757","N758","N759","N760","N761","N762","N763","N764","N765","N766","N767","N768","N769","N770","N771","N772","N773","N774","N775","N776","N777","N778","N779","N780","N781","N782","N783","N784","N785","N786","N787","N788","N789","N790","N791","N792","N793","N794","N795","N796","N797","N798","N799","N800","N801","N802","N803","N804","N805","N806","N807","N808","N809","N810","N811","N812","N815","N816","N817","N818","N819","N820","N821","N822","N823","N824","N825","N826","N827","N828","N829","N830","N831","N832","N833","N834","N835","N836","N837","N838","N839","N840","N841","N842","N843","N844","N845","N846","N847","N848","N849","N850","N851","N852","N853","N854","N855","N856","N857","N858","N859","N860","N861","N862","N863","N864","N865","N866","N867","N868","N869","N870","N871","N872","N873","N874","N875","N876","N877","N878","N879","N880","N881","N882","N883","N884","N885","N886","N887","N888","N889","N890","N891","N892","N893","N894","N895","N896","N897","N898","N899","N900","N901","N902","N903","N904","N905","N906","N907","N908","N909","N910","N911","UNKNOWN"]},"x12v1TypeOfFacilityCode":{"title":"x12v1TypeOfFacilityCode","type":"string","enum":["1","2","3","4","6","7","8"]},"x12v1TypeOfCareCode":{"title":"x12v1TypeOfCareCode","type":"string","enum":["1","2","3","4","5","6","7","8","9"]},"x12v1TypeOfBillFrequencyCode":{"title":"x12v1TypeOfBillFrequencyCode","type":"string","enum":["0","1","2","3","4","5","7","8","9","A","B","C","D","E","F","G","H","I","J","K","M","O","P","Q","X","Y","Z"]},"x12v1TypeOfBillCompositeUpdate":{"title":"x12v1TypeOfBillCompositeUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["raw_code"]},"value":{"type":"string"}},"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["composite_codes"]}}},{"$ref":"#/components/schemas/x12v1TypeOfBillCompositeBase"}],"required":["type"]}],"description":"A type of bill can either be seen as a composition of structured parts, or as a literal string.\nThis union represents the potential to express a type of bill either as one of those two shapes.\nPassing a string, this update will be seen as a complete 4 digit code, along with a padding code 0, that\nshould match a valid composition.\nPassing as a structure, the update will be seen as three parts and will be joined together by the server\nto represent a valid composition for you.\nWhich you use depends upon whether you are \"passing through\" coded information or making a decision about its\nstructure explicitly.","x-fern-availability":"in-development"},"x12v1TypeOfBillComposite":{"title":"x12v1TypeOfBillComposite","type":"object","properties":{"code":{"type":"string","description":"The composite, 4 digit code of the composite, starting with a padding code 0.","x-fern-availability":"in-development"}},"required":["code"],"allOf":[{"$ref":"#/components/schemas/x12v1TypeOfBillCompositeBase"}],"x-fern-availability":"in-development"},"x12v1TypeOfBillCompositeBase":{"title":"x12v1TypeOfBillCompositeBase","type":"object","properties":{"type_of_facility":{"$ref":"#/components/schemas/x12v1TypeOfFacilityCode","description":"The FL04 Institutional type of facility code for the bill.  The second digit of the composite code.","x-fern-availability":"in-development"},"type_of_care":{"$ref":"#/components/schemas/x12v1TypeOfCareCode","description":"The FL04 Institutional type of care code for the bill.  The third digit of the composite code.","x-fern-availability":"in-development"},"frequency_code":{"$ref":"#/components/schemas/x12v1TypeOfBillFrequencyCode","description":"The FL04 Institutional frequency code for the bill.  The fourth digit of the composite code.","x-fern-availability":"in-development"}},"required":["type_of_facility","type_of_care","frequency_code"],"x-fern-availability":"in-development"},"x12v1TypeOfAdmissionOrVisitCode":{"title":"x12v1TypeOfAdmissionOrVisitCode","type":"string","enum":["1","2","3","4","5","9"]},"x12v1PointOfOriginForAdmissionOrVisitCode":{"title":"x12v1PointOfOriginForAdmissionOrVisitCode","type":"string","enum":["1","2","4","5","6","8","9","D","E","F","G"]},"x12v1PatientDischargeStatusCode":{"title":"x12v1PatientDischargeStatusCode","type":"string","enum":["01","02","03","04","05","06","07","09","20","21","30","40","41","42","43","50","51","61","62","63","64","65","66","69","70","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95"]},"pre-encounterappointmentsv1AppointmentWorkQueue":{"title":"pre-encounterappointmentsv1AppointmentWorkQueue","type":"string","enum":["EMERGENT_ISSUE","NEW_PATIENT","RETURNING_PATIENT","MANUAL_ESCALATION"]},"pre-encounterappointmentsv1UniversalServiceIdentifier":{"title":"pre-encounterappointmentsv1UniversalServiceIdentifier","type":"string","enum":["MD_Visit","Treatment","Tests","Activity"]},"pre-encounterappointmentsv1AppointmentStatus":{"title":"pre-encounterappointmentsv1AppointmentStatus","type":"string","enum":["PENDING","NOT_READY","READY","CHECKED_IN"]},"pre-encounterappointmentsv1NotReadyReason":{"title":"pre-encounterappointmentsv1NotReadyReason","type":"string","enum":["INACTIVE_PRIMARY","INACTIVE_SECONDARY","MEDICARE_ADVANTAGE_CONVERSION","MEDICAID_MANAGED_CONVERSION","UNAVAILABLE_PRIMARY","UNAVAILABLE_SECONDARY","PENDING_PRIMARY","PENDING_SECONDARY","ELIGIBILITY_CHECK_FAILED_PRIMARY","ELIGIBILITY_CHECK_FAILED_SECONDARY","NEW_COMBO","NO_COVERAGE","ERROR","MANUAL"],"description":"The reason an appointment is NOT_READY. Only set when status is NOT_READY. All values except MANUAL are set by the automated eligibility check; MANUAL is set by staff via the API."},"pre-encounterappointmentsv1ReadySource":{"title":"pre-encounterappointmentsv1ReadySource","type":"string","enum":["MANUAL","MACHINE"],"description":"Indicates how this appointment's status was marked as READY - MANUAL or MACHINE."},"pre-encounterappointmentsv1Service":{"title":"pre-encounterappointmentsv1Service","type":"object","properties":{"universal_service_identifier":{"$ref":"#/components/schemas/pre-encounterappointmentsv1UniversalServiceIdentifier","nullable":true,"description":"Contains the code describing the activity type that is being scheduled."},"start_timestamp":{"type":"string","format":"date-time","nullable":true}}},"pre-encounterappointmentsv1MutableAppointment":{"title":"pre-encounterappointmentsv1MutableAppointment","type":"object","description":"An object representing a appointment.","properties":{"patient_id":{"$ref":"#/components/schemas/pre-encounterPatientId","description":"The Taiga-defined patient identifier."},"start_timestamp":{"type":"string","format":"date-time"},"status":{"$ref":"#/components/schemas/pre-encounterappointmentsv1AppointmentStatus","nullable":true,"description":"Defaults to PENDING. If status is NOT_READY, work_queue must be set. If status is READY or CHECKED_IN, work_queue must be null. If status is CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set, status must be CHECKED_IN."},"not_ready_reason":{"$ref":"#/components/schemas/pre-encounterappointmentsv1NotReadyReason","nullable":true,"description":"The reason the appointment is NOT_READY. Must only be set when status is NOT_READY; it is cleared otherwise. It is not recommended to change this value manually via API."},"ready_source":{"$ref":"#/components/schemas/pre-encounterappointmentsv1ReadySource","nullable":true,"description":"The method that set the appointment status to READY. It is not recommended to change this value manually via API. Must only be set when the status is READY or CHECKED_IN, it is cleared otherwise."},"service_duration":{"type":"integer","description":"The requested length of time allotted for the appointment. The units are in minutes."},"services":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Service"}},"placer_appointment_id":{"type":"string","nullable":true,"description":"ID for the appointment/order for the event."},"attending_doctor":{"$ref":"#/components/schemas/pre-encounterExternalProvider","nullable":true,"description":"Attending physician information. The attending physician will be stored as the Current MD for the patient."},"estimated_copay_cents":{"type":"integer","nullable":true},"estimated_patient_responsibility_cents":{"type":"integer","nullable":true},"patient_deposit_cents":{"type":"integer","nullable":true},"appointment_details":{"type":"string","nullable":true},"checked_in_timestamp":{"type":"string","format":"date-time","nullable":true,"description":"The timestamp when the patient checked in for their appointment. If status is CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set, status must be CHECKED_IN."},"notes":{"type":"string","nullable":true},"location_resource_id":{"type":"string","nullable":true,"description":"Contains the coded identification of the location being scheduled. Components: <Identifier (ST)>^<Text (ST)>"},"automated_eligibility_check_complete":{"type":"boolean","nullable":true,"description":"True if the automated eligibility check has been completed. It is not recommended to change this value manually via API. This refers explicitly to the automated eligibility check that occurs a specific number of days before the appointment."},"work_queue":{"$ref":"#/components/schemas/pre-encounterappointmentsv1AppointmentWorkQueue","nullable":true,"description":"The work queue that the appointment belongs to. It is not recommended to change this value manually via API. If status is NOT_READY, work_queue must be set. If status is READY, work_queue must be null."}},"required":["patient_id","start_timestamp","service_duration","services"]},"pre-encounterappointmentsv1Appointment":{"title":"pre-encounterappointmentsv1Appointment","type":"object","description":"An appointment object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterAppointmentId"}},"required":["id"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounterappointmentsv1MutableAppointment"}]},"pre-encounterappointmentsv1Visit":{"title":"pre-encounterappointmentsv1Visit","type":"object","description":"A visit is a collection of appointments that occur on the same day.","properties":{"patient_id":{"$ref":"#/components/schemas/pre-encounterPatientId"},"organization_id":{"$ref":"#/components/schemas/pre-encounterOrganizationId"},"patient":{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatientWithMrn"},"start_time":{"type":"string","format":"date-time"},"status":{"$ref":"#/components/schemas/pre-encounterappointmentsv1AppointmentStatus"},"primary_coverage_status":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageStatus","nullable":true},"secondary_coverage_status":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageStatus","nullable":true},"primary_payer_name":{"type":"string","nullable":true},"primary_payer_plan_group_id":{"$ref":"#/components/schemas/pre-encounterPayerPlanGroupId","nullable":true}},"required":["patient_id","organization_id","patient","start_time","status"]},"pre-encounterappointmentsv1VisitsPage":{"title":"pre-encounterappointmentsv1VisitsPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Visit"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encounterappointmentsv1CountsResponse":{"title":"pre-encounterappointmentsv1CountsResponse","type":"object","properties":{"not_ready_reason_counts":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true}}},"pre-encountercoveragesv1PayerPlanGroupFields":{"title":"pre-encountercoveragesv1PayerPlanGroupFields","type":"object","properties":{"payer_plan_group_id":{"$ref":"#/components/schemas/pre-encounterPayerPlanGroupId"},"payer_id":{"$ref":"#/components/schemas/pre-encounterPayerId"},"payer_name":{"type":"string"},"plan_type":{"$ref":"#/components/schemas/pre-encountercoveragesv1NetworkType"}},"required":["payer_plan_group_id","payer_id","payer_name","plan_type"]},"pre-encountercoveragesv1CoveragesPage":{"title":"pre-encountercoveragesv1CoveragesPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encountercoveragesv1LatestEligibilityCheck":{"title":"pre-encountercoveragesv1LatestEligibilityCheck","type":"object","description":"A type to represent the latest eligibility check status of a coverage.","properties":{"check_id":{"type":"string"},"status":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityStatus"},"initiated_at":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true}},"required":["check_id","status","initiated_at"]},"pre-encountercoveragesv1BenefitType":{"title":"pre-encountercoveragesv1BenefitType","type":"string","enum":["DEDUCTIBLE","DEDUCTIBLE_CONTRACT","DEDUCTIBLE_REMAINING","DEDUCTIBLE_YEAR_TO_DATE","OOP_MAX","OOP_MAX_CONTRACT","OOP_MAX_REMAINING","OOP_MAX_YEAR_TO_DATE","COPAY","COINSURANCE","NON_COVERED","LIMITATION"]},"pre-encountercoveragesv1CoverageEligibilityCheckResponse":{"title":"pre-encountercoveragesv1CoverageEligibilityCheckResponse","type":"object","properties":{"metadata":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckMetadata"},"check":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheck","nullable":true}},"required":["metadata"]},"pre-encountercoveragesv1CoverageValue":{"title":"pre-encountercoveragesv1CoverageValue","type":"object","properties":{"family":{"type":"number","format":"double","nullable":true},"individual":{"type":"number","format":"double","nullable":true},"employeeAndSpouse":{"type":"number","format":"double","nullable":true},"employeeAndChildren":{"type":"number","format":"double","nullable":true}}},"pre-encountercoveragesv1NonCoveredDetail":{"title":"pre-encountercoveragesv1NonCoveredDetail","type":"object","properties":{"type":{"$ref":"#/components/schemas/pre-encountercoveragesv1BenefitType"},"coverageLevel":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageLevel"},"unit":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValueUnit"},"value":{"type":"number","format":"double"},"additional_notes":{"type":"string","nullable":true},"service_type_codes":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceTypeCode"},"nullable":true}},"required":["type","coverageLevel","unit","value"]},"pre-encountercoveragesv1CoverageBenefits":{"title":"pre-encountercoveragesv1CoverageBenefits","type":"object","properties":{"plan_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1PlanCoverage","nullable":true},"service_specific_coverage":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceCoverage"},"nullable":true},"benefits_related_entities":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1BenefitsRelatedEntity"},"nullable":true},"non_covered_details":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1NonCoveredDetail"},"nullable":true},"notes":{"type":"string","nullable":true},"autoUpdatedEligibilityCheckId":{"type":"string","nullable":true}}},"pre-encountercoveragesv1CoverageDetails":{"title":"pre-encountercoveragesv1CoverageDetails","type":"object","properties":{"type":{"$ref":"#/components/schemas/pre-encountercoveragesv1BenefitType"},"coverageLevel":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageLevel"},"unit":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValueUnit"},"value":{"type":"number","format":"double"},"additional_notes":{"type":"string","nullable":true}},"required":["type","coverageLevel","unit","value"]},"pre-encountercoveragesv1PlanCoverage":{"title":"pre-encountercoveragesv1PlanCoverage","type":"object","properties":{"in_network":{"$ref":"#/components/schemas/pre-encountercoveragesv1PlanCoverageDetails","nullable":true},"in_network_flat":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageDetails"},"nullable":true},"out_of_network":{"$ref":"#/components/schemas/pre-encountercoveragesv1PlanCoverageDetails","nullable":true},"out_of_network_flat":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageDetails"},"nullable":true}}},"pre-encountercoveragesv1PlanCoverageDetails":{"title":"pre-encountercoveragesv1PlanCoverageDetails","type":"object","properties":{"deductible":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"deductible_contract":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"deductible_remaining":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"deductible_year_to_date":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"oop_max":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"oop_max_contract":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"oop_max_remaining":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"oop_max_year_to_date":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"additional_notes":{"type":"string","nullable":true}}},"pre-encountercoveragesv1ServiceCoverage":{"title":"pre-encountercoveragesv1ServiceCoverage","type":"object","properties":{"service_code":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceTypeCode"},"in_network":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceCoverageDetails","nullable":true},"in_network_flat":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageDetails"},"nullable":true},"out_of_network":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceCoverageDetails","nullable":true},"out_of_network_flat":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageDetails"},"nullable":true}},"required":["service_code"]},"pre-encountercoveragesv1ServiceCoverageDetails":{"title":"pre-encountercoveragesv1ServiceCoverageDetails","type":"object","properties":{"copay":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"coinsurance":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"visits":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"visits_remaining":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageValue","nullable":true},"additional_notes":{"type":"string","nullable":true}}},"pre-encountercoveragesv1PlanMetadata":{"title":"pre-encountercoveragesv1PlanMetadata","type":"object","properties":{"payer_name":{"type":"string","nullable":true},"insurance_type":{"type":"string","nullable":true},"insurance_type_code":{"type":"string","nullable":true},"plan_name":{"type":"string","nullable":true},"member_id":{"type":"string","nullable":true},"group_number":{"type":"string","nullable":true},"start_date":{"type":"string","format":"date","nullable":true},"end_date":{"type":"string","format":"date","nullable":true},"plan_dates":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1PlanDate"},"nullable":true},"subscriber":{"$ref":"#/components/schemas/pre-encountercoveragesv1ExpandedMemberInfo","nullable":true},"dependent":{"$ref":"#/components/schemas/pre-encountercoveragesv1ExpandedMemberInfo","nullable":true}}},"pre-encountercoveragesv1PlanDate":{"title":"pre-encountercoveragesv1PlanDate","type":"object","properties":{"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date","nullable":true},"field_name":{"type":"string"}},"required":["start_date","field_name"]},"pre-encountercoveragesv1CoverageLevel":{"title":"pre-encountercoveragesv1CoverageLevel","type":"string","enum":["EMPLOYEE_AND_CHILDREN","EMPLOYEE_ONLY","EMPLOYEE_AND_SPOUSE","FAMILY","INDIVIDUAL"]},"pre-encountercoveragesv1CoverageValueUnit":{"title":"pre-encountercoveragesv1CoverageValueUnit","type":"string","enum":["PERCENT","CURRENCY","COUNT"]},"pre-encountercoveragesv1Subscriber":{"title":"pre-encountercoveragesv1Subscriber","type":"object","properties":{"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"date_of_birth":{"type":"string","format":"date","nullable":true},"biological_sex":{"$ref":"#/components/schemas/pre-encounterSex"},"address":{"$ref":"#/components/schemas/pre-encounterAddress","nullable":true},"employer_name":{"type":"string","nullable":true}},"required":["name","biological_sex"]},"pre-encountercoveragesv1MemberInfo":{"title":"pre-encountercoveragesv1MemberInfo","type":"object","properties":{"member_id":{"type":"string","nullable":true,"description":"Stedi requires that you supply at least one of these fields in the request: memberId, dateOfBirth, or lastName.  \nHowever, each payer has different requirements, so you should supply as many of the fields necessary for each payer \nto identify the subscriber/dependent in their system."},"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date","nullable":true,"description":"Stedi requires that you supply at least one of these fields in the request: memberId, dateOfBirth, or lastName.  \nHowever, each payer has different requirements, so you should supply as many of the fields necessary for each payer \nto identify the subscriber/dependent in their system."}},"required":["first_name","last_name"]},"pre-encountercoveragesv1Address":{"title":"pre-encountercoveragesv1Address","type":"object","properties":{"address1":{"type":"string","nullable":true},"address2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"country_sub_division_code":{"type":"string","nullable":true}}},"pre-encountercoveragesv1ExpandedMemberInfo":{"title":"pre-encountercoveragesv1ExpandedMemberInfo","type":"object","properties":{"member_id":{"type":"string","nullable":true},"group_number":{"type":"string","nullable":true},"first_name":{"type":"string","nullable":true},"middle_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"date_of_birth":{"type":"string","nullable":true},"gender":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/pre-encountercoveragesv1Address","nullable":true}}},"pre-encountercoveragesv1CoverageStatus":{"title":"pre-encountercoveragesv1CoverageStatus","type":"string","enum":["ACTIVE","CANCELLED","DRAFT","ENTERED_IN_ERROR"],"description":"enum to represent the statuses defined at https://build.fhir.org/valueset-fm-status.html"},"pre-encountercoveragesv1NetworkType":{"title":"pre-encountercoveragesv1NetworkType","type":"string","enum":["09","11","12","13","14","15","16","17","AM","BL","CH","CI","DS","FI","HM","LM","MA","MB","MC","OF","TV","VA","WC","ZZ"]},"pre-encountercoveragesv1CarveOutType":{"title":"pre-encountercoveragesv1CarveOutType","type":"string","enum":["BEHAVIORAL","MEDICAL","THERAPY"]},"pre-encountercoveragesv1CoverageCarveOut":{"title":"pre-encountercoveragesv1CoverageCarveOut","type":"object","properties":{"carve_out":{"$ref":"#/components/schemas/pre-encountercoveragesv1CarveOutType"},"member_id":{"type":"string"},"payer_id":{"$ref":"#/components/schemas/pre-encounterPayerId"},"payer_name":{"type":"string"},"group_number":{"type":"string","nullable":true},"plan_type":{"$ref":"#/components/schemas/pre-encountercoveragesv1NetworkType","nullable":true},"type":{"$ref":"#/components/schemas/pre-encountercoveragesv1InsuranceTypeCode","nullable":true},"payer_plan_group_id":{"$ref":"#/components/schemas/pre-encounterPayerPlanGroupId","nullable":true,"description":"The ID of the Taiga configured payer plan group associated with this coverage"}},"required":["carve_out","member_id","payer_id","payer_name"]},"pre-encountercoveragesv1InsurancePlan":{"title":"pre-encountercoveragesv1InsurancePlan","type":"object","properties":{"member_id":{"type":"string"},"payer_id":{"$ref":"#/components/schemas/pre-encounterPayerId"},"payer_name":{"type":"string"},"additional_payer_information":{"$ref":"#/components/schemas/pre-encounterAdditionalPayerInformation","nullable":true},"group_number":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"plan_type":{"$ref":"#/components/schemas/pre-encountercoveragesv1NetworkType","nullable":true},"type":{"$ref":"#/components/schemas/pre-encountercoveragesv1InsuranceTypeCode","nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"insurance_card_image_locator":{"type":"string","nullable":true},"address":{"$ref":"#/components/schemas/pre-encounterAddress","nullable":true},"payer_plan_group_id":{"$ref":"#/components/schemas/pre-encounterPayerPlanGroupId","nullable":true,"description":"The ID of the Taiga configured payer plan group associated with this coverage"},"carve_outs":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageCarveOut"},"nullable":true}},"required":["member_id","payer_id","payer_name"]},"pre-encountercoveragesv1MutableCoverage":{"title":"pre-encountercoveragesv1MutableCoverage","type":"object","properties":{"status":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageStatus","description":"The status indiciating if the coverage is active or not."},"subscriber":{"$ref":"#/components/schemas/pre-encountercoveragesv1Subscriber","description":"The party who has signed-up for or 'owns' the contractual relationship to the policy or to whom the benefit of the policy for services rendered to them or their family is due."},"relationship":{"$ref":"#/components/schemas/pre-encounterRelationship","description":"The relationship of beneficiary (patient) to the subscriber. https://hl7.org/fhir/valueset-relationship.html"},"patient":{"$ref":"#/components/schemas/pre-encounterPatientId","description":"The canonical Taiga patient UUID corresponding with the patient who benefits from the insurance coverage"},"insurance_plan":{"$ref":"#/components/schemas/pre-encountercoveragesv1InsurancePlan"},"verified":{"type":"boolean","description":"A boolean indicating if the coverage has been verified by a user."},"eligibility_checks":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckMetadata"},"nullable":true,"description":"A list of eligibility check metadata that have been initiated on this coverage."},"latest_eligibility_check":{"$ref":"#/components/schemas/pre-encountercoveragesv1LatestEligibilityCheck","nullable":true,"description":"The latest eligibility check metadata that has been initiated on this coverage."},"benefits":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageBenefits","nullable":true,"description":"The eligibility of the patient for the coverage, manually verified by users."},"orcon":{"type":"boolean","nullable":true,"description":"ORCON (Originator Controlled) - When set to true, the Taiga system will hide this coverage from downstream integrations. Updates made in the Taiga UI will unset this flag. Defaults to false."},"auto_update_enabled":{"type":"boolean","nullable":true,"description":"Default to true. When set to true, the Taiga system will automatically update this coverage with the latest eligibility check benefits information. Auto update behavior is also set at the eligibilityConfig org level configuration."},"previous_appointment_copays":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true,"description":"A map of UniversalServiceIdentifier (MD_Visit, Treatment, Tests, Activity) to copay values in cents. This is used to track copay values for each service type to handle OOP max resets correctly."}},"required":["status","subscriber","relationship","patient","insurance_plan","verified"]},"pre-encountercoveragesv1Coverage":{"title":"pre-encountercoveragesv1Coverage","type":"object","description":"A coverage object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterCoverageId"}},"required":["id"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage"}]},"pre-encountercoveragesv1BenefitsRelatedEntity":{"title":"pre-encountercoveragesv1BenefitsRelatedEntity","type":"object","properties":{"entityIdentifier":{"type":"string","nullable":true},"entityType":{"type":"string","nullable":true},"entityName":{"type":"string","nullable":true},"contactInformation":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1RelatedEntityContact"},"nullable":true},"serviceTypeCodes":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceTypeCode"},"nullable":true}}},"pre-encountercoveragesv1RelatedEntityContact":{"title":"pre-encountercoveragesv1RelatedEntityContact","type":"object","properties":{"mode":{"type":"string","nullable":true},"value":{"type":"string","nullable":true}}},"pre-encountercoveragesv1InsuranceTypeCode":{"title":"pre-encountercoveragesv1InsuranceTypeCode","type":"string","enum":["01","12","13","14","15","16","17","18","19","41","42","43","47","AP","C1","CO","CP","D","DB","E","EP","FF","GP","HA","HB","HD","HG","HM","HN","HP","HS","IN","IP","LC","LD","LI","LT","M","MA","MB","MC","MD","ME","MF","MH","MI","MJ","MK","ML","MM","MN","MO","MP","MR","MT","MV","OA","OT","PE","PL","PP","PR","PS","QM","RP","SP","TF","U","WC","WU"],"description":"Code identifying the type of insurance policy within a specific insurance program (X12 008020 Element 1336)"},"pre-encountercoveragesv1ServiceTypeCode":{"title":"pre-encountercoveragesv1ServiceTypeCode","type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","30","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","AG","AH","AI","AJ","AK","AL","AM","AN","AO","AQ","AR","B1","B2","B3","BA","BB","BC","BD","BE","BF","BG","BH","BI","BJ","BK","BL","BM","BN","BP","BQ","BR","BS","BT","BU","BV","BW","BX","BY","BZ","C1","CA","CB","CC","CD","CE","CF","CG","CH","CI","CJ","CK","CL","CM","CN","CO","CP","CQ","DG","DM","DS","GF","GN","GY","IC","MH","NI","ON","PT","PU","RN","RT","TC","TN","UC"],"description":"Code identifying the type of service or benefit within a specific insurance policy (X12 008010 Element 1365)"},"pre-encountereligibilityChecksv1IndividualProvider":{"title":"pre-encountereligibilityChecksv1IndividualProvider","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"npi":{"type":"string"}},"required":["npi"]},"pre-encountereligibilityChecksv1OrganizationProvider":{"title":"pre-encountereligibilityChecksv1OrganizationProvider","type":"object","properties":{"organization_name":{"type":"string","nullable":true},"npi":{"type":"string"}},"required":["npi"]},"pre-encountereligibilityChecksv1Provider":{"title":"pre-encountereligibilityChecksv1Provider","oneOf":[{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1IndividualProvider"},{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1OrganizationProvider"}]},"pre-encountereligibilityChecksv1Encounter":{"title":"pre-encountereligibilityChecksv1Encounter","type":"object","properties":{"date_of_service":{"type":"string","format":"date","nullable":true,"description":"Defaults to the current date if not provided."},"service_type_codes":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Defaults to HealthBenefitPlanCoverage (30) if not provided.\n<Note>Not all payers support multiple service type codes, so it is recommended to only include a single code per request.</Note>"}}},"pre-encountereligibilityChecksv1EligibilityCheckStatus":{"title":"pre-encountereligibilityChecksv1EligibilityCheckStatus","type":"string","enum":["COMPLETED","FAILED","PENDING"],"description":"enum to represent the status of an eligibility checks"},"pre-encountereligibilityChecksv1EligibilityStatus":{"title":"pre-encountereligibilityChecksv1EligibilityStatus","type":"string","enum":["ACTIVE","INACTIVE","UNKNOWN"],"description":"enum to represent the status of a patient's coverage"},"pre-encountereligibilityChecksv1MedicareAdvantageRecommendationPayload":{"title":"pre-encountereligibilityChecksv1MedicareAdvantageRecommendationPayload","type":"object","description":"An object representing the payload for a Medicare Advantage recommendation.","properties":{"ma_benefit":{"nullable":true},"payer_id":{"type":"string","nullable":true},"payer_name":{"type":"string","nullable":true},"member_id":{"type":"string","nullable":true}}},"pre-encountereligibilityChecksv1MedicareAdvantageRecommendation":{"title":"pre-encountereligibilityChecksv1MedicareAdvantageRecommendation","type":"object","description":"An object representing a Medicare Advantage recommendation.","properties":{"payload":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1MedicareAdvantageRecommendationPayload"}},"required":["payload"]},"pre-encountereligibilityChecksv1CoordinationOfBenefitsRecommendation":{"title":"pre-encountereligibilityChecksv1CoordinationOfBenefitsRecommendation","type":"object","description":"An object representing a Coordination Of Benefits recommendation.","properties":{"payload":{}},"required":["payload"]},"pre-encountereligibilityChecksv1CopayEstimationRecommendationPayload":{"title":"pre-encountereligibilityChecksv1CopayEstimationRecommendationPayload","type":"object","description":"Payload for MD visit copay estimation from AI analysis","properties":{"structured_response":{"type":"integer","nullable":true,"description":"The estimated copay amount in cents"},"exposition":{"type":"string","description":"The AI's explanation of the copay estimate"}},"required":["exposition"]},"pre-encountereligibilityChecksv1CopayEstimationRecommendation":{"title":"pre-encountereligibilityChecksv1CopayEstimationRecommendation","type":"object","description":"An object representing a copay estimation recommendation from AI analysis","properties":{"payload":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CopayEstimationRecommendationPayload"}},"required":["payload"]},"pre-encountereligibilityChecksv1UserConfiguredPromptsResult":{"title":"pre-encountereligibilityChecksv1UserConfiguredPromptsResult","type":"object","description":"Individual result from a single user-configured prompt execution","properties":{"user_prompt_id":{"type":"string","description":"Reference to the user prompt in eligibility config"},"prompt_name":{"type":"string","description":"User-defined name for the prompt"},"structured_response":{"description":"The AI's structured answer (boolean, number, or string)"},"exposition":{"type":"string","description":"The AI's explanation of the answer"}},"required":["user_prompt_id","prompt_name","structured_response","exposition"]},"pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendationPayload":{"title":"pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendationPayload","type":"object","description":"Payload for user-configured prompt recommendations from AI analysis","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1UserConfiguredPromptsResult"},"description":"Array of results from all enabled user-configured prompts"}},"required":["results"]},"pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendation":{"title":"pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendation","type":"object","description":"An object representing a user-configured prompt recommendation from AI analysis","properties":{"payload":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendationPayload"}},"required":["payload"]},"pre-encountereligibilityChecksv1Vote":{"title":"pre-encountereligibilityChecksv1Vote","type":"object","description":"User feedback on a recommendation","properties":{"user_id":{"$ref":"#/components/schemas/pre-encounterUserId","description":"The user who voted"},"value":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1VoteValue","description":"The vote value"}},"required":["user_id","value"]},"pre-encountereligibilityChecksv1VoteValue":{"title":"pre-encountereligibilityChecksv1VoteValue","type":"string","enum":["UPVOTE","DOWNVOTE"],"description":"Possible vote values for recommendation quality"},"pre-encountereligibilityChecksv1EligibilityRecommendationPatientInfo":{"title":"pre-encountereligibilityChecksv1EligibilityRecommendationPatientInfo","type":"object","description":"An object representing patient information for an eligibility recommendation. \nThis is used to find recommendations. Each field helps us find the right corresponding\neligibility recommendation for the patient.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterPatientId","nullable":true},"mrn":{"type":"string","nullable":true},"organization_id":{"$ref":"#/components/schemas/pre-encounterOrganizationId","nullable":true},"last_name":{"type":"string","nullable":true},"first_name":{"type":"string","nullable":true},"date_of_birth":{"type":"string","format":"date","nullable":true},"member_id":{"type":"string","nullable":true}}},"pre-encountereligibilityChecksv1EligibilityRecommendationPayload":{"title":"pre-encountereligibilityChecksv1EligibilityRecommendationPayload","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["MEDICARE_ADVANTAGE"]}}},{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1MedicareAdvantageRecommendation"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["COORDINATION_OF_BENEFITS"]}}},{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CoordinationOfBenefitsRecommendation"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["COPAY_ESTIMATION"]}}},{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CopayEstimationRecommendation"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["USER_CONFIGURED_PROMPTS"]}}},{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1UserConfiguredPromptsRecommendation"}],"required":["type"]}]},"pre-encountereligibilityChecksv1EligibilityRecommendation":{"title":"pre-encountereligibilityChecksv1EligibilityRecommendation","type":"object","description":"An eligibility recommendation object that contains an EligibilityRecommendationType and a payload of data denoting the recommendation.","properties":{"id":{"type":"string","description":"The unique UUID identifier for an EligibilityRecommendation."},"eligibility_check_id":{"type":"string"},"recommendation":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendationPayload"},"coverage_id":{"$ref":"#/components/schemas/pre-encounterCoverageId","nullable":true},"patient":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendationPatientInfo"},"votes":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1Vote"},"nullable":true,"description":"Array of votes for this recommendation"}},"required":["id","eligibility_check_id","recommendation","patient"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"}]},"pre-encountereligibilityChecksv1PostEligibilityRecommendationRequest":{"title":"pre-encountereligibilityChecksv1PostEligibilityRecommendationRequest","type":"object","properties":{"eligibility_check_id":{"type":"string"},"patient":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendationPatientInfo"},"recommendation":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRecommendationPayload"}},"required":["eligibility_check_id","patient","recommendation"]},"pre-encountereligibilityChecksv1EligibilityCheckMetadata":{"title":"pre-encountereligibilityChecksv1EligibilityCheckMetadata","type":"object","properties":{"check_id":{"type":"string"},"service_code":{"$ref":"#/components/schemas/pre-encountercoveragesv1ServiceTypeCode"},"status":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckStatus"},"initiated_by":{"$ref":"#/components/schemas/pre-encounterUserId"},"initiated_at":{"type":"string","format":"date-time"}},"required":["check_id","service_code","status","initiated_by","initiated_at"]},"pre-encountereligibilityChecksv1EligibilityRequest":{"title":"pre-encountereligibilityChecksv1EligibilityRequest","type":"object","description":"An object representing the data for an eligibility request.","properties":{"submitter_transaction_identifier":{"type":"string","nullable":true,"description":"A unique identifier for the eligibility check within the batch. Taiga returns this identifier in the response for the\n/batch/{batch_id} polling endpoint so you can correlate benefit responses with the original eligibility check."},"payer_id":{"type":"string","description":"Supported payer ID values can be found [here](https://www.stedi.com/healthcare/network)."},"provider":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1Provider"},"subscriber":{"$ref":"#/components/schemas/pre-encountercoveragesv1MemberInfo","description":"The primary policyholder for the insurance plan or a dependent with a unique member ID. <Note>If a dependent has a unique member ID, include their information here and leave dependent undefined.</Note>"},"dependent":{"$ref":"#/components/schemas/pre-encountercoveragesv1MemberInfo","nullable":true,"description":"<Note>If a dependent has a unique member ID, include their information as subscriber and leave this field undefined.</Note>"},"encounter":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1Encounter","nullable":true},"get_existing_check_initiated_after":{"type":"string","format":"date-time","nullable":true,"description":"If not provided, this endpoint will run a fresh eligibility check. If provided, it will return an existing successful eligibility check if one exists that was initiated after provided date with the same parameters (Date of Service, Payer ID, Provider, Subscriber, Dependent, and Encounter)."},"source":{"type":"string","nullable":true},"portal_password":{"type":"string","nullable":true,"description":"The password that the provider uses to log in to the payer's portal. This is not commonly used."},"portal_username":{"type":"string","nullable":true,"description":"The username that the provider uses to log in to the payer's portal. This is not commonly used."}},"required":["payer_id","provider","subscriber"]},"pre-encountereligibilityChecksv1RequestCorrection":{"title":"pre-encountereligibilityChecksv1RequestCorrection","type":"object","properties":{"property":{"type":"string"},"request_value":{"type":"string"},"corrected_value":{"type":"string"}},"required":["property","request_value","corrected_value"]},"pre-encountereligibilityChecksv1ParsedResponse":{"title":"pre-encountereligibilityChecksv1ParsedResponse","type":"object","properties":{"eligibility_status":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityStatus"},"plan_metadata":{"$ref":"#/components/schemas/pre-encountercoveragesv1PlanMetadata","nullable":true},"benefits":{"$ref":"#/components/schemas/pre-encountercoveragesv1CoverageBenefits","nullable":true}},"required":["eligibility_status"]},"pre-encountereligibilityChecksv1EligibilityCheckErrorDetails":{"title":"pre-encountereligibilityChecksv1EligibilityCheckErrorDetails","type":"object","description":"This object is our fern representation of Stedi's EligbilityCheckError object from their API.","properties":{"field?":{"type":"string","nullable":true},"description?":{"type":"string","nullable":true},"location?":{"type":"string","nullable":true},"possibleResolutions?":{"type":"string","nullable":true},"code?":{"type":"string","nullable":true},"followupAction?":{"type":"string","nullable":true}}},"pre-encountereligibilityChecksv1EligibilityCheckErrorSource":{"title":"pre-encountereligibilityChecksv1EligibilityCheckErrorSource","type":"string","enum":["TAIGA","STEDI"],"description":"enum to represent the source of an error in an eligibility check"},"pre-encountereligibilityChecksv1EligibilityCheckError":{"title":"pre-encountereligibilityChecksv1EligibilityCheckError","type":"object","properties":{"source":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorSource"},"errorDetails":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"}},"required":["source","errorDetails"]},"pre-encountereligibilityChecksv1EligibilityCheck":{"title":"pre-encountereligibilityChecksv1EligibilityCheck","type":"object","properties":{"batch_id":{"type":"string","nullable":true},"errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckError"},"nullable":true},"request":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityRequest","nullable":true},"response":{},"parsed_response":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1ParsedResponse","nullable":true},"request_corrections":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1RequestCorrection"},"nullable":true}},"required":["response"]},"pre-encountereligibilityChecksv1EligibilityResponse":{"title":"pre-encountereligibilityChecksv1EligibilityResponse","$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheck","description":"An object representing the data for an eligibility response."},"pre-encountereligibilityChecksv1BatchEligibilityResponse":{"title":"pre-encountereligibilityChecksv1BatchEligibilityResponse","type":"object","description":"An object representing the data for a batch eligibility response.","properties":{"batch_id":{"type":"string"},"submitted_at":{"type":"string","format":"date-time"}},"required":["batch_id","submitted_at"]},"pre-encountereligibilityChecksv1EligibilityCheckPage":{"title":"pre-encountereligibilityChecksv1EligibilityCheckPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheck"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encountereligibilityChecksv1StediPayer":{"title":"pre-encountereligibilityChecksv1StediPayer","type":"object","properties":{"stedi_id":{"type":"string"},"display_name":{"type":"string"},"primary_payer_id":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"names":{"type":"array","items":{"type":"string"}},"transaction_support":{},"employer_identification_numbers":{"type":"array","items":{"type":"string"},"nullable":true},"payer_enrollment":{"nullable":true},"parent_payer_group":{"type":"string","nullable":true},"coverage_types":{"type":"array","items":{"type":"string"},"nullable":true}},"required":["stedi_id","display_name","primary_payer_id","aliases","names","transaction_support"]},"pre-encountereligibilityChecksv1StediPayerItem":{"title":"pre-encountereligibilityChecksv1StediPayerItem","type":"object","properties":{"score":{"type":"integer"},"payer":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1StediPayer"}},"required":["score","payer"]},"pre-encountereligibilityChecksv1PayerSearchResponse":{"title":"pre-encountereligibilityChecksv1PayerSearchResponse","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1StediPayerItem"}},"stats":{}},"required":["items","stats"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encountereligibilityChecksv1InsuranceDiscoveryProvider":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryProvider","type":"object","description":"Information about the provider requesting the insurance discovery check.","properties":{"npi":{"type":"string","description":"The provider's National Provider Identifier (NPI)."}},"required":["npi"]},"pre-encountereligibilityChecksv1InsuranceDiscoveryAddress":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryAddress","type":"object","description":"The patient's address. Providing a zip code improves the probability of finding matching coverage.","properties":{"address_1":{"type":"string","nullable":true},"address_2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true}}},"pre-encountereligibilityChecksv1InsuranceDiscoveryGender":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryGender","type":"string","enum":["M","F"]},"pre-encountereligibilityChecksv1InsuranceDiscoverySubscriber":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoverySubscriber","type":"object","description":"Demographic information for the patient when they are the health plan subscriber.\nProviding as much information as possible improves the probability of finding matching coverage.\nSSN and address (especially zip code) are strongly recommended.","properties":{"first_name":{"type":"string","description":"The subscriber's first name."},"last_name":{"type":"string","description":"The subscriber's last name."},"middle_name":{"type":"string","nullable":true,"description":"The subscriber's middle name or initial."},"date_of_birth":{"type":"string","nullable":true,"description":"The subscriber's date of birth, formatted as YYYYMMDD."},"ssn":{"type":"string","nullable":true,"description":"The subscriber's Social Security Number (SSN). Full SSN is preferred, but even the last 4 digits can help."},"gender":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryGender","nullable":true},"address":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryAddress","nullable":true}},"required":["first_name","last_name"]},"pre-encountereligibilityChecksv1InsuranceDiscoveryDependent":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryDependent","type":"object","description":"Demographic information for the patient when they are a dependent on a health plan.\nIf you only have the dependent's information, identify them in the subscriber object instead and leave this empty.","properties":{"first_name":{"type":"string","description":"The dependent's first name."},"last_name":{"type":"string","description":"The dependent's last name."},"middle_name":{"type":"string","nullable":true,"description":"The dependent's middle name or initial."},"date_of_birth":{"type":"string","nullable":true,"description":"The dependent's date of birth, formatted as YYYYMMDD."},"ssn":{"type":"string","nullable":true,"description":"The dependent's Social Security Number (SSN)."},"gender":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryGender","nullable":true},"address":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryAddress","nullable":true}},"required":["first_name","last_name"]},"pre-encountereligibilityChecksv1InsuranceDiscoveryEncounter":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryEncounter","type":"object","description":"The date range for the service. If not specified, Stedi defaults to the current date.\nYou can specify either a single date_of_service or a beginning_date_of_service and end_date_of_service.","properties":{"date_of_service":{"type":"string","nullable":true,"description":"A single date of service, formatted as YYYYMMDD."},"beginning_date_of_service":{"type":"string","nullable":true,"description":"The beginning date of service, formatted as YYYYMMDD."},"end_date_of_service":{"type":"string","nullable":true,"description":"The end date of service, formatted as YYYYMMDD."}}},"pre-encountereligibilityChecksv1InsuranceDiscoveryRequest":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryRequest","type":"object","description":"An object representing the data for an insurance discovery request.","properties":{"provider":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryProvider"},"subscriber":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoverySubscriber"},"dependent":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryDependent","nullable":true},"encounter":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryEncounter","nullable":true}},"required":["provider","subscriber"]},"pre-encountereligibilityChecksv1InsuranceDiscoveryStatus":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryStatus","type":"string","enum":["PENDING","COMPLETE"],"description":"The status of the insurance discovery check."},"pre-encountereligibilityChecksv1InsuranceDiscoveryResponse":{"title":"pre-encountereligibilityChecksv1InsuranceDiscoveryResponse","type":"object","description":"An object representing the data for an insurance discovery response.","properties":{"discovery_id":{"type":"string","nullable":true,"description":"A unique ID for this insurance discovery check."},"status":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1InsuranceDiscoveryStatus","nullable":true,"description":"The status of the discovery check. COMPLETE means items are populated. PENDING means the check is still in progress."},"items":{"type":"array","items":{},"nullable":true,"description":"An array of potential coverage matches for the patient. Only populated when status is COMPLETE.\nEach item is a raw passthrough of Stedi's deeply nested coverage-match object (provider, subscriber, \npayer, plan, and benefits details)."},"coverages_found":{"type":"integer","nullable":true,"description":"The number of potential coverage matches found. 0 if no matching coverage was found."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true}}},"pre-encountereligibilityChecksv1CobProvider":{"title":"pre-encountereligibilityChecksv1CobProvider","type":"object","description":"Information about the entity requesting the COB check.\nProvide either organization_name (for organizations) or first_name and last_name (for individuals), plus npi.","properties":{"organization_name":{"type":"string","nullable":true,"description":"The provider's business name. Required if the provider is an organization."},"first_name":{"type":"string","nullable":true,"description":"The provider's first name. Required if the provider is an individual."},"last_name":{"type":"string","nullable":true,"description":"The provider's last name. Required if the provider is an individual."},"npi":{"type":"string","description":"The provider's National Provider Identifier (NPI)."}},"required":["npi"]},"pre-encountereligibilityChecksv1CobSubscriber":{"title":"pre-encountereligibilityChecksv1CobSubscriber","type":"object","description":"The primary policyholder for the insurance plan or a dependent with a unique member ID.\nYou must provide at least one of member_id or ssn.","properties":{"first_name":{"type":"string","description":"The subscriber's first name."},"last_name":{"type":"string","description":"The subscriber's last name."},"date_of_birth":{"type":"string","description":"The subscriber's date of birth."},"member_id":{"type":"string","nullable":true,"description":"The member ID for the subscriber's insurance policy."},"ssn":{"type":"string","nullable":true,"description":"The subscriber's Social Security Number (SSN)."}},"required":["first_name","last_name","date_of_birth"]},"pre-encountereligibilityChecksv1CobDependent":{"title":"pre-encountereligibilityChecksv1CobDependent","type":"object","description":"A dependent for which you want to check coordination of benefits.\nIf the dependent has their own member ID, include their information in the subscriber object instead.","properties":{"first_name":{"type":"string","description":"The dependent's first name."},"last_name":{"type":"string","description":"The dependent's last name."},"date_of_birth":{"type":"string","description":"The dependent's date of birth."},"ssn":{"type":"string","nullable":true,"description":"The dependent's Social Security Number (SSN)."}},"required":["first_name","last_name","date_of_birth"]},"pre-encountereligibilityChecksv1CobEncounter":{"title":"pre-encountereligibilityChecksv1CobEncounter","type":"object","description":"Information about the encounter for the COB check.\nService dates must be within the past 2 years and must not be in the future.","properties":{"date_of_service":{"type":"string","nullable":true,"description":"The date of service. Defaults to the current date if not specified."},"beginning_date_of_service":{"type":"string","nullable":true,"description":"The beginning date of service. If included, end_date_of_service is also required."},"end_date_of_service":{"type":"string","nullable":true,"description":"The end date of service. If included, beginning_date_of_service is also required."}}},"pre-encountereligibilityChecksv1CoordinationOfBenefitsRequest":{"title":"pre-encountereligibilityChecksv1CoordinationOfBenefitsRequest","type":"object","description":"An object representing the data for a coordination of benefits request.","properties":{"trading_partner_service_id":{"type":"string","description":"The Payer ID. Each check must be for a participating health plan for which the patient has coverage.\nMedicare and Medicare Advantage plans are not supported."},"provider":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobProvider"},"subscriber":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobSubscriber"},"dependent":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobDependent","nullable":true},"encounter":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobEncounter"}},"required":["trading_partner_service_id","provider","subscriber","encounter"]},"pre-encountereligibilityChecksv1CobAddress":{"title":"pre-encountereligibilityChecksv1CobAddress","type":"object","description":"A patient's address as returned in a coordination of benefits response.","properties":{"address_1":{"type":"string","nullable":true},"address_2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true,"description":"The US state or Canadian province code. Kept as a string rather than an enum because,\nper Stedi, payers may sometimes return non-compliant values."},"postal_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"country_sub_division_code":{"type":"string","nullable":true}}},"pre-encountereligibilityChecksv1CobResponseProvider":{"title":"pre-encountereligibilityChecksv1CobResponseProvider","type":"object","description":"Information about the entity that submitted the original COB request.","properties":{"provider_name":{"type":"string","nullable":true,"description":"The provider's last name. Applies to providers that are an individual."},"provider_first_name":{"type":"string","nullable":true,"description":"The provider's first name. Applies to providers that are an individual."},"provider_org_name":{"type":"string","nullable":true,"description":"The provider's organization name."},"npi":{"type":"string","nullable":true,"description":"The provider's National Provider Identifier (NPI)."},"aaa_errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true,"description":"AAA errors specifying reasons for rejection and recommended follow-up actions."}}},"pre-encountereligibilityChecksv1CobResponseSubscriber":{"title":"pre-encountereligibilityChecksv1CobResponseSubscriber","type":"object","description":"Information about the primary policyholder for the insurance plan listed in the COB request.","properties":{"member_id":{"type":"string","nullable":true,"description":"The member ID for the subscriber's insurance policy."},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"middle_name":{"type":"string","nullable":true},"gender":{"type":"string","nullable":true,"description":"The subscriber's gender. Typically `F` - Female, `M` - Male, or `U` - Unknown."},"date_of_birth":{"type":"string","nullable":true},"ssn":{"type":"string","nullable":true},"group_number":{"type":"string","nullable":true,"description":"The group number associated with the subscriber's insurance policy."},"birth_sequence_number":{"type":"string","nullable":true,"description":"Birth order when there are multiple births associated with the provided birth date."},"address":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobAddress","nullable":true},"aaa_errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true,"description":"AAA errors specifying reasons for rejection and recommended follow-up actions."}}},"pre-encountereligibilityChecksv1CobResponseDependent":{"title":"pre-encountereligibilityChecksv1CobResponseDependent","type":"object","description":"Information about the dependent listed in the original COB request.","properties":{"member_id":{"type":"string","nullable":true,"description":"The member ID for the subscriber's insurance policy."},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"middle_name":{"type":"string","nullable":true},"gender":{"type":"string","nullable":true,"description":"The dependent's gender. Typically `F` - Female, `M` - Male, or `U` - Unknown."},"date_of_birth":{"type":"string","nullable":true},"ssn":{"type":"string","nullable":true},"group_number":{"type":"string","nullable":true,"description":"The group number associated with the subscriber's insurance policy."},"relation_to_subscriber":{"type":"string","nullable":true,"description":"The name of the relation_to_subscriber_code. For example, `Child` when the code is `19`."},"relation_to_subscriber_code":{"type":"string","nullable":true,"description":"The dependent's relationship to the subscriber. For example `01` - Spouse, `19` - Child,\n`20` - Employee, `21` - Unknown, `39` - Organ Donor, `40` - Cadaver Donor,\n`53` - Life Partner, or `G8` - Other Relationship."},"birth_sequence_number":{"type":"string","nullable":true,"description":"Birth order when there are multiple births associated with the provided birth date."},"address":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobAddress","nullable":true},"aaa_errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true,"description":"AAA errors specifying reasons for rejection and recommended follow-up actions."}}},"pre-encountereligibilityChecksv1CobPayer":{"title":"pre-encountereligibilityChecksv1CobPayer","type":"object","description":"Information about the payer listed in the COB request.","properties":{"name":{"type":"string","nullable":true,"description":"The payer's name, such as `CIGNA`."},"payer_identification":{"type":"string","nullable":true,"description":"The trading_partner_service_id (Payer ID) used to identify the payer in the COB request."}}},"pre-encountereligibilityChecksv1CobPlanDateInformation":{"title":"pre-encountereligibilityChecksv1CobPlanDateInformation","type":"object","description":"Dates associated with the patient's health plan coverage.","properties":{"plan_begin":{"type":"string","nullable":true,"description":"When the patient's health plan coverage begins."},"plan_end":{"type":"string","nullable":true,"description":"When the patient's health plan coverage ends."}}},"pre-encountereligibilityChecksv1Cob":{"title":"pre-encountereligibilityChecksv1Cob","type":"object","description":"An overview of the COB response. Indicates whether there is a coverage overlap, whether that\noverlap creates a coordination of benefits instance, and whether Stedi was able to identify\npayer primacy (when a COB instance exists).","properties":{"classification":{"type":"string","nullable":true,"description":"The classification for the discovered benefits. One of: `CobInstanceExistsPrimacyDetermined`,\n`CobInstanceExistsPrimacyUndetermined`, `CoverageOverlapNoBenefitOverlap`,\n`CoverageOverlapExistsNotSubjectToCob`, or `MemberFoundNoCob`."},"instance_exists":{"type":"boolean","nullable":true,"description":"If true, the COB response contains at least one coordination of benefits instance."},"primacy_determined":{"type":"boolean","nullable":true,"description":"If true, Stedi was able to determine the primary payer for the patient."},"coverage_overlap":{"type":"boolean","nullable":true,"description":"If true, the patient has active coverage with two or more payers during the service date."},"benefit_overlap":{"type":"boolean","nullable":true,"description":"If true, the patient has active coverage from two or more payers for the same service type code."}}},"pre-encountereligibilityChecksv1CoordinationOfBenefitsResponse":{"title":"pre-encountereligibilityChecksv1CoordinationOfBenefitsResponse","type":"object","description":"An object representing the data for a coordination of benefits response.","properties":{"provider":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobResponseProvider","nullable":true,"description":"Information about the provider who submitted the COB request."},"subscriber":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobResponseSubscriber","nullable":true,"description":"Information about the primary policyholder."},"dependent":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobResponseDependent","nullable":true,"description":"Information about the dependent listed in the COB request."},"payer":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobPayer","nullable":true,"description":"Information about the payer listed in the COB request."},"plan_date_information":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1CobPlanDateInformation","nullable":true,"description":"Date information for the plan."},"benefits_information":{"type":"array","items":{},"nullable":true,"description":"Raw passthrough of Stedi's benefits information (coverage, service types, related entities, etc.)."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1EligibilityCheckErrorDetails"},"nullable":true},"coordination_of_benefits":{"$ref":"#/components/schemas/pre-encountereligibilityChecksv1Cob","nullable":true,"description":"Overview of the COB response including whether coverage overlap exists and payer primacy."}}},"pre-encounterimagesv1ImageId":{"title":"pre-encounterimagesv1ImageId","type":"string","description":"The unique identifier for an Image"},"pre-encounterimagesv1ImageSortField":{"title":"pre-encounterimagesv1ImageSortField","type":"string","enum":["updatedAt","fileName","displayName","fileType","status"]},"pre-encounterimagesv1ImageStatus":{"title":"pre-encounterimagesv1ImageStatus","type":"string","enum":["PENDING","UPLOADED","FAILED"]},"pre-encounterimagesv1CoverageImageSide":{"title":"pre-encounterimagesv1CoverageImageSide","type":"string","enum":["FRONT","BACK"]},"pre-encounterimagesv1CoverageAssociation":{"title":"pre-encounterimagesv1CoverageAssociation","type":"object","description":"An association to a Coverage.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterCoverageId"},"side":{"$ref":"#/components/schemas/pre-encounterimagesv1CoverageImageSide"}},"required":["id","side"]},"pre-encounterimagesv1PatientAssociation":{"title":"pre-encounterimagesv1PatientAssociation","type":"object","description":"An association to a Patient.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterPatientId"},"notes":{"type":"string","nullable":true}},"required":["id"]},"pre-encounterimagesv1MutableImage":{"title":"pre-encounterimagesv1MutableImage","type":"object","description":"An object representing an Image.","properties":{"file_name":{"type":"string"},"display_name":{"type":"string"},"file_type":{"type":"string"},"status":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageStatus"},"coverage":{"$ref":"#/components/schemas/pre-encounterimagesv1CoverageAssociation","nullable":true},"patient":{"$ref":"#/components/schemas/pre-encounterimagesv1PatientAssociation","nullable":true}},"required":["file_name","display_name","file_type","status"]},"pre-encounterimagesv1Image":{"title":"pre-encounterimagesv1Image","type":"object","description":"An Image object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterimagesv1ImageId"},"signed_url":{"type":"string","description":"A signed URL to the image.  This url can be used to upload an image to GCP storage or to read the image contents."}},"required":["id","signed_url"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounterimagesv1MutableImage"}]},"pre-encounterlistsv1SortFieldString":{"title":"pre-encounterlistsv1SortFieldString","type":"string","description":"The field to order by.  Valid values are either keys on the list item object or a special ordering \"similar_name:<search_string>\" (Ex: similar_name:John).  Similar name ordering uses trigrams to fuzzy match patient name to the search criteria.  Path names are camelCase."},"pre-encounterlistsv1PatientListItem":{"title":"pre-encounterlistsv1PatientListItem","type":"object","properties":{"patient":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"},"primary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage","nullable":true},"secondary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage","nullable":true},"tertiary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage","nullable":true},"next_appointment":{"$ref":"#/components/schemas/pre-encounterappointmentsv1MutableAppointment","nullable":true},"primary_mrn":{"type":"string","nullable":true},"alternative_mrns":{"type":"array","items":{"type":"string"}}},"required":["patient","alternative_mrns"]},"pre-encounterlistsv1PatientListPage":{"title":"pre-encounterlistsv1PatientListPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterlistsv1PatientListItem"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encounterlistsv1AppointmentListItem":{"title":"pre-encounterlistsv1AppointmentListItem","type":"object","properties":{"appointment":{"$ref":"#/components/schemas/pre-encounterappointmentsv1Appointment"},"patient":{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatientWithMrn"},"primary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage","nullable":true},"secondary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1MutableCoverage","nullable":true},"primary_service_type":{"$ref":"#/components/schemas/pre-encounterappointmentsv1UniversalServiceIdentifier","nullable":true}},"required":["appointment","patient"]},"pre-encounterlistsv1AppointmentListPage":{"title":"pre-encounterlistsv1AppointmentListPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterlistsv1AppointmentListItem"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encounternotesv1MutableNote":{"title":"pre-encounternotesv1MutableNote","type":"object","description":"An object representing a Note.","properties":{"value":{"type":"string"},"author_email":{"type":"string","nullable":true},"author_name":{"type":"string","nullable":true}},"required":["value"]},"pre-encounternotesv1Note":{"title":"pre-encounternotesv1Note","type":"object","description":"A Note object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterNoteId"},"created_at":{"type":"string","format":"date-time"}},"required":["id","created_at"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounternotesv1MutableNote"}]},"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId":{"title":"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId","type":"string","format":"uuid","description":"The unique identifier for an OrganizationExternalProvider in the database"},"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderSortField":{"title":"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderSortField","type":"string","description":"The field to order by. Valid values are keys on the provider object (e.g., name.family, npi, updatedAt, createdAt) or a special ordering \"similar_name:<search_string>\" (Ex: similar_name:John). Similar name ordering uses trigrams to fuzzy match provider name to the search criteria."},"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderType":{"title":"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderType","type":"string","enum":["REFERRING","PRIMARY","TREATING"]},"pre-encounterorganizationExternalProvidersv1LicenseType":{"title":"pre-encounterorganizationExternalProvidersv1LicenseType","type":"string","enum":["MD","NP","PA","LMFT","LCPC","LCSW","PMHNP","FNP","LPCC","DO","RD","SLP","APRN","LPC","PHD","PSYD","LMSW","LMHC","OTHER_MASTERS","BCBA","UNKNOWN","RPH","PHT","LAC","LMT","DC","ND","MA","PT","IBCLC","RN","DPT","LCMHC","CNM","RNFA","ACSW","APC","BCABA","BHA","OD","DPM","DA","DDS","DEH","DMD","PTA","LCADC","LCAT","LCMHCS","LCMHCA","LCSWA","LICSW","LISW","LMFTS","LMFTA","LPCI","LSCSW","MHCA","MHT","RBT","RCSWI","RHMCI","LPN","OTD","OMS","MFTA","APCC","DNP","AGNPBC","ANP","FNPPP","LCSWR","ALC","RMFTI","LAMFT","LPCA","LSWI","CSW","CPC","LGMFT","LLPC","PLPC","PLMFT","LMHCA","CIT","CT","MFT","LSW","PLMHP","PCMSW","LMHP","OTR/L","RPA","COTA","CRNP","SLP-CF","NP-C","PA-C","AMFT","CDN","CGC","CNS","MDPHD","AuD","ATC","LAT"]},"pre-encounterorganizationExternalProvidersv1MutableOrganizationExternalProvider":{"title":"pre-encounterorganizationExternalProvidersv1MutableOrganizationExternalProvider","type":"object","description":"An object representing an organization-level external provider.","properties":{"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"types":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderType"}},"npi":{"type":"string","nullable":true},"tax_id":{"type":"string","nullable":true},"taxonomy_code":{"type":"string","nullable":true},"phone_number":{"type":"string","nullable":true},"other_phone_numbers":{"type":"array","items":{"type":"string"},"nullable":true},"fax_number":{"type":"string","nullable":true},"other_fax_numbers":{"type":"array","items":{"type":"string"},"nullable":true},"emails":{"type":"array","items":{"type":"string"},"nullable":true},"license_type":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1LicenseType","nullable":true},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterAddress"},"nullable":true}},"required":["name","types"]},"pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider":{"title":"pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider","type":"object","description":"An OrganizationExternalProvider object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderId"}},"required":["id"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1MutableOrganizationExternalProvider"}]},"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderPage":{"title":"pre-encounterorganizationExternalProvidersv1OrganizationExternalProviderPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterorganizationExternalProvidersv1OrganizationExternalProvider"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encounterpatientMergesv1MutablePatientMerge":{"title":"pre-encounterpatientMergesv1MutablePatientMerge","type":"object","description":"An object representing a patient merge mapping.","properties":{"alternative_patient_mrn":{"type":"string","description":"The MRN of the patient that was merged."},"primary_patient_mrn":{"type":"string","description":"The MRN of the patient that is getting a patient merged into them."}},"required":["alternative_patient_mrn","primary_patient_mrn"]},"pre-encounterpatientMergesv1PatientMerge":{"title":"pre-encounterpatientMergesv1PatientMerge","type":"object","description":"A PatientMerge object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterPatientMergeId"}},"required":["id"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounterpatientMergesv1MutablePatientMerge"}]},"pre-encounterpatientMergesv1NoneStatus":{"title":"pre-encounterpatientMergesv1NoneStatus","type":"object","description":"Patient is not involved in any merges.","properties":{}},"pre-encounterpatientMergesv1AlternativeStatus":{"title":"pre-encounterpatientMergesv1AlternativeStatus","type":"object","description":"Patient has been merged into another patient.","properties":{"primary_mrn":{"type":"string"}},"required":["primary_mrn"]},"pre-encounterpatientMergesv1PrimaryStatus":{"title":"pre-encounterpatientMergesv1PrimaryStatus","type":"object","description":"Patient has other patients merged into them.","properties":{"alternative_mrns":{"type":"array","items":{"type":"string"}}},"required":["alternative_mrns"]},"pre-encounterpatientMergesv1PatientMergeStatus":{"title":"pre-encounterpatientMergesv1PatientMergeStatus","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"merge_status":{"type":"string","enum":["none"]}}},{"$ref":"#/components/schemas/pre-encounterpatientMergesv1NoneStatus"}],"required":["merge_status"]},{"type":"object","allOf":[{"type":"object","properties":{"merge_status":{"type":"string","enum":["alternative"]}}},{"$ref":"#/components/schemas/pre-encounterpatientMergesv1AlternativeStatus"}],"required":["merge_status"]},{"type":"object","allOf":[{"type":"object","properties":{"merge_status":{"type":"string","enum":["primary"]}}},{"$ref":"#/components/schemas/pre-encounterpatientMergesv1PrimaryStatus"}],"required":["merge_status"]}],"description":"The merge status of a patient."},"pre-encounterpatientsv1PatientCoverageSnapshot":{"title":"pre-encounterpatientsv1PatientCoverageSnapshot","type":"object","properties":{"patient":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"},"primary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage","nullable":true},"secondary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage","nullable":true},"tertiary_coverage":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage","nullable":true},"coverages_for_related_causes":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountercoveragesv1Coverage"}}},"required":["patient","coverages_for_related_causes"]},"pre-encounterpatientsv1PatientSortField":{"title":"pre-encounterpatientsv1PatientSortField","type":"string","description":"The field to order by.  Valid values are either keys on the patient object or a special ordering \"similar_name:<search_string>\" (Ex: similar_name:John).  Similar name ordering uses trigrams to fuzzy match patient names to the search criteria."},"pre-encounterpatientsv1MaritalStatus":{"title":"pre-encounterpatientsv1MaritalStatus","type":"string","enum":["ANNULLED","DIVORCED","INTERLOCUTORY","SEPARATED","MARRIED","COMMON_LAW","POLYGAMOUS","DOMESTIC_PARTNER","UNMARRIED","NEVER_MARRIED","WIDOWED","UNKNOWN"]},"pre-encounterpatientsv1ExternalProvenance":{"title":"pre-encounterpatientsv1ExternalProvenance","type":"object","description":"Information about the upstream system that owns this patient data.","properties":{"external_id":{"type":"string"},"system_name":{"type":"string"}},"required":["external_id","system_name"]},"pre-encounterpatientsv1Contact":{"title":"pre-encounterpatientsv1Contact","type":"object","properties":{"relationship":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterRelationship"}},"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"telecoms":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterContactPoint"}},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterAddress"}},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"hipaa_authorization":{"type":"boolean","nullable":true}},"required":["relationship","name","telecoms","addresses"]},"pre-encounterpatientsv1FilingOrder":{"title":"pre-encounterpatientsv1FilingOrder","type":"object","description":"The patient's active coverages, in order of primary, secondary, etc.","properties":{"coverages":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterCoverageId"}}},"required":["coverages"]},"pre-encounterpatientsv1CoveragesForRelatedCauses":{"title":"pre-encounterpatientsv1CoveragesForRelatedCauses","type":"object","description":"Additional coverages for the patient applicable to related causes such as Auto or Workers Comp","properties":{"coverages":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterCoverageId"}}},"required":["coverages"]},"pre-encounterpatientsv1DoNotInvoiceReason":{"title":"pre-encounterpatientsv1DoNotInvoiceReason","type":"string","enum":["BANKRUPTCY","DECEASED","HARDSHIP","OTHER","COLLECTIONS","BAD_ADDRESS","PROFESSIONAL_COURTESY"]},"pre-encounterpatientsv1ElectronicCommunicationConsent":{"title":"pre-encounterpatientsv1ElectronicCommunicationConsent","type":"object","description":"Granular consent for electronic communication channels.","properties":{"text_communication_consent":{"type":"boolean","nullable":true,"description":"Consent for text/SMS communication."},"email_communication_consent":{"type":"boolean","nullable":true,"description":"Consent for email communication."}}},"pre-encounterpatientsv1AdvancedDirective":{"title":"pre-encounterpatientsv1AdvancedDirective","type":"string","enum":["NONE","DURABLE_POWER_OF_ATTORNEY","LIVING_WILL","DO_NOT_RESUSCITATE","STANDARD_PRECAUTIONS","FALL_RISK"]},"pre-encounterpatientsv1MutablePatient":{"title":"pre-encounterpatientsv1MutablePatient","type":"object","description":"An object representing patient demographics information.","properties":{"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"other_names":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterHumanName"},"description":"Other names for the patient."},"other_identifiers":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterExternalIdentifier"},"nullable":true,"description":"Other identifiers for the patient."},"gender":{"$ref":"#/components/schemas/pre-encounterGender","nullable":true},"birth_date":{"type":"string","format":"date"},"social_security_number":{"type":"string","nullable":true},"biological_sex":{"$ref":"#/components/schemas/pre-encounterSex","description":"The biological sex of the patient. This corresponds to the HL7 AdministrativeGender https://www.hl7.org/fhir/valueset-administrative-gender.html"},"sexual_orientation":{"$ref":"#/components/schemas/pre-encounterSexualOrientation","nullable":true,"description":"The sexual orientation of the patient."},"pronouns":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The pronouns of the patient."},"race":{"$ref":"#/components/schemas/pre-encounterRace","nullable":true},"ethnicity":{"$ref":"#/components/schemas/pre-encounterEthnicity","nullable":true},"disability_status":{"$ref":"#/components/schemas/pre-encounterDisabilityStatus","nullable":true},"marital_status":{"$ref":"#/components/schemas/pre-encounterpatientsv1MaritalStatus","nullable":true},"deceased":{"type":"string","format":"date-time","nullable":true,"description":"Time of death for the patient.  Leave unset if the patient is not deceased."},"multiple_birth":{"type":"integer","nullable":true,"description":"The number of siblings the patient was born with.  Leave unset if the patient was not part of a multiple birth."},"primary_address":{"$ref":"#/components/schemas/pre-encounterAddress","description":"The primary address for the patient."},"other_addresses":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterAddress"},"description":"Other addresses for the patient."},"primary_telecom":{"$ref":"#/components/schemas/pre-encounterContactPoint","nullable":true,"description":"The primary phone number for the patient."},"other_telecoms":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterContactPoint"},"description":"Other phone numbers for the patient."},"email":{"type":"string","nullable":true},"electronic_communication_opt_in":{"type":"boolean","nullable":true,"description":"Use electronic_communication_consent for granular channel-level consent. This field is kept in sync automatically but should not be used for new integrations.","x-fern-availability":"deprecated"},"electronic_communication_consent":{"$ref":"#/components/schemas/pre-encounterpatientsv1ElectronicCommunicationConsent","nullable":true,"description":"Granular consent for electronic communication channels."},"photo":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"external_provenance":{"$ref":"#/components/schemas/pre-encounterpatientsv1ExternalProvenance","nullable":true,"description":"Information about the upstream system that owns this patient data.  Leave unset if Taiga owns patient data."},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Contact"},"description":"Contacts for the patient."},"general_practitioners":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterExternalProvider"}},"filing_order":{"$ref":"#/components/schemas/pre-encounterpatientsv1FilingOrder"},"coverages_for_related_causes":{"$ref":"#/components/schemas/pre-encounterpatientsv1CoveragesForRelatedCauses","nullable":true},"non_insurance_payers":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterCanonicalNonInsurancePayerId"},"nullable":true,"x-fern-availability":"deprecated"},"non_insurance_payer_associations":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterCanonicalNonInsurancePayerAssociation"},"nullable":true},"guarantor":{"$ref":"#/components/schemas/pre-encounterpatientsv1Guarantor","nullable":true},"self_pay":{"type":"boolean","nullable":true},"authorizations":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Authorization"},"nullable":true},"referrals":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Referral"},"nullable":true},"primary_service_facility_id":{"type":"string","nullable":true},"service_facilities":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterPatientServiceFacility"},"nullable":true,"description":"Associated service facilities for this patient."},"do_not_invoice_reason":{"$ref":"#/components/schemas/pre-encounterpatientsv1DoNotInvoiceReason","nullable":true,"description":"If this value is defined, the customer will not be invoiced."},"note_ids":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterNoteId"},"nullable":true},"tag_ids":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterTagId"},"nullable":true},"origination_detail":{"$ref":"#/components/schemas/pre-encounterpatientsv1OriginationDetail","nullable":true,"description":"Information about the patient source, if applicable."},"inferred_patient_metadata":{"$ref":"#/components/schemas/pre-encounterpatientsv1InferredPatientMetadata","nullable":true,"description":"Metadata for the patient used for patient inference from encounters."},"orcon":{"type":"boolean","nullable":true,"description":"ORCON (Originator Controlled) - When set to true, the Taiga system will hide this patient from downstream integrations. Updates made in the Taiga UI will unset this flag. Defaults to false."},"advanced_directives":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1AdvancedDirective"},"nullable":true},"hipaa_code":{"type":"string","nullable":true}},"required":["name","other_names","birth_date","biological_sex","primary_address","other_addresses","other_telecoms","contacts","general_practitioners","filing_order"]},"pre-encounterpatientsv1MutablePatientWithMrn":{"title":"pre-encounterpatientsv1MutablePatientWithMrn","type":"object","properties":{"mrn":{"type":"string","description":"The medical record number for the patient."}},"required":["mrn"],"allOf":[{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatient"}]},"pre-encounterpatientsv1InferredPatientMetadata":{"title":"pre-encounterpatientsv1InferredPatientMetadata","type":"object","properties":{"inferred_encounter_id":{"type":"string"},"inferred_encounter_latest_date_of_service":{"type":"string","format":"date"}},"required":["inferred_encounter_id","inferred_encounter_latest_date_of_service"]},"pre-encounterpatientsv1Patient":{"title":"pre-encounterpatientsv1Patient","type":"object","description":"A patient object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterPatientId","description":"The unique UUID identifier for a Patient.  Patient ID is used in machine contexts."},"mrn":{"type":"string","description":"The medical record number for the patient.  Human-friendly Taiga generated MRNs are of the form \"YYMMDDXXXX\", where \"YYMMDD\" is the date of patient creation and \"XXXX\" is a zero-padded incrementing integer."}},"required":["id","mrn"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encounterpatientsv1MutablePatient"}]},"pre-encounterpatientsv1PatientPage":{"title":"pre-encounterpatientsv1PatientPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1Patient"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"pre-encounterpatientsv1AuthorizationUnit":{"title":"pre-encounterpatientsv1AuthorizationUnit","type":"string","enum":["VISIT","UNIT"]},"pre-encounterpatientsv1Authorization":{"title":"pre-encounterpatientsv1Authorization","type":"object","properties":{"payer_id":{"$ref":"#/components/schemas/pre-encounterPayerId"},"payer_name":{"type":"string"},"additional_payer_information":{"$ref":"#/components/schemas/pre-encounterAdditionalPayerInformation","nullable":true},"authorization_number":{"type":"string"},"cpt_code":{"type":"string"},"apply_for_all_cpt_codes":{"type":"boolean","nullable":true,"description":"If true, then the authorization will apply for all claims for the payer that fall in range the `period`."},"no_prior_authorization_required":{"type":"boolean","nullable":true,"description":"If true, indicates that prior authorization is not required and prior authorization number will not be set on the claim for this authorization."},"units":{"$ref":"#/components/schemas/pre-encounterpatientsv1AuthorizationUnit"},"quantity":{"type":"integer","nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"notes":{"type":"string","nullable":true},"billing_provider_npi":{"type":"string","nullable":true,"description":"The NPI of the billing provider for which this authorization applies."},"service_facility":{"$ref":"#/components/schemas/pre-encounterPatientServiceFacility","nullable":true,"description":"When set, specifies the service facility for which this authorization applies."},"dx_codes":{"type":"array","items":{"type":"string"},"nullable":true,"description":"When set, the authorization will only apply when at least one of these diagnosis codes is found on the claim/service lines (in addition to other criteria)."}},"required":["payer_id","payer_name","authorization_number","cpt_code","units"]},"pre-encounterpatientsv1ReferralUnit":{"title":"pre-encounterpatientsv1ReferralUnit","type":"string","enum":["VISIT","UNIT"]},"pre-encounterpatientsv1Referral":{"title":"pre-encounterpatientsv1Referral","type":"object","properties":{"provider":{"$ref":"#/components/schemas/pre-encounterExternalProvider"},"referral_number":{"type":"string"},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"notes":{"type":"string","nullable":true},"serviceFacility":{"$ref":"#/components/schemas/pre-encounterPatientServiceFacility","nullable":true},"units":{"$ref":"#/components/schemas/pre-encounterpatientsv1ReferralUnit","nullable":true},"quantity":{"type":"integer","nullable":true},"cptCodes":{"type":"array","items":{"type":"string"},"nullable":true},"applyForAllCptCodes":{"type":"boolean","nullable":true}},"required":["provider","referral_number"]},"pre-encounterpatientsv1Guarantor":{"title":"pre-encounterpatientsv1Guarantor","type":"object","properties":{"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"telecom":{"$ref":"#/components/schemas/pre-encounterContactPoint","nullable":true},"email":{"type":"string","nullable":true},"birth_date":{"type":"string","format":"date","nullable":true},"address":{"$ref":"#/components/schemas/pre-encounterAddress"}},"required":["name","address"]},"pre-encounterpatientsv1ReferralSource":{"title":"pre-encounterpatientsv1ReferralSource","type":"string","enum":["HOSPITAL","REFERRING_MD","SELF","OTHER"]},"pre-encounterpatientsv1ReferralType":{"title":"pre-encounterpatientsv1ReferralType","type":"string","enum":["DIRECTED","ROTATION","OVERNIGHT"]},"pre-encounterpatientsv1SpecializationCategory":{"title":"pre-encounterpatientsv1SpecializationCategory","type":"string","enum":["BEHAVIORAL_HEALTH_THERAPY","CARDIOLOGY","DERMATOLOGY","ENDOCRINOLOGY","ENT","GASTROENTEROLOGY","GENERAL_SURGERY","GENETICS","HEMATOLOGY","INFECTIOUS_DISEASE","NEUROLOGY","NUTRITIONAL_THERAPY","OB_GYN","ONCOLOGY","OPHTHALMOLOGY","ORTHOPEDICS","PAIN_MANAGEMENT","PEDIATRICS","PHYSICAL_THERAPY","PODIATRY","PRIMARY_CARE","PSYCHIATRY","PULMONOLOGY","RADIOLOGY","RHEUMATOLOGY","SCREENING","UROLOGY","OTHER"]},"pre-encounterpatientsv1OriginationDetail":{"title":"pre-encounterpatientsv1OriginationDetail","type":"object","properties":{"referral_source":{"$ref":"#/components/schemas/pre-encounterpatientsv1ReferralSource"},"referring_provider":{"$ref":"#/components/schemas/pre-encounterExternalProvider","nullable":true},"specialization_categories":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterpatientsv1SpecializationCategory"},"nullable":true},"referral_type":{"$ref":"#/components/schemas/pre-encounterpatientsv1ReferralType","nullable":true}},"required":["referral_source"]},"pre-encountertagsv1MutableTag":{"title":"pre-encountertagsv1MutableTag","type":"object","description":"An object representing a Tag.","properties":{"value":{"type":"string"},"description":{"type":"string","nullable":true},"alert":{"type":"boolean","nullable":true}},"required":["value"]},"pre-encountertagsv1Tag":{"title":"pre-encountertagsv1Tag","type":"object","description":"A Tag object with immutable server-owned properties.","properties":{"id":{"$ref":"#/components/schemas/pre-encounterTagId"}},"required":["id"],"allOf":[{"$ref":"#/components/schemas/pre-encounterBaseModel"},{"$ref":"#/components/schemas/pre-encountertagsv1MutableTag"}]},"pre-encountertagsv1TagPage":{"title":"pre-encountertagsv1TagPage","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/pre-encountertagsv1Tag"}}},"required":["items"],"allOf":[{"$ref":"#/components/schemas/pre-encounterResourcePage"}]},"Claim":{"title":"Claim","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId"},"status":{"$ref":"#/components/schemas/ClaimStatus"},"clearinghouse":{"type":"string","nullable":true},"clearinghouse_claim_id":{"type":"string","nullable":true},"payer_claim_id":{"type":"string","nullable":true},"clia_number":{"type":"string","nullable":true},"service_lines":{"type":"array","items":{"$ref":"#/components/schemas/service-linesv2ServiceLine"}},"eras":{"type":"array","items":{"$ref":"#/components/schemas/ERA"}}},"required":["claim_id","status","service_lines","eras"]},"ClaimStatus":{"title":"ClaimStatus","type":"string","enum":["biller_received","coded","submitted_to_payer","missing_information","not_billable","waiting_for_provider","era_received","rejected","denied","paid","paid_incorrectly","finalized_paid","finalized_denied","held_by_customer","era_requires_review"]},"EncounterId":{"title":"EncounterId","type":"string","format":"uuid"},"ChargeCaptureId":{"title":"ChargeCaptureId","type":"string","format":"uuid"},"ChargeCaptureClaimCreationId":{"title":"ChargeCaptureClaimCreationId","type":"string","format":"uuid"},"ChargeCapturePostBilledChangeId":{"title":"ChargeCapturePostBilledChangeId","type":"string","format":"uuid"},"OrganizationId":{"title":"OrganizationId","type":"string","format":"uuid"},"ClaimId":{"title":"ClaimId","type":"string","format":"uuid"},"PreEncounterPatientId":{"title":"PreEncounterPatientId","type":"string","format":"uuid"},"PreEncounterAppointmentId":{"title":"PreEncounterAppointmentId","type":"string","format":"uuid"},"AppointmentId":{"title":"AppointmentId","type":"string"},"ServiceLineId":{"title":"ServiceLineId","type":"string","format":"uuid"},"AdjustmentId":{"title":"AdjustmentId","type":"string","format":"uuid"},"AllocationId":{"title":"AllocationId","type":"string","format":"uuid"},"PatientExternalId":{"title":"PatientExternalId","type":"string"},"EncounterExternalId":{"title":"EncounterExternalId","type":"string"},"Npi":{"title":"Npi","type":"string"},"WorkQueueId":{"title":"WorkQueueId","type":"string"},"UserId":{"title":"UserId","type":"string","format":"uuid"},"TaskId":{"title":"TaskId","type":"string","format":"uuid"},"TaskAssignmentId":{"title":"TaskAssignmentId","type":"string","format":"uuid"},"TaskNoteId":{"title":"TaskNoteId","type":"string","format":"uuid"},"ProviderId":{"title":"ProviderId","type":"string","format":"uuid"},"InvoiceId":{"title":"InvoiceId","type":"string","format":"uuid"},"RateId":{"title":"RateId","type":"string","format":"uuid"},"SchemaId":{"title":"SchemaId","type":"string","format":"uuid"},"ProviderCredentialingSpanId":{"title":"ProviderCredentialingSpanId","type":"string","format":"uuid"},"PayerPlanGroupId":{"title":"PayerPlanGroupId","type":"string","format":"uuid"},"ClinicalTrialId":{"title":"ClinicalTrialId","type":"string","format":"uuid"},"Primitive":{"title":"Primitive","type":"string","enum":["BOOLEAN","DOUBLE","INTEGER","STRING"],"description":"The BOOLEAN and STRING primitives respectively map to the `boolean` and `string` JSON data types.\nThe DOUBLE and INTEGER primitives must be written as a JSON `number` type."},"LinkUrl":{"title":"LinkUrl","type":"string"},"PageToken":{"title":"PageToken","type":"string"},"SortDirection":{"title":"SortDirection","type":"string","enum":["asc","desc"]},"QualifierCode":{"title":"QualifierCode","type":"string","enum":["DQ","DN","DK","P3"]},"Date":{"title":"Date","type":"string","description":"ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)"},"DateRangeOptionalEnd":{"title":"DateRangeOptionalEnd","type":"object","properties":{"start_date":{"$ref":"#/components/schemas/Date"},"end_date":{"$ref":"#/components/schemas/Date","nullable":true}},"required":["start_date"]},"Decimal":{"title":"Decimal","type":"string","description":"String representation of a Decimal that can be parsed by most libraries."},"RemovableDateRangeOptionalEnd":{"title":"RemovableDateRangeOptionalEnd","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["date_range"]}}},{"$ref":"#/components/schemas/DateRangeOptionalEnd"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"ResourcePage":{"title":"ResourcePage","type":"object","properties":{"prev_page_token":{"$ref":"#/components/schemas/PageToken","nullable":true},"next_page_token":{"$ref":"#/components/schemas/PageToken","nullable":true}}},"StreetAddressBase":{"title":"StreetAddressBase","type":"object","properties":{"address1":{"type":"string"},"address2":{"type":"string","nullable":true},"city":{"type":"string"},"state":{"$ref":"#/components/schemas/State"},"zip_code":{"type":"string","description":"5-digit zip code"}},"required":["address1","city","state","zip_code"]},"StreetAddressOptionalBase":{"title":"StreetAddressOptionalBase","type":"object","properties":{"address1":{"type":"string","nullable":true},"address2":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"$ref":"#/components/schemas/State","nullable":true},"zip_code":{"type":"string","nullable":true,"description":"5-digit zip code"}}},"StreetAddressShortZipOptional":{"title":"StreetAddressShortZipOptional","type":"object","properties":{"zip_plus_four_code":{"type":"string","nullable":true,"description":"4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4"}},"allOf":[{"$ref":"#/components/schemas/StreetAddressOptionalBase"}]},"StreetAddressShortZip":{"title":"StreetAddressShortZip","type":"object","properties":{"zip_plus_four_code":{"type":"string","nullable":true,"description":"4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4"}},"allOf":[{"$ref":"#/components/schemas/StreetAddressBase"}]},"StreetAddressLongZip":{"title":"StreetAddressLongZip","type":"object","properties":{"zip_plus_four_code":{"type":"string","description":"4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4","example":"1234"}},"required":["zip_plus_four_code"],"allOf":[{"$ref":"#/components/schemas/StreetAddressBase"}]},"StreetAddressLongZipOptional":{"title":"StreetAddressLongZipOptional","type":"object","properties":{"zip_plus_four_code":{"type":"string","nullable":true,"description":"4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4"}},"allOf":[{"$ref":"#/components/schemas/StreetAddressOptionalBase"}]},"Regions":{"title":"Regions","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["states"]}}},{"$ref":"#/components/schemas/RegionStates"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["national"]}}},{"$ref":"#/components/schemas/RegionNational"}],"required":["type"]}]},"RegionStates":{"title":"RegionStates","type":"object","properties":{"states":{"type":"array","items":{"$ref":"#/components/schemas/State"}}},"required":["states"]},"RegionNational":{"title":"RegionNational","type":"object","properties":{}},"State":{"title":"State","type":"string","enum":["AA","AE","AP","AL","AK","AS","AZ","AR","CA","CO","CT","DC","DE","FL","FM","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MH","MI","MN","MP","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","PR","PW","RI","SC","SD","TN","TX","UT","VI","VT","VA","WA","WV","WI","WY"]},"SourceOfPaymentCode":{"title":"SourceOfPaymentCode","type":"string","enum":["09","11","12","13","14","15","16","17","AM","BL","CH","CI","DS","FI","HM","LM","MA","MB","MC","OF","TV","VA","WC","ZZ"]},"FacilityTypeCode":{"title":"FacilityTypeCode","type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","31","32","33","34","41","42","49","50","51","52","53","54","55","56","57","58","60","61","62","65","71","72","81","99"],"description":"Box 24B on the CMS-1500 claim form. Line-level place of service is not currently supported.\n02 for telemedicine, 11 for in-person. Full list here:\nhttps://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set"},"PatientRelationshipToInsuredCodeAll":{"title":"PatientRelationshipToInsuredCodeAll","type":"string","enum":["01","04","05","07","10","15","17","18","19","20","21","22","23","24","29","32","33","36","39","40","41","43","53","G8"]},"ProcedureModifier":{"title":"ProcedureModifier","type":"string","enum":["AV","AU","AW","AY","07","08","09","10","11","12","13","14","15","16","22","23","24","25","26","27","28","32","33","47","50","51","52","53","54","55","56","57","58","59","62","63","66","73","74","76","77","78","79","80","81","82","90","91","92","93","95","96","97","99","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AD","AE","AF","AG","AH","AI","AJ","AK","AM","AO","AP","AQ","AR","AS","AT","AZ","BA","BL","BO","BP","BR","BU","CA","CB","CC","CD","CE","CF","CG","CH","CI","CJ","CK","CL","CM","CN","CR","CS","CT","CO","CQ","DA","E1","E2","E3","E4","EA","EB","EC","ED","EE","EJ","EM","EP","ER","ET","EV","EX","EY","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FP","FQ","FR","FS","FT","FX","FY","G0","G1","G2","G3","G4","G5","G6","G7","G8","G9","GA","GB","GC","GE","GF","GG","GH","GJ","GK","GL","GM","GN","GO","GP","GQ","GR","GS","GT","GU","GV","GW","GX","GY","GZ","HA","HB","HC","HD","HE","HF","HG","HH","HI","HJ","HK","HL","HM","HN","HO","HP","HQ","HR","HS","HT","HU","HV","HW","HX","HY","HZ","J1","J2","J3","J4","J5","JA","JB","JC","JD","JE","JG","JW","JZ","K0","K1","K2","K3","K4","KA","KB","KC","KD","KE","KF","KG","KH","KI","KJ","KK","KL","KM","KN","KO","KP","KQ","KR","KS","KT","KU","KV","KW","KX","KY","KZ","LC","LD","LL","LM","LR","LS","LT","LU","M2","MA","MB","MC","MD","ME","MF","MG","MH","MS","N1","N2","N3","NB","NR","NU","P1","P2","P3","P4","P5","P6","PA","PB","PC","PD","PI","PL","PM","PN","PO","PS","PT","Q0","Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","QA","QB","QC","QD","QE","QF","QG","QH","QJ","QK","QL","QM","QN","QP","QQ","QR","QS","QT","QW","QX","QY","QZ","RA","RB","RC","RD","RE","RI","RR","RT","SA","SB","SC","SD","SE","SF","SG","SH","SJ","SL","SM","SN","SQ","SS","ST","SU","SV","SW","SY","T1","T2","T3","T4","T5","T6","T7","T8","T9","TA","TB","TC","TD","TE","TF","TG","TH","TJ","TK","TL","TM","TN","TP","TQ","TR","TS","TT","TU","TV","TW","U1","U2","U3","U4","U5","U6","U7","U8","U9","UA","UB","UC","UD","UE","UF","UG","UH","UJ","UK","UN","UP","UQ","UR","US","V1","V2","V3","W1","W2","W3","X4","XE","XP","XS","XU","XY","ZZ"]},"ServiceLineUnits":{"title":"ServiceLineUnits","type":"string","enum":["MJ","UN"]},"InsuranceTypeCode":{"title":"InsuranceTypeCode","type":"string","enum":["01","12","13","14","15","16","17","18","19","41","42","43","47","AP","C1","CO","CP","D","DB","E","EP","FF","GP","HA","HB","HD","HG","HM","HN","HP","HS","IN","IP","LC","LD","LI","LT","M","MA","MB","MC","MD","ME","MF","MH","MI","MJ","MK","ML","MM","MN","MO","MP","MR","MT","MV","OA","OT","PE","PL","PP","PR","PS","QM","RP","SP","TF","U","WC","WU"],"description":"Code identifying the type of insurance policy within a specific insurance program (X12 008020 Element 1336)"},"ClaimAdjustmentGroupCodes":{"title":"ClaimAdjustmentGroupCodes","type":"string","enum":["CO","CR","DE","MA","OA","PI","PR","RR","NC","UNKNOWN"]},"ReportTypeCode":{"title":"ReportTypeCode","type":"string","enum":["03","04","05","06","07","08","09","10","11","13","15","21","A3","A4","AM","AS","B2","B3","B4","BR","BS","BT","CB","CK","CT","D2","DA","DB","DG","DJ","DS","EB","HC","HR","I5","IR","LA","M1","MT","NN","OB","OC","OD","OE","OX","OZ","P4","P5","PE","PN","PO","PQ","PY","PZ","RB","RR","RT","RX","SG","V5","XP"]},"ReportTransmissionCode":{"title":"ReportTransmissionCode","type":"string","enum":["BM","EL","FX"]},"ClaimSubmissionPayerResponsibilityType":{"title":"ClaimSubmissionPayerResponsibilityType","type":"string","enum":["primary","secondary"]},"EmrPayerCrosswalk":{"title":"EmrPayerCrosswalk","type":"string","enum":["HEALTHIE","CANVAS","WAYSTAR","PAYER_PLAN_GROUP"]},"NetworkType":{"title":"NetworkType","type":"string","enum":["12","13","14","15","16","17","AM","CH","DS","HM","LM","MA","MB","MC","OF","TV","VA","WC","ZZ","CI","BL"]},"ErrorMessage":{"title":"ErrorMessage","type":"string"},"EntityNotFoundErrorMessage":{"title":"EntityNotFoundErrorMessage","type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"UnauthorizedErrorMessage":{"title":"UnauthorizedErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"EntityConflictErrorMessage":{"title":"EntityConflictErrorMessage","type":"object","properties":{"entity_name":{"type":"string"}},"required":["entity_name"]},"UnprocessableEntityErrorMessage":{"title":"UnprocessableEntityErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"RequestValidationError":{"title":"RequestValidationError","type":"object","properties":{"fieldName":{"type":"string"},"humanReadableMessage":{"type":"string","nullable":true}},"required":["fieldName"]},"UpdatesDisabledDueToExternalSystemIntegrationErrorMessage":{"title":"UpdatesDisabledDueToExternalSystemIntegrationErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"OrganizationNotAuthorizedErrorMessage":{"title":"OrganizationNotAuthorizedErrorMessage","type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"BadRequestErrorMessage":{"title":"BadRequestErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"InternalErrorMessage":{"title":"InternalErrorMessage","type":"object","properties":{"message":{"type":"string","nullable":true}}},"PhoneNumber":{"title":"PhoneNumber","type":"object","properties":{"number":{"type":"string","example":"1234567890"},"type":{"$ref":"#/components/schemas/PhoneNumberType"}},"required":["number","type"]},"PhoneNumberOptional":{"title":"PhoneNumberOptional","type":"object","properties":{"number":{"type":"string","nullable":true},"type":{"$ref":"#/components/schemas/PhoneNumberType","nullable":true}}},"PhoneNumberType":{"title":"PhoneNumberType","type":"string","enum":["Home","Mobile","Work"]},"Email":{"title":"Email","type":"string"},"DelayReasonCode":{"title":"DelayReasonCode","type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11","15","16","17"],"description":"Code indicating the reason why a request was delayed"},"IntendedSubmissionMedium":{"title":"IntendedSubmissionMedium","type":"string","enum":["paper","electronic"],"description":"The medium (paper or electronic) via which we intended to submit the claim. The clearinghouse to which we sent the claim may use a different medium in certain cases, e.g., if the payer does not support electronic claims."},"BillingProviderCommercialLicenseType":{"title":"BillingProviderCommercialLicenseType","type":"string","enum":["0","A","B","C","D","E","F","G","H","I"]},"EPSDTReferralConditionIndicatorCode":{"title":"EPSDTReferralConditionIndicatorCode","type":"string","enum":["AV","NU","S2","ST"]},"NextResponsibleParty":{"title":"NextResponsibleParty","type":"string","enum":["primary","secondary","tertiary","patient","non_insurance","none"]},"Clearinghouse":{"title":"Clearinghouse","type":"string","enum":["CHANGE_HEALTHCARE","OLIVE","UCSF_CIRIUS","AVAILITY","JOPARI","PAYER_PORTAL","STEDI","WAYSTAR","UNKNOWN"]},"DiagnosisId":{"title":"DiagnosisId","type":"string","format":"uuid"},"DiagnosisCreateOptional":{"title":"DiagnosisCreateOptional","type":"object","properties":{"name":{"type":"string","nullable":true,"description":"Empty string not allowed."},"code_type":{"$ref":"#/components/schemas/DiagnosisTypeCode","nullable":true,"description":"Typically, providers submitting claims to Taiga are using ICD-10 diagnosis codes. If you are using ICD-10 codes, the primary diagnosis code listed on the claim should use the ABK code_type. If more than one diagnosis is being submitted on a claim, please use ABF for the rest of the listed diagnoses. If you are using ICD-9 diagnosis codes, use BK and BF for the principal and following diagnosis code(s) respectively."},"code":{"type":"string","nullable":true,"description":"Empty string not allowed.\nShould be of the appropriate format for the provided `code_type`.\nMust obey the ICD-10 format if an ICD-10 code_type is provided, specifically:\n  - Letter\n  - Digit\n  - Digit or the letter `A` or `B`\n  - (Optional) Period `.`\n  - Up to 4 (or as few as 0) letters and digits"},"present_on_admission_indicator":{"$ref":"#/components/schemas/YesNoIndicator","nullable":true,"description":"For Institutional claims only.\nA \"Y\" indicates that the onset occurred prior to admission to the hospital.\nAn \"N\" indicates that the onset did NOT occur prior to admission to the hospital.\nA \"U\" indicates that it is unknown whether the onset occurred prior to admission to the hospital or not.","x-fern-availability":"pre-release"}}},"DiagnosisCreate":{"title":"DiagnosisCreate","type":"object","properties":{"name":{"type":"string","nullable":true,"description":"Empty string not allowed."},"code_type":{"$ref":"#/components/schemas/DiagnosisTypeCode","description":"Typically, providers submitting claims to Taiga are using ICD-10 diagnosis codes. If you are using ICD-10 codes, the primary diagnosis code listed on the claim should use the ABK code_type. If more than one diagnosis is being submitted on a claim, please use ABF for the rest of the listed diagnoses. If you are using ICD-9 diagnosis codes, use BK and BF for the principal and following diagnosis code(s) respectively."},"code":{"type":"string","description":"Empty string not allowed.\nShould be of the appropriate format for the provided `code_type`.\nMust obey the ICD-10 format if an ICD-10 code_type is provided, specifically:\n  - Letter\n  - Digit\n  - Digit or the letter `A` or `B`\n  - (Optional) Period `.`\n  - Up to 4 (or as few as 0) letters and digits"},"present_on_admission_indicator":{"$ref":"#/components/schemas/YesNoIndicator","nullable":true,"description":"For Institutional claims only.\nA \"Y\" indicates that the onset occurred prior to admission to the hospital.\nAn \"N\" indicates that the onset did NOT occur prior to admission to the hospital.\nA \"U\" indicates that it is unknown whether the onset occurred prior to admission to the hospital or not.","x-fern-availability":"pre-release"}},"required":["code_type","code"]},"StandaloneDiagnosisCreate":{"title":"StandaloneDiagnosisCreate","type":"object","properties":{"encounter_id":{"$ref":"#/components/schemas/EncounterId"}},"required":["encounter_id"],"allOf":[{"$ref":"#/components/schemas/DiagnosisCreate"}]},"DiagnosisTypeCode":{"title":"DiagnosisTypeCode","type":"string","enum":["ABF","ABJ","ABK","APR","BF","BJ","BK","PR","DR","LOI"]},"Diagnosis":{"title":"Diagnosis","type":"object","properties":{"diagnosis_id":{"$ref":"#/components/schemas/DiagnosisId"},"created_at":{"type":"string","format":"date-time","example":"2023-01-01T00:00:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2023-01-01T00:00:00Z"}},"required":["diagnosis_id","created_at","updated_at"],"allOf":[{"$ref":"#/components/schemas/StandaloneDiagnosisCreate"}]},"DiagnosisNotFoundError":{"title":"DiagnosisNotFoundError","type":"object","properties":{"diagnosis_id":{"$ref":"#/components/schemas/DiagnosisId","nullable":true},"message":{"type":"string"}},"required":["message"]},"ServiceLinesMustHaveAtLeastOneDiagnosisError":{"title":"ServiceLinesMustHaveAtLeastOneDiagnosisError","type":"object","properties":{"diagnosis_id":{"$ref":"#/components/schemas/DiagnosisId"},"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"message":{"type":"string"}},"required":["diagnosis_id","service_line_id","message"]},"DisallowMultiplePrimaryDiagnosisError":{"title":"DisallowMultiplePrimaryDiagnosisError","type":"object","properties":{"existing_primary_diagnosis_id":{"$ref":"#/components/schemas/DiagnosisId"},"new_primary_diagnosis_id":{"$ref":"#/components/schemas/DiagnosisId"},"message":{"type":"string"}},"required":["existing_primary_diagnosis_id","new_primary_diagnosis_id","message"]},"EraId":{"title":"EraId","type":"string","format":"uuid"},"ERABase":{"title":"ERABase","type":"object","properties":{"check_number":{"type":"string"},"check_date":{"$ref":"#/components/schemas/Date"}},"required":["check_number","check_date"]},"ERA":{"title":"ERA","type":"object","properties":{"era_id":{"$ref":"#/components/schemas/EraId"}},"required":["era_id"],"allOf":[{"$ref":"#/components/schemas/ERABase"}]},"RefundReason":{"title":"RefundReason","type":"string","enum":["OVERCHARGED","ENTERED_IN_ERROR","TRANSFER"]},"PatientTransactionSource":{"title":"PatientTransactionSource","type":"string","enum":["MANUAL_ENTRY","CHARGEBEE","SQUARE","STRIPE","ELATION","CEDAR","HEALTHIE","REALLOCATION","PHREESIA","INSTAMED","SHERPA_HEALTH"]},"PatientPaymentCreateSource":{"title":"PatientPaymentCreateSource","type":"string","enum":["MANUAL_ENTRY","PHREESIA","SHERPA_HEALTH"],"description":"Allowed payment sources when creating a patient payment via the API."},"Allocation":{"title":"Allocation","type":"object","properties":{"allocation_id":{"$ref":"#/components/schemas/AllocationId","nullable":true},"amount_cents":{"type":"integer"},"target":{"$ref":"#/components/schemas/AllocationTarget"},"earmark":{"$ref":"#/components/schemas/BalanceEarmark","nullable":true,"description":"The active earmark created by this allocation, if any. Only present when this allocation created an earmark for future auto-allocation and the earmark has not been deleted."},"allocated_on":{"type":"string","format":"date-time","nullable":true}},"required":["amount_cents","target"]},"ServiceLineAllocationTarget":{"title":"ServiceLineAllocationTarget","type":"object","properties":{"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"claim_id":{"$ref":"#/components/schemas/ClaimId"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"}},"required":["service_line_id","claim_id","encounter_id"]},"ClaimAllocationTarget":{"title":"ClaimAllocationTarget","type":"object","properties":{"claim_id":{"$ref":"#/components/schemas/ClaimId"},"encounter_id":{"$ref":"#/components/schemas/EncounterId"}},"required":["claim_id","encounter_id"]},"BillingProviderAllocationTarget":{"title":"BillingProviderAllocationTarget","type":"object","properties":{"billing_provider_id":{"$ref":"#/components/schemas/ProviderId"}},"required":["billing_provider_id"]},"AppointmentAllocationTarget":{"title":"AppointmentAllocationTarget","type":"object","properties":{"appointment_id":{"$ref":"#/components/schemas/AppointmentId"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"}},"required":["appointment_id","patient_external_id"]},"AllocationTarget":{"title":"AllocationTarget","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["service_line"]}}},{"$ref":"#/components/schemas/ServiceLineAllocationTarget"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["claim"]}}},{"$ref":"#/components/schemas/ClaimAllocationTarget"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["billing_provider_id"]}}},{"$ref":"#/components/schemas/BillingProviderAllocationTarget"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["appointment"]}}},{"$ref":"#/components/schemas/AppointmentAllocationTarget"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["unattributed"]}},"required":["type"]}],"description":"Allocation targets describe whether the portion of a payment is being applied toward a specific service line,\nclaim, billing provider, or is unallocated."},"AllocationEarmarkType":{"title":"AllocationEarmarkType","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["date_of_service"]},"value":{"$ref":"#/components/schemas/Date"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["external_encounter_id"]},"value":{"$ref":"#/components/schemas/EncounterExternalId"}},"required":["type"]}],"description":"If enabled for your organization, defines how a patient prepayment allocation should be earmarked for future auto-allocation.\nEarmarks hold the allocation until a matching encounter is created, then attempt to allocate to that encounter.\nOnly applicable for unattributed allocations."},"BalanceEarmark":{"title":"BalanceEarmark","type":"object","description":"Represents an active balance earmarking record that holds allocated funds for future auto-allocation.\nEarmarks are created when funds are allocated but should be held for a specific encounter or date of service.\nOnly active (non-deleted) earmarks are returned.","properties":{"id":{"type":"string","format":"uuid"},"target":{"$ref":"#/components/schemas/AllocationEarmarkType","description":"The target for this earmark (date of service or external encounter ID)"},"amount_earmarked_cents":{"type":"integer","nullable":true,"description":"The amount earmarked in cents for future allocation"},"created_by_allocation_id":{"$ref":"#/components/schemas/AllocationId","nullable":true,"description":"The ID of the allocation that created this earmark"}},"required":["id","target"]},"AllocationCreate":{"title":"AllocationCreate","type":"object","description":"Allocations are portions of payments that are applied to specific resources, known as targets. Each allocation has\nand amount, defined in cents, and a target.","properties":{"amount_cents":{"type":"integer"},"target":{"$ref":"#/components/schemas/AllocationTargetCreate"},"earmark":{"$ref":"#/components/schemas/AllocationEarmarkType","nullable":true,"description":"If enabled for your organization, optional earmarking configuration for patient prepayments.\nWhen provided on unattributed allocations, holds the payment for future auto-allocation to matching encounters."}},"required":["amount_cents","target"]},"AllocationTargetCreate":{"title":"AllocationTargetCreate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["service_line_by_id"]},"value":{"$ref":"#/components/schemas/ServiceLineId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["claim_by_id"]},"value":{"$ref":"#/components/schemas/ClaimId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["claim_by_encounter_external_id"]},"value":{"$ref":"#/components/schemas/EncounterExternalId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["billing_provider_by_id"]},"value":{"$ref":"#/components/schemas/ProviderId"}},"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["appointment_by_id_and_patient_external_id"]}}},{"$ref":"#/components/schemas/AppointmentByIdAndPatientExternalId"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["unattributed"]}},"required":["type"]}],"description":"Allocation targets describe whether the portion of a payment is being applied toward a specific service line,\nclaim, billing provider, or is unallocated."},"AppointmentByIdAndPatientExternalId":{"title":"AppointmentByIdAndPatientExternalId","type":"object","properties":{"appointment_id":{"$ref":"#/components/schemas/AppointmentId"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"}},"required":["appointment_id","patient_external_id"]},"AccountType":{"title":"AccountType","type":"string","enum":["PATIENT","INSURANCE","THIRD_PARTY_PAYER"]},"AllocationOverdraftDetail":{"title":"AllocationOverdraftDetail","type":"object","description":"Structured information about an allocation that would be overdrafted.\nProvides entity-specific details to display in a table format.","properties":{"allocation_target":{"$ref":"#/components/schemas/AllocationTarget","description":"The allocation target that would be overdrafted (service_line, claim, unattributed, etc.)"},"patient_paid_amount_cents":{"type":"integer","description":"The amount in cents that the patient has currently paid toward this target (available to reallocate from)"},"current_balance_cents":{"type":"integer","description":"The current balance in cents on this entity before the reallocation"},"overage_amount_cents":{"type":"integer","description":"The amount in cents by which the reallocation would overdraft (always positive)"},"error_message":{"type":"string","description":"A descriptive error message explaining the overdraft condition"}},"required":["allocation_target","patient_paid_amount_cents","current_balance_cents","overage_amount_cents","error_message"]},"NoteUpdate":{"title":"NoteUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"InvoiceUpdate":{"title":"InvoiceUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"$ref":"#/components/schemas/InvoiceId"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"RefundReasonUpdate":{"title":"RefundReasonUpdate","oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["set"]},"value":{"$ref":"#/components/schemas/RefundReason"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]}},"required":["type"]}]},"ReallocationWouldOverdraftErrorContent":{"title":"ReallocationWouldOverdraftErrorContent","type":"object","description":"Error content when a reallocation would cause an account to be overdrafted.\nContains both legacy string messages and new structured allocation details.","properties":{"messages":{"type":"array","items":{"type":"string"},"description":"Legacy field containing error messages as strings.\nDeprecated - use allocation_details for structured data.\nWill be removed in a future version after frontend migration."},"allocation_details":{"type":"array","items":{"$ref":"#/components/schemas/AllocationOverdraftDetail"},"nullable":true,"description":"Structured details about which allocations would be overdrafted.\nEach detail includes entity type, ID, and error message for table display."}},"required":["messages"]},"IdentifierCode":{"title":"IdentifierCode","type":"string","enum":["MCR","MCD"]},"IdentifierId":{"title":"IdentifierId","type":"string","format":"uuid"},"MedicareProviderIdentifier":{"title":"MedicareProviderIdentifier","type":"object","properties":{"state":{"$ref":"#/components/schemas/State"},"provider_number":{"type":"string"},"organization_service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true,"description":"When set, this identifier applies only to the given service facility."}},"required":["state","provider_number"]},"MedicaidProviderIdentifier":{"title":"MedicaidProviderIdentifier","type":"object","properties":{"state":{"$ref":"#/components/schemas/State"},"provider_number":{"type":"string"},"organization_service_facility_id":{"$ref":"#/components/schemas/organization-service-facilitiesv2OrganizationServiceFacilityId","nullable":true,"description":"When set, this identifier applies only to the given service facility."}},"required":["state","provider_number"]},"IdentifierValue":{"title":"IdentifierValue","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["medicare_provider_identifier"]}}},{"$ref":"#/components/schemas/MedicareProviderIdentifier"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["medicaid_provider_identifier"]}}},{"$ref":"#/components/schemas/MedicaidProviderIdentifier"}],"required":["type"]}]},"IdentifierBase":{"title":"IdentifierBase","type":"object","properties":{"period":{"$ref":"#/components/schemas/DateRangeOptionalEnd","nullable":true},"identifier_code":{"$ref":"#/components/schemas/IdentifierCode"},"identifier_value":{"$ref":"#/components/schemas/IdentifierValue"}},"required":["identifier_code","identifier_value"]},"Identifier":{"title":"Identifier","type":"object","properties":{"identifier_id":{"$ref":"#/components/schemas/IdentifierId"}},"required":["identifier_id"],"allOf":[{"$ref":"#/components/schemas/IdentifierBase"}]},"IdentifierCreate":{"title":"IdentifierCreate","type":"object","properties":{},"allOf":[{"$ref":"#/components/schemas/IdentifierBase"}]},"IdentifierUpdate":{"title":"IdentifierUpdate","type":"object","properties":{"identifier_id":{"$ref":"#/components/schemas/IdentifierId"},"identifier_code":{"$ref":"#/components/schemas/IdentifierCode","nullable":true},"identifier_value":{"$ref":"#/components/schemas/IdentifierValue","nullable":true},"period":{"$ref":"#/components/schemas/RemovableDateRangeOptionalEnd","nullable":true}},"required":["identifier_id"]},"UpdatableIdentifier":{"title":"UpdatableIdentifier","oneOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["add"]}}},{"$ref":"#/components/schemas/IdentifierCreate"}],"required":["type"]},{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","enum":["update"]}}},{"$ref":"#/components/schemas/IdentifierUpdate"}],"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["remove"]},"value":{"$ref":"#/components/schemas/IdentifierId"}},"required":["type"]}]},"IndividualId":{"title":"IndividualId","type":"string","format":"uuid"},"IndividualBase":{"title":"IndividualBase","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"gender":{"$ref":"#/components/schemas/Gender"}},"required":["first_name","last_name","gender"]},"IndividualBaseOptional":{"title":"IndividualBaseOptional","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"gender":{"$ref":"#/components/schemas/Gender","nullable":true}}},"SubscriberBase":{"title":"SubscriberBase","type":"object","properties":{"patient_relationship_to_subscriber_code":{"$ref":"#/components/schemas/PatientRelationshipToInsuredCodeAll"},"date_of_birth":{"type":"string","format":"date","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true}},"required":["patient_relationship_to_subscriber_code"],"allOf":[{"$ref":"#/components/schemas/IndividualBase"}]},"SubscriberBaseOptional":{"title":"SubscriberBaseOptional","type":"object","properties":{"patient_relationship_to_subscriber_code":{"$ref":"#/components/schemas/PatientRelationshipToInsuredCodeAll","nullable":true},"date_of_birth":{"type":"string","format":"date","nullable":true},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true}},"allOf":[{"$ref":"#/components/schemas/IndividualBaseOptional"}]},"SubscriberCreate":{"title":"SubscriberCreate","type":"object","properties":{"insurance_card":{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCardCreate","description":"Please reference our [Payer Information](https://docs.taigabilling.com/introduction/payer-information) documentation for more details on how to populate the `insurance_card` fields."}},"required":["insurance_card"],"allOf":[{"$ref":"#/components/schemas/SubscriberBase"}]},"SubscriberCreateOptional":{"title":"SubscriberCreateOptional","type":"object","properties":{"insurance_card":{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCardCreateOptional","nullable":true,"description":"Please reference our [Payer Information](https://docs.taigabilling.com/introduction/payer-information) documentation for more details on how to populate the `insurance_card` fields."}},"allOf":[{"$ref":"#/components/schemas/SubscriberBaseOptional"}]},"Subscriber":{"title":"Subscriber","type":"object","properties":{"individual_id":{"$ref":"#/components/schemas/IndividualId"},"insurance_card":{"$ref":"#/components/schemas/insurance-cardsv2InsuranceCard"}},"required":["individual_id","insurance_card"],"allOf":[{"$ref":"#/components/schemas/SubscriberBase"}]},"PatientNonInsurancePayerInfoCreate":{"title":"PatientNonInsurancePayerInfoCreate","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"member_id":{"type":"string","nullable":true},"clinical_trial_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientClinicalTrialInfoCreate"},"nullable":true}},"required":["non_insurance_payer_id"]},"PatientNonInsurancePayerInfoCreateOptional":{"title":"PatientNonInsurancePayerInfoCreateOptional","type":"object","properties":{"non_insurance_payer_id":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId","nullable":true},"member_id":{"type":"string","nullable":true},"clinical_trial_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientClinicalTrialInfoCreateOptional"},"nullable":true}}},"PatientClinicalTrialInfoCreate":{"title":"PatientClinicalTrialInfoCreate","type":"object","properties":{"clinical_trial_arm":{"type":"string","nullable":true},"clinical_trial_id":{"$ref":"#/components/schemas/ClinicalTrialId"}},"required":["clinical_trial_id"]},"PatientClinicalTrialInfoCreateOptional":{"title":"PatientClinicalTrialInfoCreateOptional","type":"object","properties":{"clinical_trial_arm":{"type":"string","nullable":true},"clinical_trial_id":{"$ref":"#/components/schemas/ClinicalTrialId","nullable":true}}},"PatientClinicalTrialInfo":{"title":"PatientClinicalTrialInfo","type":"object","properties":{"clinical_trial_arm":{"type":"string","nullable":true},"clinical_trial":{"$ref":"#/components/schemas/clinical-trialsv1ClinicalTrial"}},"required":["clinical_trial"]},"PatientNonInsurancePayerInfo":{"title":"PatientNonInsurancePayerInfo","type":"object","properties":{"non_insurance_payer":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"},"member_id":{"type":"string","nullable":true},"clinical_trial_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientClinicalTrialInfo"},"description":"A patient cannot be associated with a given trial more than once"}},"required":["non_insurance_payer","clinical_trial_info"]},"PatientCreate":{"title":"PatientCreate","type":"object","properties":{"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"},"email":{"$ref":"#/components/schemas/Email","nullable":true},"non_insurance_payers":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"nullable":true,"x-fern-availability":"deprecated"},"non_insurance_payers_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientNonInsurancePayerInfoCreate"},"nullable":true},"email_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"},"auto_charge_consent":{"type":"boolean","nullable":true,"description":"Defaults to false"}},"allOf":[{"$ref":"#/components/schemas/PatientBase"}]},"PatientUpdate":{"title":"PatientUpdate","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"gender":{"$ref":"#/components/schemas/Gender","nullable":true},"external_id":{"type":"string","nullable":true,"description":"The ID used to identify this individual in your system. For example, your internal patient ID or an EHR patient ID."},"date_of_birth":{"type":"string","format":"date","nullable":true,"description":"Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)"},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","nullable":true,"description":"Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form."},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","nullable":true},"auto_charge_consent":{"type":"boolean","nullable":true},"non_insurance_payers":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"nullable":true,"description":"On update, we will replace the existing list of non-insurance payers with the new list if populated.","x-fern-availability":"deprecated"},"non_insurance_payers_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientNonInsurancePayerInfoCreate"},"nullable":true,"description":"On update, we will replace the existing list of non-insurance payers with the new list if populated."}}},"PatientBase":{"title":"PatientBase","type":"object","properties":{"external_id":{"type":"string","description":"The ID used to identify this individual in your system. For example, your internal patient ID or an EHR patient ID."},"date_of_birth":{"type":"string","format":"date","description":"Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)"},"address":{"$ref":"#/components/schemas/StreetAddressShortZip","description":"Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form."}},"required":["external_id","date_of_birth","address"],"allOf":[{"$ref":"#/components/schemas/IndividualBase"}]},"PatientUpdateWithOptionalAddress":{"title":"PatientUpdateWithOptionalAddress","type":"object","properties":{"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"gender":{"$ref":"#/components/schemas/Gender","nullable":true},"external_id":{"type":"string","nullable":true,"description":"The ID used to identify this individual in your system. For example, your internal patient ID or an EHR patient ID."},"date_of_birth":{"type":"string","format":"date","nullable":true,"description":"Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The date format should be in ISO 8601 date; formatted YYYY-MM-DD (i.e. 2012-02-01)"},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true,"description":"Box 5 on the CMS-1500 claim form or Form Locator 9 on a UB-04 claim form."},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumberOptional"},"nullable":true},"phone_consent":{"type":"boolean","nullable":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","nullable":true},"auto_charge_consent":{"type":"boolean","nullable":true},"non_insurance_payers":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayerId"},"nullable":true,"description":"On update, we will replace the existing list of non-insurance payers with the new list if populated.","x-fern-availability":"deprecated"},"non_insurance_payers_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientNonInsurancePayerInfoCreateOptional"},"nullable":true,"description":"On update, we will replace the existing list of non-insurance payers with the new list if populated."}}},"Patient":{"title":"Patient","type":"object","properties":{"individual_id":{"$ref":"#/components/schemas/IndividualId"},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"}},"phone_consent":{"type":"boolean","example":true},"email":{"$ref":"#/components/schemas/Email","nullable":true},"email_consent":{"type":"boolean","example":true},"auto_charge_consent":{"type":"boolean","example":true},"non_insurance_payers":{"type":"array","items":{"$ref":"#/components/schemas/non-insurance-payersv1NonInsurancePayer"},"x-fern-availability":"deprecated"},"non_insurance_payers_info":{"type":"array","items":{"$ref":"#/components/schemas/PatientNonInsurancePayerInfo"}}},"required":["individual_id","phone_numbers","phone_consent","email_consent","auto_charge_consent","non_insurance_payers","non_insurance_payers_info"],"allOf":[{"$ref":"#/components/schemas/PatientBase"}]},"Gender":{"title":"Gender","type":"string","enum":["male","female","other","not_given","unknown"]},"Invoice":{"title":"Invoice","type":"object","properties":{"id":{"$ref":"#/components/schemas/InvoiceId"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"organzation_id":{"$ref":"#/components/schemas/OrganizationId"},"source_id":{"type":"string"},"source_customer_id":{"type":"string"},"patient_external_id":{"$ref":"#/components/schemas/PatientExternalId"},"note":{"type":"string","nullable":true},"due_date":{"$ref":"#/components/schemas/Date"},"status":{"$ref":"#/components/schemas/InvoiceStatus"},"url":{"type":"string","nullable":true},"customer_invoice_url":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItem"}}},"required":["id","created_at","updated_at","organzation_id","source_id","source_customer_id","patient_external_id","due_date","status","items"]},"InvoiceItem":{"title":"InvoiceItem","type":"object","properties":{"service_line_id":{"$ref":"#/components/schemas/ServiceLineId"},"amount_cents":{"type":"integer"}},"required":["service_line_id","amount_cents"]},"InvoiceStatus":{"title":"InvoiceStatus","type":"string","enum":["draft","open","paid","void","uncollectible","held"]},"PaymentAccountConfigId":{"title":"PaymentAccountConfigId","type":"string","format":"uuid"},"ConfigurableRuleId":{"title":"ConfigurableRuleId","type":"string","format":"uuid"},"ServiceFacilityId":{"title":"ServiceFacilityId","type":"string","format":"uuid"},"EncounterServiceFacilityBase":{"title":"EncounterServiceFacilityBase","type":"object","description":"Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital.\nFor telehealth, service facility can represent the provider's location when the service was delivered (e.g., home),\nor the location where an in-person visit would have taken place, whichever is easier to identify.\nIf the provider is in-network, service facility may be defined in payer contracts.\nBox 32 on the CMS-1500 claim form.\nNote that for an in-network claim to be successfully adjudicated, the service facility address listed on claims\nmust match what was provided to the payer during the credentialing process.","properties":{"organization_name":{"type":"string"},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","description":"zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use \"9998\" as per CMS documentation."},"secondary_identification":{"type":"string","nullable":true,"description":"An additional identifier for the service facility other than the facility's NPI. Some payers may require this field.\nPotential examples: state license number, provider commercial number, or location number.\nBox 32 section (b) of the CMS-1500 claim form."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."}},"required":["organization_name","address"]},"EncounterServiceFacilityUpdateWithOptionalAddress":{"title":"EncounterServiceFacilityUpdateWithOptionalAddress","type":"object","properties":{"organization_name":{"type":"string","nullable":true},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"address":{"$ref":"#/components/schemas/StreetAddressShortZipOptional","nullable":true,"description":"zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use \"9998\" as per CMS documentation."},"secondary_identification":{"type":"string","nullable":true,"description":"An additional identifier for the service facility other than the facility's NPI. Some payers may require this field.\nPotential examples: state license number, provider commercial number, or location number.\nBox 32 section (b) of the CMS-1500 claim form."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."}}},"EncounterServiceFacility":{"title":"EncounterServiceFacility","type":"object","properties":{"service_facility_id":{"$ref":"#/components/schemas/ServiceFacilityId"},"organization_name":{"type":"string","example":"Test Organization"},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","description":"zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use \"9998\" as per CMS documentation."},"secondary_identification":{"type":"string","nullable":true,"description":"An additional identifier for the service facility other than the facility's NPI. Some payers may require this field.\nPotential examples: state license number, provider commercial number, or location number.\nBox 32 section (b) of the CMS-1500 claim form."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."}},"required":["service_facility_id","organization_name","address"]},"EncounterServiceFacilityUpdate":{"title":"EncounterServiceFacilityUpdate","type":"object","properties":{"organization_name":{"type":"string","nullable":true},"npi":{"type":"string","nullable":true,"description":"An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.\nBox 32 section (a) of the CMS-1500 claim form."},"address":{"$ref":"#/components/schemas/StreetAddressLongZip","nullable":true,"description":"zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use \"9998\" as per CMS documentation."},"secondary_identification":{"type":"string","nullable":true,"description":"An additional identifier for the service facility other than the facility's NPI. Some payers may require this field.\nPotential examples: state license number, provider commercial number, or location number.\nBox 32 section (b) of the CMS-1500 claim form."},"mammography_certification_number":{"type":"string","nullable":true,"description":"The associated mammography certification number for this service facility. This is a 6 digit code assigned by the FDA."}}},"TagId":{"title":"TagId","type":"string"},"TagCreate":{"title":"TagCreate","type":"object","properties":{"tag_id":{"$ref":"#/components/schemas/TagId"},"description":{"type":"string"},"color":{"$ref":"#/components/schemas/TagColorEnum"}},"required":["tag_id","description","color"]},"Tag":{"title":"Tag","type":"object","properties":{"creator_id":{"type":"string","example":"00EB5A46-35C6-441B-9751-AF307AEF5888"}},"required":["creator_id"],"allOf":[{"$ref":"#/components/schemas/TagCreate"}]},"TagColorEnum":{"title":"TagColorEnum","type":"string","enum":["black","white","gray","red","yellow","green","blue","indigo","purple","pink"]},"tasksTaskStatus":{"title":"tasksTaskStatus","type":"string","enum":["finished","addressed_by_provider_group","sent_to_provider_group","open","blocked","waiting_for_review","in_progress"]},"tasksTaskType":{"title":"tasksTaskType","type":"string","enum":["CUSTOMER_DATA_REQUEST","CLAIM_SUBMISSION_RUN_VALIDATIONS_FAILURE","CLAIM_SUBMISSION_SUBMIT_CLAIM_FAILURE","CLAIM_SUBMISSION_TRANSFORM_FAILURE","CODE_CLAIM","CODE_CLAIM_REVIEW","ELIGIBILITY","CLAIM_FOLLOW_UP","REJECTION_RESOLUTION","PAYER_CONFIGURATION_ERROR","DENIAL_RESOLUTION","MISSING_ENROLLMENT","CHARGE_CAPTURE_UPDATE"]},"tasksTaskCategory":{"title":"tasksTaskCategory","type":"string","enum":["other","provider_credentialing","authorization_required","inactive_coverage","unknown_eligibility_or_patient_not_found","incorrect_member_id","documentation_addendum_request","coordination_of_benefits","missing_or_incorrect_gender","incorrect_date_of_birth","incorrect_payer","incorrect_name","invalid_diagnosis_code","non_covered_diagnosis_codes","information_requested_from_patient","incorrect_rendering_provider_info","missing_or_incorrect_modifier","coding_frequency_error","incorrect_patient_address","multiple_em_claims","missing_or_incorrect_charge_amount","medical_records_request","provider_enrollment_or_contracting","missing_or_incorrect_group_number","missing_diagnosis_codes","missing_patient_authorization","incorrect_billing_provider_info","incorrect_procedure_code","incorrect_quantity","incorrect_place_of_service_code","incorrect_service_facility_info","incorrect_date_of_service","missing_or_incorrect_ndc","patient_collections","submit_to_secondary","transient_server_error","missing_remittance_enrollment","missing_claims_enrollment","held_by_customer","pending_manual_remit_posting","incorrect_referring_provider_info","payer_configuration_error"]},"YesNoIndicator":{"title":"YesNoIndicator","type":"string","enum":["YES","NO","UNKNOWN","NOT_APPLICABLE"]},"pre-encounterOrganizationId":{"title":"pre-encounterOrganizationId","type":"string","description":"The unique identifier for an Organization in the database"},"pre-encounterUserId":{"title":"pre-encounterUserId","type":"string","description":"The unique identifier for a User in the database"},"pre-encounterBaseModel":{"title":"pre-encounterBaseModel","type":"object","properties":{"organization_id":{"$ref":"#/components/schemas/pre-encounterOrganizationId","description":"The organization that owns this object."},"deactivated":{"type":"boolean","description":"True if the object is deactivated.  Deactivated objects are not returned in search results but are returned in all other endpoints including scan."},"version":{"type":"integer","description":"The version of the object. Any update to any property of an object object will create a new version."},"updated_at":{"type":"string","format":"date-time"},"updating_user_id":{"$ref":"#/components/schemas/pre-encounterUserId","description":"The user ID of the user who last updated the object."}},"required":["organization_id","deactivated","version","updated_at","updating_user_id"]},"pre-encounterPayerId":{"title":"pre-encounterPayerId","type":"string","description":"The unique identifier for a Payer in the database"},"pre-encounterPatientId":{"title":"pre-encounterPatientId","type":"string","description":"The unique identifier for a Patient"},"pre-encounterCoverageId":{"title":"pre-encounterCoverageId","type":"string","format":"uuid","description":"The unique identifier for a Coverage in the database"},"pre-encounterFilterQueryString":{"title":"pre-encounterFilterQueryString","type":"string","description":"A serialized list of filters separated by commas indicating filters to apply.  Each filter is of the form 'path:operator:value'. Example: 'patient.mrn|eq|12345'.  Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together.  Valid operators are 'eq', 'gt', 'lt', 'contains', 'ieq', 'in'. ieq is a case-insensitive equality operator. in allows searching for values that match any item in a semicolon-separated list (e.g., 'patient.id|in|foo;bar;baz'). Path values are camelCase."},"pre-encounterPayerPlanGroupId":{"title":"pre-encounterPayerPlanGroupId","type":"string","format":"uuid","description":"The unique identifier for a PayerPlanGroup in the database"},"pre-encounterAppointmentId":{"title":"pre-encounterAppointmentId","type":"string","description":"The unique identifier for an Appointment."},"pre-encounterNoteId":{"title":"pre-encounterNoteId","type":"string","description":"The unique identifier for a Note."},"pre-encounterTagId":{"title":"pre-encounterTagId","type":"string","description":"The unique identifier for a Tag."},"pre-encounterCanonicalProviderId":{"title":"pre-encounterCanonicalProviderId","type":"string","description":"The unique identifier for a provider configured in the Taiga system"},"pre-encounterExternalIdentifier":{"title":"pre-encounterExternalIdentifier","type":"object","description":"An external identifier for a patient","properties":{"value":{"type":"string"},"system":{"type":"string"},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true}},"required":["value","system"]},"pre-encounterCanonicalNonInsurancePayerAssociation":{"title":"pre-encounterCanonicalNonInsurancePayerAssociation","type":"object","properties":{"id":{"$ref":"#/components/schemas/pre-encounterCanonicalNonInsurancePayerId"},"member_id":{"type":"string","nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"clinical_trial_info":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterCanonicalClinicalTrialAssociation"},"nullable":true,"description":"A patient cannot be associated with a given trial more than once"}},"required":["id"]},"pre-encounterCanonicalNonInsurancePayerId":{"title":"pre-encounterCanonicalNonInsurancePayerId","type":"string","description":"The unique identifier for a non-insurance payer configured in the Taiga system"},"pre-encounterCanonicalClinicalTrialAssociation":{"title":"pre-encounterCanonicalClinicalTrialAssociation","type":"object","properties":{"id":{"$ref":"#/components/schemas/pre-encounterCanonicalClinicalTrialId"},"clinical_trial_arm":{"type":"string","nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true}},"required":["id"]},"pre-encounterCanonicalClinicalTrialId":{"title":"pre-encounterCanonicalClinicalTrialId","type":"string","description":"The unique identifier for a clinical trial configured in the Taiga system"},"pre-encounterCanonicalServiceFacilityId":{"title":"pre-encounterCanonicalServiceFacilityId","type":"string","description":"The unique identifier for a service facility configured in the Taiga system"},"pre-encounterPatientServiceFacility":{"title":"pre-encounterPatientServiceFacility","type":"object","description":"Represents a canonical service facility attached to a patient or patient dependent object","properties":{"service_facility_id":{"$ref":"#/components/schemas/pre-encounterCanonicalServiceFacilityId"}},"required":["service_facility_id"]},"pre-encounterRelationship":{"title":"pre-encounterRelationship","type":"string","enum":["SELF","SPOUSE","CHILD","COMMON_LAW_SPOUSE","OTHER"]},"pre-encounterGender":{"title":"pre-encounterGender","type":"string","enum":["MAN","WOMAN","NON_BINARY","TWO_SPIRIT","FEMALE_TO_MALE","MALE_TO_FEMALE","OTHER","UNKNOWN","REFUSED"]},"pre-encounterSex":{"title":"pre-encounterSex","type":"string","enum":["FEMALE","MALE","UNKNOWN","REFUSED"]},"pre-encounterSexualOrientation":{"title":"pre-encounterSexualOrientation","type":"string","enum":["HETEROSEXUAL","HOMOSEXUAL","BISEXUAL","TWO_SPIRIT","OTHER","UNKNOWN","REFUSED"]},"pre-encounterRace":{"title":"pre-encounterRace","type":"string","enum":["AMERICAN_INDIAN_OR_ALASKA_NATIVE","WHITE","BLACK","ASIAN","NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER","MIDDLE_EASTERN_OR_NORTH_AFRICAN","OTHER","UNKNOWN","REFUSED"]},"pre-encounterEthnicity":{"title":"pre-encounterEthnicity","type":"string","enum":["HISPANIC_OR_LATINO","NOT_HISPANIC_OR_LATINO","UNKNOWN","REFUSED"]},"pre-encounterDisabilityStatus":{"title":"pre-encounterDisabilityStatus","type":"string","enum":["DISABLED","NON_DISABLED"]},"pre-encounterNameUse":{"title":"pre-encounterNameUse","type":"string","enum":["USUAL","OFFICIAL","TEMP","NICKNAME","ANONYMOUS","OLD","MAIDEN"]},"pre-encounterHumanName":{"title":"pre-encounterHumanName","type":"object","properties":{"family":{"type":"string"},"given":{"type":"array","items":{"type":"string"}},"use":{"$ref":"#/components/schemas/pre-encounterNameUse"},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"suffix":{"type":"string","nullable":true}},"required":["family","given","use"]},"pre-encounterAddressUse":{"title":"pre-encounterAddressUse","type":"string","enum":["HOME","WORK","TEMP","OLD","BILLING"]},"pre-encounterAddress":{"title":"pre-encounterAddress","type":"object","properties":{"use":{"$ref":"#/components/schemas/pre-encounterAddressUse"},"line":{"type":"array","items":{"type":"string"}},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"},"county":{"type":"string","nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true}},"required":["use","line","city","state","postal_code","country"]},"pre-encounterPeriod":{"title":"pre-encounterPeriod","type":"object","properties":{"start":{"type":"string","format":"date","nullable":true},"end":{"type":"string","format":"date","nullable":true}}},"pre-encounterContactPointUse":{"title":"pre-encounterContactPointUse","type":"string","enum":["HOME","WORK","TEMP","OLD","MOBILE"]},"pre-encounterContactPoint":{"title":"pre-encounterContactPoint","type":"object","properties":{"value":{"type":"string"},"use":{"$ref":"#/components/schemas/pre-encounterContactPointUse"},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true}},"required":["value","use"]},"pre-encounterPageToken":{"title":"pre-encounterPageToken","type":"string","description":"A token that can be used to retrieve the next or previous page of results"},"pre-encounterResourcePage":{"title":"pre-encounterResourcePage","type":"object","properties":{"next_page_token":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true},"prev_page_token":{"$ref":"#/components/schemas/pre-encounterPageToken","nullable":true},"total":{"type":"integer"}},"required":["total"]},"pre-encounterErrorBase4xx":{"title":"pre-encounterErrorBase4xx","type":"object","properties":{"message":{"type":"string"},"data":{"nullable":true}},"required":["message"]},"pre-encounterErrorBase5xx":{"title":"pre-encounterErrorBase5xx","type":"object","properties":{"message":{"type":"string"},"data":{"nullable":true}},"required":["message"]},"pre-encounterVersionConflictErrorBody":{"title":"pre-encounterVersionConflictErrorBody","type":"object","properties":{"latest_version":{"type":"integer","nullable":true}},"allOf":[{"$ref":"#/components/schemas/pre-encounterErrorBase4xx"}]},"pre-encounterAdditionalPayerInformation":{"title":"pre-encounterAdditionalPayerInformation","type":"object","properties":{"availity_eligibility_id":{"type":"string","nullable":true},"availity_payer_id":{"type":"string","nullable":true},"availity_payer_name":{"type":"string","nullable":true},"availity_remittance_payer_id":{"type":"string","nullable":true}}},"pre-encounterExternalProviderType":{"title":"pre-encounterExternalProviderType","type":"string","enum":["PRIMARY","REFERRING","ATTENDING"]},"pre-encounterExternalProvider":{"title":"pre-encounterExternalProvider","type":"object","properties":{"name":{"$ref":"#/components/schemas/pre-encounterHumanName"},"type":{"$ref":"#/components/schemas/pre-encounterExternalProviderType","nullable":true,"description":"Defaults to ATTENDING."},"npi":{"type":"string","nullable":true},"telecoms":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterContactPoint"}},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterAddress"},"nullable":true},"period":{"$ref":"#/components/schemas/pre-encounterPeriod","nullable":true},"canonical_id":{"$ref":"#/components/schemas/pre-encounterCanonicalProviderId","nullable":true},"fax":{"type":"string","nullable":true},"other_fax_numbers":{"type":"array","items":{"type":"string"},"nullable":true},"emails":{"type":"array","items":{"type":"string"},"nullable":true},"service_facilities":{"type":"array","items":{"$ref":"#/components/schemas/pre-encounterPatientServiceFacility"},"nullable":true,"description":"Associated service facilities for this provider."}},"required":["name","telecoms"]},"pre-encounterSortDirection":{"title":"pre-encounterSortDirection","type":"string","enum":["asc","desc"]},"pre-encounterPatientMergeId":{"title":"pre-encounterPatientMergeId","type":"string","description":"The unique identifier for a PatientMerge record."}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://api.taigabilling.com"}]}