{
  "opencollection": "1.0.0",
  "info": {
    "name": "athenahealth athenaOne REST AllergyIntolerance Encounters API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.platform.athenahealth.com/oauth2/v1/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Encounters",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Patient Encounters",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.platform.athenahealth.com/v1/{practiceid}/chart/:patientid/encounters",
            "params": [
              {
                "name": "patientid",
                "value": "",
                "type": "path"
              },
              {
                "name": "departmentid",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List Patient Encounters"
        },
        {
          "info": {
            "name": "Get Encounter",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.platform.athenahealth.com/v1/{practiceid}/chart/encounter/:encounterid",
            "params": [
              {
                "name": "encounterid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Encounter"
        }
      ]
    }
  ],
  "bundled": true
}