Sharing terminology and Bots across Medplum projects with project linking

Teams running many tenant projects on one Medplum deployment often need the same code systems, profiles, directories and Bots in each one. This page explains what project linking is designed to share, who can configure it, how linked resources behave in search, and what to keep out of shared projects.

On this page

What Medplum project linking shares across tenant projects

Project linking lets one shared Medplum project supply read-only content, such as terminology, profiles, directories and Bots, to many tenant projects without copying that content into each one. An operator or platform team running several tenant projects is the reader this fits best: the goal is one maintained source of code systems, value sets, StructureDefinitions or directory entries that every tenant sees, so a correction is made once rather than repaired in every project. Evaluate project linking when the shared content is large, changes often, or must be identical across tenants for validation or reporting. Copying resources is simpler when the content is small, rarely changes, or tenants need to edit it locally. Separate servers are the better fit when tenants need hard infrastructure isolation, their own upgrade windows, or separate compliance boundaries. Those trade-offs are covered in the sibling topics on tenant projects and access policies.

The researched facts for this page do not describe project linking mechanics, so this section cannot tell you which resource types can be linked, which permissions tenant users receive on linked content, or how linked resources rank and appear in search results. Confirm each of these in Medplum's current documentation and in a disposable test project before you commit to a design. Specifically, check whether Bots in a linked project execute under the tenant's or the source project's context, which secrets and ClientApplication identities they use, and whether a tenant can write to or override a linked resource. Ask the Medplum team to confirm the behavior for the Medplum version you run, since the Medplum versions and release policy sets how long each major version receives support.

Treat the shared project as a high-impact dependency. Anything published there reaches every tenant, so a faulty terminology update or a Bot with broad permissions becomes a multi-tenant incident. Before rollout, decide who may change the source project, how changes are reviewed and tested in a staging copy, and how a bad change is reverted. Also decide what must never be shared: patient data, tenant-specific configuration, and credentials. Keep those in each tenant project, and confirm with your compliance team that linking does not move protected health information across tenant boundaries.

How a shared Medplum project relates to linked tenant projects

The diagram starts with a shared project that holds read-only reference content: terminology, profiles, directory entries and Bots. That project is linked into several tenant projects, and each tenant keeps its own patients, users, access policies and secrets behind its own trust boundary. The arrows show read-only access flowing from the shared project toward each tenant, never the reverse. Before you rely on this model, confirm with Medplum exactly which resource types the link exposes, how Bots from the shared project execute inside a tenant, and which credentials they use.

Shared reference content is read-only to each linked tenant, which keeps its own data and policies.

Which shared resources fit project linking and which need a second look

This table compares four kinds of content a team might link from a shared Medplum project into tenant projects, covering why teams share each one, the main risk to review and what to confirm in Medplum's docs first. Read each row as a pre-check before linking, and treat Bots as the row that needs the most scrutiny.

Resource typeWhat it isWhy teams share itMain risk to reviewWhat to confirm in Medplum's docs
Code systems and value setsShared CodeSystem and ValueSet resources for local codes, mappings and allowed valuesOne maintained list of codes is used by every tenant, so terms stay consistentA tenant needs a local code added and cannot edit the shared list, so teams may fork it or bypass itWhether linked terminology is read-only for tenant users and how updates reach linked projects
Profiles and extensionsStructureDefinition and extension definitions that describe how resources must lookKeeps data shape identical across tenants and simplifies validationA profile change in the shared project can alter validation for every tenant at onceWho can publish profile changes and whether tenants see a new version without a project change
Directory contentShared Organization, Location, HealthcareService and Practitioner reference dataAvoids duplicate provider and site records that would otherwise drift apartDirectory entries can carry contact details or identifiers that reveal staff information across tenantsWhich directory fields are visible in tenant search and which fields need to stay local
BotsServer-side code that runs logic against Medplum data and may call outside servicesReusable automation such as validation, routing or calculations is written onceBots run server-side with their own permissions and secrets, so a shared Bot can reach data or systems a tenant should notWhich project and access policy a linked Bot runs under, where its secrets live and who can change its code
Patient dataPatient, Encounter, Observation and other records about individualsNot a sharing target for this patternAny linked patient record breaks tenant isolation and creates a disclosure riskKeep out of linked projects entirely and confirm separation with your privacy and compliance team

