Recording patient consent and signatures in Medplum

Medplum stores each patient agreement as a versioned FHIR Consent resource, with questionnaire capture and linked handwritten signatures. This page explains how to design, set up and verify that model in infrastructure you control.

On this page

Recording patient consent and signatures in Medplum: what it does and when you need it

Medplum records consents as versioned FHIR Consent resources rather than opaque PDFs, recommends one Consent per agreement, and can link a handwritten digital signature to the record. If your clinical or patient-facing app must prove what a patient agreed to and when, this is the data model you will build around. Teams usually reach this need when a patient authorizes data sharing, agrees to telehealth or research use, accepts a portal's terms, or grants a third party access to their records, and someone later asks for proof of that specific agreement, its wording at the time, and who recorded it. A stored PDF can answer the first question poorly. A structured Consent resource can answer all of them in a form your application and reviewers can query.

The structure matters because each Consent should cover one agreement with one scope and one policy coding, so that revoking or replacing one permission does not silently change others. Questionnaire capture lets the agreement wording and the patient's answers be stored alongside the Consent, and a linked signature image shows the patient's handwritten approval. Consent records also need to be read correctly by your access policies and any SMART app grants, so the same agreement must drive what the system actually allows. Confirm with your own clinical and compliance leads which agreements your product requires and how each must be versioned.

What Medplum does not do on its own is make a consent legally sufficient. Whether a particular form, signature method or capture flow meets the consent rules in your jurisdiction and under your regulators depends on the wording, the context of collection and your organization's obligations, and that determination belongs to qualified counsel and your compliance function, not to the platform. Medplum's consent documentation describes how the resources and signatures are represented, which is the starting point for the technical design. Before build, ask counsel to review the agreement text, the signature method and retention rules, and plan the audit trail for who recorded or changed each Consent.

Capturing consent through questionnaires, signatures or both

In this pattern, the patient or staff member answers a structured questionnaire, and the answers are stored as a QuestionnaireResponse. Your application then derives a Consent resource from those answers, so the agreement is recorded as data the system can query, not as a scanned form. Staff typically walk the patient through the questions in a clinic or the patient completes them in a portal before a visit.

  • Questionnaire design: Write each consent question as a discrete item with a stable linkId, so the mapping to the Consent resource does not depend on wording.
  • Mapping logic: Build the step that reads the QuestionnaireResponse and creates one Consent per agreement, setting the scope and policy coding from the answers.
  • Versioning: Store the questionnaire version alongside the response so you can show which wording the patient accepted.
  • Incomplete answers: Decide how the flow handles skipped or declined items and make sure no Consent is created from a partial response.
  • Patient or staff entry: Confirm who can submit the response and what the patient sees when a question is unanswered.

Verify that a test response produces exactly the expected Consent, that a changed questionnaire version does not overwrite earlier records, and that the link between the response and the Consent is preserved. Confirm the exact questionnaire and Consent capabilities against the Medplum consent documentation before you finalize the design.

Consent configuration options and when each fits

This table compares the main configuration choices for recording consents in Medplum: how to code the scope and policy, whether staff or patients record the consent, how the consent is captured, and how signatures are collected. Read each row against your consent types and your intake workflow, and expect the build effort to rise as you add more capture paths and coding rules.

