Skip to main content
Glama
Kartha-AI

MCP Server for Google Cloud Healthcare API

by Kartha-AI

get_patient_careplans

Retrieve patient care plans by specifying patient ID, status, date range, and category using the MCP Server for Google Cloud Healthcare API. Supports clinical workflows with FHIR-based data.

Instructions

Get care plans for a patient

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNo
dateFromNoYYYY-MM-DD
dateToNoYYYY-MM-DD
patientIdYes
statusNo

Implementation Reference

  • Core implementation of get_patient_careplans tool. Queries FHIR CarePlan resource filtered by patient ID, status, category, and date range. Formats response using formatResponse helper.
    async getPatientCarePlans(args: any) {
      const params = new URLSearchParams();
      params.append('patient', `${args.patientId}`);
      if (args.status) params.append('status', args.status);
      if (args.category) params.append('category', args.category);
      if (args.dateFrom) params.append('date', `ge${args.dateFrom}`);
      if (args.dateTo) params.append('date', `le${args.dateTo}`);
    
      const response = await this.client.get(`/CarePlan?${params}`);
      return this.formatResponse(`fhir://Patient/${args.patientId}/careplans`, response.data);
    }
  • Tool definition including name, description, and input schema validation for get_patient_careplans.
      name: "get_patient_careplans",
      description: "Get care plans for a patient",
      inputSchema: {
        type: "object",
        properties: {
          patientId: { type: "string" },
          status: {
            type: "string",
            enum: ["draft", "active", "suspended", "completed", "cancelled"]
          },
          category: { type: "string" },
          dateFrom: { type: "string", description: "YYYY-MM-DD" },
          dateTo: { type: "string", description: "YYYY-MM-DD" }
        },
        required: ["patientId"]
      }
    },
  • ToolHandler switch case that registers and dispatches the get_patient_careplans tool call to the FhirClient implementation.
    case "get_patient_careplans":
      return await this.fhirClient.getPatientCarePlans(request.params.arguments);
Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kartha-AI/google-cloud-healthcare-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server