The AdvancedMD connector lets your AI agent act in each user's AdvancedMD account. Each user signs in to AdvancedMD once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 89 tools.
- Tools
- 89
- What they doRead · write · destructive
- 53 · 24 · 1253 read24 write12 destructive
- Users sign in with
- SMART on FHIR
What you can do
- Read clinical records: retrieve a Patient, Practitioner, Organization, Encounter, Condition, Observation, AllergyIntolerance, Immunization, MedicationRequest, DiagnosticReport, Procedure, or Appointment by its FHIR logical ID
- Search clinical records: find any supported FHIR resource using parameters like patient, clinical status, category, date, and code
- Create clinical records: add new records for any of the twelve supported FHIR resource types
- Update clinical records: modify an existing FHIR resource by its logical ID
- Delete clinical records: remove a FHIR resource by its logical ID
- Retrieve everything for a patient: invoke the
$everythingoperation on a Patient to pull all associated clinical resources in a single Bundle
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 AdvancedMD connection
In AgentKit > Connections, create an AdvancedMD connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Console steps with screenshots
AdvancedMD uses the SMART on FHIR OAuth 2.0 authorization code flow with PKCE. Because each AdvancedMD FHIR environment exposes its own endpoints, you supply the authorization and token endpoints, the audience (
aud), and the FHIR server domain when you create the connection. You also copy the App Key and App Secret from the API Keys section of the AdvancedMD dashboard — these are your client ID and client secret.-
Discover your AdvancedMD FHIR server’s SMART configuration
Your AdvancedMD FHIR server publishes its OAuth endpoints at a well-known discovery URL:
<advancedmd-fhir-base-url>/.well-known/smart-configurationFetch that URL and note these values:
authorization_endpoint— the Authorization endpointtoken_endpoint— the Token endpoint- the AdvancedMD FHIR base URL, for example
https://providerapi.advancedmd.com/v1/r4— this gives you both the Audience (aud) value and the FHIR server domain (the same URL without thehttps://scheme, for exampleproviderapi.advancedmd.com)
Find your exact FHIR base URL in the AdvancedMD developer program documentation for your office key and environment (sandbox vs. production).
-
Copy your App Key and App Secret from AdvancedMD
Register an app through the AdvancedMD developer program, then open the API Keys section of the AdvancedMD dashboard. This is where AdvancedMD issues the credentials Scalekit needs:
- Key — the App Key. Use this as your client ID in Scalekit.
- Secret — the App Secret. Click Show secret to reveal it, then use it as your client secret in Scalekit.
If no key is listed yet, click Add key to generate one, then copy both values.