DecisionWhen it fitsBuild effort and trade-offWhat to confirm
Consent scope and policy coding from standard code systemsConsents that must be understood by outside systems, payers or auditors who expect recognized codesModerate. Your team maps each agreement type to chosen codes and keeps a written mapping that clinical and compliance staff can reviewWhich code systems your partners accept and whether your local terminology needs a custom CodeSystem
Custom local codes for scope and policyInternal consent types with no fit in a standard code system, such as a practice-specific research programLower upfront mapping but more ongoing governance, since every custom code needs an owner and a retirement pathWhether downstream consumers can interpret your local codes without extra documentation
Questionnaire-driven captureIntake that asks the patient several questions before the consent applies, or where answers must be stored with the agreementHigher build effort. Questionnaire logic, response mapping to the Consent resource and review screens all need testingWhether the questionnaire version is pinned so each recorded consent points to the wording the patient saw
Direct entry of a Consent resourceSimple, single-question agreements completed by staff at the front desk or during a visitLower build effort, but staff need a consistent data entry standard to keep one agreement per resourceWhich fields staff must complete and how entry errors are caught before saving
Staff-recorded consentConsents given on paper or verbally that a trained staff member records on the patient's behalfAccess rules must limit who can create or change consents. Requires clear procedures for witnessing and attestationWhich roles can record consents and whether your access policies enforce that split
Patient-recorded consent through a portal or appPatients who manage their own preferences or sign agreements before arrivalHigher effort. Patient identity checks, SMART or patient-scoped access and a tested signing flow must be in place firstHow patient identity is verified before the patient can create or change a consent
Signature capture on a staff tabletIn-clinic signing where the patient signs at the same location as the staff memberModerate. The device, the signature image storage and the link to the Consent need testing on every device you deployHow the signature image is stored and whether it is linked through Binary resources with the right security context
Signature capture on a patient's own deviceRemote or pre-visit signing where the patient uses a personal phone or computerHigher effort. Device variation, session timeouts and identity checks add testing and support loadWhether your signing flow meets your legal and records requirements for remote signatures
Consent recorded with no handwritten signatureAgreements where your policy accepts a recorded click or checkbox as the consent recordLowest capture effort, but the evidence standard must be agreed with your compliance team before buildWhich evidence your regulators, payers and auditors accept for each consent type

Setting up consent recording in Medplum step by step

This sequence takes a team from an agreed consent catalog to a working write path that stores each agreement as a versioned FHIR Consent resource, with a handwritten signature attached and access rules that control who can record and read it. Each step ends with a check so problems surface before live patient data is involved.

  1. Agree the consent catalog and coding with compliance

    Before anything is built, the compliance or privacy lead and the implementation team list every consent type the organization needs, such as treatment, data sharing or research participation. For each type, agree the wording version, the scope it covers, and the code values that will identify its policy in the Consent resource. Record the agreed list in a controlled document that the build references. The step is done when compliance has signed off the catalog and every consent type has one agreed code and one owner.

  2. Define the consent questionnaire

    Build a Questionnaire in Medplum for each consent type, using the approved wording as the question text and separate items for the patient's decision, the scope they accept, and any limits they set. Keep the questionnaire version tied to the catalog version so a later change to the wording produces a new version rather than an edit to the old one. Preview the form in the Medplum app with sample patients that exist only in a test project. The check is that every catalog entry has one questionnaire, and each answer maps to a field you intend to store.

  3. Create the Consent write path

    Configure the write path that turns a completed QuestionnaireResponse into a Consent resource. Each Consent should cover one agreement, with the patient reference, the policy code from the catalog, the status, the dateTime, and a link back to the questionnaire response. Recommended practice is one Consent per agreement, so a patient who signs two consent types gets two resources. Confirm the exact mapping with your Medplum implementation team and test it against a non-production project. The check is that a single test submission creates one Consent with the expected coding and a traceable link to its source response.

  4. Attach the handwritten signature Binary

    Capture the handwritten signature as an image and store it as a Binary resource, then link that Binary from the Consent's signature or provision element so the agreement and the signed evidence stay together. Set the securityContext on the Binary so it is tied to the patient's compartment, because Binary resources do not follow compartment rules by default. Confirm the signature capture method and file format with your compliance team before rollout. The check is that a signed test Consent resolves to its image and that a user without access to the patient cannot retrieve the Binary.

  5. Set access policies for writing and reading consents

    Create access policies that separate who can record a consent from who can read it. Recording is typically limited to registration or front-desk roles, while clinicians may need read access and nobody should edit a Consent after it is signed. Grant write access on Consent resources to the recording role only, and restrict update and delete for everyone except an administrator. Use the policy testing tools in Medplum with test users for each role before you proceed. The check is that each test user can perform exactly the actions their role allows, and an attempt to edit a signed Consent is refused.

  6. Test versioning and the audit trail

    Record a second Consent for the same patient and agreement, changing the scope or the signature, and confirm the first version still exists unchanged. Medplum keeps versioned FHIR history, so check that the earlier resource can be read by version ID and that the new one is distinct. Then review the audit events to confirm they show which user created or changed each Consent and when. Repeat the test for a withdrawal or revocation and record the outcome. The check is that a second version does not overwrite the first, and the audit record names the user responsible for each change.