Who can set up project linking and what each role needs

The platform administrator decides what goes into the shared project and which tenant projects receive it. This person creates the shared project, loads the code systems, profiles, directory entries and Bots, and then links the tenant projects to it. Because every linked tenant inherits what is in the shared project, this role carries the most consequential choices in the setup.

  • Shared content selection: Decide which terminology, profiles, directory records and Bots belong in the shared project, and which stay in each tenant.
  • Tenant list: Confirm which tenant projects should receive the link and who approved each one.
  • Write access: Keep edit rights to the shared project in as few hands as possible, since changes there reach every linked tenant.
  • Change control: Agree how updates to shared content are tested in a non-production project before they are published.
  • Admin permissions: Confirm with Medplum which admin roles and project settings are required to create a shared project and link tenants in the current release.

Before you start, check the linking steps and required permissions against the Medplum documentation for your version.

How linked resources appear in search and what users see

Users in a tenant project should only see linked content when their own access policies allow it. A link makes a shared resource reachable from the tenant project, but it does not grant anyone permission to read it, so the access policy on each tenant user, not the link, decides what appears in search, references and lookups. Before go-live, confirm this with a real non-admin user in each tenant. Admin accounts can see far more than a clinician, front-desk user or tenant-scoped client application, so admin test results prove very little. Sign in as each role that will use the shared resources, then check that search returns the expected code systems, profiles or directory entries, and that Bots or references that point at linked resources resolve for that user and fail cleanly for users who should not see them. Confirm the exact behavior for your Medplum version in the Medplum versions and release policy and your own test environment, since linking behavior can change between releases.

A linked resource looks like local data once it appears in a tenant's search results or resource views. Clinicians, analysts and auditors will not see a marker that says the resource lives in another project, so they may assume a tenant owns a code system, profile or directory entry that it only borrows. This matters in two places. First, data ownership: if a tenant edits, deletes or relies on a shared resource, the change may affect every tenant that links it, and the record's origin is not obvious from the tenant's view. Second, audit reviews: an auditor reading a tenant's access logs or resource history may not know which project controls the content. Document the owning project for every shared resource type, state who may change it, and give audit reviewers a written map from each linked resource to its source project. Treat that map as part of the design, not as optional documentation.

Run test searches for each resource type you share, then record the results before go-live. For each resource type, such as a code system, value set, profile, directory entry or Bot, write down the test user, the tenant, the query, the expected result, the actual result and the access policy that produced it. Include negative tests: a user from tenant A should not find content that is meant only for tenant B, and a user without rights to a resource type should receive no results rather than an error that reveals the resource exists. Repeat the tests after any access policy change, Bot update or project upgrade, because each change can alter what appears. Keep the recorded results with your change records so that the evidence matches what was tested. Work out the test matrix with your security and compliance leads before build starts, since they will need to review it.

Setting up a shared project and linking tenant projects

