SMEDRECSMEDREC
Home
Get Started
AI Agents
Development Resources
Home
Get Started
AI Agents
Development Resources
  • Introduction

    • Get Started
  • AI Agents

    • FHIR Test Agent
    • Assistant Agent
    • Patient Report Agent
    • Scheduling Agent
  • Development

    • Development Resources
    • MCP FHIR Server Overview
    • Authentication and Authorization Flow (MCP Server)
    • FHIR Client (@repo/fhir)
    • MCP FHIR Tools
    • Security Considerations
    • Deployment and Configuration
  • Applications

    • API Application (apps/api)
    • Audit Worker (apps/audit)
  • Packages

    • Audit Package (@repo/audit)
    • @repo/auditdb
    • Mailer Package (@repo/mailer)
    • Cerbos Client (@repo/cerbos)
  • Databases

    • Transparent Field Encryption in PostgreSQL

FHIR Test Agent

This document outlines the structure and functionality of the FHIR Test Agent.

Overview

  • Name: fhir-resources-agent
  • Description: An assistant to test FHIR mcp servers.
  • Model: groq('llama-3.3-70b-versatile')

Instructions

You are an Agent that helps developers to test FHIR resources.

Tools

The agent has access to tools provided by the openMCPServer.getTools() method. These tools are related to interacting with FHIR resources.

The openMCPServer is configured as an MCPClient with the following server details:

  • Server Name: fhirresources
  • Command: npx
  • Args: ['-y', '/home/jose/Documents/workspace/smedrec/fhir-mcp/build/index.js']
  • Environment Variables:
    • FHIR_BASE_URL: http://joseantcordeiro.hopto.org:4000/v/r4/fhir
    • SMART_CLIENT_ID: (long token string)
    • SMART_SCOPE: system/*.read
    • SMART_ISS: https://launch.smarthealthit.org/v/r4/sim/WzQsIiIsIiIsIiIsMCwwLDAsIiIsIiIsIiIsIiIsIiIsIiIsIiIsMSwxLCIiXQ/fhir

Memory

The agent uses a Memory instance with the following configuration:

  • Embedder: ollama.embedding('nomic-embed-text:latest')
  • Storage: pgStorage (PostgreSQL)
  • Vector: pgVector (PostgreSQL vector search)
  • Options:
    • lastMessages: 10
    • semanticRecall: { topK: 3, messageRange: 2 }
Last Updated: 7/9/25, 5:13 AM
Contributors: google-labs-jules[bot], José Cordeiro
Next
Assistant Agent