Auditing who recorded or changed a consent

A consent is only defensible if you can show who recorded it, when, and what changed afterward. The cards below cover how versioning, audit data and history queries work together, and what to confirm in your own deployment before an inspection.

Record author and time on every change

Each consent change should be a new version of the Consent resource rather than an overwrite, so the previous state remains readable. Medplum's audit data records the actor and time for create and update operations, and your service account or user identity should be the only path that writes consents. Check that clinicians and integrations use their own identities, not shared logins, because the author on a shared login tells an inspector nothing about who acted.

Consent docs

Query version history for inspections

Before an inspection, you need to reproduce the consent that was in force on a given date. Retrieve the resource history for a Consent and filter by the time window under review, then match each version against the signature and questionnaire response it references. Test this query on a sample patient before you need it under pressure, and keep a written procedure for the export.

Confirm which audit events are logged

Ask your deployment team exactly which audit events the server writes for Consent reads, creates and updates, and for signature and questionnaire submissions. Confirm whether failed writes and access denials are logged, and whether the log captures the request source. These answers vary by configuration and version, so verify them in your environment rather than assuming the defaults cover your inspection needs.

Confirm log retention and location

Audit records are only useful if they outlive the period an inspector or litigant asks about. Confirm where the server ships its logs, who can read them, and how long each store keeps them. For a self-hosted deployment, retention sits with your infrastructure and your backup policy, so write the retention period into your compliance records and test that you can restore an old log export.

Separate consent authorship from clinical edits

A consent recorded by a front-desk user and later amended by a compliance officer should show two distinct authors. Decide who may revise a consent, whether a revision supersedes the old one or sits beside it, and how a withdrawal is recorded. Enforce those rules with access policies and confirm in testing that a user without the right role cannot edit or delete a Consent.

Test the audit trail before go-live

Run a scripted scenario: create a consent, sign it, amend it, withdraw it, then pull the history and audit records for that patient. Compare the output to what you expected at each step. Repeat the test after every upgrade, since audit behavior and retention settings can change between releases and must be rechecked.

Questions teams ask before recording consents in Medplum

What drives the cost of recording consents in Medplum?

The cost follows the amount of design and build work, not the Medplum license, because the platform's Consent resource and questionnaire capture are part of the product. The main drivers are how many consent types you need, how many questionnaire items each one carries, whether signatures must be captured and stored as digital signatures, and how many existing systems the consents must reach, such as an EHR or patient portal. A written scope should list each consent type, its questions, its signature method, and every integration, so the quote can be compared line by line. Hosting costs are separate and recur, since they depend on whether you use Medplum Cloud or self-host. Ask for the one-time build items and the recurring items as separate lines.

How long does a consent build take in Medplum?

Duration depends on the same drivers as cost: the number of consent types, questionnaire complexity, signature handling and integration count. A single consent type with a fixed questionnaire and no external system is a much smaller piece of work than a set of versioned consents for several clinical services that must feed an EHR. Clinical and compliance review often sets the pace more than engineering does, because wording, versions and sign-off take time to settle. Ask any partner to show the phases, the review gates and the dependencies on your content, rather than accepting a single total without a breakdown.

What do we need to provide before consent work starts?

Three inputs usually decide whether the work moves smoothly. First, compliance sign-off on which consent types you need, the legal wording for each, and the version rules you will follow when wording changes. Second, clinical or business content: the questionnaire items, answer options and the clinical meaning of each consent scope, supplied by people who own those decisions. Third, test patients and test users in a non-production Medplum project, along with a named person who can approve test results. Your team should also confirm which signature method your legal team accepts before the build, because that choice shapes how signatures are captured and stored.