This sequence takes a shared Medplum project from inventory to a linked pilot tenant and then to the remaining tenants, with a check at each stage so that shared content reaches only the users and Bots it is meant for.

  1. Define the shared content inventory

    Before any project is created, the platform owner and the clinical informatics lead list every resource that will be shared: code systems and value sets, StructureDefinitions and profiles, directory entries such as Organization or Practitioner records, and any Bots that tenants will call. For each item, record the owner, the source of truth, how often it changes, and whether it contains anything patient-specific. Anything patient-specific is removed from scope. The output is a signed-off inventory that names each resource type. Confirm the exact resource types your Bots and tenant apps need against the current Medplum documentation for your deployed version.

  2. Create the shared project on a non-production server

    An administrator creates the shared project on a non-production Medplum server that matches the production version and configuration as closely as possible. Keep administrator accounts to a small named group and keep the shared project separate from any tenant project. Exact screens and project settings must be taken from the current Medplum documentation for the deployed version, not from memory. The check is a short written record of who holds admin rights on the shared project and confirmation that no patient data has been loaded into it.

  3. Load and review terminology and profiles

    The team loads the approved code systems, value sets and profiles from the inventory into the shared project, then has a second reviewer check each file against its source version. Reviewers confirm version identifiers, canonical URLs and status fields, and they confirm that no resource holds tenant-specific or patient-specific content. Test that the content validates against the profiles it claims to conform to. The check is a review sign-off per resource set, recorded with the reviewer's name and the source version.

  4. Create read-only access policies for users and Bots

    The team writes access policies that give tenant users and Bots read access only to the shared resource types in the inventory, with write access denied. Each Bot gets its own identity and the narrowest policy that lets it run. Policy syntax and the link-related settings must be confirmed in the current Medplum documentation for the deployed version. The check is a policy review by someone who did not write it, plus a list showing which identity holds which policy.

  5. Link one pilot tenant project

    The platform owner links the shared project to one pilot tenant project, choosing a tenant with a small, known user group. The tenant administrator confirms which shared resource types become visible in that project and records the setting in the change log. Confirm the linking steps and any required permissions in the current Medplum documentation for your version before making the change. The check is a screenshot or export of the tenant's linked-resource configuration, approved by both the platform owner and the tenant administrator.

  6. Test search and access with non-admin users

    Testers who hold no administrator rights sign in to the pilot tenant and run search requests against the shared resource types. They confirm that linked content appears in search results in the expected way, that tenant-owned resources remain separate, and that write attempts on shared resources fail. Bots are called with their own identities to confirm they can read the shared content and nothing else. Record each test, its expected result and the actual result. The check is a passed test log with no unexpected access, reviewed before any further tenant is linked.

  7. Repeat the link for remaining tenants

    Once the pilot passes, the team links the remaining tenant projects in batches, running the same access and search tests in each tenant before moving on. Each tenant administrator signs off on the content they receive. Changes to the shared project after go-live follow the same review and test path, and the team re-runs the tests for every linked tenant when shared content changes. The check is a completed tenant register showing link date, approver and test result for every tenant.

What not to share across Medplum tenant projects

A linked project is a shared library that many tenant projects read from, so anything placed in it reaches every tenant. The cards below list the content that should stay inside each tenant's own project, with the risk and the control to put in place for each.

Patient records and PHI

Patient, encounter, observation and document data belongs to one tenant and must never be placed in the shared project. A single misfiled Patient resource in the shared project would be visible to every tenant that links it. Before go-live, check that the shared project holds only code systems, profiles, directory entries and Bots, and run a query for Patient and clinical resource types against it. Treat any finding as a reportable incident until your privacy officer has reviewed it.

Tenant configuration and branding

Logos, colors, email templates, tenant-specific questionnaires and workflow settings describe one organization. Placing them in a shared project tells other tenants what a competitor or partner has configured. Keep these resources in each tenant project and reserve the shared project for content that every tenant should receive identically. Ask who approves a change to shared content, since one edit lands everywhere at once.

User accounts and memberships

Project membership, user profiles and role assignments decide who can act inside a tenant. Users and memberships should be created in the tenant's own project so that one tenant's staff lists and admin accounts stay private. Document which identity provider issues each user, and confirm that removing a user from a tenant does not depend on a record kept in the shared project.

Client secrets and Bot credentials

Client applications, client secrets and the credentials a Bot uses to call external services are sensitive to the tenant that owns them. A shared Bot that embeds one tenant's API key exposes that key to every tenant that runs it. Store each tenant's secrets in that tenant's project, rotate them on a schedule you set, and confirm that any shared Bot reads credentials at run time rather than carrying them in its code.

Medplum auth docs

Write-capable clinical content

Shared resources that clinicians or Bots can change, such as order sets, care plans or templates with embedded clinical logic, can alter care for every tenant at once. Keep shared content read-only for tenant users, and make changes through a controlled release process owned by one team. Ask the platform owner to confirm which accounts can write to the shared project and whether those writes are logged.

Tenant directory entries

Directory entries such as referral partners, affiliated practices or contracted labs can reveal which tenant works with which organization. Even when each entry is harmless alone, the set of links in a shared directory can disclose business relationships. Keep relationship-bearing entries inside the tenant that owns them, and include only public reference data, such as a national registry entry, in the shared directory.

Operating a shared Medplum project without widening tenant access

The main control on a shared Medplum project is change control, because one edit to a shared code system, profile, directory entry or Bot can reach every tenant linked to it. Treat the shared project as production: record who may write to it, require a second person to review each change before it lands, and keep a tested way to roll back. Confirm which roles can write to the shared project in your deployment, and whether anything a tenant creates can flow back into it. Keep a written list of which shared resources each tenant may read, so that a new shared resource does not become visible everywhere by default.

