{
  "opencollection": "1.0.0",
  "info": {
    "name": "CMS Blue Button 2.0 Coverage Patient API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://api.bluebutton.cms.gov/v2/o/authorize/",
      "accessTokenUrl": "https://api.bluebutton.cms.gov/v2/o/token/",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Patient",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Search the authorized beneficiary's Patient resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bluebutton.cms.gov/v2/fhir/Patient",
            "params": [
              {
                "name": "_id",
                "value": "",
                "type": "query",
                "description": "The FHIR logical id of the Patient resource."
              },
              {
                "name": "identifier",
                "value": "",
                "type": "query",
                "description": "Search by business identifier (Medicare Beneficiary Identifier hash system identifiers)."
              },
              {
                "name": "_lastUpdated",
                "value": "",
                "type": "query",
                "description": "Filter by the record's last_updated date using gt/lt prefixes; may be supplied more than once to define a range."
              },
              {
                "name": "_count",
                "value": "",
                "type": "query",
                "description": "Number of records per page for pagination."
              },
              {
                "name": "startIndex",
                "value": "",
                "type": "query",
                "description": "Zero-based index of the first record to return for pagination."
              }
            ]
          },
          "docs": "Returns the beneficiary's demographic and administrative record as a Patient resource in a FHIR Bundle. Available only if the beneficiary chose to share demographic data during authorization."
        },
        {
          "info": {
            "name": "Read the beneficiary's Patient resource by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.bluebutton.cms.gov/v2/fhir/Patient/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The FHIR logical id of the resource."
              }
            ]
          },
          "docs": "Returns the Patient resource for the authorizing beneficiary."
        }
      ]
    }
  ],
  "bundled": true
}