---
title: NextGen Office API Integration on Truto
slug: nextgenoffice
category: Healthcare
canonical: "https://truto.one/integrations/detail/nextgenoffice/"
---

# NextGen Office API Integration on Truto



**Category:** Healthcare  
**Status:** Beta

## MCP-ready AI tools

Truto exposes 58 tools for NextGen Office that AI agents can call directly.

- **get_single_next_gen_office_allergy_intolerance_by_id** — Read AllergyIntolerance. Fetches a single allergy/intolerance record by id. Allergy codes are mapped to RxNorm codes. The id is the FHIR resource id. GET /api/fhir/r4/AllergyIntolerance/{id}. Required: id.
- **list_all_next_gen_office_allergy_intolerances** — Search AllergyIntolerance. Fetches a bundled resource containing the allergy/intolerance records for the patient mentioned in the request. Allergy codes are mapped to RxNorm codes. GET /api/fhir/r4/AllergyIntolerance. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **delete_a_next_gen_office_bulk_export_job_by_id** — Delete Job. Bulk FHIR connection. Cancels an export (the id is the _jobId or the Content-Location URL). DELETE /api/bulkfhir/r4/$export-poll-status. Required: id.
- **get_single_next_gen_office_bulk_export_job_by_id** — Poll Job Status. Bulk FHIR connection. The export's status: the id is the _jobId or the whole Content-Location URL. 202 while running (empty result), then the manifest (transactionTime, request, requiresAccessToken, output / error file URLs per type). GET /api/bulkfhir/r4/$export-poll-status. Required: id.
- **create_a_next_gen_office_bulk_group_export** — Group Export. Bulk FHIR connection. Starts an export of the Group's patients' data (GET with Prefer: respond-async). NextGen answers 202; the Content-Location response header (passed back by Truto's REST proxy) is the status URL: pass it, or its _jobId, to bulk_export_jobs.get. GET /api/bulkfhir/r4/Group/{id}/$export. Required: group_id.
- **create_a_next_gen_office_bulk_group** — Create Group. Bulk FHIR connection. Creates a patient Group: patientIds (1 to 1,000 patient ids), optional name; up to 1,000 Groups per practice. The reply carries the Group id. POST /api/bulkfhir/r4/Group. Required: patientIds.
- **delete_a_next_gen_office_bulk_group_by_id** — Delete Group. Bulk FHIR connection. Deletes a patient Group. DELETE /api/bulkfhir/r4/Group/{id}. Required: id.
- **get_single_next_gen_office_bulk_group_by_id** — Retrieve Group. Bulk FHIR connection. One patient Group by its id (a GUID). GET /api/bulkfhir/r4/Group/{id}. Required: id.
- **list_all_next_gen_office_bulk_groups** — Retrieve all Groups. Bulk FHIR connection. The client's patient Groups (NextGen answers 404 when there are none). GET /api/bulkfhir/r4/Group.
- **update_a_next_gen_office_bulk_group_by_id** — Update Group. Bulk FHIR connection. Renames a Group or adds / removes patients (at least one of name, patientIdsToInclude, patientIdsToExclude; a Group can't be emptied: delete it). PUT /api/bulkfhir/r4/Group/{id}. Required: id.
- **list_all_next_gen_office_bulk_patients** — Search Patients. Bulk FHIR connection. The practice's active patients, to put in a Group. Filters are ANDed. GET /api/bulkfhir/r4/$patient-search. Pages with page (1,000 a page); records at entry.*.resource.
- **list_all_next_gen_office_capability_statement** — The server's CapabilityStatement. The FHIR R4 server's CapabilityStatement (metadata): one record. Public: no token needed. GET /api/fhir/r4/metadata.
- **get_single_next_gen_office_care_plan_by_id** — Read CarePlan. Fetches a single plan of treatment(care plans, orders) and assessment note by id. The id is the FHIR resource id. GET /api/fhir/r4/CarePlan/{id}. Required: id.
- **list_all_next_gen_office_care_plans** — Search CarePlan. Fetches a bundled resource containing plan of treatment(care plans, orders) and assessment notes for the patient mentioned in the request. GET /api/fhir/r4/CarePlan. Required: patient, category. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_care_team_by_id** — Read CareTeam. Fetches a single Care Team member by id. The id is the FHIR resource id. GET /api/fhir/r4/CareTeam/{id}. Required: id.
- **list_all_next_gen_office_care_teams** — Search CareTeam. Fetches a bundled resource containing details of the Care Team members for the patient or care team ID mentioned in the request. GET /api/fhir/r4/CareTeam. Pages along the Bundle's next link; records at entry.*.resource.
- **next_gen_office_ccda_documents_lookup** —  The patient's record as a C-CDA document (XML, text/xml), optionally limited by date. GET /api/ccda. Required: patient.
- **get_single_next_gen_office_condition_by_id** — Read Condition. Fetches a bundled resource containing the condition/problem associated with the provided resource id. The id is the FHIR resource id. GET /api/fhir/r4/Condition/{id}. Required: id.
- **list_all_next_gen_office_conditions** — Search Condition. Fetches a bundled resource containing the conditions/problems for the patient mentioned in the request. All conditions are mapped to SNOMED codes. GET /api/fhir/r4/Condition. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_coverage_by_id** — Read Coverage. Fetches a Coverage by id. The id is the FHIR resource id. GET /api/fhir/r4/Coverage/{id}. Required: id.
- **list_all_next_gen_office_coverages** — Search Coverage. Fetches a bundled resource containing Coverage data based on the provided parameters. GET /api/fhir/r4/Coverage. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_device_by_id** — Read Device. Fetches a single implantable device by id. The id is the FHIR resource id. GET /api/fhir/r4/Device/{id}. Required: id.
- **list_all_next_gen_office_devices** — Search Device. Fetches a bundled resource containing all the implantable devices for the patient mentioned in the request. GET /api/fhir/r4/Device. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_diagnostic_report_by_id** — Read DiagnosticReport. Fetches a single lab or radiology result by id. The observations contained in the resource. The id is the FHIR resource id. GET /api/fhir/r4/DiagnosticReport/{id}. Required: id.
- **list_all_next_gen_office_diagnostic_reports** — Search DiagnosticReport. Fetches a bundled resource containing all the lab or radiology results for the patient mentioned in the request. The observations contained in the resource. GET /api/fhir/r4/DiagnosticReport. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_document_reference_by_id** — Read DocumentReference. Fetches a single Document Reference. A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The id is the FHIR resource id. GET /api/fhir/r4/DocumentReference/{id}. Required: id.
- **list_all_next_gen_office_document_references** — Search DocumentReference. Fetches a bundled resource containing the valid Document References for the patient mentioned in the request. GET /api/fhir/r4/DocumentReference. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_encounter_by_id** — Read Encounter. Fetches a single Encounter. An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. The id is the FHIR resource id. GET /api/fhir/r4/Encounter/{id}. Required: id.
- **list_all_next_gen_office_encounters** — Search Encounter. Fetches a bundled resource containing encounter data based on the provided parameters. GET /api/fhir/r4/Encounter. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_goal_by_id** — Read Goal. Fetches a single Goal by id. The id is the FHIR resource id. GET /api/fhir/r4/Goal/{id}. Required: id.
- **list_all_next_gen_office_goals** — Search Goal. Fetches a bundled resource containing the health concern goals for the patient mentioned in the request. GET /api/fhir/r4/Goal. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_immunization_by_id** — Read Immunization. Fetches a single immunization record by id. The id is the FHIR resource id. GET /api/fhir/r4/Immunization/{id}. Required: id.
- **list_all_next_gen_office_immunizations** — Search Immunization. Fetches a bundled resource containing the immunization records for the patient mentioned in the request. All immunizations contain cvx code mapping. GET /api/fhir/r4/Immunization. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_location_by_id** — Read Location. Fetches Location by id. Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated. The id is the FHIR resource id. GET /api/fhir/r4/Location/{id}. Required: id.
- **get_single_next_gen_office_medication_administration_by_id** — Read MedicationAdministration. Fetches a single medication administration record by id. Medications are mapped to RxNorm codes. The id is the FHIR resource id. GET /api/fhir/r4/MedicationAdministration/{id}. Required: id.
- **list_all_next_gen_office_medication_administrations** — Search MedicationAdministration. Fetches a bundled resource containing all the medication administration records for the patient mentioned in the request. Medications are mapped to RxNorm codes. GET /api/fhir/r4/MedicationAdministration. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_medication_dispense_by_id** — Read MedicationDispense. Fetches a single medication dispense record by id. Medications are mapped to RxNorm codes. The id is the FHIR resource id. GET /api/fhir/r4/MedicationDispense/{id}. Required: id.
- **list_all_next_gen_office_medication_dispenses** — Search MedicationDispense. Returns a FHIR Bundle of MedicationDispense resources for the patient. Supported search parameters: patient (required), status (optional), _revinclude (optional, for Provenance:target). GET /api/fhir/r4/MedicationDispense. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_medication_request_by_id** — Read MedicationRequest. Fetches a single medication prescription record by id. Medications are mapped to RxNorm codes. The id is the FHIR resource id. GET /api/fhir/r4/MedicationRequest/{id}. Required: id.
- **list_all_next_gen_office_medication_requests** — Search MedicationRequest. Fetches a bundled resource containing all the medication prescription records for the patient mentioned in the request. Medications are mapped to RxNorm codes. GET /api/fhir/r4/MedicationRequest. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_observation_by_id** — Read Observation. Fetches a single observation by id. The id is the FHIR resource id. GET /api/fhir/r4/Observation/{id}. Required: id.
- **list_all_next_gen_office_observations** — Search Observation. Fetches a bundled resource containing the observations. for the patient mentioned in the request. GET /api/fhir/r4/Observation. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_organization_by_id** — Read Organization. Fetches an Organization by id. Organization is a formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. The id is the FHIR resource id. GET /api/fhir/r4/Organization/{id}. Required: id.
- **list_all_next_gen_office_organizations** — Search Organization. Listed in the server's CapabilityStatement (search-type interaction); not in the swagger file. (Listed in the server's CapabilityStatement; not in NextGen's swagger file.) GET /api/fhir/r4/Organization. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_patient_by_id** — Read Patient. Fetches a single Patient by patient Id. The id is the FHIR resource id. GET /api/fhir/r4/Patient/{id}. Required: id.
- **list_all_next_gen_office_patients** — Search Patient. Fetches a bundled resource containing the valid patients mentioned in the request parameters. GET /api/fhir/r4/Patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_practitioner_role_by_id** — Read PractitionerRole. Fetches a Practitioner Role by id. The id is the FHIR resource id. GET /api/fhir/r4/PractitionerRole/{id}. Required: id.
- **list_all_next_gen_office_practitioner_roles** — Search PractitionerRole. Fetches a bundled resource containing practitioner role data based on the provided parameters. GET /api/fhir/r4/PractitionerRole. Required: practitioner. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_practitioner_by_id** — Read Practitioner. Fetches a Practitioner by id. Practitioner is a person who is directly or indirectly involved in the provisioning of healthcare. The id is the FHIR resource id. GET /api/fhir/r4/Practitioner/{id}. Required: id.
- **get_single_next_gen_office_procedure_by_id** — Read Procedure. Fetches a single Procedure by id. The id is the FHIR resource id. GET /api/fhir/r4/Procedure/{id}. Required: id.
- **list_all_next_gen_office_procedures** — Search Procedure. Fetches a bundled resource containing the valid procedures for the patient mentioned in the request. The procedures pertain to the encounters available for the patient. GET /api/fhir/r4/Procedure. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_provenance_by_id** — Read Provenance. Fetches Provenance by id. Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. The id is the FHIR resource id. GET /api/fhir/r4/Provenance/{id}. Required: id.
- **get_single_next_gen_office_related_person_by_id** — Read RelatedPerson. Fetches a Related Person by id. The id is the FHIR resource id. GET /api/fhir/r4/RelatedPerson/{id}. Required: id.
- **list_all_next_gen_office_related_persons** — Search RelatedPerson. Fetches a bundled resource containing RelatedPerson data based on the provided parameters. GET /api/fhir/r4/RelatedPerson. Required: patient. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_service_request_by_id** — Read ServiceRequest. Listed in the server's CapabilityStatement (read interaction); not in the swagger file. (Listed in the server's CapabilityStatement; not in NextGen's swagger file.) The id is the FHIR resource id. GET /api/fhir/r4/ServiceRequest/{id}. Required: id.
- **list_all_next_gen_office_service_requests** — Search ServiceRequest. Listed in the server's CapabilityStatement (search-type interaction); not in the swagger file. (Listed in the server's CapabilityStatement; not in NextGen's swagger file.) GET /api/fhir/r4/ServiceRequest. Pages along the Bundle's next link; records at entry.*.resource.
- **get_single_next_gen_office_specimen_by_id** — Read Specimen. Fetches a single Specimen by ID. The id is the FHIR resource id. GET /api/fhir/r4/Specimen/{id}. Required: id.
- **list_all_next_gen_office_specimens** — Search Specimen. Fetches a Bundle containing Specimen resources. Supports filtering by patient or _id. If neither parameter is provided, the server will return a 400 Bad Request. GET /api/fhir/r4/Specimen. Pages along the Bundle's next link; records at entry.*.resource.

## How it works

1. **Link your customer's NextGen Office account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach NextGen Office.** The Proxy API is a 1-to-1 mapping of the NextGen Office API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Embed ambient AI scribing into small practice workflows** — Voice AI and medical scribe SaaS platforms can pull the day's encounters and patient context from NextGen Office, then push generated SOAP notes back as DocumentReferences — eliminating manual charting for solo and small-group providers.
- **Power Value-Based Care analytics for independent clinics** — VBC and population health platforms can use NextGen Office's Bulk FHIR export to ingest Conditions, Observations, and Immunizations across an entire panel, then surface care gaps and MIPS/MACRA quality measures without hammering per-patient endpoints.
- **Offer digital intake and eligibility checks before the visit** — Patient intake SaaS can pull Coverage and Patient demographics to run real-time eligibility, reconcile medications against MedicationRequests, and sync signed consent PDFs back into the chart as DocumentReferences.
- **Stream remote patient monitoring data into the EHR** — RPM vendors can identify high-risk patients via Condition (SNOMED) filters and write device readings as structured Observations, making data natively visible to the clinician and billable under chronic care management codes.
- **Deliver whole-patient snapshots to third-party clinical tools** — Specialty tools that need a holistic patient history can use the C-CDA documents lookup to retrieve a single structured record, skipping the complexity of orchestrating 15+ FHIR resource calls.

## What you can build

- **Bulk FHIR population export pipeline** — Create patient groups and trigger asynchronous Bulk FHIR exports to ingest Conditions, Observations, Immunizations, and Medications for an entire practice panel on a scheduled cadence.
- **Encounter-aware note write-back** — Fetch the day's Encounters and Patient records, then attach generated clinical notes or transcripts as DocumentReferences linked to the correct encounter.
- **Real-time insurance eligibility prefetch** — Pull Coverage resources tied to upcoming Patients to run eligibility checks and surface patient responsibility estimates before check-in.
- **Chronic care cohort builder** — Query Conditions filtered by SNOMED codes to automatically assemble cohorts of diabetic, hypertensive, or heart failure patients for RPM enrollment and outreach.
- **One-call C-CDA patient snapshot** — Use the C-CDA documents lookup to render a complete longitudinal patient summary — allergies, meds, problems, labs — inside your product without stitching individual FHIR calls.
- **Structured observation write-back for devices** — Push wearable and home-device readings (BP, heart rate, glucose) into NextGen Office as Observation resources so clinicians can review and bill against them natively.
- **Medication reconciliation workflow** — Combine MedicationRequest, MedicationDispense, and MedicationAdministration data with RxNorm codes to power pre-visit med reconciliation and adherence tracking.

## FAQs

### Which FHIR version does the NextGen Office integration support?

NextGen Office exposes FHIR R4 resources along with Bulk FHIR export operations. Through Truto you can access resources like Patient, Encounter, Condition, Observation, MedicationRequest, AllergyIntolerance, Immunization, Coverage, DocumentReference, and more.

### How does authentication work for end users connecting their NextGen Office account?

Your end users authorize access to their NextGen Office tenant via the standard OAuth-based FHIR authorization flow. Truto handles the token exchange, refresh, and secure storage so you don't manage credentials directly.

### Can we extract data for an entire patient population efficiently?

Yes. Truto exposes NextGen Office's Bulk FHIR tooling — you can list bulk patients, create a bulk group, kick off a group export job, and poll or fetch the job by ID. This is the recommended path for analytics and population health workloads instead of iterating per-patient.

### Is clinical data normalized to standard vocabularies?

NextGen Office natively codes AllergyIntolerance and Medication resources to RxNorm and Conditions to SNOMED CT. You receive those codes as-is through Truto, so you don't need to build your own crosswalks.

### Can we write data back into the EHR, such as notes or PDFs?

Document write-back is handled via the DocumentReference resource, which is the standard pattern for inserting external PDFs, AI-generated notes, lab results, or intake forms into the native NextGen Office chart. Available write capabilities depend on the tenant's enabled scopes.

### What's the difference between NextGen Office and NextGen Enterprise for this integration?

This integration targets NextGen Office (formerly MediTouch), used by small ambulatory practices with 1–10 providers. NextGen Enterprise is a separate product on a different backend and is not covered by these endpoints — confirm with your customer which product they use before connecting.

### How fresh is the data returned from the API?

FHIR resource reads reflect the current state of the chart at query time. Bulk FHIR exports are asynchronous jobs — you create an export, then retrieve the job by ID once it completes, so freshness depends on when the export was last run.
