The SMART App on FHIR connector lets your AI agent act in each user's SMART App on FHIR account. Each user signs in to SMART App on FHIR once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 81 tools.
- Tools
- 81
- What they doRead · write · destructive
- 33 · 32 · 1633 read32 write16 destructive
- Users sign in with
- SMART on FHIR
What you can do
- Manage patients: search, create, update, and delete patient demographics, or pull everything on file for a patient
- Book appointments and encounters: schedule, reschedule, cancel, and look up appointments and patient visits
- Record clinical data: create and update conditions, observations, allergies, immunizations, and procedures
- Manage prescriptions and reports: read and write medication requests, diagnostic reports, and document references
- Coordinate care: create and update care plans, care teams, and patient goals
- Look up providers: search and manage practitioners and organizations such as hospitals and clinics
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 SMART App on FHIR connection
In AgentKit > Connections, create a SMART App on FHIR connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Console steps with screenshots
SMART App on FHIR uses an OAuth 2.0 authorization code flow with PKCE. Because every FHIR server 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 register a client with your FHIR server to obtain a client ID, and a client secret if the server issues one.-
Discover your FHIR server’s SMART configuration
Every SMART on FHIR server publishes its OAuth endpoints at a well-known discovery URL:
<fhir-base-url>/.well-known/smart-configurationFetch that URL and note these values:
authorization_endpoint— the Authorization endpointtoken_endpoint— the Token endpoint- the FHIR server base URL, for example
https://fhir.example.com/r4— this gives you both the Audience (aud) value and the FHIR server domain (the same URL without thehttps://scheme, for examplefhir.example.com)
-
Register an app with your FHIR server
-
Register a new app in your FHIR server’s developer portal or app-registration console to obtain a client ID. Scalekit uses PKCE, so a public client works; if your FHIR server issues a client secret, note it as well and add it in the next step.
-
When prompted for a redirect URI, 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 SMART App on FHIR and click Create. Copy the redirect URI — it looks like
https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.Return to your FHIR server’s 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 client ID from your FHIR server app registration
- Client Secret — the client secret from your FHIR server app registration, if one was issued; leave blank for a public PKCE client
- Authorization Endpoint — the
authorization_endpointfrom.well-known/smart-configuration - Token Endpoint — the
token_endpointfrom.well-known/smart-configuration - Audience (
aud) — the FHIR server base URL, sent as the requiredaudparameter on the authorization request - FHIR Server Domain — the FHIR server domain without the
https://scheme, for examplefhir.example.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 FHIR server app registration.Click Save.
-
Verify the connection is active
Go to Connected Accounts for your SMART App on FHIR connection and confirm the status shows Active after a user completes authorization.
-
Tools
Pass the exact name toexecute_toolcustomsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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.
Inputs
care_plan_idstringrequired- The logical ID of the CarePlan resource
customsmartfhir_care_plan_searchSearch for FHIR CarePlan resources using parameters like patient, status, category, and date.Read-onlySearch Care Plans
Search for FHIR CarePlan resources using parameters like patient, status, category, 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 time period the care plan covers (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
customsmartfhir_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.
Inputs
care_team_idstringrequired- The logical ID of the CareTeam resource
customsmartfhir_care_team_searchSearch for FHIR CareTeam resources using parameters like patient and status.Read-onlySearch Care Teams
Search for FHIR CareTeam resources using parameters like 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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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.
Inputs
document_reference_idstringrequired- The logical ID of the DocumentReference resource
customsmartfhir_document_reference_searchSearch for FHIR DocumentReference resources using parameters like patient, status, category, type, and date.Read-onlySearch Document References
Search for FHIR DocumentReference resources using parameters like patient, status, category, type, and date.
Inputs
_countnumber- Maximum number of results to return per page
_offsetnumber- Number of results to skip for pagination
categorystring- Category of the document, 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
statusstring- Document status: current, superseded, entered-in-error
typestring- Document type code (LOINC), e.g. 34133-9 for a summary of episode note
customsmartfhir_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
customsmartfhir_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
customsmartfhir_goal_readRetrieve a single FHIR Goal resource by its logical ID.Read-onlyGet Goal
Retrieve a single FHIR Goal resource by its logical ID.
Inputs
goal_idstringrequired- The logical ID of the Goal resource
customsmartfhir_goal_searchSearch for FHIR Goal resources using parameters like patient, lifecycle status, and target date.Read-onlySearch Goals
Search for FHIR Goal resources 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 target due date (YYYY-MM-DD or range with prefix)
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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)
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_care_plan_createCreate a new FHIR CarePlan resource for a patient with status, intent, title, description, category, and coverage period.WriteCreate Care Plan
Create a new FHIR CarePlan resource for a patient with status, intent, title, description, category, and coverage period.
Inputs
intentstringrequired- Care plan intent: proposal, plan, order, option
patient_idstringrequired- The logical ID of the Patient this care plan is for
statusstringrequired- Care plan status: draft, active, on-hold, revoked, completed, entered-in-error, unknown
categorystring- Category code identifying the type of care plan, e.g. assess-plan
descriptionstring- Free-text summary of what the care plan involves
period_endstring- End date of the care plan period (YYYY-MM-DD)
period_startstring- Start date of the care plan period (YYYY-MM-DD)
titlestring- Human-friendly title for the care plan
customsmartfhir_care_plan_updateUpdate an existing FHIR CarePlan resource by its ID.WriteUpdate Care Plan
Update an existing FHIR CarePlan resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
care_plan_idstringrequired- The logical ID of the CarePlan resource to update
intentstringrequired- Care plan intent: proposal, plan, order, option
patient_idstringrequired- The logical ID of the Patient this care plan is for
statusstringrequired- Care plan status: draft, active, on-hold, revoked, completed, entered-in-error, unknown
categorystring- Category code identifying the type of care plan, e.g. assess-plan
descriptionstring- Free-text summary of what the care plan involves
period_endstring- End date of the care plan period (YYYY-MM-DD)
period_startstring- Start date of the care plan period (YYYY-MM-DD)
titlestring- Human-friendly title for the care plan
customsmartfhir_care_team_createCreate a new FHIR CareTeam resource for a patient with a name, status, category, and a primary participant member and role.WriteCreate Care Team
Create a new FHIR CareTeam resource for a patient with a name, status, category, and a primary participant member and role.
Inputs
patient_idstringrequired- The logical ID of the Patient this care team is for
statusstringrequired- Care team status: proposed, active, suspended, inactive, entered-in-error
categorystring- Category code identifying the type of care team
namestring- Human-friendly name for the care team
participant_member_idstring- Practitioner ID of the primary participant on this care team
participant_rolestring- Role code of the participant on the care team
customsmartfhir_care_team_updateUpdate an existing FHIR CareTeam resource by its ID.WriteUpdate Care Team
Update an existing FHIR CareTeam resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
care_team_idstringrequired- The logical ID of the CareTeam resource to update
patient_idstringrequired- The logical ID of the Patient this care team is for
statusstringrequired- Care team status: proposed, active, suspended, inactive, entered-in-error
categorystring- Category code identifying the type of care team
namestring- Human-friendly name for the care team
participant_member_idstring- Practitioner ID of the primary participant on this care team
participant_rolestring- Role code of the participant on the care team
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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)
customsmartfhir_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)
customsmartfhir_document_reference_createCreate a new FHIR DocumentReference resource pointing to a clinical document, referenced by a URL, for a patient.WriteCreate Document Reference
Create a new FHIR DocumentReference resource pointing to a clinical document, referenced by a URL, for a patient.
Inputs
content_typestringrequired- MIME type of the document content
content_urlstringrequired- URL where the document content can be retrieved
patient_idstringrequired- The logical ID of the Patient this document is about
statusstringrequired- Document status: current, superseded, entered-in-error
categorystring- Category of the document, e.g. clinical-note
datestring- Date the document was created (ISO 8601 datetime)
descriptionstring- Human-readable description of the document
type_codestring- Document type code (LOINC), e.g. 34133-9 for a summary of episode note
customsmartfhir_document_reference_updateUpdate an existing FHIR DocumentReference resource by its ID.WriteUpdate Document Reference
Update an existing FHIR DocumentReference resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
content_typestringrequired- MIME type of the document content
content_urlstringrequired- URL where the document content can be retrieved
document_reference_idstringrequired- The logical ID of the DocumentReference resource to update
patient_idstringrequired- The logical ID of the Patient this document is about
statusstringrequired- Document status: current, superseded, entered-in-error
categorystring- Category of the document, e.g. clinical-note
datestring- Date the document was created (ISO 8601 datetime)
descriptionstring- Human-readable description of the document
type_codestring- Document type code (LOINC), e.g. 34133-9 for a summary of episode note
customsmartfhir_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
customsmartfhir_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
customsmartfhir_goal_createCreate a new FHIR Goal resource for a patient describing a target health outcome with a lifecycle status, description, category, and target due date.WriteCreate Goal
Create a new FHIR Goal resource for a patient describing a target health outcome with a lifecycle status, description, category, and target due date.
Inputs
descriptionstringrequired- Free-text description of what the goal is trying to achieve
lifecycle_statusstringrequired- Goal lifecycle status: proposed, planned, accepted, active, on-hold, completed, cancelled, entered-in-error, rejected
patient_idstringrequired- The logical ID of the Patient this goal is for
categorystring- Category code identifying the type of goal, e.g. dietary, safety, behavioral
start_datestring- Date the goal starts being pursued (YYYY-MM-DD)
target_datestring- Target date by which the goal should be achieved (YYYY-MM-DD)
customsmartfhir_goal_updateUpdate an existing FHIR Goal resource by its ID.WriteUpdate Goal
Update an existing FHIR Goal resource by its ID. Replaces the resource with the provided data.
- Idempotent
Inputs
descriptionstringrequired- Free-text description of what the goal is trying to achieve
goal_idstringrequired- The logical ID of the Goal resource to update
lifecycle_statusstringrequired- Goal lifecycle status: proposed, planned, accepted, active, on-hold, completed, cancelled, entered-in-error, rejected
patient_idstringrequired- The logical ID of the Patient this goal is for
categorystring- Category code identifying the type of goal, e.g. dietary, safety, behavioral
start_datestring- Date the goal starts being pursued (YYYY-MM-DD)
target_datestring- Target date by which the goal should be achieved (YYYY-MM-DD)
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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)
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_care_plan_deleteDelete a FHIR CarePlan resource by its logical ID.DestructiveDelete Care Plan
Delete a FHIR CarePlan resource by its logical ID.
- Idempotent
Inputs
care_plan_idstringrequired- The logical ID of the CarePlan resource to delete
customsmartfhir_care_team_deleteDelete a FHIR CareTeam resource by its logical ID.DestructiveDelete Care Team
Delete a FHIR CareTeam resource by its logical ID.
- Idempotent
Inputs
care_team_idstringrequired- The logical ID of the CareTeam resource to delete
customsmartfhir_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
customsmartfhir_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
customsmartfhir_document_reference_deleteDelete a FHIR DocumentReference resource by its logical ID.DestructiveDelete Document Reference
Delete a FHIR DocumentReference resource by its logical ID.
- Idempotent
Inputs
document_reference_idstringrequired- The logical ID of the DocumentReference resource to delete
customsmartfhir_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
customsmartfhir_goal_deleteDelete a FHIR Goal resource by its logical ID.DestructiveDelete Goal
Delete a FHIR Goal resource by its logical ID.
- Idempotent
Inputs
goal_idstringrequired- The logical ID of the Goal resource to delete
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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
customsmartfhir_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: 'customsmartfhir', identifier: 'user_123', path: '/Patient?family=Smith&_count=10', method: 'GET',});console.log(result);result = actions.request( connection_name='customsmartfhir', identifier='user_123', path="/Patient?family=Smith&_count=10", method="GET")print(result)Search for patients
const patients = await actions.executeTool({ connector: 'customsmartfhir', identifier: 'user_123', toolName: 'customsmartfhir_patient_search', toolInput: { family: 'Smith', given: 'Jane', birthdate: '1985-04-12', _count: 10, },});console.log('Matching patients:', patients);patients = actions.execute_tool( connection_name='customsmartfhir', identifier='user_123', tool_name="customsmartfhir_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: 'customsmartfhir', identifier: 'user_123', toolName: 'customsmartfhir_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='customsmartfhir', identifier='user_123', tool_name="customsmartfhir_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: 'customsmartfhir', identifier: 'user_123', toolName: 'customsmartfhir_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='customsmartfhir', identifier='user_123', tool_name="customsmartfhir_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: 'customsmartfhir', identifier: 'user_123', toolName: 'customsmartfhir_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='customsmartfhir', identifier='user_123', tool_name="customsmartfhir_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)