The NextGen Office connector lets your AI agent act in each user's NextGen Office account. Each user signs in to NextGen Office once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 48 tools.
- Tools
- 48
- What they doRead · write · destructive
- 48 · 0 · 048 read0 write0 destructive
- Users sign in with
- SMART on FHIR
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the NextGen Office connection
In AgentKit > Connections, create a NextGen Office connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Console steps with screenshots
NextGen Office connections use SMART on FHIR and act as the signed-in clinician, through NextGen Office’s provider-facing FHIR R4 API. The API is read-only, so every tool reads data. NextGen Office uses the same endpoints and FHIR server for every practice, and the connection already has them; you add the audience (
aud) and the client ID and secret NextGen issues for your app.-
Create the connection and copy the redirect URI
In the Scalekit dashboard, go to AgentKit > Connections > Create Connection, find NextGen Office and click Create. Copy the Redirect URI.
-
Request a client from NextGen
Email nextgen-office-api@nextgen.com to request a client for your app, and give NextGen the redirect URI you copied. NextGen issues the client ID and client secret. Each practice that uses your agent needs an active subscription to your registered app.
-
Enter the values on the connection
Back on the NextGen Office connection, enter:
- Client ID and Client Secret: from NextGen.
- Audience (aud):
https://fhir.meditouchehr.com/api/fhir/r4
Select
openid,fhirUser,offline_accessanduser/*.read, or narrower resource scopes such asuser/Patient.read. Click Save.
NextGen Office has no separate sandbox host. Test with a NextGen Office test practice.
-
Tools
Pass the exact name toexecute_toolnextgenoffice_allergy_intolerance_readGet one AllergyIntolerance resource from NextGen Office by its FHIR ID.Read-onlyGet Allergy Intolerance
Get one AllergyIntolerance resource from NextGen Office by its FHIR ID. Returns the AllergyIntolerance with its allergy and intolerance details, with substances coded in RxNorm, reactions, severity and status. Use this when you have the ID; use nextgenoffice_allergy_intolerance_search to find records.
Inputs
allergy_intolerance_idstringrequired- FHIR logical ID of the AllergyIntolerance resource to return. Example: 12345.
nextgenoffice_allergy_intolerance_searchList a patient's allergies and intolerances in NextGen Office.Read-onlySearch Allergy Intolerances
List a patient's allergies and intolerances in NextGen Office. Returns a FHIR searchset Bundle of AllergyIntolerance resources with their allergy and intolerance details, with substances coded in RxNorm, reactions, severity and status. Use this to see all of a patient's allergies. Use nextgenoffice_allergy_intolerance_read for one record by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by when the allergy was recorded. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_care_plan_readGet one CarePlan resource from NextGen Office by its FHIR ID.Read-onlyGet Care Plan
Get one CarePlan resource from NextGen Office by its FHIR ID. Returns the CarePlan with its assessment and plan of treatment, care plans and orders, with status, category, period and narrative. Use this when you have the ID; use nextgenoffice_care_plan_search to find records.
Inputs
care_plan_idstringrequired- FHIR logical ID of the CarePlan resource to return. Example: 12345.
nextgenoffice_care_plan_searchList a patient's care plans and assessment and plan of treatment notes in NextGen Office.Read-onlySearch Care Plans
List a patient's care plans and assessment and plan of treatment notes in NextGen Office. Returns a FHIR searchset Bundle of CarePlan resources with their assessment and plan of treatment, care plans and orders, with status, category, period and narrative. Use this for treatment plans. Use nextgenoffice_goal_search for the patient's goals. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
categorystringrequired- Care plan category code (required by NextGen Office). US Core uses assess-plan for assessment and plan of treatment. Example: assess-plan.
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the care plan period. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_care_team_readGet one CareTeam resource from NextGen Office by its FHIR ID.Read-onlyGet Care Team
Get one CareTeam resource from NextGen Office by its FHIR ID. Returns the CareTeam with its care team members and their roles for the patient. Use this when you have the ID; use nextgenoffice_care_team_search to find records.
Inputs
care_team_idstringrequired- FHIR logical ID of the CareTeam resource to return. Example: 12345.
nextgenoffice_care_team_searchList a patient's care team in NextGen Office, or get one care team by ID.Read-onlySearch Care Teams
List a patient's care team in NextGen Office, or get one care team by ID. Send patient alone, patient with status, or _id alone. Any other combination, status alone, or no filter returns 400 Bad Request. Returns a FHIR searchset Bundle of CareTeam resources with their care team members and their roles for the patient. Use this to see who cares for a patient. Use nextgenoffice_practitioner_read for a member's details. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
_idstring- Logical ID of a single CareTeam resource to return as a one-entry Bundle. Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target patientstring- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345. Required unless _id is given.
statusstring- Care team status to filter by (needs patient): proposed, active, suspended, inactive or entered-in-error. Example: active.one of
proposedactivesuspendedinactiveentered-in-error
nextgenoffice_condition_readGet one Condition resource from NextGen Office by its FHIR ID.Read-onlyGet Condition
Get one Condition resource from NextGen Office by its FHIR ID. Returns the Condition with its problems, health concerns and encounter diagnoses, coded in SNOMED CT, with clinical status and onset. Use this when you have the ID; use nextgenoffice_condition_search to find records.
Inputs
condition_idstringrequired- FHIR logical ID of the Condition resource to return. Example: PL-123. NextGen Office condition IDs carry a type prefix and a hyphen: PL- (problem list), HC- (health concern) or ED- (encounter diagnosis), for example PL-123.
nextgenoffice_condition_searchList a patient's problems, health concerns and encounter diagnoses in NextGen Office.Read-onlySearch Conditions
List a patient's problems, health concerns and encounter diagnoses in NextGen Office. Returns a FHIR searchset Bundle of Condition resources with their problems, health concerns and encounter diagnoses, coded in SNOMED CT, with clinical status and onset. Use this for a patient's problem list. Use nextgenoffice_condition_read for one condition by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target categorystring- Condition category code to filter by: problem-list-item, health-concern or encounter-diagnosis. Example: problem-list-item.
datestring- Filter by the condition's recorded or onset date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_coverage_readGet one Coverage resource from NextGen Office by its FHIR ID.Read-onlyGet Coverage
Get one Coverage resource from NextGen Office by its FHIR ID. Returns the Coverage with its insurance coverage: payer, plan, subscriber, member ID, relationship and period. Use this when you have the ID; use nextgenoffice_coverage_search to find records.
Inputs
coverage_idstringrequired- FHIR logical ID of the Coverage resource to return. Example: 12345.
nextgenoffice_coverage_searchList a patient's insurance coverage in NextGen Office.Read-onlySearch Coverages
List a patient's insurance coverage in NextGen Office. Returns a FHIR searchset Bundle of Coverage resources with their insurance coverage: payer, plan, subscriber, member ID, relationship and period. Use this for the patient's insurance. Use nextgenoffice_coverage_read for one coverage by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target
nextgenoffice_device_readGet one Device resource from NextGen Office by its FHIR ID.Read-onlyGet Device
Get one Device resource from NextGen Office by its FHIR ID. Returns the Device with its implantable devices with Unique Device Identifier (UDI), type and status. Use this when you have the ID; use nextgenoffice_device_search to find records.
Inputs
device_idstringrequired- FHIR logical ID of the Device resource to return. Example: 12345.
nextgenoffice_device_searchList a patient's implantable devices in NextGen Office.Read-onlySearch Devices
List a patient's implantable devices in NextGen Office. Returns a FHIR searchset Bundle of Device resources with their implantable devices with Unique Device Identifier (UDI), type and status. Use this for implants. Use nextgenoffice_device_read for one device by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the device date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_diagnostic_report_readGet one DiagnosticReport resource from NextGen Office by its FHIR ID.Read-onlyGet Diagnostic Report
Get one DiagnosticReport resource from NextGen Office by its FHIR ID. Returns the DiagnosticReport with its lab and radiology reports, with status, category, code, dates and references to their result Observations. Use this when you have the ID; use nextgenoffice_diagnostic_report_search to find records.
Inputs
diagnostic_report_idstringrequired- FHIR logical ID of the DiagnosticReport resource to return. Example: 12345.
nextgenoffice_diagnostic_report_searchList a patient's lab and radiology reports in NextGen Office.Read-onlySearch Diagnostic Reports
List a patient's lab and radiology reports in NextGen Office. Returns a FHIR searchset Bundle of DiagnosticReport resources with their lab and radiology reports, with status, category, code, dates and references to their result Observations. Use this for whole reports. Use nextgenoffice_observation_search for individual result values. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target categorystring- Report category code to filter by, such as LAB or RAD. Example: LAB.
codestring- Code of the report (usually LOINC) to filter by. Example: 24323-8.
datestring- Filter by the report date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_document_reference_readGet one DocumentReference resource from NextGen Office by its FHIR ID.Read-onlyGet Document Reference
Get one DocumentReference resource from NextGen Office by its FHIR ID. Returns the DocumentReference with its clinical note and document metadata (type, category, date, author, status) with the document content or a link to it. Use this when you have the ID; use nextgenoffice_document_reference_search to find records.
Inputs
document_reference_idstringrequired- FHIR logical ID of the DocumentReference resource to return. Example: 12345.
nextgenoffice_document_reference_searchList a patient's clinical notes and documents in NextGen Office.Read-onlySearch Document References
List a patient's clinical notes and documents in NextGen Office. Returns a FHIR searchset Bundle of DocumentReference resources with their clinical note and document metadata (type, category, date, author, status) with the document content or a link to it. Use this to find notes. Use nextgenoffice_document_reference_read for one document by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_idstring- Logical ID of a single DocumentReference resource to return as a one-entry Bundle. Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target categorystring- Document category code. NextGen Office supports only clinical-note. Example: clinical-note.one of
clinical-note datestring- Filter by when the document reference was created. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
statusstring- Document status to filter by: current, superseded or entered-in-error. Example: current.one of
currentsupersededentered-in-error typestring- Document type code, LOINC where possible, to filter by. Example: 11506-3 (progress note).
nextgenoffice_encounter_readGet one Encounter resource from NextGen Office by its FHIR ID.Read-onlyGet Encounter
Get one Encounter resource from NextGen Office by its FHIR ID. Returns the Encounter with its visits with type, status, period, participants, reason and location. Use this when you have the ID; use nextgenoffice_encounter_search to find records.
Inputs
encounter_idstringrequired- FHIR logical ID of the Encounter resource to return. Example: PT-123. NextGen Office encounter IDs carry the prefix PT- and a hyphen, for example PT-123.
nextgenoffice_encounter_searchList a patient's encounters (visits) in NextGen Office, or get one encounter by ID.Read-onlySearch Encounters
List a patient's encounters (visits) in NextGen Office, or get one encounter by ID. Send either patient (optionally with date) or _id alone. Any other combination, date alone, or no filter returns 400 Bad Request. Returns a FHIR searchset Bundle of Encounter resources with their visits with type, status, period, participants, reason and location. Use this to browse visits. Use nextgenoffice_encounter_read for one encounter by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
_idstring- Logical ID of a single Encounter resource to return as a one-entry Bundle. Example: PT-123.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by a date within the encounter period (needs patient). Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
patientstring- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345. Required unless _id is given.
nextgenoffice_goal_readGet one Goal resource from NextGen Office by its FHIR ID.Read-onlyGet Goal
Get one Goal resource from NextGen Office by its FHIR ID. Returns the Goal with its patient goals with description, lifecycle status, targets and dates. Use this when you have the ID; use nextgenoffice_goal_search to find records.
Inputs
goal_idstringrequired- FHIR logical ID of the Goal resource to return. Example: 12345.
nextgenoffice_goal_searchList a patient's goals in NextGen Office.Read-onlySearch Goals
List a patient's goals in NextGen Office. Returns a FHIR searchset Bundle of Goal resources with their patient goals with description, lifecycle status, targets and dates. Use this for patient goals. Use nextgenoffice_care_plan_search for treatment plans. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the goal target date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_immunization_readGet one Immunization resource from NextGen Office by its FHIR ID.Read-onlyGet Immunization
Get one Immunization resource from NextGen Office by its FHIR ID. Returns the Immunization with its immunization records with vaccines coded in CVX, status and administration date. Use this when you have the ID; use nextgenoffice_immunization_search to find records.
Inputs
immunization_idstringrequired- FHIR logical ID of the Immunization resource to return. Example: 12345.
nextgenoffice_immunization_searchList a patient's immunization records in NextGen Office.Read-onlySearch Immunizations
List a patient's immunization records in NextGen Office. Returns a FHIR searchset Bundle of Immunization resources with their immunization records with vaccines coded in CVX, status and administration date. Use this for vaccination history. Use nextgenoffice_immunization_read for one record by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the immunization date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_location_readGet one Location resource from NextGen Office by its FHIR ID.Read-onlyGet Location
Get one Location resource from NextGen Office by its FHIR ID. Returns the Location with its location name, address, type, status and contact details. NextGen Office has no search for this resource, so take the ID from a reference in another resource.
Inputs
location_idstringrequired- FHIR logical ID of the Location resource to return. Example: 12345.
nextgenoffice_medication_administration_readGet one MedicationAdministration resource from NextGen Office by its FHIR ID.Read-onlyGet Medication Administration
Get one MedicationAdministration resource from NextGen Office by its FHIR ID. Returns the MedicationAdministration with its records of medications given to the patient in the practice, coded in RxNorm, with dose and status. Use this when you have the ID; use nextgenoffice_medication_administration_search to find records.
Inputs
medication_administration_idstringrequired- FHIR logical ID of the MedicationAdministration resource to return. Example: 12345.
nextgenoffice_medication_administration_searchList medications administered to a patient in NextGen Office.Read-onlySearch Medication Administrations
List medications administered to a patient in NextGen Office. Returns a FHIR searchset Bundle of MedicationAdministration resources with their records of medications given to the patient in the practice, coded in RxNorm, with dose and status. Use this for in-office administrations. Use nextgenoffice_medication_request_search for prescriptions. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target statusstring- Administration status code to filter by, such as completed. Example: completed.
nextgenoffice_medication_dispense_readGet one MedicationDispense resource from NextGen Office by its FHIR ID.Read-onlyGet Medication Dispense
Get one MedicationDispense resource from NextGen Office by its FHIR ID. Returns the MedicationDispense with its medication dispense records with the medication coded in RxNorm, quantity and status. Use this when you have the ID; use nextgenoffice_medication_dispense_search to find records.
Inputs
medication_dispense_idstringrequired- FHIR logical ID of the MedicationDispense resource to return. Example: 12345.
nextgenoffice_medication_dispense_searchList a patient's medication dispense records in NextGen Office.Read-onlySearch Medication Dispenses
List a patient's medication dispense records in NextGen Office. Returns a FHIR searchset Bundle of MedicationDispense resources with their medication dispense records with the medication coded in RxNorm, quantity and status. Use this to see what was dispensed. Use nextgenoffice_medication_request_search for prescriptions. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target statusstring- Dispense status code to filter by, such as completed. Example: completed.
nextgenoffice_medication_request_readGet one MedicationRequest resource from NextGen Office by its FHIR ID.Read-onlyGet Medication Request
Get one MedicationRequest resource from NextGen Office by its FHIR ID. Returns the MedicationRequest with its prescriptions with the medication coded in RxNorm, dosage instructions, status, intent and prescriber. Use this when you have the ID; use nextgenoffice_medication_request_search to find records.
Inputs
medication_request_idstringrequired- FHIR logical ID of the MedicationRequest resource to return. Example: 12345.
nextgenoffice_medication_request_searchList a patient's medication prescriptions in NextGen Office.Read-onlySearch Medication Requests
List a patient's medication prescriptions in NextGen Office. Returns a FHIR searchset Bundle of MedicationRequest resources with their prescriptions with the medication coded in RxNorm, dosage instructions, status, intent and prescriber. Use this for a patient's medication list. Use nextgenoffice_medication_request_read for one prescription by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the prescription date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
intentstring- Prescription intent code to filter by, such as order or plan. Example: order.
statusstring- Prescription status code to filter by, such as active, completed or stopped. Example: active.
nextgenoffice_next_pageFetch the next page of results from a previous NextGen Office search tool by following the Bundle's `next` link.Read-onlyGet Next Page of Search Results
Fetch the next page of results from a previous NextGen Office search tool by following the Bundle's `next` link. Returns a FHIR searchset Bundle in the same shape as the original search. When the returned Bundle has no `next` link, it is the last page.
Inputs
next_page_pathstringrequired- The part of the previous Bundle's `link` entry with relation `next` that comes after `https://fhir.meditouchehr.com/api/fhir/r4`, without the leading slash. Pass it exactly as returned; do not rebuild or re-encode it. This server is HAPI FHIR, whose next links usually look like `https://fhir.meditouchehr.com/api/fhir/r4?_getpages=7f3c9a2e&_getpagesoffset=10&_count=10&_bundletype=searchset`; for that link pass `?_getpages=7f3c9a2e&_getpagesoffset=10&_count=10&_bundletype=searchset`. If the link instead looks like `https://fhir.meditouchehr.com/api/fhir/r4/Observation?patient=12345&_getpagesoffset=10`, pass `Observation?patient=12345&_getpagesoffset=10`.
nextgenoffice_observation_readGet one Observation resource from NextGen Office by its FHIR ID.Read-onlyGet Observation
Get one Observation resource from NextGen Office by its FHIR ID. Returns the Observation with its vital signs, lab results, social history and smoking status, with codes, values, units and dates. Use this when you have the ID; use nextgenoffice_observation_search to find records.
Inputs
observation_idstringrequired- FHIR logical ID of the Observation resource to return. Example: VS-123. NextGen Office observation IDs carry a type prefix and a hyphen: HX- (history), VS- (vital signs) or LR- (lab result), for example VS-123.
nextgenoffice_observation_searchList a patient's observations in NextGen Office: vital signs, lab results, social history and smoking status.Read-onlySearch Observations
List a patient's observations in NextGen Office: vital signs, lab results, social history and smoking status. Returns a FHIR searchset Bundle of Observation resources with their vital signs, lab results, social history and smoking status, with codes, values, units and dates. Use this for vitals and results. Use nextgenoffice_diagnostic_report_search for whole lab or imaging reports. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target categorystring- Observation category code to filter by, such as vital-signs, laboratory or social-history. Example: vital-signs.
codestring- LOINC code to filter by. NextGen Office documents only 72166-2 (smoking status) here. Example: 72166-2.
datestring- Filter by the observation date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_organization_readGet one Organization resource from NextGen Office by its FHIR ID.Read-onlyGet Organization
Get one Organization resource from NextGen Office by its FHIR ID. Returns the Organization with its organization name, identifiers, type, address and contact details. Use this when you have the ID; use nextgenoffice_organization_search to find records.
Inputs
organization_idstringrequired- FHIR logical ID of the Organization resource to return. Example: 12345.
nextgenoffice_organization_searchSearch organizations in NextGen Office by name or address.Read-onlySearch Organizations
Search organizations in NextGen Office by name or address. Returns a FHIR searchset Bundle of Organization resources with their organization name, identifiers, type, address and contact details. Use this to find an organization. Use nextgenoffice_organization_read when you have the ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
addressstring- Text that may match any part of the organization's address (line, city, state, postal code). Example: Austin.
namestring- Part of the organization's name or alias. Example: Family Clinic.
nextgenoffice_patient_readGet one Patient resource from NextGen Office by its FHIR ID.Read-onlyGet Patient
Get one Patient resource from NextGen Office by its FHIR ID. Returns the Patient with its demographics: name, birth date, sex, race, ethnicity, address, phone, preferred language and identifiers. Use this when you have the ID; use nextgenoffice_patient_search to find records.
Inputs
patient_idstringrequired- FHIR logical ID of the Patient resource to return. Example: 12345.
nextgenoffice_patient_searchSearch patients in NextGen Office by name, birth date, gender, identifier or ID.Read-onlySearch Patients
Search patients in NextGen Office by name, birth date, gender, identifier or ID. Returns a FHIR searchset Bundle of Patient resources with their demographics: name, birth date, sex, race, ethnicity, address, phone, preferred language and identifiers. Use this to find a patient's ID. Use nextgenoffice_patient_read when you already have the ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
_idstring- Logical ID of a single Patient resource to return as a one-entry Bundle. Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target birthdatestring- Patient's date of birth as YYYY-MM-DD, with no time zone. Example: 2000-01-01.
genderstring- Administrative gender code to filter by. Example: female.
identifierstring- A patient identifier such as the medical record number, as value or system|value. Example: 12345.
namestring- Any part of the patient's name (family, given, prefix or suffix). Example: Doe.
nextgenoffice_practitioner_readGet one Practitioner resource from NextGen Office by its FHIR ID.Read-onlyGet Practitioner
Get one Practitioner resource from NextGen Office by its FHIR ID. Returns the Practitioner with its practitioner name, identifiers (such as NPI), contact details and qualifications. NextGen Office has no search for this resource, so take the ID from a reference in another resource.
Inputs
practitioner_idstringrequired- FHIR logical ID of the Practitioner resource to return. Example: 12345.
nextgenoffice_practitioner_role_readGet one PractitionerRole resource from NextGen Office by its FHIR ID.Read-onlyGet Practitioner Role
Get one PractitionerRole resource from NextGen Office by its FHIR ID. Returns the PractitionerRole with its the practitioner's role, specialty, organization, locations and contact details. Use this when you have the ID; use nextgenoffice_practitioner_role_search to find records.
Inputs
practitioner_role_idstringrequired- FHIR logical ID of the PractitionerRole resource to return. Example: 12345.
nextgenoffice_practitioner_role_searchList the roles of a practitioner in NextGen Office.Read-onlySearch Practitioner Roles
List the roles of a practitioner in NextGen Office. Returns a FHIR searchset Bundle of PractitionerRole resources with their the practitioner's role, specialty, organization, locations and contact details. Use this for a practitioner's roles and specialties. Use nextgenoffice_practitioner_read for the person. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
practitionerstringrequired- FHIR logical ID of the practitioner whose roles to return. Example: 12345.
nextgenoffice_procedure_readGet one Procedure resource from NextGen Office by its FHIR ID.Read-onlyGet Procedure
Get one Procedure resource from NextGen Office by its FHIR ID. Returns the Procedure with its procedures performed for the patient, with codes, status, dates and performer. Use this when you have the ID; use nextgenoffice_procedure_search to find records.
Inputs
procedure_idstringrequired- FHIR logical ID of the Procedure resource to return. Example: 12345.
nextgenoffice_procedure_searchList a patient's procedures in NextGen Office.Read-onlySearch Procedures
List a patient's procedures in NextGen Office. Returns a FHIR searchset Bundle of Procedure resources with their procedures performed for the patient, with codes, status, dates and performer. Use this to browse procedures. Use nextgenoffice_procedure_read for one procedure by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
patientstringrequired- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target datestring- Filter by the procedure date. Use YYYY-MM-DD with an optional comparison prefix: eq, gt, lt, ge or le (the only prefixes NextGen Office supports). Example: ge2024-01-01 for on or after 1 January 2024.
nextgenoffice_provenance_readGet one Provenance resource from NextGen Office by its FHIR ID.Read-onlyGet Provenance
Get one Provenance resource from NextGen Office by its FHIR ID. Returns the Provenance with its who created or changed a record, when, and on whose behalf. NextGen Office has no search for this resource, so take the ID from a reference in another resource.
Inputs
provenance_idstringrequired- FHIR logical ID of the Provenance resource to return. Example: 12345.
nextgenoffice_service_request_readGet one ServiceRequest resource from NextGen Office by its FHIR ID.Read-onlyGet Service Request
Get one ServiceRequest resource from NextGen Office by its FHIR ID. Returns the ServiceRequest with its orders and referrals: what was requested, category, status, intent, authored date and requester. Use this when you have the ID; use nextgenoffice_service_request_search to find records.
Inputs
service_request_idstringrequired- FHIR logical ID of the ServiceRequest resource to return. Example: 12345.
nextgenoffice_service_request_searchList a patient's service requests (orders and referrals) in NextGen Office.Read-onlySearch Service Requests
List a patient's service requests (orders and referrals) in NextGen Office. Send patient (optionally with other filters) or _id. Returns a FHIR searchset Bundle of ServiceRequest resources with their orders and referrals: what was requested, category, status, intent, authored date and requester. Use this for orders. Use nextgenoffice_diagnostic_report_search for the resulting reports. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
_idstring- Logical ID of a single ServiceRequest resource to return as a one-entry Bundle. Example: 12345.
_revincludestring- Set to Provenance:target to also return the Provenance resources (who recorded each record, and when) in the same Bundle. Leave empty to return only the matching resources.one of
Provenance:target authoredstring- Filter by the date the request was signed. Use YYYY-MM-DD with an optional eq, gt, lt, ge or le prefix. Example: ge2024-01-01.
categorystring- Service request category code to filter by. Example: 108252007 (laboratory procedure).
codestring- Code of what was requested or ordered to filter by. Example: 24323-8.
patientstring- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345. Required unless _id is given.
nextgenoffice_specimen_readGet one Specimen resource from NextGen Office by its FHIR ID.Read-onlyGet Specimen
Get one Specimen resource from NextGen Office by its FHIR ID. Returns the Specimen with its specimen type, collection details and status. Use this when you have the ID; use nextgenoffice_specimen_search to find records.
Inputs
specimen_idstringrequired- FHIR logical ID of the Specimen resource to return. Example: 12345.
nextgenoffice_specimen_searchList a patient's specimens in NextGen Office, or get one specimen by ID.Read-onlySearch Specimens
List a patient's specimens in NextGen Office, or get one specimen by ID. Send patient or _id; with neither the server returns 400 Bad Request. Returns a FHIR searchset Bundle of Specimen resources with their specimen type, collection details and status. Use this to browse specimens. Use nextgenoffice_specimen_read for one specimen by ID. If the result has a `next` link, use `nextgenoffice_next_page` to get more.
Inputs
_idstring- Logical ID of a single Specimen resource to return as a one-entry Bundle. Example: 12345.
patientstring- FHIR logical ID of the patient whose records to return (the Patient resource `id`, for example from nextgenoffice_patient_search). Example: 12345. Required unless _id is given.
No tools match.