Bots need their own review cycle because they run server-side logic that tenants depend on. Before each release, review the Bot code, its outbound calls, its secrets and the access policy on the client application it runs under. Repeat that review whenever the code or the policy changes. For audit, confirm what Medplum's audit trail records for changes made in the shared project, including who edited a shared resource and which Bot version ran, and check that retention is long enough for your reviews and for the compliance evidence your auditors request. Compliance responsibilities remain shared under Medplum's compliance documentation, so the evidence is yours to produce.

Upgrades can change behavior that your tenant boundaries depend on, so re-test access policies after every Medplum upgrade. Medplum asks self-hosted operators to apply minor versions in sequence, and its upgrading guide warns that post-deploy data migrations can run for hours or days on large datasets. Medplum's versioning policy sets targets of 7 days for critical security patches (CVSS 9.0 or higher) and 14 days for high ones (CVSS 7.0 to 8.9). Meeting those targets requires a staging copy of the linked configuration, your full access policy test suite run against it, and a schedule that leaves room for long migrations. Ask your partner or vendor to confirm how each release affects linked resources before you schedule it.

Limits to confirm before you rely on project linking

Project linking depends on your Medplum plan, your deployment model, the resource types you share, and the version you run. Each card below names one question to put to Medplum and the test that answers it before linked terminology or Bots reach production tenants.

Plan and feature entitlement

Confirm that project linking is included in the plan that applies to your organization before you design around it. The pricing page lists some identity and SSO options as enterprise features, so do not assume that a plan covering one capability covers the others. Ask Medplum in writing which plan includes linking and whether a self-hosted Community deployment has the same capability as a Cloud plan. Test it by creating a link between two non-production projects on the exact plan you will buy.

Medplum pricing

Self-hosted versus Medplum Cloud behavior

Linking behavior can differ between a self-hosted server and Medplum Cloud, including how shared projects are provisioned and who operates them. Ask Medplum whether the feature, its configuration and its admin controls are identical in both models. Then run the same link test in each environment and compare which users can create links, how links are removed, and what happens to tenant access after a server restore.

Self-hosting docs

Supported resource types

Not every FHIR resource type is guaranteed to behave the same way when shared through a linked project. Code systems, value sets, structure definitions, and directory resources such as Organization or Practitioner may each follow different read paths. Ask Medplum for the list of resource types that support linked read access and which ones are excluded. Verify by searching for a sample of each type from a tenant project and confirming that results match the source project.

Bot execution context

A Bot that runs against a linked resource may execute with the identity, project and permissions of its home project rather than the tenant that called it. Ask Medplum which project context a Bot uses for reads and writes on linked data, and whether writes to a shared project are blocked. Test with a Bot that attempts to write a linked resource and with a Bot that reads a tenant-only resource, then record which project each result is attributed to.

Audit records for linked access

When a tenant user reads a shared terminology or directory resource, the audit trail should show which project the access came from. Confirm with Medplum whether AuditEvent records identify the source project and the acting Bot or user. Verify by reading a linked resource as a test user, then querying audit records for that user and confirming that the source project appears. Without this, a review of tenant access may miss cross-project reads.

Behavior across the version in use

Project linking behavior can change between releases, and self-hosted upgrades must follow each minor version in sequence. Ask Medplum which release introduced the linking behavior you plan to use and whether it changed in later minor versions. Before go-live, run your linking test suite on the version you will deploy and again after each planned upgrade step, and keep the results with your change records.

Upgrade guide

Questions teams ask before linking Medplum projects

What does it cost to set up project linking in Medplum?

The cost is the labor to design, build and test the shared set, plus the change control that follows. Ask for a written scope that prices each part separately: the inventory of shared resources, the link design across projects, Bot deployment and secrets handling, access policy testing and the handover. The main drivers are the number of tenant projects, the number of shared resource types (code systems, profiles, directories, Bots), how many access rules must be proven in each tenant, and how often the shared content changes. Recurring cost comes from maintaining shared content and retesting after each Medplum upgrade. No price is given here because the work depends on your environment and scope.

