@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api spec
@base https://app.drchrono.com
@version v4 - Hunt Valley
@auth OAuth2
@endpoints 327
@hint download_for_search
@toc api(327)

@endpoint GET /api/day_sheet_charges
@required {start_date: str, end_date: str}
@optional {charges_date_type: str, report_type: str, claim_type: str, patient_id: int, office_id: str, examroom_id: int, pg_mode: bool}

@endpoint POST /api/claim_billing_notes
@optional {appointment: int, doctor: int}
@returns(201) {text: str, created_at: str, appointment: int, id: int, created_by: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/claim_billing_notes
@optional {cursor: str, page_size: int, appointment: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/signed_consent_forms
@required {patient: int, appointment: int, consent_form: int}
@optional {signature_file: file}
@returns(201) {date_signed: str, archived: bool, appointment: int, signature_file: str(binary), updated_at: str, patient: int, consent_form: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/signed_consent_forms
@required {id: int}
@optional {patient: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/signed_consent_forms
@required {appointment: int, patient: int, consent_form: int}
@optional {cursor: str, page_size: int, patient: int, doctor: int, date_signed: str, archived: bool, signature_file: str(binary), updated_at: str, id: int}
@returns(200) {previous: str, results: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/custom_appointment_fields
@optional {doctor: int}
@returns(201) {archived: bool, doctor: str, created_at: str, updated_at: str, order: int, field_desc: str, field_name: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_appointment_fields
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/lab_orders/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/lab_orders/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_orders/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(200) {status: str, documents: [str], patient: int, doctor: int, timestamp: str, notes: str, accession_number: str, requisition_id: str, external_requisition_id: str, priority: str, icd10_codes: [map], sublab: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/lab_orders/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/clinical_notes_list
@optional {order_by: str, page_size: int, page: int, patient: int, office: int, doctor: int, since: str, date_range: str, date: str, verbose: bool}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/clinical_notes_list
@optional {uuid: str}
@returns(200) {status: str, pagination: map{count: int, pages: int, page: int}, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/custom_vitals/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, description: str, data_type: str, doctor: str, is_fraction_field: bool, fraction_delimiter: str, allowed_values: [str], id: int, unit: str, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/sublabs/{id}
@required {id: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/sublabs/{id}
@required {id: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/sublabs/{id}
@required {id: int}
@returns(200) {vendor_name: str, facility_code: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/sublabs/{id}
@required {id: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients/{id}/qrda1
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/problems
@optional {patient: int, doctor: int}
@returns(201) {category: str, icd_code: str, icd_version: str, appointment: int, description: str, info_url: str, doctor: int, notes: str, verification_status: any, status: str, snomed_ct_code: str, abatement_date: str(date), date_onset: str, date_diagnosis: str, date_changed: str, patient: int, problem_type: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/problems
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/staff
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_messages/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_messages/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_messages/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(200) {body: str, patient: int, attachments: [map], doctor: int, created_at: str, updated_at: str, message: str, id: int, subject: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/yellow_notepad
@required {appointment_id: int, template_id: int, content: str}
@returns(201) {content: str, template_id: int, appointment_id: int}
@errors {400, 401, 403, 404, 405, 409, 500}

@endpoint GET /api/yellow_notepad
@required {appointment_id: int, template_id: int}
@returns(200) {content: str, template_id: int, appointment_id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/eligibility_checks
@optional {cursor: str, page_size: int, appointment: int, appointment_date: str, doctor: int, query_date_range: str, appointment_date_range: str, query_date: str, patient: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/doctor_work_schedule/{id}
@required {id: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/doctor_work_schedule/{id}
@required {id: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctor_work_schedule/{id}
@required {id: str}
@returns(200) {work_days: [map], id: int, office: int, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/medications
@optional {patient: int, doctor: int}
@returns(201) {dispense_quantity: num, prn: bool, pharmacy_note: str, number_refills: int, patient: int, id: int, dosage_quantity: str, doctor: int, date_started_taking: str, dosage_units: str, date_stopped_taking: str, order_status: str, status: str, appointment: int, daw: bool, rxnorm: str, date_prescribed: str, name: str, ndc: str, notes: str, frequency: str, indication: str, signature_note: str, route: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/medications
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/custom_demographics
@optional {doctor: int}
@returns(201) {archived: bool, description: str, doctor: int, template_name: str, allowed_values: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_demographics
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/appointments_list
@optional {status: str, patient: int, office: int, doctor: int, since: str, date_range: str, order_by: str, date: str, show_archived: bool}
@returns(201) {status: str, icd9_codes: [str], office: int, base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map], scheduled_time: str, secondary_insurer_name: str, doctor: int, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str, first_edi_date: str, billing_notes: [map], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, patient: int, cloned_from: int, extended_updated_at: str, exam_room: int, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map], created_at: str, reminders: [map], ins1_status: str, custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@errors {400, 401, 403, 404, 405, 409, 500}

@endpoint GET /api/appointments_list
@optional {cursor: str, page_size: int, status: str, patient: int, office: int, doctor: int, since: str, date_range: str, date: str, show_archived: bool}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/appointment_profiles
@optional {doctor: int}
@returns(201) {archived: bool, name: str, doctor: int, color: str, reason: str, sort_order: int, duration: int, id: int, online_scheduling: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/appointment_profiles
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_communications
@optional {patient: int, doctor: int}
@returns(201) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_communications
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_authorizations
@optional {cursor: str, page_size: int, patient: int, doctor: int, start_date: str, date_range: str, end_date: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/appointment_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/appointment_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/appointment_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, name: str, doctor: int, color: str, reason: str, sort_order: int, duration: int, id: int, online_scheduling: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/appointment_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/messages
@optional {patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(201) {type_description: str, patient_middle_name: str, updated_at: str, owner: str, responsible_user_first_name: str, received_at: str, id: int, doctor_last_name: str, owner_first_name: str, archived: bool, doctor: int, owner_last_name: str, patient_first_name: str, attachment: str, outgoing_fax_recipient_fax_number: str, responsible_user_last_name: str, type: str, patient_last_name: str, patient: int, doctor_first_name: str, read: bool, responsible_user: str, workflow_step: str, outgoing_fax_recipient_name: str, doctor_middle_name: str, message_notes: [map], title: str, starred: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/messages
@optional {cursor: str, page_size: int, patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/clinical_note_field_values/{id}
@required {id: str}
@optional {clinical_note_field: int, since: str, appointment: int, clinical_note_template: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/clinical_note_field_values/{id}
@required {id: str}
@optional {clinical_note_field: int, since: str, appointment: int, clinical_note_template: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_field_values/{id}
@required {id: str}
@optional {clinical_note_field: int, since: str, appointment: int, clinical_note_template: int, doctor: int}
@returns(200) {clinical_note_field: int, created_at: str, updated_at: str, value: str, appointment: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/task_categories
@optional {since: str}
@returns(201) {archived: bool, is_global: str, name: str, practice_group: int, created_at: str, updated_at: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_categories
@optional {cursor: str, page_size: int, since: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/fee_schedules_v2
@optional {cursor: str, page_size: int, payer_id: str, plan_name: str, specialities: str, assignees: str, assignee_type: str, effective_date: str, ineffective_date: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_insurance_plan_names/{id}
@required {id: str}
@optional {since: str, user: int, name: str, doctor: int}
@returns(200) {archived: bool, doctor: str, created_at: str, updated_at: str, insurance_plan_name: str, user: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/care_team_members
@optional {cursor: str, page_size: int, patient: int, appointment: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/user_groups
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/line_items_list
@optional {order_by: str, page_size: int, posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str, service_date_range: str}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/line_items_list
@optional {uuid: str}
@returns(200) {status: str, results: [map], uuid: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/consent_forms/{id}/unapply_from_appointment
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/consent_forms/{id}/apply_to_appointment
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/consent_forms
@optional {doctor: int}
@returns(201) {archived: bool, is_mandatory: bool, uri: str, doctor: int, updated_at: str, created_at: str, title: str, assign_by_default: bool, order: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/consent_forms
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/reminder_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/reminder_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/reminder_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {reminders: [map], id: int, name: str, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/reminder_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/day_sheet_patient_payments
@required {start_date: str, end_date: str}
@optional {charges_date_type: str, report_type: str, claim_type: str, patient_id: int, office: str, examroom_id: int, legacy: bool}

@endpoint POST /api/offices/{id}/add_exam_room
@required {id: str}
@optional {doctor: int}
@returns(201) {phone_number: str, city: str, archived: bool, office_work_schedule: map{work_days: [map], id: int, office: int, doctor: int}, name: str, doctor: str, country: str, start_time: str, fax_number: str, online_timeslots: [map], state: str, end_time: str, exam_rooms: str, address: str, tax_id_number_professional: str, zip_code: str, id: int, online_scheduling: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/eligibility_checks/{id}
@required {id: str}
@optional {appointment: int, appointment_date: str, doctor: int, query_date_range: str, appointment_date_range: str, query_date: str, patient: int}
@returns(200) {coverage_subscriber: str, appointment: str, eligibility: str, payer_name: str, coverage_details: str, updated_at: str, query_date: str, service_type_description: str, patient: str, request_service_type: str, id: int, cob_level: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patients_list
@optional {order_by: str, page_size: int, first_name: str, last_name: str, preferred_language: str, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str, verbose: bool}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 500}

@endpoint GET /api/patients_list
@required {uuid: str}
@returns(200) {status: str, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint POST /api/patient_interventions
@optional {patient: int, doctor: int}
@returns(201) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_interventions
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_messages
@optional {since: str, patient: int, doctor: int}
@returns(201) {body: str, patient: int, attachments: [map], doctor: int, created_at: str, updated_at: str, message: str, id: int, subject: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_messages
@optional {cursor: str, page_size: int, since: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_physical_exams/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_physical_exams/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_physical_exams/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/clinical_note_field_values
@optional {clinical_note_field: int, since: str, appointment: int, clinical_note_template: int, doctor: int}
@returns(201) {clinical_note_field: int, created_at: str, updated_at: str, value: str, appointment: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_field_values
@optional {cursor: str, page_size: int, clinical_note_field: int, since: str, appointment: int, clinical_note_template: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/inventory_vaccines/{id}
@required {id: str}
@optional {status: str, cvx_code: str, since: str, doctor: int}
@returns(200) {category: int, lot_number: str, manufacturer_code: str, name: str, original_quantity: int, doctor: int, created_at: str, status: str, updated_at: str, price_with_tax: num, expiry: str, note: str, sales_tax_applicable: bool, cost: num, price: num, vaccination_type: str, id: int, manufacturer: str, current_quantity: int, cvx_code: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patients
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str, allow_duplicates: bool}
@returns(201) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients
@optional {cursor: str, page_size: int, first_name: str, created_at: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/implantable_devices/{id}
@required {id: str}
@optional {mu_date: str, patient: int, mu_date_range: str, doctor: int}
@returns(200) {status: str, lot_number: str, archived: bool, manufacturing_date: str, patient: str, expiration_date: str, created_at: str, brand_name: str, updated_at: str, gmdn_pt_name: str, version_or_model: str, serial_number: str, udi: str, id: int, procedure: str, company_name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_communications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_communications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_communications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/offices
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/prescription_messages/{id}
@required {id: str}
@optional {parent_message: int, since: str, patient: int, doctor: int}
@returns(200) {message_status: str, patient: int, doctor: int, message_type: str, created_at: str, parent_message: str, message_direction: str, pharmacy: str, json_data: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/implantable_devices
@optional {cursor: str, page_size: int, mu_date: str, patient: int, mu_date_range: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_risk_assessments
@optional {patient: int, doctor: int}
@returns(201) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_risk_assessments
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/task_statuses/{id}
@required {id: str}
@optional {since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/task_statuses/{id}
@required {id: str}
@optional {since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_statuses/{id}
@required {id: str}
@optional {since: str}
@returns(200) {archived: bool, name: str, status_category: str, practice_group: int, created_at: str, updated_at: str, id: int, task_category: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patients_summary
@optional {first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(201) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients_summary
@optional {cursor: str, page_size: int, first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/documents/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/documents/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/documents/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(200) {archived: bool, patient: int, description: str, doctor: int, metatags: str, updated_at: str, date: str, document: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/documents/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/office_work_schedule
@returns(200) {work_days: [map], id: int, office: int, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patients/{id}/onpatient_access
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(201) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients/{id}/onpatient_access
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/patients/{id}/onpatient_access
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/comm_logs
@optional {since: str, patient: int, doctor: int}
@returns(201) {scheduled_time: str, archived: bool, appointment: int, doctor: int, title: str, created_at: str, author: str, updated_at: str, cash_charged: num, duration: int, patient: int, message: str, type: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/comm_logs
@optional {cursor: str, page_size: int, since: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/lab_results/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/lab_results/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_results/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(200) {status: str, group_code: str, observation_description: str, is_abnormal: str, observation_code: str, specimen_received: str, comments: str, normal_range: str, test_performed: str, value: str, abnormal_status: str, lab_order: str, value_is_numeric: bool, document: int, lab_test: int, id: int, unit: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/lab_results/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/medications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/medications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/medications/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {dispense_quantity: num, prn: bool, pharmacy_note: str, number_refills: int, patient: int, id: int, dosage_quantity: str, doctor: int, date_started_taking: str, dosage_units: str, date_stopped_taking: str, order_status: str, status: str, appointment: int, daw: bool, rxnorm: str, date_prescribed: str, name: str, ndc: str, notes: str, frequency: str, indication: str, signature_note: str, route: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/day_sheet_credits
@required {start_date: str, end_date: str}
@optional {credits_date_type: str, report_type: str, claim_type: str, patient_id: int, office_id: str, examroom_id: int, pg_mode: bool}

@endpoint POST /api/task_templates
@optional {assignee_user: int, status: int, assignee_group: int, since: str, category: int}
@returns(201) {archived: bool, name: str, practice_group: str, default_category: int, updated_at: str, default_title: str, default_note: str, default_status: int, id: int, default_assignee_group: int, default_assignee_user: str, default_due_date_offset: str, created_at: str, default_priority: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_templates
@optional {cursor: str, page_size: int, assignee_user: int, status: int, assignee_group: int, since: str, category: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/transactions_list
@optional {order_by: str, page_size: int, page: int, line_item: int, posted_date: str, appointment: int, since: str, doctor: int, verbose: bool}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/transactions_list
@required {uuid: str}
@returns(200) {status: str, pagination: map{count: int, pages: int, page: int}, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint PATCH /api/medications/{id}/append_to_pharmacy_note
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/office_work_schedule/{id}
@required {id: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/office_work_schedule/{id}
@required {id: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/office_work_schedule/{id}
@required {id: str}
@returns(200) {work_days: [map], id: int, office: int, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_vaccine_records/{id}
@required {id: str}
@optional {cvx_code: str, patient: int, since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_vaccine_records/{id}
@required {id: str}
@optional {cvx_code: str, patient: int, since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_vaccine_records/{id}
@required {id: str}
@optional {cvx_code: str, patient: int, since: str, doctor: int}
@returns(200) {lot_number: str, site: str, ordering_doctor: int, doses: [map], id: int, next_dose_date: str, cpt_code: str, completion_status: str, administered_at: int, comments: str, funding_eligibility: str, units: str, entered_by: str, patient: int, administration_start: str, record_source: str, updated_at: str, consent_form: int, manufacturer: str, administered_by: str, name: str, vis: str, created_at: str, observed_immunity: str, amount: num, vaccine_inventory: int, route: str, cvx_code: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_flag_types/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_flag_types/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_flag_types/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, name: str, doctor: int, color: str, created_at: str, updated_at: str, priority: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/inventory_categories/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(200) {archived: bool, name: str, doctor: str, created_at: str, updated_at: str, category_type: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/clinical_note_field_types/{id}
@required {id: str}
@optional {freedraw_image_size: str(/150x300/300x600/450x900/600x1200/750x1500)}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_field_types/{id}
@required {id: str}
@optional {clinical_note_template: int, doctor: int}
@returns(200) {comment: str, archived: bool, clinical_note_template: str, data_type: str, required: bool, allowed_values: [str], id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/tasks/{id}
@required {id: str}
@optional {status: int, category: int, due_at_date: str, due_at_unknown: str, since: str, due_at_since: str, assignee_user: int, assignee_group: int, due_at_range: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/tasks/{id}
@required {id: str}
@optional {status: int, category: int, due_at_date: str, due_at_unknown: str, since: str, due_at_since: str, assignee_user: int, assignee_group: int, due_at_range: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/tasks/{id}
@required {id: str}
@optional {status: int, category: int, due_at_date: str, due_at_unknown: str, since: str, due_at_since: str, assignee_user: int, assignee_group: int, due_at_range: str}
@returns(200) {category: int, due_date: map{time: str}, archived: bool, associated_items: [map], assigned_by: str, assignee_user: str, created_at: str, assignee_group: int, updated_at: str, created_by: str, priority: str, status: int, notes: [map], title: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctor_work_schedule
@returns(200) {work_days: [map], id: int, office: int, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctor_options
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/fee_schedules
@optional {cursor: str, page_size: int, code: str, code_type: str, since: str, payer_id: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_risk_assessments/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_risk_assessments/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_risk_assessments/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/inventory_categories
@optional {cursor: str, page_size: int, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/lab_documents/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/lab_documents/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_documents/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(200) {hl7: str, timestamp: str, lab_order: int, document: str, type: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/lab_documents/{id}
@required {id: str}
@optional {since: str, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/appointment_templates/{id}
@required {id: str}
@optional {profile: int, office: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/appointment_templates/{id}
@required {id: str}
@optional {profile: int, office: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/appointment_templates/{id}
@required {id: str}
@optional {profile: int, office: int, doctor: int}
@returns(200) {profile: int, scheduled_time: str, archived: bool, week_days: [int], office: int, open_slots: [map], date_end: str, date_start: str, exam_room: int, duration: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/appointment_templates/{id}
@required {id: str}
@optional {profile: int, office: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_interventions/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_interventions/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_interventions/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/task_statuses
@optional {since: str}
@returns(201) {archived: bool, name: str, status_category: str, practice_group: int, created_at: str, updated_at: str, id: int, task_category: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_statuses
@optional {cursor: str, page_size: int, since: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/allergies/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/allergies/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/allergies/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {status: str, reaction: str, patient: int, description: str, doctor: int, snomed_reaction: str, notes: str, verification_status: str, snomed_code: str, rxnorm: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients/{id}/ccda
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_payments/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(200) {line_item: int, posted_date: str, appointment: int, doctor: int, payment_method: str, created_at: str, payment_transaction_type: str, created_by: str, updated_at: str, amount: num, notes: str, trace_number: str, patient: int, id: int, received_date: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_orders_summary
@optional {cursor: str, page_size: int, since: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_payments
@optional {since: str, patient: int, doctor: int}
@returns(201) {line_item: int, posted_date: str, appointment: int, doctor: int, payment_method: str, created_at: str, payment_transaction_type: str, created_by: str, updated_at: str, amount: num, notes: str, trace_number: str, patient: int, id: int, received_date: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_payments
@optional {cursor: str, page_size: int, since: str, posted_date: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/clinical_note_field_values_list
@optional {order_by: str, page_size: int, page: int, since: str, appointment: int, clinical_note_template: int}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/clinical_note_field_values_list
@optional {uuid: str}
@returns(200) {status: str, pagination: map{count: int, pages: int, page: int}, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/care_plans/{id}
@required {id: str}
@optional {patient: int, plan_type: int, doctor: int}
@returns(200) {code: str, appointment: str, description: str, title: str, created_at: str, plan_type: str, updated_at: str, scheduled_date: str, patient: str, id: int, code_system: str, instructions: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/billing_profiles
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/billing_profiles/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {cpt_codes: [map], archived: bool, icd9_codes: [str], name: str, hcpcs_codes: [map], created_at: str, doctor: str, updated_at: str, custom_procedure_codes: [map], icd10_codes: [str], id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/availability
@optional {office: int, doctor: int, date: str, date_range: str, duration: int}

@endpoint PUT /api/task_templates/{id}
@required {id: str}
@optional {assignee_user: int, status: int, assignee_group: int, since: str, category: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/task_templates/{id}
@required {id: str}
@optional {assignee_user: int, status: int, assignee_group: int, since: str, category: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_templates/{id}
@required {id: str}
@optional {assignee_user: int, status: int, assignee_group: int, since: str, category: int}
@returns(200) {archived: bool, name: str, practice_group: str, default_category: int, updated_at: str, default_title: str, default_note: str, default_status: int, id: int, default_assignee_group: int, default_assignee_user: str, default_due_date_offset: str, created_at: str, default_priority: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/fee_schedules/{id}
@required {id: str}
@optional {code: str, code_type: str, since: str, payer_id: str, doctor: int}
@returns(200) {code_type: str, insured_out_of_network_price: num, office: int, updated_at: str, code: str, billing_description: str, id: int, picklist_category: str, allowed_amount: num, ndc_quantity: num, cash_price: num, plan_name: str, description: str, ndc_units: str, ndc_code: str, payer_id: str, cpt_hcpcs_modifier2: str, cpt_hcpcs_modifier3: str, cpt_hcpcs_modifier1: str, cpt_hcpcs_modifier4: str, created_at: str, doctor: int, insured_price: num, base_price: num}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/appointments/{id}
@required {id: str, office: int, scheduled_time: str, doctor: int, patient: int, exam_room: int}
@optional {status: str(/Arrived/Checked In/Checked In Online/In Room/In Session/Complete/Confirmed/Not Confirmed/Rescheduled/Cancelled/No Show), icd9_codes: [str], base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map{field_type: int, created_at: str, updated_at: str, field_value: str}], secondary_insurer_name: str, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), first_edi_date: str, billing_notes: [map{text: str, created_at: str, appointment: int, id: int, created_by: str}], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, cloned_from: int, extended_updated_at: str, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map{value: str, vital_type: int}], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map{appointment: str, to_status: str, from_status: str, datetime: str}], created_at: str, reminders: [map{scheduled_time: str, type: str, id: int}], ins1_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@errors {400, 401, 403, 404, 409, 500}

@endpoint PATCH /api/appointments/{id}
@required {id: str, office: int, scheduled_time: str, doctor: int, patient: int, exam_room: int}
@optional {status: str(/Arrived/Checked In/Checked In Online/In Room/In Session/Complete/Confirmed/Not Confirmed/Rescheduled/Cancelled/No Show), icd9_codes: [str], base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map{field_type: int, created_at: str, updated_at: str, field_value: str}], secondary_insurer_name: str, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), first_edi_date: str, billing_notes: [map{text: str, created_at: str, appointment: int, id: int, created_by: str}], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, cloned_from: int, extended_updated_at: str, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map{value: str, vital_type: int}], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map{appointment: str, to_status: str, from_status: str, datetime: str}], created_at: str, reminders: [map{scheduled_time: str, type: str, id: int}], ins1_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@returns(204)
@errors {400, 401, 403, 404, 409, 500}

@endpoint GET /api/appointments/{id}
@required {id: str}
@returns(200) {status: str, icd9_codes: [str], office: int, base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map], scheduled_time: str, secondary_insurer_name: str, doctor: int, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str, first_edi_date: str, billing_notes: [map], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, patient: int, cloned_from: int, extended_updated_at: str, exam_room: int, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map], created_at: str, reminders: [map], ins1_status: str, custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@errors {401, 403, 404, 500}

@endpoint DELETE /api/appointments/{id}
@required {id: str}
@errors {401, 403, 404, 500}

@endpoint POST /api/telehealth_appointments
@optional {appointment: int, doctor: int}
@returns(201) {sent_patient_email: any, appointment: int, created_at: str, updated_at: str, overlapping_duration: str, duration: int, telehealth_url: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/telehealth_appointments
@optional {cursor: str, page_size: int, appointment: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/care_plans
@optional {cursor: str, page_size: int, patient: int, plan_type: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_physical_exams
@optional {patient: int, doctor: int}
@returns(201) {value_name: str, value_code_system: str, code: str, appointment: str, name: str, doctor: int, created_at: str, effective_time: str, value_code: str, patient: int, id: int, code_system: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_physical_exams
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/line_item_deletions
@optional {since: str, appointment_id: int}
@returns(200) {previous: str, results: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/signed_consent_forms/{id}
@required {id: str}
@returns(200) {date_signed: str, archived: bool, appointment: int, signature_file: str(binary), updated_at: str, patient: int, consent_form: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_templates/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, workflow_key: str, name: str, doctor: str, updated_at: str, is_persistent: bool, clinical_note_fields: [map], is_onpatient: bool, order: map{on_complete_note: int, on_ipad: int}, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/transactions
@optional {cursor: str, page_size: int, line_item: int, posted_date: str, appointment: int, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/lab_results
@optional {order: int, doctor: int}
@returns(201) {status: str, group_code: str, observation_description: str, is_abnormal: str, observation_code: str, specimen_received: str, comments: str, normal_range: str, test_performed: str, value: str, abnormal_status: str, lab_order: str, value_is_numeric: bool, document: int, lab_test: int, id: int, unit: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_results
@optional {cursor: str, page_size: int, order: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_insurance_plan_names
@optional {cursor: str, page_size: int, since: str, user: int, name: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/problems/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/problems/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/problems/{id}
@required {id: str}
@optional {patient: int, doctor: int}
@returns(200) {category: str, icd_code: str, icd_version: str, appointment: int, description: str, info_url: str, doctor: int, notes: str, verification_status: any, status: str, snomed_ct_code: str, abatement_date: str(date), date_onset: str, date_diagnosis: str, date_changed: str, patient: int, problem_type: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/amendments
@optional {appointment: int, patient: int, doctor: int}
@returns(201) {amendment_name: str, appointment: int, doctor: int, comments: str, amendment_file: str, patient: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/amendments
@optional {cursor: str, page_size: int, appointment: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/lab_orders
@optional {since: str, doctor: int}
@returns(201) {status: str, documents: [str], patient: int, doctor: int, timestamp: str, notes: str, accession_number: str, requisition_id: str, external_requisition_id: str, priority: str, icd10_codes: [map], sublab: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_orders
@optional {cursor: str, page_size: int, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctors/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {website: str, doctor_work_schedule: map{work_days: [map], id: int, office: int, doctor: int}, first_name: str, last_name: str, suffix: str, profile_picture: str, country: str, practice_group_name: str, specialty: str, is_account_suspended: bool, id: int, office_phone: str, npi_number: str, group_npi_number: str, home_phone: str, practice_group: str, timezone: str, cell_phone: str, email: str, job_title: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_flag_types
@optional {doctor: int}
@returns(201) {archived: bool, name: str, doctor: int, color: str, created_at: str, updated_at: str, priority: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_flag_types
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/day_sheet_totals
@required {start_date: str, end_date: str}
@optional {charges_date_type: str, report_type: str, credits_date_type: str, group_by: str, sub_group_by: str, tertiary_group_by: str, cash_view_type: str, patient_id: int, office_id: str, examroom_id: int, pg_mode: bool}

@endpoint PUT /api/custom_appointment_fields/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/custom_appointment_fields/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_appointment_fields/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, doctor: str, created_at: str, updated_at: str, order: int, field_desc: str, field_name: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/eobs
@optional {doctor: int}
@returns(201) {posted_date: str, insurance_payer_name: str, doctor: int, payment_method: str, deposit_date: str, updated_at: str, insurance_payer_id: str, scanned_eob: str, insurance_payer_trace_number: str, total_paid: num, check_date: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/eobs
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/users/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {username: str, doctor: str, practice_group: str, is_doctor: str, is_staff: str, id: str, permissions: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/insurances
@required {payer_type: str}
@optional {cursor: str, page_size: int, term: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/telehealth_appointment_history
@optional {doctor: int}
@returns(201) {timestamp: str, description: str, event_type: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/telehealth_appointment_history
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/task_notes
@optional {task: int, since: str}
@returns(201) {archived: bool, task: int, text: str, created_at: str, updated_at: str, created_by: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_notes
@optional {cursor: str, page_size: int, task: int, since: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/tasks
@optional {status: int, category: int, due_at_date: str, due_at_unknown: str, since: str, due_at_since: str, assignee_user: int, assignee_group: int, due_at_range: str}
@returns(201) {category: int, due_date: map{time: str}, archived: bool, associated_items: [map], assigned_by: str, assignee_user: str, created_at: str, assignee_group: int, updated_at: str, created_by: str, priority: str, status: int, notes: [map], title: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/tasks
@optional {cursor: str, page_size: int, status: int, category: int, due_at_date: str, due_at_unknown: str, since: str, due_at_since: str, assignee_user: int, assignee_group: int, due_at_range: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patients_summary/{id}
@required {id: str}
@optional {first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patients_summary/{id}
@required {id: str}
@optional {first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients_summary/{id}
@required {id: str}
@optional {first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(200) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/patients_summary/{id}
@required {id: str}
@optional {first_name: str, last_name: str, doctor: int, gender: str, since: str, date_of_birth: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/lab_documents
@optional {since: str, doctor: int}
@returns(201) {hl7: str, timestamp: str, lab_order: int, document: str, type: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_documents
@optional {cursor: str, page_size: int, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/consent_forms/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/consent_forms/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/consent_forms/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, is_mandatory: bool, uri: str, doctor: int, updated_at: str, created_at: str, title: str, assign_by_default: bool, order: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/lab_tests/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/lab_tests/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_tests/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(200) {report_notes: str, status: str, code: str, description: str, specimen_condition: str, collection_date: str, internal_notes: str, specimen_total_volume: num, specimen_source: str, lab_order: int, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/lab_tests/{id}
@required {id: str}
@optional {order: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/prescription_messages_list
@optional {order_by: str, page_size: int, page: int, since: str, patient: int, doctor: int, created_at: str, parent_message: int}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/prescription_messages_list
@optional {uuid: str}
@returns(200) {status: str, pagination: map{count: int, pages: int, page: int}, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint PUT /api/patients/{id}
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patients/{id}
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients/{id}
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200) {medication_history_consent: str, last_name: str, emergency_contact_phone: str, primary_care_physician: str, date_of_first_appointment: str, tertiary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, patient_flags_attached: [map], updated_at: str, custom_demographics: [map], referring_source: str, responsible_party_relation: str, zip_code: str, id: int, employer_city: str, employer_state: str, city: str, first_name: str, middle_name: str, doctor: int, race_subcategories: [map], disable_sms_messages: bool, employer: str, preferred_language_description: str, patient_flags: [map], date_of_birth: str, ethnicity: str, home_phone: str, pronouns: str, patient_status: str, patient_photo_date: str, gender_identity_description: str, email: str, responsible_party_email: str, patient_photo: str, responsible_party_phone: str, state: str, secondary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, date_of_last_appointment: str, preferred_language_code: str, patient_payment_profile: str, date_of_death: str, social_security_number: str, auto_accident_insurance: map{auto_accident_claim_rep_city: str, auto_accident_claim_rep_state: str, auto_accident_claim_rep_address: str, auto_accident_will_require_therapy_rec: str, auto_accident_subscriber_middle_name: str, auto_accident_still_under_care: bool, auto_accident_significant_injury_notes: str, auto_accident_subscriber_first_name: str, auto_accident_subscriber_address: str, auto_accident_disabled_from_date: str, auto_accident_company: str, auto_accident_disabled_to_date: str, auto_accident_similar_condition_date: str, auto_accident_case_number: str, auto_accident_claim_rep_is_insurer: bool, auto_accident_payer_address: str, auto_accident_subscriber_last_name: str, auto_accident_subscriber_social_security: str, auto_accident_subscriber_phone_number: str, auto_accident_subscriber_city: str, auto_accident_significant_injury: str, auto_accident_similar_condition_notes: str, auto_accident_payer_id: str, auto_accident_payer_state: str, auto_accident_subscriber_zip_code: str, auto_accident_payer_zip: str, auto_accident_payer_city: str, auto_accident_will_require_therapy: bool, auto_accident_date_of_accident: str, auto_accident_subscriber_date_of_birth: str, auto_accident_subscriber_suffix: str, auto_accident_subscriber_state: str, auto_accident_return_to_work_date: str, auto_accident_notes: str, auto_accident_policy_number: str, auto_accident_is_subscriber_the_patient: bool, auto_accident_claim_rep_zip: str, auto_accident_state_of_occurrence: str, auto_accident_treatment_duration: str, auto_accident_had_similar_condition: bool, auto_accident_patient_relationship_to_subscriber: str, auto_accident_claim_rep_name: str}, address: str, chart_id: str, referring_doctor: map{fax: str, last_name: str, middle_name: str, suffix: str, first_name: str, provider_number: str, specialty: str, provider_qualifier: str, phone: str, address: str, npi: str, email: str}, primary_insurance: map{insurance_group_name: str, insurance_id_number: str, insurance_claim_office_number: str, subscriber_address: str, subscriber_state: str, subscriber_social_security: str, photo_front: str, subscriber_last_name: str, subscriber_middle_name: str, subscriber_date_of_birth: str, insurance_company: str, is_subscriber_the_patient: bool, insurance_plan_name: str, patient_relationship_to_subscriber: str, subscriber_gender: str, photo_back: str, subscriber_suffix: str, subscriber_zip_code: str, subscriber_city: str, insurance_plan_type: str, insurance_payer_id: str, subscriber_country: str, subscriber_first_name: str, insurance_group_number: str}, preferred_language: str, responsible_party_name: str, nick_name: str, copay: str, created_at: str, emergency_contact_relation: str, gender_identity_code: str, office_phone: str, employer_address: str, race: str, offices: [int], preferred_pharmacies: [str], emergency_contact_name: str, gender: str, default_pharmacy: str, cell_phone: str, employer_zip_code: str, workers_comp_insurance: map{workers_comp_payer_city: str, workers_comp_payer_id: str, workers_comp_group_name: str, workers_comp_wcb: str, workers_comp_carrier_code: str, workers_comp_notes: str, property_and_casualty_agency_claim_number: str, workers_comp_state_of_occurrence: str, workers_comp_payer_zip: str, workers_comp_wcb_rating_code: str, workers_comp_case_number: str, workers_comp_group_number: str, workers_comp_company: str, workers_comp_payer_address: str, workers_comp_date_of_accident: str, workers_comp_payer_state: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/patients/{id}
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patients/{id}/ccda_async
@required {id: str}
@optional {first_name: str, last_name: str, preferred_language: str, doctor: int, gender: str, created_at: str, since: str, date_of_birth: str, race: str, chart_id: str, email: str, ethnicity: str}
@returns(200)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_vitals
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/schedule_blocks
@required {office: int, start_time: str(date-time), end_time: str(date-time), provider: int}
@optional {description: str, color: str, practice_group: int, exam_room: int, series: int, id: int, appointment_break: int}
@returns(201) {description: str, office: int, color: str, practice_group: int, start_time: str(date-time), exam_room: int, series: int, end_time: str(date-time), provider: int, id: int, appointment_break: int}
@errors {400, 401, 403, 500}

@endpoint GET /api/schedule_blocks
@optional {cursor: str, page_size: int, doctor: int, office: int, date: str, date_range: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 500}

@endpoint GET /api/care_team_members/{id}
@required {id: str}
@optional {patient: int, appointment: int, doctor: int}
@returns(200) {patient: str, created_at: str, appointment: str, id: int, user: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/claim_billing_notes/{id}
@required {id: str}
@optional {appointment: int, doctor: int}
@returns(200) {text: str, created_at: str, appointment: int, id: int, created_by: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/inventory_vaccines
@optional {status: str, cvx_code: str, since: str, doctor: int}
@returns(201) {category: int, lot_number: str, manufacturer_code: str, name: str, original_quantity: int, doctor: int, created_at: str, status: str, updated_at: str, price_with_tax: num, expiry: str, note: str, sales_tax_applicable: bool, cost: num, price: num, vaccination_type: str, id: int, manufacturer: str, current_quantity: int, cvx_code: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/inventory_vaccines
@optional {cursor: str, page_size: int, status: str, cvx_code: str, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/transactions/{id}
@required {id: str}
@optional {line_item: int, posted_date: str, appointment: int, since: str, doctor: int}
@returns(200) {insurance: map{id_number: str, message: str, name: str}, ins_paid: num, posted_date: str, appointment: int, ins_name: int, doctor: int, adjustment_group_code: str, updated_at: str, id: int, line_item: int, claim_status: str, check_date: str, trace_number: str, adjustment_reason: str, patient: int, adjustment: num, created_at: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/procedures
@optional {cursor: str, page_size: int, mu_date: str, patient: int, doctor: int, mu_date_range: str, appointment: int, service_date: str}
@returns(200) {previous: str, data: [any], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/patient_lab_results/{id}
@required {id: str}
@optional {ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/patient_lab_results/{id}
@required {id: str}
@optional {ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_lab_results/{id}
@required {id: str}
@optional {ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(200) {doctor_signoff: bool, loinc_code: str, patient: int, ordering_doctor: int, lab_abnormal_flag: str, lab_normal_range_units: str, created_at: str, lab_normal_range: str, doctor_comments: str, date_test_performed: str, updated_at: str, lab_result_value: str, lab_result_value_as_float: num, scanned_in_result: str, title: str, lab_order_status: str, lab_imported_from_ccr: str, id: int, lab_result_value_units: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/patient_lab_results/{id}
@required {id: str}
@optional {ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/amendments/{id}
@required {id: str}
@optional {appointment: int, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/amendments/{id}
@required {id: str}
@optional {appointment: int, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/amendments/{id}
@required {id: str}
@optional {appointment: int, patient: int, doctor: int}
@returns(200) {amendment_name: str, appointment: int, doctor: int, comments: str, amendment_file: str, patient: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/amendments/{id}
@required {id: str}
@optional {appointment: int, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/lab_tests
@optional {order: int, doctor: int}
@returns(201) {report_notes: str, status: str, code: str, description: str, specimen_condition: str, collection_date: str, internal_notes: str, specimen_total_volume: num, specimen_source: str, lab_order: int, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/lab_tests
@optional {cursor: str, page_size: int, order: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/appointments_list/{id}
@required {id: str}
@optional {status: str, patient: int, office: int, doctor: int, since: str, date_range: str, date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 409, 500}

@endpoint PATCH /api/appointments_list/{id}
@required {id: str}
@optional {status: str, patient: int, office: int, doctor: int, since: str, date_range: str, date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 409, 500}

@endpoint GET /api/appointments_list/{id}
@required {id: str}
@optional {status: str, patient: int, office: int, doctor: int, since: str, date_range: str, date: str}
@returns(200) {status: str, icd9_codes: [str], office: int, base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map], scheduled_time: str, secondary_insurer_name: str, doctor: int, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str, first_edi_date: str, billing_notes: [map], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, patient: int, cloned_from: int, extended_updated_at: str, exam_room: int, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map], created_at: str, reminders: [map], ins1_status: str, custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/appointments_list/{id}
@required {id: str}
@optional {status: str, patient: int, office: int, doctor: int, since: str, date_range: str, date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_lab_results
@optional {ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(201) {doctor_signoff: bool, loinc_code: str, patient: int, ordering_doctor: int, lab_abnormal_flag: str, lab_normal_range_units: str, created_at: str, lab_normal_range: str, doctor_comments: str, date_test_performed: str, updated_at: str, lab_result_value: str, lab_result_value_as_float: num, scanned_in_result: str, title: str, lab_order_status: str, lab_imported_from_ccr: str, id: int, lab_result_value_units: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_lab_results
@optional {cursor: str, page_size: int, ordering_doctor: int, since: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/task_categories/{id}
@required {id: str}
@optional {since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/task_categories/{id}
@required {id: str}
@optional {since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_categories/{id}
@required {id: str}
@optional {since: str}
@returns(200) {archived: bool, is_global: str, name: str, practice_group: int, created_at: str, updated_at: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/fee_schedules_v2/{id}
@required {id: str}
@returns(200) {ineffective_date: str, assignees: [any], items: [any], created_at: str, payer_id: str, updated_at: str, assignee_type: str, specialities: [any], effective_date: str, plan_name: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/insurances/{id}
@required {id: str, payer_type: str}
@optional {term: str}
@returns(200) {payer_name: str, state: str, payer_id: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_notes
@optional {cursor: str, page_size: int, patient: int, office: int, doctor: int, created_at: str, since: str, date_range: str, date: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/eligibility_checks_list
@optional {order_by: str, page_size: int, page: int, since: str, patient: int, appointment_date_range: str, appointment_date: str, query_date_range: str, query_date: str, service_types: str, verbose: bool}
@returns(201) {status: str, uuid: str, description: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/eligibility_checks_list
@optional {uuid: str}
@returns(200) {status: str, pagination: map{count: int, pages: int, page: int}, results: [map], uuid: str}
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/telehealth_appointment_history/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {timestamp: str, description: str, event_type: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_notes/{id}
@required {id: str}
@optional {patient: int, office: int, doctor: int, since: str, date_range: str, date: str}
@returns(200) {patient: str, archived: bool, clinical_note_sections: [map], appointment: str, signee: map{locked_by: str, supervisor_locked_by: str}}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_field_types
@optional {cursor: str, page_size: int, clinical_note_template: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/documents
@optional {since: str, patient: int, doctor: int}
@returns(201) {archived: bool, patient: int, description: str, doctor: int, metatags: str, updated_at: str, date: str, document: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/documents
@optional {cursor: str, page_size: int, since: str, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/staff/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {username: str, first_name: str, last_name: str, user_id: str, doctor: str, created_at: str, updated_at: str, id: int, home_phone: str, active: str, cell_phone: str, email: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/users
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/schedule_blocks/{id}
@required {id: str, office: int, start_time: str(date-time), end_time: str(date-time), provider: int}
@optional {description: str, color: str, practice_group: int, exam_room: int, series: int, id: int, appointment_break: int}
@returns(200) {description: str, office: int, color: str, practice_group: int, start_time: str(date-time), exam_room: int, series: int, end_time: str(date-time), provider: int, id: int, appointment_break: int}
@returns(204)
@errors {400, 401, 403, 404, 500}

@endpoint PATCH /api/schedule_blocks/{id}
@required {id: str, office: int, start_time: str(date-time), end_time: str(date-time), provider: int}
@optional {description: str, color: str, practice_group: int, exam_room: int, series: int, id: int, appointment_break: int}
@returns(200) {description: str, office: int, color: str, practice_group: int, start_time: str(date-time), exam_room: int, series: int, end_time: str(date-time), provider: int, id: int, appointment_break: int}
@returns(204)
@errors {400, 401, 403, 404, 500}

@endpoint GET /api/schedule_blocks/{id}
@required {id: str}
@returns(200) {description: str, office: int, color: str, practice_group: int, start_time: str(date-time), exam_room: int, series: int, end_time: str(date-time), provider: int, id: int, appointment_break: int}
@errors {401, 403, 404, 500}

@endpoint DELETE /api/schedule_blocks/{id}
@required {id: str}
@returns(204)
@errors {401, 403, 404, 500}

@endpoint GET /api/lab_orders_summary/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(200) {status: str, documents: [str], patient: int, doctor: int, timestamp: str, notes: str, accession_number: str, requisition_id: str, external_requisition_id: str, priority: str, icd10_codes: [map], sublab: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/audit_log
@optional {cursor: str, page_size: int, since: str, date_range: str, date: str, patient: int, doctor: int, user: int, appointment: int, type: str, action: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/task_notes/{id}
@required {id: str}
@optional {task: int, since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/task_notes/{id}
@required {id: str}
@optional {task: int, since: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/task_notes/{id}
@required {id: str}
@optional {task: int, since: str}
@returns(200) {archived: bool, task: int, text: str, created_at: str, updated_at: str, created_by: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/custom_demographics/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/custom_demographics/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/custom_demographics/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, description: str, doctor: int, template_name: str, allowed_values: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/messages/{id}
@required {id: str}
@optional {patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/messages/{id}
@required {id: str}
@optional {patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/messages/{id}
@required {id: str}
@optional {patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(200) {type_description: str, patient_middle_name: str, updated_at: str, owner: str, responsible_user_first_name: str, received_at: str, id: int, doctor_last_name: str, owner_first_name: str, archived: bool, doctor: int, owner_last_name: str, patient_first_name: str, attachment: str, outgoing_fax_recipient_fax_number: str, responsible_user_last_name: str, type: str, patient_last_name: str, patient: int, doctor_first_name: str, read: bool, responsible_user: str, workflow_step: str, outgoing_fax_recipient_name: str, doctor_middle_name: str, message_notes: [map], title: str, starred: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/messages/{id}
@required {id: str}
@optional {patient: int, doctor: int, responsible_user: int, updated_since: str, received_since: str, owner: int, type: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/eobs/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {posted_date: str, insurance_payer_name: str, doctor: int, payment_method: str, deposit_date: str, updated_at: str, insurance_payer_id: str, scanned_eob: str, insurance_payer_trace_number: str, total_paid: num, check_date: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctor_options/{id}
@required {id: str}
@returns(200) {default_supervising_provider: int, doctor: int, updated_at: str, patient_statement_office: int, allowed_payment_methods: [any], default_report: int, default_billing_provider: int, default_reminder_profile: int, enable_everhealth_scribe: bool, office_for_lab_results: int, erx_supervising_providers: [int], iframe_apps: [str], id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/allergies
@optional {patient: int, doctor: int}
@returns(201) {status: str, reaction: str, patient: int, description: str, doctor: int, snomed_reaction: str, notes: str, verification_status: str, snomed_code: str, rxnorm: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/allergies
@optional {cursor: str, page_size: int, patient: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/appointments
@required {office: int, scheduled_time: str, doctor: int, patient: int, exam_room: int}
@optional {status: str(/Arrived/Checked In/Checked In Online/In Room/In Session/Complete/Confirmed/Not Confirmed/Rescheduled/Cancelled/No Show), icd9_codes: [str], base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map{field_type: int, created_at: str, updated_at: str, field_value: str}], secondary_insurer_name: str, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), first_edi_date: str, billing_notes: [map{text: str, created_at: str, appointment: int, id: int, created_by: str}], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, cloned_from: int, extended_updated_at: str, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map{value: str, vital_type: int}], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map{appointment: str, to_status: str, from_status: str, datetime: str}], created_at: str, reminders: [map{scheduled_time: str, type: str, id: int}], ins1_status: str(/Incomplete Information/In Process Emdeon/Rejected Emdeon/Rejected EPS/Rejected Jopari/In Process Payor/Rejected Waystar Professional/Rejected Waystar Institutional/In Process Payer/Payer Acknowledged/Rejected Payor/Rejected Payer/Paid in Full/Partially Paid/Coordination of Benefits/ERA Received/ERA Denied/HCFA Form Faxed), custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@returns(201) {status: str, icd9_codes: [str], office: int, base_recurring_appointment: str, color: str, vitals: map{height_units: str, weight_units: str, pain: str, temperature: num, weight: num, smoking_status: str, head_circumference: num, bmi: str, head_circumference_units: str, blood_pressure_2: int, blood_pressure_1: int, height: num, pulse: int, oxygen_saturation: num, respiratory_rate: int, temperature_units: str}, first_billed_date: str, last_billed_date: str, billing_status: str, primary_insurer_payer_id: str, duration: int, appt_is_break: bool, id: str, custom_fields: [map], scheduled_time: str, secondary_insurer_name: str, doctor: int, recur_start_date: str, primary_insurance_id_number: str, created_by: str, ins2_status: str, first_edi_date: str, billing_notes: [map], is_walk_in: bool, billing_provider: str, reminder_profile: str, primary_insurer_name: str, profile: int, resubmit_claim_original_id: int, patient: int, cloned_from: int, extended_updated_at: str, exam_room: int, updated_at: str, reason: str, last_edi_date: str, secondary_insurer_payer_id: str, allow_overlapping: bool, payment_profile: str, secondary_insurance_id_number: str, clinical_note: map{pdf: str, locked: bool, updated_at: str}, custom_vitals: [map], is_virtual_base: bool, recurring_appointment: bool, supervising_provider: str, recurring_days: [any], status_transitions: [map], created_at: str, reminders: [map], ins1_status: str, custom_status: str, recur_end_date: str, icd10_codes: [str], deleted_flag: bool, notes: str, recurs_every: int}
@errors {400, 401, 403, 409, 500}

@endpoint GET /api/appointments
@optional {cursor: str, page_size: int, status: str, patient: int, office: int, doctor: int, since: str, occurred_since: str, date_range: str, verbose: bool, date: str, ignore_virtual: bool, show_archived: bool}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 500}

@endpoint GET /api/procedures/{id}
@required {id: str}
@optional {mu_date: str, patient: int, doctor: int, mu_date_range: str, appointment: int, service_date: str}
@returns(200) {status: str, code: str, patient: int, description: str, doctor: int, created_at: str, updated_at: str, procedure_type: str, date: str, appointment: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/clinical_note_templates
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/line_items/{id}
@required {id: str}
@optional {posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/line_items/{id}
@required {id: str}
@optional {posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/line_items/{id}
@required {id: str}
@optional {posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str, service_date_range: str}
@returns(200) {code: str, ins3_paid: num, updated_at: str, posted_date: str, billing_status: str, pt_paid: num, allowed: num, patient: str, adjustment: num, id: int, doctor: str, balance_pt: num, units: str, balance_ins: num, paid_total: str, diagnosis_pointers: [str], appointment: int, description: str, balance_total: str, price: num, expected_reimbursement: num, ins2_paid: num, ins1_paid: num, insurance_status: str, billed: num, modifiers: [str], denied_flag: bool, ins_total: str, procedure_type: str, service_date: str, quantity: num}
@errors {400, 401, 403, 404, 405, 500}

@endpoint DELETE /api/line_items/{id}
@required {id: str}
@optional {posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/doctors
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/reminder_profiles
@optional {doctor: int}
@returns(201) {reminders: [map], id: int, name: str, doctor: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/reminder_profiles
@optional {cursor: str, page_size: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_payment_log
@optional {cursor: str, page_size: int, since: str, office: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/offices/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/offices/{id}
@required {id: str}
@optional {doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/offices/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {phone_number: str, city: str, archived: bool, office_work_schedule: map{work_days: [map], id: int, office: int, doctor: int}, name: str, doctor: str, country: str, start_time: str, fax_number: str, online_timeslots: [map], state: str, end_time: str, exam_rooms: str, address: str, tax_id_number_professional: str, zip_code: str, id: int, online_scheduling: bool}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_payment_log/{id}
@required {id: str}
@optional {since: str, office: int, doctor: int}
@returns(200) {appointment: str, doctor: str, payment_method: str, updated_at: str, created_by: str, source: str, amount: num, action: str, patient: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/appointment_templates
@optional {profile: int, office: int, doctor: int}
@returns(201) {profile: int, scheduled_time: str, archived: bool, week_days: [int], office: int, open_slots: [map], date_end: str, date_start: str, exam_room: int, duration: int, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/appointment_templates
@optional {available: str, week_days: [int], cursor: str, page_size: int, profile: int, office: int, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/patient_vaccine_records
@optional {cvx_code: str, patient: int, since: str, doctor: int}
@returns(201) {lot_number: str, site: str, ordering_doctor: int, doses: [map], id: int, next_dose_date: str, cpt_code: str, completion_status: str, administered_at: int, comments: str, funding_eligibility: str, units: str, entered_by: str, patient: int, administration_start: str, record_source: str, updated_at: str, consent_form: int, manufacturer: str, administered_by: str, name: str, vis: str, created_at: str, observed_immunity: str, amount: num, vaccine_inventory: int, route: str, cvx_code: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/patient_vaccine_records
@optional {cursor: str, page_size: int, cvx_code: str, patient: int, since: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/telehealth_appointments/{id}
@required {id: str}
@optional {appointment: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/telehealth_appointments/{id}
@required {id: str}
@optional {appointment: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/telehealth_appointments/{id}
@required {id: str}
@optional {appointment: int, doctor: int}
@returns(200) {sent_patient_email: any, appointment: int, created_at: str, updated_at: str, overlapping_duration: str, duration: int, telehealth_url: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint PUT /api/comm_logs/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint PATCH /api/comm_logs/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(204)
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/comm_logs/{id}
@required {id: str}
@optional {since: str, patient: int, doctor: int}
@returns(200) {scheduled_time: str, archived: bool, appointment: int, doctor: int, title: str, created_at: str, author: str, updated_at: str, cash_charged: num, duration: int, patient: int, message: str, type: str, id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/prescription_messages
@optional {cursor: str, page_size: int, parent_message: int, since: str, patient: int, created_at: str, doctor: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/user_groups/{id}
@required {id: str}
@optional {doctor: int}
@returns(200) {archived: bool, name: str, practice_group: str, created_at: str, updated_at: str, members: [str], id: int}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/line_items
@optional {posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str}
@returns(201) {code: str, ins3_paid: num, updated_at: str, posted_date: str, billing_status: str, pt_paid: num, allowed: num, patient: str, adjustment: num, id: int, doctor: str, balance_pt: num, units: str, balance_ins: num, paid_total: str, diagnosis_pointers: [str], appointment: int, description: str, balance_total: str, price: num, expected_reimbursement: num, ins2_paid: num, ins1_paid: num, insurance_status: str, billed: num, modifiers: [str], denied_flag: bool, ins_total: str, procedure_type: str, service_date: str, quantity: num}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/line_items
@optional {cursor: str, page_size: int, posted_date: str, patient: int, office: int, doctor: int, since: str, appointment: int, service_date: str}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint POST /api/sublabs
@returns(201) {vendor_name: str, facility_code: str, id: int, name: str}
@errors {400, 401, 403, 404, 405, 500}

@endpoint GET /api/sublabs
@optional {cursor: str, page_size: int}
@returns(200) {previous: str, data: [map], next: str}
@errors {400, 401, 403, 404, 405, 500}

@end