When prompted for a redirect URI during app registration, leave the field open for now — you’ll copy the exact value from Scalekit in the next step.
-
Copy the redirect URI from Scalekit
In the Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find AdvancedMD and click Create. Copy the redirect URI — it looks like
https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.Return to your AdvancedMD app registration and paste this redirect URI into the app’s allowed redirect URIs.
-
Create the connection in Scalekit
Back in the Scalekit dashboard, finish creating the connection with the values you gathered:
- Client ID — the Key value (App Key) from the AdvancedMD API Keys section
- Client Secret — the Secret value (App Secret) from the AdvancedMD API Keys section; click Show secret in AdvancedMD to reveal it
- Authorization Endpoint — the
authorization_endpointfrom.well-known/smart-configuration - Token Endpoint — the
token_endpointfrom.well-known/smart-configuration - Audience (
aud) — the AdvancedMD FHIR base URL, sent as the requiredaudparameter on the authorization request - FHIR Server Domain — the AdvancedMD FHIR server domain without the
https://scheme, for exampleproviderapi.advancedmd.com. Scalekit routes every tool call to this host
Under Scopes, select the SMART on FHIR scopes your agent needs. Start with
openidandoffline_accessfor identity and refresh tokens, then add resource-specific scopes such aspatient/Patient.read,patient/Observation.read, or the broaderpatient/*.readandpatient/*.rsscopes. The scopes you select here must match what’s enabled on your AdvancedMD app registration.Click Save.
-
Verify the connection is active
Go to Connected Accounts for your AdvancedMD connection and confirm the status shows Active after a user completes authorization.
-
Tools
Pass the exact name toexecute_tooladvancedmd_allergy_intolerance_readRetrieve a single FHIR AllergyIntolerance resource by its logical ID.Read-onlyGet Allergy Intolerance
Retrieve a single FHIR AllergyIntolerance resource by its logical ID. Represents a patient's allergy or intolerance to a substance.
Inputs
allergy_intolerance_idstringrequired- The logical ID of the AllergyIntolerance resource
advancedmd_allergy_intolerance_searchSearch for FHIR AllergyIntolerance resources using parameters like patient, clinical status, type, category, and criticality.Read-onlySearch Allergy Intolerances
Search for FHIR AllergyIntolerance resources using parameters like patient, clinical status, type, category, and criticality.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Category: food, medication, environment, biologic
clinical_statusstring- Clinical status: active, inactive, resolved
codestring- Substance code (RxNorm, SNOMED, or NDF-RT)
criticalitystring- Criticality: low, high, unable-to-assess
patientstring- Patient ID to filter allergy intolerances by
typestring- Allergy or intolerance type: allergy, intolerance
advancedmd_appointment_readRetrieve a single FHIR Appointment resource by its logical ID.Read-onlyGet Appointment
Retrieve a single FHIR Appointment resource by its logical ID. Appointments represent bookings for a patient, practitioner, or location at a specific time.
Inputs
appointment_idstringrequired- The logical ID of the Appointment resource
advancedmd_appointment_searchSearch for FHIR Appointment resources using parameters like patient, practitioner, status, and date.Read-onlySearch Appointments
Search for FHIR Appointment resources using parameters like patient, practitioner, status, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
datestring- Filter by appointment date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter appointments by
practitionerstring- Practitioner ID to filter appointments by
service_typestring- Type of service being delivered, e.g. 57 for Immunology
statusstring- Appointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlist
advancedmd_care_plan_readRetrieve a single FHIR CarePlan resource by its logical ID.Read-onlyGet Care Plan
Retrieve a single FHIR CarePlan resource by its logical ID. Care plans describe planned activities to manage a patient's health issues.
Inputs
care_plan_idstringrequired- The logical ID of the CarePlan resource
advancedmd_care_plan_searchSearch for FHIR CarePlan resources describing planned patient care activities using parameters like patient, category, status, and date.Read-onlySearch Care Plans
Search for FHIR CarePlan resources describing planned patient care activities using parameters like patient, category, status, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Category of the care plan, e.g. assess-plan
datestring- Filter by care plan period date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter care plans by
statusstring- Care plan status: draft, active, on-hold, revoked, completed, entered-in-error, unknown
advancedmd_care_team_readRetrieve a single FHIR CareTeam resource by its logical ID.Read-onlyGet Care Team
Retrieve a single FHIR CareTeam resource by its logical ID. Care teams represent the group of practitioners involved in a patient's care.
Inputs
care_team_idstringrequired- The logical ID of the CareTeam resource
advancedmd_care_team_searchSearch for FHIR CareTeam resources representing groups of practitioners involved in patient care, filtered by patient and status.Read-onlySearch Care Teams
Search for FHIR CareTeam resources representing groups of practitioners involved in patient care, filtered by patient and status.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
patientstring- Patient ID to filter care teams by
statusstring- Care team status: proposed, active, suspended, inactive, entered-in-error
advancedmd_conceptmap_translateInvoke the $translate operation on ConceptMap, as declared in AdvancedMD's FHIR CapabilityStatement, to map a source code to its equivalent code(s) in another coding system.Read-onlyTranslate Code
Invoke the $translate operation on ConceptMap, as declared in AdvancedMD's FHIR CapabilityStatement, to map a source code to its equivalent code(s) in another coding system.
Inputs
codestringrequired- The source code to translate
systemstringrequired- The source code system URI that the code belongs to
targetstring- Target code system or value set URI to translate the code into
urlstring- Canonical URL of a specific ConceptMap to use for the translation
advancedmd_condition_readRetrieve a single FHIR Condition resource by its logical ID.Read-onlyGet Condition
Retrieve a single FHIR Condition resource by its logical ID. Conditions represent clinical diagnoses, problems, or health concerns.
Inputs
condition_idstringrequired- The logical ID of the Condition resource
advancedmd_condition_searchSearch for FHIR Condition resources representing diagnoses and health problems using parameters like patient, clinical status, category, and code.Read-onlySearch Conditions
Search for FHIR Condition resources representing diagnoses and health problems using parameters like patient, clinical status, category, and code.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Category of condition, e.g. problem-list-item, encounter-diagnosis
clinical_statusstring- Clinical status: active, recurrence, relapse, inactive, remission, resolved
codestring- ICD-10 or SNOMED code for the condition
onset_datestring- Filter by onset date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter conditions by
advancedmd_coverage_readRetrieve a single FHIR Coverage resource by its logical ID.Read-onlyGet Coverage
Retrieve a single FHIR Coverage resource by its logical ID. Coverage resources describe a patient's insurance or payment details.
Inputs
coverage_idstringrequired- The logical ID of the Coverage resource
advancedmd_coverage_searchSearch for FHIR Coverage resources describing a patient's insurance or payment details, filtered by patient.Read-onlySearch Coverages
Search for FHIR Coverage resources describing a patient's insurance or payment details, filtered by patient.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
patientstring- Patient ID to filter coverage records by
advancedmd_device_readRetrieve a single FHIR Device resource by its logical ID.Read-onlyGet Device
Retrieve a single FHIR Device resource by its logical ID. Devices represent implantable medical devices associated with a patient.
Inputs
device_idstringrequired- The logical ID of the Device resource
advancedmd_device_searchSearch for FHIR Device resources representing implantable medical devices using parameters like patient and device type.Read-onlySearch Devices
Search for FHIR Device resources representing implantable medical devices using parameters like patient and device type.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
patientstring- Patient ID to filter devices by
typestring- Device type code, e.g. SNOMED code for the device type
advancedmd_diagnostic_report_readRetrieve a single FHIR DiagnosticReport resource by its logical ID.Read-onlyGet Diagnostic Report
Retrieve a single FHIR DiagnosticReport resource by its logical ID. Diagnostic reports represent the findings from diagnostic services such as laboratory tests and imaging studies.
Inputs
diagnostic_report_idstringrequired- The logical ID of the DiagnosticReport resource
advancedmd_diagnostic_report_searchSearch for FHIR DiagnosticReport resources representing lab and imaging findings using parameters like patient, category, code, date, and status.Read-onlySearch Diagnostic Reports
Search for FHIR DiagnosticReport resources representing lab and imaging findings using parameters like patient, category, code, date, and status.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Report category: LAB, RAD (radiology), etc.
codestring- LOINC code for the type of report
datestring- Filter by report date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter diagnostic reports by
statusstring- Report status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-error
advancedmd_document_reference_readRetrieve a single FHIR DocumentReference resource by its logical ID.Read-onlyGet Document Reference
Retrieve a single FHIR DocumentReference resource by its logical ID. Document references index clinical documents such as summaries and notes.
Inputs
document_reference_idstringrequired- The logical ID of the DocumentReference resource
advancedmd_document_reference_searchSearch for FHIR DocumentReference resources indexing clinical documents using parameters like patient, status, category, type, date, and period.Read-onlySearch Document References
Search for FHIR DocumentReference resources indexing clinical documents using parameters like patient, status, category, type, date, and period.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Document category, e.g. clinical-note
datestring- Filter by document creation date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter document references by
periodstring- Filter by the time period the document content covers
statusstring- Document status: current, superseded, entered-in-error
typestring- Document type code, e.g. LOINC code for a discharge summary
advancedmd_encounter_readRetrieve a single FHIR Encounter resource by its logical ID.Read-onlyGet Encounter
Retrieve a single FHIR Encounter resource by its logical ID. Encounters represent patient visits, admissions, or interactions with healthcare providers.
Inputs
encounter_idstringrequired- The logical ID of the Encounter resource
advancedmd_encounter_searchSearch for FHIR Encounter resources representing patient visits and admissions using parameters like patient, status, date, and class.Read-onlySearch Encounters
Search for FHIR Encounter resources representing patient visits and admissions using parameters like patient, status, date, and class.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
classstring- Encounter class: AMB (ambulatory), IMP (inpatient), EMER (emergency)
datestring- Filter by encounter date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter encounters by
statusstring- Encounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelled
typestring- Specific type of encounter by code
advancedmd_endpoint_readRetrieve a single FHIR Endpoint resource by its logical ID.Read-onlyGet Endpoint
Retrieve a single FHIR Endpoint resource by its logical ID. Endpoints describe technical details of a service endpoint used for exchanging data.
Inputs
endpoint_idstringrequired- The logical ID of the Endpoint resource
advancedmd_endpoint_searchSearch for FHIR Endpoint resources describing service endpoints for data exchange, filtered by category, status, patient, and date.Read-onlySearch Endpoints
Search for FHIR Endpoint resources describing service endpoints for data exchange, filtered by category, status, patient, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Connection type category for the endpoint
datestring- Filter by endpoint record date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter endpoints by
statusstring- Endpoint status: active, suspended, error, off, entered-in-error, test
advancedmd_goal_readRetrieve a single FHIR Goal resource by its logical ID.Read-onlyGet Goal
Retrieve a single FHIR Goal resource by its logical ID. Goals describe desired health outcomes for a patient.
Inputs
goal_idstringrequired- The logical ID of the Goal resource
advancedmd_goal_searchSearch for FHIR Goal resources describing desired patient health outcomes using parameters like patient, lifecycle status, and target date.Read-onlySearch Goals
Search for FHIR Goal resources describing desired patient health outcomes using parameters like patient, lifecycle status, and target date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
lifecycle_statusstring- Goal lifecycle status: proposed, planned, accepted, active, on-hold, completed, cancelled, entered-in-error, rejected
patientstring- Patient ID to filter goals by
target_datestring- Filter by the goal's target date (YYYY-MM-DD or range with prefix)
advancedmd_group_exportKick off a FHIR Bulk Data $export operation for all patients in a Group, as declared in AdvancedMD's FHIR CapabilityStatement.Read-onlyStart Group Bulk Export
Kick off a FHIR Bulk Data $export operation for all patients in a Group, as declared in AdvancedMD's FHIR CapabilityStatement. This starts an asynchronous export job and returns 202 Accepted with a Content-Location header pointing to the status endpoint; it does not return the exported data directly.
Inputs
group_idstringrequired- The logical ID of the Group resource whose members should be exported
_sincestring- Only include resources updated after this instant (ISO 8601 datetime)
_typestring- Comma-separated list of resource types to include in the export (e.g. Patient,Observation,Condition)
advancedmd_immunization_readRetrieve a single FHIR Immunization resource by its logical ID.Read-onlyGet Immunization
Retrieve a single FHIR Immunization resource by its logical ID. Represents a vaccination event administered to a patient.
Inputs
immunization_idstringrequired- The logical ID of the Immunization resource
advancedmd_immunization_searchSearch for FHIR Immunization resources representing vaccination events using parameters like patient, status, vaccine code, and date.Read-onlySearch Immunizations
Search for FHIR Immunization resources representing vaccination events using parameters like patient, status, vaccine code, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
datestring- Filter by vaccination date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter immunizations by
statusstring- Immunization status: completed, entered-in-error, not-done
vaccine_codestring- CVX vaccine code
advancedmd_location_readRetrieve a single FHIR Location resource by its logical ID.Read-onlyGet Location
Retrieve a single FHIR Location resource by its logical ID. Locations represent physical places where care is delivered, such as clinics or rooms.
Inputs
location_idstringrequired- The logical ID of the Location resource
advancedmd_location_searchSearch for FHIR Location resources representing care facilities using parameters like name and address.Read-onlySearch Locations
Search for FHIR Location resources representing care facilities using parameters like name and address.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
addressstring- Any part of the location's address
address_citystring- City of the location's address
address_postalcodestring- Postal code of the location's address
address_statestring- State of the location's address
namestring- Name of the location
advancedmd_medication_dispense_readRetrieve a single FHIR MedicationDispense resource by its logical ID.Read-onlyGet Medication Dispense
Retrieve a single FHIR MedicationDispense resource by its logical ID. Medication dispenses record medications that have been provided to a patient.
Inputs
medication_dispense_idstringrequired- The logical ID of the MedicationDispense resource
advancedmd_medication_dispense_searchSearch for FHIR MedicationDispense resources recording medications provided to a patient using parameters like status, type, patient, and medication.Read-onlySearch Medication Dispenses
Search for FHIR MedicationDispense resources recording medications provided to a patient using parameters like status, type, patient, and medication.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
medicationstring- Medication code or reference dispensed
patientstring- Patient ID to filter medication dispenses by
statusstring- Dispense status: preparation, in-progress, completed, entered-in-error, stopped
typestring- Dispense type code, e.g. RFP for a refill
advancedmd_medication_request_readRetrieve a single FHIR MedicationRequest resource by its logical ID.Read-onlyGet Medication Request
Retrieve a single FHIR MedicationRequest resource by its logical ID. MedicationRequests represent prescriptions and medication orders.
Inputs
medication_request_idstringrequired- The logical ID of the MedicationRequest resource
advancedmd_medication_request_searchSearch for FHIR MedicationRequest resources representing prescriptions using parameters like patient, status, medication code, and authored date.Read-onlySearch Medication Requests
Search for FHIR MedicationRequest resources representing prescriptions using parameters like patient, status, medication code, and authored date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
authoredonstring- Date the prescription was authored (YYYY-MM-DD or range with prefix)
intentstring- Intent of the request: proposal, plan, order, instance-order
medicationstring- RxNorm or other medication code
patientstring- Patient ID to filter medication requests by
statusstring- Medication request status: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknown
advancedmd_observation_lastnInvoke the $lastn operation on Observation to retrieve the most recent observations per code/category grouping (e.g.Read-onlyGet Last N Observations
Invoke the $lastn operation on Observation to retrieve the most recent observations per code/category grouping (e.g. latest vitals or lab results) for a patient, as declared in AdvancedMD's FHIR CapabilityStatement.
Inputs
categorystring- Observation category to filter by, e.g. vital-signs, laboratory
codestring- LOINC or local code identifying the observation type
datestring- Filter by observation effective date (YYYY-MM-DD or range with prefix)
maxnumber- Maximum number of observations to return per code/category grouping. Defaults to 1 if omitted.
patientstring- Patient ID to scope the most-recent observations to
advancedmd_observation_readRetrieve a single FHIR Observation resource by its logical ID.Read-onlyGet Observation
Retrieve a single FHIR Observation resource by its logical ID. Observations represent measurements and simple assertions about a patient, such as vitals and lab results.
Inputs
observation_idstringrequired- The logical ID of the Observation resource
advancedmd_observation_searchSearch for FHIR Observation resources such as vitals and lab results using parameters like patient, category, code, and date.Read-onlySearch Observations
Search for FHIR Observation resources such as vitals and lab results using parameters like patient, category, code, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Category of observation, e.g. vital-signs, laboratory, social-history
codestring- LOINC or SNOMED code for the observation type
datestring- Filter by observation date (YYYY-MM-DD or range with prefix e.g. ge2024-01-01)
patientstring- Patient ID to filter observations by
statusstring- Observation status: registered, preliminary, final, amended
advancedmd_organization_readRetrieve a single FHIR Organization resource by its logical ID.Read-onlyGet Organization
Retrieve a single FHIR Organization resource by its logical ID. Organizations represent formally or informally recognized groupings of people or entities in the healthcare domain.
Inputs
organization_idstringrequired- The logical ID of the Organization resource
advancedmd_organization_searchSearch for FHIR Organization resources such as hospitals and clinics using parameters like name, type, identifier, and active status.Read-onlySearch Organizations
Search for FHIR Organization resources such as hospitals and clinics using parameters like name, type, identifier, and active status.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
activestring- Whether the organization record is active: true or false
identifierstring- Organization identifier such as NPI
namestring- Name of the organization
typestring- Organization type code, e.g. prov (provider), dept (department), govt
advancedmd_patient_everythingInvoke the $everything operation on a Patient to retrieve all clinical resources associated with that patient in a single Bundle response.Read-onlyGet Patient Everything
Invoke the $everything operation on a Patient to retrieve all clinical resources associated with that patient in a single Bundle response.
Inputs
patient_idstringrequired- The logical ID of the Patient resource
_countnumber- Maximum number of resources to return per page
_sincestring- Only include resources updated after this instant (ISO 8601 datetime)
_typestring- Comma-separated list of resource types to include (e.g. Observation,Condition)
advancedmd_patient_readRetrieve a single FHIR Patient resource by its logical ID.Read-onlyGet Patient
Retrieve a single FHIR Patient resource by its logical ID.
Inputs
patient_idstringrequired- The logical ID of the Patient resource
advancedmd_patient_searchSearch for FHIR Patient resources using common search parameters such as name, birthdate, gender, and identifier.Read-onlySearch Patients
Search for FHIR Patient resources using common search parameters such as name, birthdate, gender, and identifier.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
birthdatestring- Patient's date of birth in YYYY-MM-DD format
emailstring- Patient's email address
familystring- Family (last) name of the patient
genderstring- Administrative gender: male, female, other, unknown
givenstring- Given (first) name of the patient
identifierstring- Patient identifier (e.g. MRN) in system|value format
phonestring- Patient's phone number
advancedmd_practitioner_readRetrieve a single FHIR Practitioner resource by its logical ID.Read-onlyGet Practitioner
Retrieve a single FHIR Practitioner resource by its logical ID. Practitioners represent healthcare professionals such as doctors and nurses.
Inputs
practitioner_idstringrequired- The logical ID of the Practitioner resource
advancedmd_practitioner_searchSearch for FHIR Practitioner resources representing healthcare professionals using parameters like name, identifier, and active status.Read-onlySearch Practitioners
Search for FHIR Practitioner resources representing healthcare professionals using parameters like name, identifier, and active status.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
activestring- Whether the practitioner record is active: true or false
familystring- Family (last) name of the practitioner
givenstring- Given (first) name of the practitioner
identifierstring- Practitioner identifier such as NPI
advancedmd_procedure_readRetrieve a single FHIR Procedure resource by its logical ID.Read-onlyGet Procedure
Retrieve a single FHIR Procedure resource by its logical ID. Procedures represent actions performed on or for a patient.
Inputs
procedure_idstringrequired- The logical ID of the Procedure resource
advancedmd_procedure_searchSearch for FHIR Procedure resources representing clinical actions performed on a patient using parameters like patient, status, code, and date.Read-onlySearch Procedures
Search for FHIR Procedure resources representing clinical actions performed on a patient using parameters like patient, status, code, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
codestring- SNOMED or CPT code for the procedure
datestring- Filter by procedure date (YYYY-MM-DD or range with prefix)
patientstring- Patient ID to filter procedures by
statusstring- Procedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknown
advancedmd_provenance_readRetrieve a single FHIR Provenance resource by its logical ID.Read-onlyGet Provenance
Retrieve a single FHIR Provenance resource by its logical ID. Provenance records who created or changed a resource and when.
Inputs
provenance_idstringrequired- The logical ID of the Provenance resource
advancedmd_service_request_readRetrieve a single FHIR ServiceRequest resource by its logical ID.Read-onlyGet Service Request
Retrieve a single FHIR ServiceRequest resource by its logical ID. Service requests represent orders for services such as lab tests or referrals.
Inputs
service_request_idstringrequired- The logical ID of the ServiceRequest resource
advancedmd_service_request_searchSearch for FHIR ServiceRequest resources representing orders for services such as lab tests or referrals, filtered by patient.Read-onlySearch Service Requests
Search for FHIR ServiceRequest resources representing orders for services such as lab tests or referrals, filtered by patient.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
patientstring- Patient ID to filter service requests by
advancedmd_specimen_readRetrieve a single FHIR Specimen resource by its logical ID.Read-onlyGet Specimen
Retrieve a single FHIR Specimen resource by its logical ID. Specimens represent samples collected from a patient for laboratory analysis.
Inputs
specimen_idstringrequired- The logical ID of the Specimen resource
advancedmd_specimen_searchSearch for FHIR Specimen resources representing laboratory samples collected from a patient, filtered by patient.Read-onlySearch Specimens
Search for FHIR Specimen resources representing laboratory samples collected from a patient, filtered by patient.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
patientstring- Patient ID to filter specimens by
advancedmd_allergy_intolerance_createCreate a new FHIR AllergyIntolerance resource recording a patient's allergy or intolerance to a substance.WriteCreate Allergy Intolerance
Create a new FHIR AllergyIntolerance resource recording a patient's allergy or intolerance to a substance.
Inputs
codestringrequired- Code identifying the substance (RxNorm, SNOMED, or NDF-RT)
code_systemstringrequired- Code system URI for the substance code
patient_idstringrequired- FHIR logical ID of the patient
categorystring- Category: food, medication, environment, biologic
clinical_statusstring- Clinical status: active, inactive, resolved
code_displaystring- Human-readable display for the substance
criticalitystring- Criticality: low, high, unable-to-assess
notestring- Free-text note about the allergy
onset_date_timestring- Date/time of allergy onset (ISO 8601)
typestring- Type: allergy or intolerance
advancedmd_allergy_intolerance_updateUpdate an existing FHIR AllergyIntolerance resource by its ID.WriteUpdate Allergy Intolerance
Update an existing FHIR AllergyIntolerance resource by its ID.
- Idempotent
Inputs
allergy_intolerance_idstringrequired- The logical ID of the AllergyIntolerance resource to update
codestringrequired- Code identifying the substance
code_systemstringrequired- Code system URI for the substance code
patient_idstringrequired- FHIR logical ID of the patient
categorystring- Category: food, medication, environment, biologic
clinical_statusstring- Clinical status: active, inactive, resolved
code_displaystring- Human-readable display for the substance
criticalitystring- Criticality: low, high, unable-to-assess
notestring- Free-text note about the allergy
typestring- Type: allergy or intolerance
advancedmd_appointment_createCreate a new FHIR Appointment resource to book a patient visit with a practitioner.WriteCreate Appointment
Create a new FHIR Appointment resource to book a patient visit with a practitioner.
Inputs
endstringrequired- End date/time of the appointment (ISO 8601)
patient_idstringrequired- FHIR logical ID of the patient participant
startstringrequired- Start date/time of the appointment (ISO 8601)
statusstringrequired- Appointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlist
commentstring- Additional comments about the appointment
descriptionstring- Short description of the appointment
practitioner_idstring- FHIR logical ID of the practitioner participant
service_type_codestring- Service type code for the appointment
advancedmd_appointment_updateUpdate an existing FHIR Appointment resource by its ID, e.g.WriteUpdate Appointment
Update an existing FHIR Appointment resource by its ID, e.g. to reschedule or cancel.
- Idempotent
Inputs
appointment_idstringrequired- The logical ID of the Appointment resource to update
endstringrequired- End date/time of the appointment (ISO 8601)
patient_idstringrequired- FHIR logical ID of the patient participant
startstringrequired- Start date/time of the appointment (ISO 8601)
statusstringrequired- Appointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlist
commentstring- Additional comments about the appointment
descriptionstring- Short description of the appointment
practitioner_idstring- FHIR logical ID of the practitioner participant
advancedmd_condition_createCreate a new FHIR Condition resource representing a diagnosis or health problem for a patient.WriteCreate Condition
Create a new FHIR Condition resource representing a diagnosis or health problem for a patient.
Inputs
codestringrequired- ICD-10 or SNOMED code for the condition
code_systemstringrequired- Code system URI
patient_idstringrequired- FHIR logical ID of the patient
categorystring- Condition category: problem-list-item, encounter-diagnosis
clinical_statusstring- Clinical status: active, recurrence, relapse, inactive, remission, resolved
code_displaystring- Human-readable display for the condition code
notestring- Free-text note about the condition
onset_date_timestring- Date/time of condition onset (ISO 8601)
verification_statusstring- Verification status: unconfirmed, provisional, differential, confirmed, refuted, entered-in-error
advancedmd_condition_updateUpdate an existing FHIR Condition resource by its ID.WriteUpdate Condition
Update an existing FHIR Condition resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
codestringrequired- ICD-10 or SNOMED code for the condition
code_systemstringrequired- Code system URI
condition_idstringrequired- The logical ID of the Condition resource to update
patient_idstringrequired- FHIR logical ID of the patient
categorystring- Condition category: problem-list-item, encounter-diagnosis
clinical_statusstring- Clinical status: active, recurrence, relapse, inactive, remission, resolved
code_displaystring- Human-readable display for the condition code
notestring- Free-text note about the condition
onset_date_timestring- Date/time of condition onset (ISO 8601)
verification_statusstring- Verification status: unconfirmed, provisional, differential, confirmed, refuted, entered-in-error
advancedmd_diagnostic_report_createCreate a new FHIR DiagnosticReport resource representing findings from a laboratory, imaging, or other diagnostic service.WriteCreate Diagnostic Report
Create a new FHIR DiagnosticReport resource representing findings from a laboratory, imaging, or other diagnostic service.
Inputs
codestringrequired- LOINC code identifying the type of report
code_systemstringrequired- Code system URI for the report code
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Report status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-error
categorystring- Report category: LAB, RAD, etc.
code_displaystring- Human-readable display for the report type
conclusionstring- Clinical interpretation of the report findings
effective_date_timestring- Date/time the report is clinically relevant (ISO 8601)
advancedmd_diagnostic_report_updateUpdate an existing FHIR DiagnosticReport resource by its ID.WriteUpdate Diagnostic Report
Update an existing FHIR DiagnosticReport resource by its ID.
- Idempotent
Inputs
codestringrequired- LOINC code identifying the type of report
code_systemstringrequired- Code system URI for the report code
diagnostic_report_idstringrequired- The logical ID of the DiagnosticReport resource to update
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Report status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-error
categorystring- Report category: LAB, RAD, etc.
code_displaystring- Human-readable display for the report type
conclusionstring- Clinical interpretation of the report findings
effective_date_timestring- Date/time the report is clinically relevant (ISO 8601)
advancedmd_encounter_createCreate a new FHIR Encounter resource representing a patient visit or admission.WriteCreate Encounter
Create a new FHIR Encounter resource representing a patient visit or admission.
Inputs
class_codestringrequired- Encounter class code: AMB (ambulatory), IMP (inpatient), EMER (emergency), HH (home health)
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Encounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelled
period_endstring- End date/time of the encounter (ISO 8601)
period_startstring- Start date/time of the encounter (ISO 8601)
reason_codestring- SNOMED code for the reason of the encounter
type_codestring- Specific type of encounter by SNOMED code
type_displaystring- Human-readable display for the encounter type
advancedmd_encounter_updateUpdate an existing FHIR Encounter resource by its ID.WriteUpdate Encounter
Update an existing FHIR Encounter resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
class_codestringrequired- Encounter class: AMB (ambulatory), IMP (inpatient), EMER (emergency), HH (home health)
encounter_idstringrequired- The logical ID of the Encounter resource to update
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Encounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelled
period_endstring- End date/time of the encounter (ISO 8601)
period_startstring- Start date/time of the encounter (ISO 8601)
reason_codestring- SNOMED code for the reason of the encounter
type_codestring- Specific type of encounter by SNOMED code
type_displaystring- Human-readable display for the encounter type
advancedmd_immunization_createCreate a new FHIR Immunization resource recording a vaccination event for a patient.WriteCreate Immunization
Create a new FHIR Immunization resource recording a vaccination event for a patient.
Inputs
occurrence_date_timestringrequired- Date/time the vaccination occurred (ISO 8601)
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Immunization status: completed, entered-in-error, not-done
vaccine_codestringrequired- CVX vaccine code
vaccine_systemstringrequired- Code system URI for the vaccine code
lot_numberstring- Vaccine lot number
notestring- Additional notes about the immunization
vaccine_displaystring- Human-readable display for the vaccine
advancedmd_immunization_updateUpdate an existing FHIR Immunization resource by its ID.WriteUpdate Immunization
Update an existing FHIR Immunization resource by its ID.
- Idempotent
Inputs
immunization_idstringrequired- The logical ID of the Immunization resource to update
occurrence_date_timestringrequired- Date/time the vaccination occurred (ISO 8601)
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Immunization status: completed, entered-in-error, not-done
vaccine_codestringrequired- CVX vaccine code
vaccine_systemstringrequired- Code system URI for the vaccine code
lot_numberstring- Vaccine lot number
notestring- Additional notes about the immunization
vaccine_displaystring- Human-readable display for the vaccine
advancedmd_medication_request_createCreate a new FHIR MedicationRequest resource representing a prescription or medication order for a patient.WriteCreate Medication Request
Create a new FHIR MedicationRequest resource representing a prescription or medication order for a patient.
Inputs
intentstringrequired- Intent: proposal, plan, order, instance-order
medication_codestringrequired- RxNorm or other medication code
medication_systemstringrequired- Code system URI for the medication code
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Status: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknown
authored_onstring- Date the prescription was authored (ISO 8601)
dosage_textstring- Free-text dosage instructions
medication_displaystring- Human-readable medication name
notestring- Additional notes about the prescription
advancedmd_medication_request_updateUpdate an existing FHIR MedicationRequest resource by its ID.WriteUpdate Medication Request
Update an existing FHIR MedicationRequest resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
intentstringrequired- Intent: proposal, plan, order, instance-order
medication_codestringrequired- RxNorm or other medication code
medication_request_idstringrequired- The logical ID of the MedicationRequest resource to update
medication_systemstringrequired- Code system URI for the medication code
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Status: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknown
authored_onstring- Date the prescription was authored (ISO 8601)
dosage_textstring- Free-text dosage instructions
medication_displaystring- Human-readable medication name
notestring- Additional notes about the prescription
advancedmd_observation_createCreate a new FHIR Observation resource such as a vital sign or lab result for a patient.WriteCreate Observation
Create a new FHIR Observation resource such as a vital sign or lab result for a patient.
Inputs
codestringrequired- Code identifying the observation type (e.g. LOINC code)
code_systemstringrequired- Code system URI for the observation code
patient_idstringrequired- FHIR logical ID of the patient this observation belongs to
statusstringrequired- Observation status: registered, preliminary, final, amended
categorystring- Observation category: vital-signs, laboratory, social-history, imaging, etc.
code_displaystring- Human-readable display for the code
effective_date_timestring- Date/time the observation was clinically relevant (ISO 8601)
notestring- Free-text note about the observation
unitstring- Unit of measure for the value (UCUM code)
valuenumber- Numeric value of the observation
advancedmd_observation_updateUpdate an existing FHIR Observation resource by its ID.WriteUpdate Observation
Update an existing FHIR Observation resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
codestringrequired- Code identifying the observation type (e.g. LOINC code)
code_systemstringrequired- Code system URI for the observation code
observation_idstringrequired- The logical ID of the Observation resource to update
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Observation status: registered, preliminary, final, amended
categorystring- Observation category: vital-signs, laboratory, social-history, imaging, etc.
code_displaystring- Human-readable display for the code
effective_date_timestring- Date/time the observation was clinically relevant (ISO 8601)
notestring- Free-text note about the observation
unitstring- Unit of measure for the value (UCUM code)
valuenumber- Numeric value of the observation
advancedmd_organization_createCreate a new FHIR Organization resource representing a hospital, clinic, or other healthcare entity.WriteCreate Organization
Create a new FHIR Organization resource representing a hospital, clinic, or other healthcare entity.
Inputs
namestringrequired- Name of the organization
activeboolean- Whether the organization is active
address_linestring- Street address line
citystring- City
emailstring- Organization's email address
phonestring- Organization's main phone number
postal_codestring- Postal or ZIP code
statestring- State or province
type_codestring- Organization type: prov (provider), dept (department), team, govt, ins (insurer), cg (clinical group)
advancedmd_organization_updateUpdate an existing FHIR Organization resource by its ID.WriteUpdate Organization
Update an existing FHIR Organization resource by its ID.
- Idempotent
Inputs
namestringrequired- Name of the organization
organization_idstringrequired- The logical ID of the Organization resource to update
activeboolean- Whether the organization is active
address_linestring- Street address line
citystring- City
emailstring- Organization's email address
phonestring- Organization's main phone number
postal_codestring- Postal or ZIP code
statestring- State or province
type_codestring- Organization type: prov, dept, team, govt, ins, cg
advancedmd_patient_createCreate a new FHIR Patient resource with demographic information including name, gender, birth date, contact details, and address.WriteCreate Patient
Create a new FHIR Patient resource with demographic information including name, gender, birth date, contact details, and address.
Inputs
family_namestringrequired- Patient's family (last) name
address_linestring- Street address line
birth_datestring- Date of birth in YYYY-MM-DD format
citystring- City
countrystring- Country code (ISO 3166)
emailstring- Patient's email address
genderstring- Administrative gender: male, female, other, unknown
given_namesarray- List of given (first/middle) names
phonestring- Patient's phone number
postal_codestring- Postal or ZIP code
statestring- State or province
advancedmd_patient_updateUpdate an existing FHIR Patient resource by its ID.WriteUpdate Patient
Update an existing FHIR Patient resource by its ID. Replaces the resource with the provided demographic data.
- Idempotent
Inputs
family_namestringrequired- Patient's family (last) name
patient_idstringrequired- The logical ID of the Patient resource to update
address_linestring- Street address line
birth_datestring- Date of birth in YYYY-MM-DD format
citystring- City
countrystring- Country code (ISO 3166)
emailstring- Patient's email address
genderstring- Administrative gender: male, female, other, unknown
given_namesarray- List of given (first/middle) names
phonestring- Patient's phone number
postal_codestring- Postal or ZIP code
statestring- State or province
advancedmd_practitioner_createCreate a new FHIR Practitioner resource representing a healthcare professional such as a doctor or nurse.WriteCreate Practitioner
Create a new FHIR Practitioner resource representing a healthcare professional such as a doctor or nurse.
Inputs
family_namestringrequired- Practitioner's family (last) name
emailstring- Practitioner's email address
genderstring- Administrative gender: male, female, other, unknown
given_namesarray- List of given (first/middle) names
npistring- National Provider Identifier (NPI)
phonestring- Practitioner's phone number
advancedmd_practitioner_updateUpdate an existing FHIR Practitioner resource by its ID.WriteUpdate Practitioner
Update an existing FHIR Practitioner resource by its ID.
- Idempotent
Inputs
family_namestringrequired- Practitioner's family (last) name
practitioner_idstringrequired- The logical ID of the Practitioner resource to update
emailstring- Practitioner's email address
genderstring- Administrative gender: male, female, other, unknown
given_namesarray- List of given (first/middle) names
npistring- National Provider Identifier (NPI)
phonestring- Practitioner's phone number
advancedmd_procedure_createCreate a new FHIR Procedure resource recording a clinical action performed on or for a patient.WriteCreate Procedure
Create a new FHIR Procedure resource recording a clinical action performed on or for a patient.
Inputs
codestringrequired- SNOMED or CPT code for the procedure
code_systemstringrequired- Code system URI for the procedure code
patient_idstringrequired- FHIR logical ID of the patient
statusstringrequired- Procedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknown
code_displaystring- Human-readable display for the procedure code
notestring- Free-text note about the procedure
performed_date_timestring- Date/time the procedure was performed (ISO 8601)
reason_codestring- SNOMED code for the reason the procedure was performed
advancedmd_procedure_updateUpdate an existing FHIR Procedure resource by its ID.WriteUpdate Procedure
Update an existing FHIR Procedure resource by its ID.
- Idempotent
Inputs
codestringrequired- SNOMED or CPT code for the procedure
code_systemstringrequired- Code system URI for the procedure code
patient_idstringrequired- FHIR logical ID of the patient
procedure_idstringrequired- The logical ID of the Procedure resource to update
statusstringrequired- Procedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknown
code_displaystring- Human-readable display for the procedure code
notestring- Free-text note about the procedure
performed_date_timestring- Date/time the procedure was performed (ISO 8601)
reason_codestring- SNOMED code for the reason the procedure was performed
advancedmd_allergy_intolerance_deleteDelete a FHIR AllergyIntolerance resource by its logical ID.DestructiveDelete Allergy Intolerance
Delete a FHIR AllergyIntolerance resource by its logical ID.
- Idempotent
Inputs
allergy_intolerance_idstringrequired- The logical ID of the AllergyIntolerance resource to delete
advancedmd_appointment_deleteDelete a FHIR Appointment resource by its logical ID.DestructiveDelete Appointment
Delete a FHIR Appointment resource by its logical ID.
- Idempotent
Inputs
appointment_idstringrequired- The logical ID of the Appointment resource to delete
advancedmd_condition_deleteDelete a FHIR Condition resource by its logical ID.DestructiveDelete Condition
Delete a FHIR Condition resource by its logical ID.
- Idempotent
Inputs
condition_idstringrequired- The logical ID of the Condition resource to delete
advancedmd_diagnostic_report_deleteDelete a FHIR DiagnosticReport resource by its logical ID.DestructiveDelete Diagnostic Report
Delete a FHIR DiagnosticReport resource by its logical ID.
- Idempotent
Inputs
diagnostic_report_idstringrequired- The logical ID of the DiagnosticReport resource to delete
advancedmd_encounter_deleteDelete a FHIR Encounter resource by its logical ID.DestructiveDelete Encounter
Delete a FHIR Encounter resource by its logical ID.
- Idempotent
Inputs
encounter_idstringrequired- The logical ID of the Encounter resource to delete
advancedmd_immunization_deleteDelete a FHIR Immunization resource by its logical ID.DestructiveDelete Immunization
Delete a FHIR Immunization resource by its logical ID.
- Idempotent
Inputs
immunization_idstringrequired- The logical ID of the Immunization resource to delete
advancedmd_medication_request_deleteDelete a FHIR MedicationRequest resource by its logical ID.DestructiveDelete Medication Request
Delete a FHIR MedicationRequest resource by its logical ID.
- Idempotent
Inputs
medication_request_idstringrequired- The logical ID of the MedicationRequest resource to delete
advancedmd_observation_deleteDelete a FHIR Observation resource by its logical ID.DestructiveDelete Observation
Delete a FHIR Observation resource by its logical ID.
- Idempotent
Inputs
observation_idstringrequired- The logical ID of the Observation resource to delete
advancedmd_organization_deleteDelete a FHIR Organization resource by its logical ID.DestructiveDelete Organization
Delete a FHIR Organization resource by its logical ID.
- Idempotent
Inputs
organization_idstringrequired- The logical ID of the Organization resource to delete
advancedmd_patient_deleteDelete a FHIR Patient resource by its logical ID.DestructiveDelete Patient
Delete a FHIR Patient resource by its logical ID.
- Idempotent
Inputs
patient_idstringrequired- The logical ID of the Patient resource to delete
advancedmd_practitioner_deleteDelete a FHIR Practitioner resource by its logical ID.DestructiveDelete Practitioner
Delete a FHIR Practitioner resource by its logical ID.
- Idempotent
Inputs
practitioner_idstringrequired- The logical ID of the Practitioner resource to delete
advancedmd_procedure_deleteDelete a FHIR Procedure resource by its logical ID.DestructiveDelete Procedure
Delete a FHIR Procedure resource by its logical ID.
- Idempotent
Inputs
procedure_idstringrequired- The logical ID of the Procedure resource to delete
No tools match.
Workflows
Proxy API call
Call the FHIR server’s REST API directly through the Scalekit proxy. Use standard FHIR search paths such as /Patient or /Observation.
const result = await actions.request({ connectionName: 'advancedmd', identifier: 'user_123', path: '/Patient?family=Smith&_count=10', method: 'GET',});console.log(result);result = actions.request( connection_name='advancedmd', identifier='user_123', path="/Patient?family=Smith&_count=10", method="GET")print(result)Search for patients
const patients = await actions.executeTool({ connector: 'advancedmd', identifier: 'user_123', toolName: 'advancedmd_patient_search', toolInput: { family: 'Smith', given: 'Jane', birthdate: '1985-04-12', _count: 10, },});console.log('Matching patients:', patients);patients = actions.execute_tool( connection_name='advancedmd', identifier='user_123', tool_name="advancedmd_patient_search", tool_input={ "family": "Smith", "given": "Jane", "birthdate": "1985-04-12", "_count": 10, },)print("Matching patients:", patients)Retrieve everything for a patient
Invoke the FHIR $everything operation to pull all clinical resources for one patient in a single Bundle. Pass _type to limit the response to specific resource types.
const bundle = await actions.executeTool({ connector: 'advancedmd', identifier: 'user_123', toolName: 'advancedmd_patient_everything', toolInput: { patient_id: 'a1b2c3d4-0000-1111-2222-333344445555', _type: 'Condition,Observation,MedicationRequest', _count: 50, },});console.log('Bundle entries:', bundle);bundle = actions.execute_tool( connection_name='advancedmd', identifier='user_123', tool_name="advancedmd_patient_everything", tool_input={ "patient_id": "a1b2c3d4-0000-1111-2222-333344445555", "_type": "Condition,Observation,MedicationRequest", "_count": 50, },)print("Bundle entries:", bundle)Search a patient’s observations
const observations = await actions.executeTool({ connector: 'advancedmd', identifier: 'user_123', toolName: 'advancedmd_observation_search', toolInput: { patient: 'a1b2c3d4-0000-1111-2222-333344445555', category: 'vital-signs', date: 'ge2026-01-01', _count: 25, },});console.log('Observations:', observations);observations = actions.execute_tool( connection_name='advancedmd', identifier='user_123', tool_name="advancedmd_observation_search", tool_input={ "patient": "a1b2c3d4-0000-1111-2222-333344445555", "category": "vital-signs", "date": "ge2026-01-01", "_count": 25, },)print("Observations:", observations)Record a vital-sign observation
Create an Observation such as a heart-rate reading. The code and code_system identify the measurement — this example uses the LOINC code 8867-4 (Heart rate).
const observation = await actions.executeTool({ connector: 'advancedmd', identifier: 'user_123', toolName: 'advancedmd_observation_create', toolInput: { patient_id: 'a1b2c3d4-0000-1111-2222-333344445555', status: 'final', code: '8867-4', code_system: 'http://loinc.org', code_display: 'Heart rate', category: 'vital-signs', effective_date_time: new Date().toISOString(), value: 72, unit: '/min', },});console.log('Created observation:', observation);from datetime import datetime, timezone
observation = actions.execute_tool( connection_name='advancedmd', identifier='user_123', tool_name="advancedmd_observation_create", tool_input={ "patient_id": "a1b2c3d4-0000-1111-2222-333344445555", "status": "final", "code": "8867-4", "code_system": "http://loinc.org", "code_display": "Heart rate", "category": "vital-signs", "effective_date_time": datetime.now(timezone.utc).isoformat(), "value": 72, "unit": "/min", },)print("Created observation:", observation)