How long does a project linking pilot take?

Duration depends on how many tenant projects you link, how many resource types are shared, and how much testing each tenant needs before go-live. A pilot usually covers one shared resource type linked into a small number of tenants, so the team can check search results, write behavior and access rules before scaling. Ask for milestones in the written scope: discovery, a pilot tenant, a test report and the rollout to remaining tenants. Also confirm who approves each milestone and what happens if a Medplum upgrade lands mid-project. Do not accept a duration that is not tied to a defined set of resources and tenants.

What does our team need to provide for a project linking engagement?

You need to provide the Medplum project map, a list of the resources to share and the owner of each one, and the tenant list with the users and roles that will see linked content. Engineers need admin access to the Medplum server or hosted projects, a test environment that mirrors production, and a decision on who may change shared content. Compliance and security staff should state which data may never sit in a shared project. Provide a named approver for changes to shared Bots and terminology, because those changes reach every tenant. Confirm these items in the written scope so gaps show up before build starts.

Can an internal team link Medplum projects without a partner?

Yes, a capable internal team can set up project linking if it has Medplum administration skills, FHIR and access policy experience, and time to test. The risk lies in the testing and change control, not the initial configuration. Check whether your team can prove that each tenant sees only the intended shared resources, that Bots run with the right permissions, and that a shared update does not break a tenant. Before deciding, list who will own shared content after go-live, who will retest after Medplum releases, and who will review changes. If those roles cannot be staffed, a fixed-scope engagement with written deliverables can cover the build and the handover.

When should we use separate Medplum servers instead of project linking?

Use separate servers when tenants need hard isolation of data, separate upgrade schedules, separate identity configuration or separate audit and compliance boundaries that a shared server cannot meet. Project linking suits content that is the same for everyone: read-only code systems, profiles, directories and Bots. It does not suit patient data, tenant-specific secrets or content that one customer must control alone. Ask your compliance team to review the isolation model before choosing, and confirm in writing which resource types may be shared. A shared server also means one upgrade path for all tenants, so factor that into the decision.

What should never be shared across Medplum projects?

Do not share patient or clinical records, tenant-specific secrets, user accounts, or any resource that a single tenant must be able to change or delete. Shared Bots must not hold credentials that grant access beyond their purpose, and shared directories should not reveal data about one customer to another. Before linking, classify each resource type as shared-safe or tenant-only, and confirm the classification with your security and compliance owners. Also test that linked read-only content cannot be written by tenant users. Record the decision and its owner so future resource types go through the same review.

How do we keep shared Bots and terminology current after go-live?

Ongoing work covers versioned updates to shared content, regression testing in each tenant, and checks after each Medplum upgrade. Set a change process that names who proposes, reviews and approves a change, and a test path that runs before the update reaches production tenants. Monitor Bot execution and search results in a tenant after each change. Medplum publishes patch releases weekly and minor versions several times a year, so schedule retests against each release you adopt. Ask a partner to define this process, the test cases and the retest scope in the written scope, and say whether it will be a one-time handover or a retainer.

How DeployOpen scopes and delivers shared Medplum projects

DeployOpen plans and delivers the linked-project design for Sharing terminology and Bots across Medplum projects with project linking inside infrastructure you control. We start from a written list of what each tenant project may read, which Bots run where, and what must stay out of shared projects, then confirm each step against the Medplum version you run.

How we scope

  • The written scope lists each shared resource type: code systems, profiles, directories and Bots.
  • Scope names the source project, every tenant project that receives links, and who may change shared content.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • We confirm how your Medplum version links projects and displays linked resources in search before design.
  • Access policies on each tenant project are written so linked content stays read-only where intended.
  • Bots are deployed, secrets stored and tested in the environment where they will run.

How we hand over

  • Deliverables include a written map of which projects link to which, and who administers each link.
  • Test evidence covers search results from tenant users, denied write attempts and Bot runs.
  • Runbooks cover adding a tenant, retiring a link and rotating credentials used by shared Bots.

How we support

  • Retainers can cover Medplum upgrades that change how linked resources or Bot runtimes behave.
  • Each Medplum upgrade is retested for link visibility, policy results and Bot execution before release.
  • Before scope is signed, we ask you to confirm linking behavior for your Medplum version.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.