organizations tool handles these requests without changing patient or prescription records.
organizations
List your organizations and invites, or sign in to another organization. This read-only tool is available to provider accounts. Call it with no arguments to see the current organization and the choices available to you:current, organizations, invites and nextStep. If current is null, the other tools cannot run until you sign in to an organization.
To sign in to a listed organization, pass its returned ID:
current, the tool returns SIGN_IN_REQUIRED. Complete the Photon sign-in opened by your client and choose that organization when prompted. Keep the plugin installed; changing organizations does not require removing it. Call organizations again and confirm current before continuing. Record IDs from the previous organization may not be accessible in the new one.
Show pending invites alongside existing memberships. Preserve each returned acceptUrl and onboardingUrl exactly, including its query string, so Prescribe can return the user to their chat app. If INVITES_UNAVAILABLE is returned, the invite list is incomplete; do not describe it as empty.