Skip to content

Overview

MCP servers or agents may need to access FHIR data. This data can specifically be related to a patient or could be data on a system level.

There are a few different ways Po will send FHIR context data to your agents and MCP servers. The following sets of data is passed to an agent or MCP server as part of the context:

  • Url - The url to the FHIR server. This will always be passed.
  • Token - The token that is used to authorize with the FHIR server. This is optional and may not be provided. Some FHIR servers don't require authorization, and in these cases a token is not applicable.
  • Patient ID - If the agent or MCP server is working under a patient specific context, the id of the patient will be passed along. The agent or MCP server can then perform operations based on that patient. If no patient id is passed, then it indicates that the client is working at a system level.