Can our internal team build consent recording in Medplum on its own?

Yes, a capable internal team can build it, because Medplum's documentation describes how to store consents as versioned FHIR Consent resources, link questionnaires and attach a handwritten digital signature. The work is most often limited by the people and time available rather than by platform knowledge. Teams that build in-house usually need developers who understand FHIR, staff who can write access policies so consent records are read and changed only by the right people, and a clinical or compliance owner for the content. A partner is more useful when the timeline is short, when several systems must integrate, or when the internal team lacks FHIR experience. Consider a scoped pilot with one consent type to test the skills before committing to the full set.

How does integrating with an existing EHR or patient portal change the effort?

Integration usually adds the largest share of effort and the most unknowns. Each system must agree on how it identifies the patient, how it sends or reads consent records, what happens when a consent is revoked or a new version is issued, and how errors are reported. Expect work on mapping fields, testing message flows and agreeing on who owns the data when systems disagree. Ask whether the integration must run in both directions, whether real-time or batch exchange is required, and which system is the source of truth for each consent. Medplum's integrations are described in a separate section of this site and are a good next read before scoping this work.

Which compliance and audit checks apply to recorded consents?

Medplum's compliance documentation covers several frameworks and states that compliance is a shared responsibility between Medplum and its customers. For consents, the question is which regulations your organization answers to and what evidence each one requires, such as who recorded each change and when. Medplum's documentation describes consents as versioned, which supports an audit trail, but you must still configure access, retention and review to meet your own obligations. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit reports or certifications. Ask your compliance lead which evidence they will request before the build starts.

What should we test before consents go live?

Test the full path a real consent takes, not only the form. Check that each consent type creates exactly one Consent resource per agreement, that questionnaire answers map to the right scope and policy coding, and that the signature is linked to the correct record. Test revocation and new versions, confirm that a changed consent does not silently overwrite the earlier one, and verify that only authorized staff can record or alter a consent. Run these tests with test patients in a non-production project, record the results, and have a named clinical or compliance owner approve them. Ask any partner for its test plan and acceptance criteria in writing.

Does DeployOpen issue compliance certifications for consent workflows?

No. DeployOpen plans, implements, tests and documents the platform and prepares the systems, controls and evidence that an assessment will review, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments. For consent work, DeployOpen can help define the record structure, the access controls, the change history and the test evidence, then give your compliance team material to review. Ask your auditor in advance which evidence they expect, so the build produces it from the start.

How DeployOpen scopes and delivers consent recording on Medplum

DeployOpen plans, implements and tests consent workflows on Medplum inside your own infrastructure, whether that is your AWS account, a Kubernetes cluster you run, or another environment you control. The work is normally sold as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before build starts. The written scope should name which consent types are covered (for example, treatment, research or data sharing), which questionnaires drive capture, how signatures are linked, which roles can record or revise consents, and which downstream systems read the Consent resources. A quote follows from that scope, and DeployOpen does not publish a price list, so ask for the scope to be written out line by line before comparing offers.

Testing is part of delivery. DeployOpen checks that each Consent carries the intended scope and policy coding, that questionnaire responses map to the right resource, and that access policies stop users from reading or changing consents outside their role. It also checks that audit records show who recorded each change. The output is the configuration, test evidence and operating notes your compliance and security teams need for review. DeployOpen prepares these systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, and you should confirm early which evidence your assessor will ask for.

Ongoing changes are usually handled through a support retainer. Consent categories, policy wording and questionnaires tend to change after go-live, and each Medplum upgrade needs regression testing of the consent flow. Ask in the quote whether retainer hours, retesting after upgrades and emergency fixes are included, and how change requests move through approval. Medplum's own versioning policy sets the upgrade cadence that the retainer has to follow, so align the scope with it from the start.

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.