AdvancedMD connector
SMART On FHIRHealthcareAdvancedMD is a cloud-based medical practice management and electronic health record (EHR) platform. This connector uses the SMART on FHIR authorization...
AdvancedMD connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set 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> -
Set up the connector
Section titled “Set up the connector”Register your AdvancedMD credentials with Scalekit so it can authenticate requests on your behalf. You do this once per environment.
Dashboard setup steps
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 register a client with AdvancedMD to obtain a client ID, and a client secret if AdvancedMD issues one.-
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).
-
Register an app with AdvancedMD
-
Register a new app through the AdvancedMD developer program to obtain a client ID. Scalekit uses PKCE, so a public client works; if AdvancedMD 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 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 client ID from your AdvancedMD app registration
- Client Secret — the client secret from your AdvancedMD 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 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.
-
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- 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
Common workflows
Section titled “Common 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)Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
advancedmd_allergy_intolerance_create#Create a new FHIR AllergyIntolerance resource recording a patient's allergy or intolerance to a substance.10 params
Create a new FHIR AllergyIntolerance resource recording a patient's allergy or intolerance to a substance.
codestringrequiredCode identifying the substance (RxNorm, SNOMED, or NDF-RT)code_systemstringrequiredCode system URI for the substance codepatient_idstringrequiredFHIR logical ID of the patientcategorystringoptionalCategory: food, medication, environment, biologicclinical_statusstringoptionalClinical status: active, inactive, resolvedcode_displaystringoptionalHuman-readable display for the substancecriticalitystringoptionalCriticality: low, high, unable-to-assessnotestringoptionalFree-text note about the allergyonset_date_timestringoptionalDate/time of allergy onset (ISO 8601)typestringoptionalType: allergy or intoleranceadvancedmd_allergy_intolerance_delete#Delete a FHIR AllergyIntolerance resource by its logical ID.1 param
Delete a FHIR AllergyIntolerance resource by its logical ID.
allergy_intolerance_idstringrequiredThe logical ID of the AllergyIntolerance resource to deleteadvancedmd_allergy_intolerance_read#Retrieve a single FHIR AllergyIntolerance resource by its logical ID. Represents a patient's allergy or intolerance to a substance.1 param
Retrieve a single FHIR AllergyIntolerance resource by its logical ID. Represents a patient's allergy or intolerance to a substance.
allergy_intolerance_idstringrequiredThe logical ID of the AllergyIntolerance resourceadvancedmd_allergy_intolerance_search#Search for FHIR AllergyIntolerance resources using parameters like patient, clinical status, type, category, and criticality.8 params
Search for FHIR AllergyIntolerance resources using parameters like patient, clinical status, type, category, and criticality.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationcategorystringoptionalCategory: food, medication, environment, biologicclinical_statusstringoptionalClinical status: active, inactive, resolvedcodestringoptionalSubstance code (RxNorm, SNOMED, or NDF-RT)criticalitystringoptionalCriticality: low, high, unable-to-assesspatientstringoptionalPatient ID to filter allergy intolerances bytypestringoptionalAllergy or intolerance type: allergy, intoleranceadvancedmd_allergy_intolerance_update#Update an existing FHIR AllergyIntolerance resource by its ID.10 params
Update an existing FHIR AllergyIntolerance resource by its ID.
allergy_intolerance_idstringrequiredThe logical ID of the AllergyIntolerance resource to updatecodestringrequiredCode identifying the substancecode_systemstringrequiredCode system URI for the substance codepatient_idstringrequiredFHIR logical ID of the patientcategorystringoptionalCategory: food, medication, environment, biologicclinical_statusstringoptionalClinical status: active, inactive, resolvedcode_displaystringoptionalHuman-readable display for the substancecriticalitystringoptionalCriticality: low, high, unable-to-assessnotestringoptionalFree-text note about the allergytypestringoptionalType: allergy or intoleranceadvancedmd_appointment_create#Create a new FHIR Appointment resource to book a patient visit with a practitioner.8 params
Create a new FHIR Appointment resource to book a patient visit with a practitioner.
endstringrequiredEnd date/time of the appointment (ISO 8601)patient_idstringrequiredFHIR logical ID of the patient participantstartstringrequiredStart date/time of the appointment (ISO 8601)statusstringrequiredAppointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlistcommentstringoptionalAdditional comments about the appointmentdescriptionstringoptionalShort description of the appointmentpractitioner_idstringoptionalFHIR logical ID of the practitioner participantservice_type_codestringoptionalService type code for the appointmentadvancedmd_appointment_delete#Delete a FHIR Appointment resource by its logical ID.1 param
Delete a FHIR Appointment resource by its logical ID.
appointment_idstringrequiredThe logical ID of the Appointment resource to deleteadvancedmd_appointment_read#Retrieve a single FHIR Appointment resource by its logical ID. Appointments represent bookings for a patient, practitioner, or location at a specific time.1 param
Retrieve a single FHIR Appointment resource by its logical ID. Appointments represent bookings for a patient, practitioner, or location at a specific time.
appointment_idstringrequiredThe logical ID of the Appointment resourceadvancedmd_appointment_search#Search for FHIR Appointment resources using parameters like patient, practitioner, status, and date.7 params
Search for FHIR Appointment resources using parameters like patient, practitioner, status, and date.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationdatestringoptionalFilter by appointment date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter appointments bypractitionerstringoptionalPractitioner ID to filter appointments byservice_typestringoptionalType of service being delivered, e.g. 57 for ImmunologystatusstringoptionalAppointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlistadvancedmd_appointment_update#Update an existing FHIR Appointment resource by its ID, e.g. to reschedule or cancel.8 params
Update an existing FHIR Appointment resource by its ID, e.g. to reschedule or cancel.
appointment_idstringrequiredThe logical ID of the Appointment resource to updateendstringrequiredEnd date/time of the appointment (ISO 8601)patient_idstringrequiredFHIR logical ID of the patient participantstartstringrequiredStart date/time of the appointment (ISO 8601)statusstringrequiredAppointment status: proposed, pending, booked, arrived, fulfilled, cancelled, noshow, entered-in-error, checked-in, waitlistcommentstringoptionalAdditional comments about the appointmentdescriptionstringoptionalShort description of the appointmentpractitioner_idstringoptionalFHIR logical ID of the practitioner participantadvancedmd_condition_create#Create a new FHIR Condition resource representing a diagnosis or health problem for a patient.9 params
Create a new FHIR Condition resource representing a diagnosis or health problem for a patient.
codestringrequiredICD-10 or SNOMED code for the conditioncode_systemstringrequiredCode system URIpatient_idstringrequiredFHIR logical ID of the patientcategorystringoptionalCondition category: problem-list-item, encounter-diagnosisclinical_statusstringoptionalClinical status: active, recurrence, relapse, inactive, remission, resolvedcode_displaystringoptionalHuman-readable display for the condition codenotestringoptionalFree-text note about the conditiononset_date_timestringoptionalDate/time of condition onset (ISO 8601)verification_statusstringoptionalVerification status: unconfirmed, provisional, differential, confirmed, refuted, entered-in-erroradvancedmd_condition_delete#Delete a FHIR Condition resource by its logical ID.1 param
Delete a FHIR Condition resource by its logical ID.
condition_idstringrequiredThe logical ID of the Condition resource to deleteadvancedmd_condition_read#Retrieve a single FHIR Condition resource by its logical ID. Conditions represent clinical diagnoses, problems, or health concerns.1 param
Retrieve a single FHIR Condition resource by its logical ID. Conditions represent clinical diagnoses, problems, or health concerns.
condition_idstringrequiredThe logical ID of the Condition resourceadvancedmd_condition_search#Search for FHIR Condition resources representing diagnoses and health problems using parameters like patient, clinical status, category, and code.7 params
Search for FHIR Condition resources representing diagnoses and health problems using parameters like patient, clinical status, category, and code.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationcategorystringoptionalCategory of condition, e.g. problem-list-item, encounter-diagnosisclinical_statusstringoptionalClinical status: active, recurrence, relapse, inactive, remission, resolvedcodestringoptionalICD-10 or SNOMED code for the conditiononset_datestringoptionalFilter by onset date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter conditions byadvancedmd_condition_update#Update an existing FHIR Condition resource by its ID. Replaces the resource with the provided data.10 params
Update an existing FHIR Condition resource by its ID. Replaces the resource with the provided data.
codestringrequiredICD-10 or SNOMED code for the conditioncode_systemstringrequiredCode system URIcondition_idstringrequiredThe logical ID of the Condition resource to updatepatient_idstringrequiredFHIR logical ID of the patientcategorystringoptionalCondition category: problem-list-item, encounter-diagnosisclinical_statusstringoptionalClinical status: active, recurrence, relapse, inactive, remission, resolvedcode_displaystringoptionalHuman-readable display for the condition codenotestringoptionalFree-text note about the conditiononset_date_timestringoptionalDate/time of condition onset (ISO 8601)verification_statusstringoptionalVerification status: unconfirmed, provisional, differential, confirmed, refuted, entered-in-erroradvancedmd_diagnostic_report_create#Create a new FHIR DiagnosticReport resource representing findings from a laboratory, imaging, or other diagnostic service.8 params
Create a new FHIR DiagnosticReport resource representing findings from a laboratory, imaging, or other diagnostic service.
codestringrequiredLOINC code identifying the type of reportcode_systemstringrequiredCode system URI for the report codepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredReport status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-errorcategorystringoptionalReport category: LAB, RAD, etc.code_displaystringoptionalHuman-readable display for the report typeconclusionstringoptionalClinical interpretation of the report findingseffective_date_timestringoptionalDate/time the report is clinically relevant (ISO 8601)advancedmd_diagnostic_report_delete#Delete a FHIR DiagnosticReport resource by its logical ID.1 param
Delete a FHIR DiagnosticReport resource by its logical ID.
diagnostic_report_idstringrequiredThe logical ID of the DiagnosticReport resource to deleteadvancedmd_diagnostic_report_read#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.1 param
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.
diagnostic_report_idstringrequiredThe logical ID of the DiagnosticReport resourceadvancedmd_diagnostic_report_search#Search for FHIR DiagnosticReport resources representing lab and imaging findings using parameters like patient, category, code, date, and status.7 params
Search for FHIR DiagnosticReport resources representing lab and imaging findings using parameters like patient, category, code, date, and status.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationcategorystringoptionalReport category: LAB, RAD (radiology), etc.codestringoptionalLOINC code for the type of reportdatestringoptionalFilter by report date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter diagnostic reports bystatusstringoptionalReport status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-erroradvancedmd_diagnostic_report_update#Update an existing FHIR DiagnosticReport resource by its ID.9 params
Update an existing FHIR DiagnosticReport resource by its ID.
codestringrequiredLOINC code identifying the type of reportcode_systemstringrequiredCode system URI for the report codediagnostic_report_idstringrequiredThe logical ID of the DiagnosticReport resource to updatepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredReport status: registered, partial, preliminary, final, amended, corrected, appended, cancelled, entered-in-errorcategorystringoptionalReport category: LAB, RAD, etc.code_displaystringoptionalHuman-readable display for the report typeconclusionstringoptionalClinical interpretation of the report findingseffective_date_timestringoptionalDate/time the report is clinically relevant (ISO 8601)advancedmd_encounter_create#Create a new FHIR Encounter resource representing a patient visit or admission.8 params
Create a new FHIR Encounter resource representing a patient visit or admission.
class_codestringrequiredEncounter class code: AMB (ambulatory), IMP (inpatient), EMER (emergency), HH (home health)patient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredEncounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelledperiod_endstringoptionalEnd date/time of the encounter (ISO 8601)period_startstringoptionalStart date/time of the encounter (ISO 8601)reason_codestringoptionalSNOMED code for the reason of the encountertype_codestringoptionalSpecific type of encounter by SNOMED codetype_displaystringoptionalHuman-readable display for the encounter typeadvancedmd_encounter_delete#Delete a FHIR Encounter resource by its logical ID.1 param
Delete a FHIR Encounter resource by its logical ID.
encounter_idstringrequiredThe logical ID of the Encounter resource to deleteadvancedmd_encounter_read#Retrieve a single FHIR Encounter resource by its logical ID. Encounters represent patient visits, admissions, or interactions with healthcare providers.1 param
Retrieve a single FHIR Encounter resource by its logical ID. Encounters represent patient visits, admissions, or interactions with healthcare providers.
encounter_idstringrequiredThe logical ID of the Encounter resourceadvancedmd_encounter_search#Search for FHIR Encounter resources representing patient visits and admissions using parameters like patient, status, date, and class.7 params
Search for FHIR Encounter resources representing patient visits and admissions using parameters like patient, status, date, and class.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationclassstringoptionalEncounter class: AMB (ambulatory), IMP (inpatient), EMER (emergency)datestringoptionalFilter by encounter date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter encounters bystatusstringoptionalEncounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelledtypestringoptionalSpecific type of encounter by codeadvancedmd_encounter_update#Update an existing FHIR Encounter resource by its ID. Replaces the resource with the provided data.9 params
Update an existing FHIR Encounter resource by its ID. Replaces the resource with the provided data.
class_codestringrequiredEncounter class: AMB (ambulatory), IMP (inpatient), EMER (emergency), HH (home health)encounter_idstringrequiredThe logical ID of the Encounter resource to updatepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredEncounter status: planned, arrived, triaged, in-progress, onleave, finished, cancelledperiod_endstringoptionalEnd date/time of the encounter (ISO 8601)period_startstringoptionalStart date/time of the encounter (ISO 8601)reason_codestringoptionalSNOMED code for the reason of the encountertype_codestringoptionalSpecific type of encounter by SNOMED codetype_displaystringoptionalHuman-readable display for the encounter typeadvancedmd_immunization_create#Create a new FHIR Immunization resource recording a vaccination event for a patient.8 params
Create a new FHIR Immunization resource recording a vaccination event for a patient.
occurrence_date_timestringrequiredDate/time the vaccination occurred (ISO 8601)patient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredImmunization status: completed, entered-in-error, not-donevaccine_codestringrequiredCVX vaccine codevaccine_systemstringrequiredCode system URI for the vaccine codelot_numberstringoptionalVaccine lot numbernotestringoptionalAdditional notes about the immunizationvaccine_displaystringoptionalHuman-readable display for the vaccineadvancedmd_immunization_delete#Delete a FHIR Immunization resource by its logical ID.1 param
Delete a FHIR Immunization resource by its logical ID.
immunization_idstringrequiredThe logical ID of the Immunization resource to deleteadvancedmd_immunization_read#Retrieve a single FHIR Immunization resource by its logical ID. Represents a vaccination event administered to a patient.1 param
Retrieve a single FHIR Immunization resource by its logical ID. Represents a vaccination event administered to a patient.
immunization_idstringrequiredThe logical ID of the Immunization resourceadvancedmd_immunization_search#Search for FHIR Immunization resources representing vaccination events using parameters like patient, status, vaccine code, and date.6 params
Search for FHIR Immunization resources representing vaccination events using parameters like patient, status, vaccine code, and date.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationdatestringoptionalFilter by vaccination date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter immunizations bystatusstringoptionalImmunization status: completed, entered-in-error, not-donevaccine_codestringoptionalCVX vaccine codeadvancedmd_immunization_update#Update an existing FHIR Immunization resource by its ID.9 params
Update an existing FHIR Immunization resource by its ID.
immunization_idstringrequiredThe logical ID of the Immunization resource to updateoccurrence_date_timestringrequiredDate/time the vaccination occurred (ISO 8601)patient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredImmunization status: completed, entered-in-error, not-donevaccine_codestringrequiredCVX vaccine codevaccine_systemstringrequiredCode system URI for the vaccine codelot_numberstringoptionalVaccine lot numbernotestringoptionalAdditional notes about the immunizationvaccine_displaystringoptionalHuman-readable display for the vaccineadvancedmd_medication_request_create#Create a new FHIR MedicationRequest resource representing a prescription or medication order for a patient.9 params
Create a new FHIR MedicationRequest resource representing a prescription or medication order for a patient.
intentstringrequiredIntent: proposal, plan, order, instance-ordermedication_codestringrequiredRxNorm or other medication codemedication_systemstringrequiredCode system URI for the medication codepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredStatus: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknownauthored_onstringoptionalDate the prescription was authored (ISO 8601)dosage_textstringoptionalFree-text dosage instructionsmedication_displaystringoptionalHuman-readable medication namenotestringoptionalAdditional notes about the prescriptionadvancedmd_medication_request_delete#Delete a FHIR MedicationRequest resource by its logical ID.1 param
Delete a FHIR MedicationRequest resource by its logical ID.
medication_request_idstringrequiredThe logical ID of the MedicationRequest resource to deleteadvancedmd_medication_request_read#Retrieve a single FHIR MedicationRequest resource by its logical ID. MedicationRequests represent prescriptions and medication orders.1 param
Retrieve a single FHIR MedicationRequest resource by its logical ID. MedicationRequests represent prescriptions and medication orders.
medication_request_idstringrequiredThe logical ID of the MedicationRequest resourceadvancedmd_medication_request_search#Search for FHIR MedicationRequest resources representing prescriptions using parameters like patient, status, medication code, and authored date.7 params
Search for FHIR MedicationRequest resources representing prescriptions using parameters like patient, status, medication code, and authored date.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationauthoredonstringoptionalDate the prescription was authored (YYYY-MM-DD or range with prefix)intentstringoptionalIntent of the request: proposal, plan, order, instance-ordermedicationstringoptionalRxNorm or other medication codepatientstringoptionalPatient ID to filter medication requests bystatusstringoptionalMedication request status: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknownadvancedmd_medication_request_update#Update an existing FHIR MedicationRequest resource by its ID. Replaces the resource with the provided data.10 params
Update an existing FHIR MedicationRequest resource by its ID. Replaces the resource with the provided data.
intentstringrequiredIntent: proposal, plan, order, instance-ordermedication_codestringrequiredRxNorm or other medication codemedication_request_idstringrequiredThe logical ID of the MedicationRequest resource to updatemedication_systemstringrequiredCode system URI for the medication codepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredStatus: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknownauthored_onstringoptionalDate the prescription was authored (ISO 8601)dosage_textstringoptionalFree-text dosage instructionsmedication_displaystringoptionalHuman-readable medication namenotestringoptionalAdditional notes about the prescriptionadvancedmd_observation_create#Create a new FHIR Observation resource such as a vital sign or lab result for a patient.10 params
Create a new FHIR Observation resource such as a vital sign or lab result for a patient.
codestringrequiredCode identifying the observation type (e.g. LOINC code)code_systemstringrequiredCode system URI for the observation codepatient_idstringrequiredFHIR logical ID of the patient this observation belongs tostatusstringrequiredObservation status: registered, preliminary, final, amendedcategorystringoptionalObservation category: vital-signs, laboratory, social-history, imaging, etc.code_displaystringoptionalHuman-readable display for the codeeffective_date_timestringoptionalDate/time the observation was clinically relevant (ISO 8601)notestringoptionalFree-text note about the observationunitstringoptionalUnit of measure for the value (UCUM code)valuenumberoptionalNumeric value of the observationadvancedmd_observation_delete#Delete a FHIR Observation resource by its logical ID.1 param
Delete a FHIR Observation resource by its logical ID.
observation_idstringrequiredThe logical ID of the Observation resource to deleteadvancedmd_observation_read#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.1 param
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.
observation_idstringrequiredThe logical ID of the Observation resourceadvancedmd_observation_search#Search for FHIR Observation resources such as vitals and lab results using parameters like patient, category, code, and date.7 params
Search for FHIR Observation resources such as vitals and lab results using parameters like patient, category, code, and date.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationcategorystringoptionalCategory of observation, e.g. vital-signs, laboratory, social-historycodestringoptionalLOINC or SNOMED code for the observation typedatestringoptionalFilter by observation date (YYYY-MM-DD or range with prefix e.g. ge2024-01-01)patientstringoptionalPatient ID to filter observations bystatusstringoptionalObservation status: registered, preliminary, final, amendedadvancedmd_observation_update#Update an existing FHIR Observation resource by its ID. Replaces the resource with the provided data.11 params
Update an existing FHIR Observation resource by its ID. Replaces the resource with the provided data.
codestringrequiredCode identifying the observation type (e.g. LOINC code)code_systemstringrequiredCode system URI for the observation codeobservation_idstringrequiredThe logical ID of the Observation resource to updatepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredObservation status: registered, preliminary, final, amendedcategorystringoptionalObservation category: vital-signs, laboratory, social-history, imaging, etc.code_displaystringoptionalHuman-readable display for the codeeffective_date_timestringoptionalDate/time the observation was clinically relevant (ISO 8601)notestringoptionalFree-text note about the observationunitstringoptionalUnit of measure for the value (UCUM code)valuenumberoptionalNumeric value of the observationadvancedmd_organization_create#Create a new FHIR Organization resource representing a hospital, clinic, or other healthcare entity.9 params
Create a new FHIR Organization resource representing a hospital, clinic, or other healthcare entity.
namestringrequiredName of the organizationactivebooleanoptionalWhether the organization is activeaddress_linestringoptionalStreet address linecitystringoptionalCityemailstringoptionalOrganization's email addressphonestringoptionalOrganization's main phone numberpostal_codestringoptionalPostal or ZIP codestatestringoptionalState or provincetype_codestringoptionalOrganization type: prov (provider), dept (department), team, govt, ins (insurer), cg (clinical group)advancedmd_organization_delete#Delete a FHIR Organization resource by its logical ID.1 param
Delete a FHIR Organization resource by its logical ID.
organization_idstringrequiredThe logical ID of the Organization resource to deleteadvancedmd_organization_read#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.1 param
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.
organization_idstringrequiredThe logical ID of the Organization resourceadvancedmd_organization_search#Search for FHIR Organization resources such as hospitals and clinics using parameters like name, type, identifier, and active status.6 params
Search for FHIR Organization resources such as hospitals and clinics using parameters like name, type, identifier, and active status.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationactivestringoptionalWhether the organization record is active: true or falseidentifierstringoptionalOrganization identifier such as NPInamestringoptionalName of the organizationtypestringoptionalOrganization type code, e.g. prov (provider), dept (department), govtadvancedmd_organization_update#Update an existing FHIR Organization resource by its ID.10 params
Update an existing FHIR Organization resource by its ID.
namestringrequiredName of the organizationorganization_idstringrequiredThe logical ID of the Organization resource to updateactivebooleanoptionalWhether the organization is activeaddress_linestringoptionalStreet address linecitystringoptionalCityemailstringoptionalOrganization's email addressphonestringoptionalOrganization's main phone numberpostal_codestringoptionalPostal or ZIP codestatestringoptionalState or provincetype_codestringoptionalOrganization type: prov, dept, team, govt, ins, cgadvancedmd_patient_create#Create a new FHIR Patient resource with demographic information including name, gender, birth date, contact details, and address.11 params
Create a new FHIR Patient resource with demographic information including name, gender, birth date, contact details, and address.
family_namestringrequiredPatient's family (last) nameaddress_linestringoptionalStreet address linebirth_datestringoptionalDate of birth in YYYY-MM-DD formatcitystringoptionalCitycountrystringoptionalCountry code (ISO 3166)emailstringoptionalPatient's email addressgenderstringoptionalAdministrative gender: male, female, other, unknowngiven_namesarrayoptionalList of given (first/middle) namesphonestringoptionalPatient's phone numberpostal_codestringoptionalPostal or ZIP codestatestringoptionalState or provinceadvancedmd_patient_delete#Delete a FHIR Patient resource by its logical ID.1 param
Delete a FHIR Patient resource by its logical ID.
patient_idstringrequiredThe logical ID of the Patient resource to deleteadvancedmd_patient_everything#Invoke the $everything operation on a Patient to retrieve all clinical resources associated with that patient in a single Bundle response.4 params
Invoke the $everything operation on a Patient to retrieve all clinical resources associated with that patient in a single Bundle response.
patient_idstringrequiredThe logical ID of the Patient resource_countnumberoptionalMaximum number of resources to return per page_sincestringoptionalOnly include resources updated after this instant (ISO 8601 datetime)_typestringoptionalComma-separated list of resource types to include (e.g. Observation,Condition)advancedmd_patient_read#Retrieve a single FHIR Patient resource by its logical ID.1 param
Retrieve a single FHIR Patient resource by its logical ID.
patient_idstringrequiredThe logical ID of the Patient resourceadvancedmd_patient_search#Search for FHIR Patient resources using common search parameters such as name, birthdate, gender, and identifier.9 params
Search for FHIR Patient resources using common search parameters such as name, birthdate, gender, and identifier.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationbirthdatestringoptionalPatient's date of birth in YYYY-MM-DD formatemailstringoptionalPatient's email addressfamilystringoptionalFamily (last) name of the patientgenderstringoptionalAdministrative gender: male, female, other, unknowngivenstringoptionalGiven (first) name of the patientidentifierstringoptionalPatient identifier (e.g. MRN) in system|value formatphonestringoptionalPatient's phone numberadvancedmd_patient_update#Update an existing FHIR Patient resource by its ID. Replaces the resource with the provided demographic data.12 params
Update an existing FHIR Patient resource by its ID. Replaces the resource with the provided demographic data.
family_namestringrequiredPatient's family (last) namepatient_idstringrequiredThe logical ID of the Patient resource to updateaddress_linestringoptionalStreet address linebirth_datestringoptionalDate of birth in YYYY-MM-DD formatcitystringoptionalCitycountrystringoptionalCountry code (ISO 3166)emailstringoptionalPatient's email addressgenderstringoptionalAdministrative gender: male, female, other, unknowngiven_namesarrayoptionalList of given (first/middle) namesphonestringoptionalPatient's phone numberpostal_codestringoptionalPostal or ZIP codestatestringoptionalState or provinceadvancedmd_practitioner_create#Create a new FHIR Practitioner resource representing a healthcare professional such as a doctor or nurse.6 params
Create a new FHIR Practitioner resource representing a healthcare professional such as a doctor or nurse.
family_namestringrequiredPractitioner's family (last) nameemailstringoptionalPractitioner's email addressgenderstringoptionalAdministrative gender: male, female, other, unknowngiven_namesarrayoptionalList of given (first/middle) namesnpistringoptionalNational Provider Identifier (NPI)phonestringoptionalPractitioner's phone numberadvancedmd_practitioner_delete#Delete a FHIR Practitioner resource by its logical ID.1 param
Delete a FHIR Practitioner resource by its logical ID.
practitioner_idstringrequiredThe logical ID of the Practitioner resource to deleteadvancedmd_practitioner_read#Retrieve a single FHIR Practitioner resource by its logical ID. Practitioners represent healthcare professionals such as doctors and nurses.1 param
Retrieve a single FHIR Practitioner resource by its logical ID. Practitioners represent healthcare professionals such as doctors and nurses.
practitioner_idstringrequiredThe logical ID of the Practitioner resourceadvancedmd_practitioner_search#Search for FHIR Practitioner resources representing healthcare professionals using parameters like name, identifier, and active status.6 params
Search for FHIR Practitioner resources representing healthcare professionals using parameters like name, identifier, and active status.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationactivestringoptionalWhether the practitioner record is active: true or falsefamilystringoptionalFamily (last) name of the practitionergivenstringoptionalGiven (first) name of the practitioneridentifierstringoptionalPractitioner identifier such as NPIadvancedmd_practitioner_update#Update an existing FHIR Practitioner resource by its ID.7 params
Update an existing FHIR Practitioner resource by its ID.
family_namestringrequiredPractitioner's family (last) namepractitioner_idstringrequiredThe logical ID of the Practitioner resource to updateemailstringoptionalPractitioner's email addressgenderstringoptionalAdministrative gender: male, female, other, unknowngiven_namesarrayoptionalList of given (first/middle) namesnpistringoptionalNational Provider Identifier (NPI)phonestringoptionalPractitioner's phone numberadvancedmd_procedure_create#Create a new FHIR Procedure resource recording a clinical action performed on or for a patient.8 params
Create a new FHIR Procedure resource recording a clinical action performed on or for a patient.
codestringrequiredSNOMED or CPT code for the procedurecode_systemstringrequiredCode system URI for the procedure codepatient_idstringrequiredFHIR logical ID of the patientstatusstringrequiredProcedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknowncode_displaystringoptionalHuman-readable display for the procedure codenotestringoptionalFree-text note about the procedureperformed_date_timestringoptionalDate/time the procedure was performed (ISO 8601)reason_codestringoptionalSNOMED code for the reason the procedure was performedadvancedmd_procedure_delete#Delete a FHIR Procedure resource by its logical ID.1 param
Delete a FHIR Procedure resource by its logical ID.
procedure_idstringrequiredThe logical ID of the Procedure resource to deleteadvancedmd_procedure_read#Retrieve a single FHIR Procedure resource by its logical ID. Procedures represent actions performed on or for a patient.1 param
Retrieve a single FHIR Procedure resource by its logical ID. Procedures represent actions performed on or for a patient.
procedure_idstringrequiredThe logical ID of the Procedure resourceadvancedmd_procedure_search#Search for FHIR Procedure resources representing clinical actions performed on a patient using parameters like patient, status, code, and date.6 params
Search for FHIR Procedure resources representing clinical actions performed on a patient using parameters like patient, status, code, and date.
_countnumberoptionalMaximum number of results to return per page_offsetnumberoptionalNumber of results to skip for paginationcodestringoptionalSNOMED or CPT code for the proceduredatestringoptionalFilter by procedure date (YYYY-MM-DD or range with prefix)patientstringoptionalPatient ID to filter procedures bystatusstringoptionalProcedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknownadvancedmd_procedure_update#Update an existing FHIR Procedure resource by its ID.9 params
Update an existing FHIR Procedure resource by its ID.
codestringrequiredSNOMED or CPT code for the procedurecode_systemstringrequiredCode system URI for the procedure codepatient_idstringrequiredFHIR logical ID of the patientprocedure_idstringrequiredThe logical ID of the Procedure resource to updatestatusstringrequiredProcedure status: preparation, in-progress, not-done, on-hold, stopped, completed, entered-in-error, unknowncode_displaystringoptionalHuman-readable display for the procedure codenotestringoptionalFree-text note about the procedureperformed_date_timestringoptionalDate/time the procedure was performed (ISO 8601)reason_codestringoptionalSNOMED code for the reason the procedure was performed