Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Upload Patients

The Beneficiary FHIR Data Server (BFD) maintains a list of fictitious patients that match synthetic sandbox data.

Download sample patients

Minimum patient requirements

Include the following to avoid a 422 - Unprocessable Entity error.

  • First and last name
  • Birth date in YYYY-MM-DD format
  • Gender
    • DPC uses the Patient.gender property to represent the sex of the patient as maintained on record at CMS. When registering a patient to your organization, you’ll need to submit the Patient.gender property following the corresponding value set. The input provided may be used by DPC to match and validate the patient against CMS records.
  • Medicare Beneficiary Identifier (MBI)

Note: If an existing patient is found with the same MBI, the /Patient endpoint will return that same patient.

Add a patient bundle

The $submit operation lets you upload a bundle of patients for registration in a single batch using the /Patient endpoint.

Example request

POST /api/v1/Patient/$submit

Example cURL command

curl 'https://sandbox.dpc.cms.gov/api/v1/Patient/$submit' \
    -H "Authorization: Bearer $BEARER_TOKEN" \
    -H 'Accept: application/fhir+json' \
    -H 'Content-Type: application/fhir+json' \
    -d @patient_bundle.json
Looking for U.S. government information and services?
Visit USA.gov