{
  "opencollection": "1.0.0",
  "info": {
    "name": "Orion Health FHIR Alerts Registries API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.orionhealth.com/oauth2/authorize",
      "accessTokenUrl": "https://auth.orionhealth.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Registries",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Orion Health List patient registries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/registries",
            "params": [
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Filter by registry type"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by registry status"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              }
            ]
          },
          "docs": "Retrieve a list of patient registries configured for the organization, such as diabetes, heart failure, or chronic disease registries."
        },
        {
          "info": {
            "name": "Orion Health Get a patient registry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/registries/:registryId",
            "params": [
              {
                "name": "registryId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve details of a specific patient registry."
        },
        {
          "info": {
            "name": "Orion Health List patients in a registry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.orionhealth.com/fhir/registries/:registryId/patients",
            "params": [
              {
                "name": "registryId",
                "value": "",
                "type": "path"
              },
              {
                "name": "riskLevel",
                "value": "",
                "type": "query",
                "description": "Filter by risk stratification level"
              },
              {
                "name": "careStatus",
                "value": "",
                "type": "query",
                "description": "Filter by care management status"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of items to return"
              }
            ]
          },
          "docs": "Retrieve the list of patients enrolled in a specific registry, with optional filtering by risk level and care status."
        }
      ]
    }
  ],
  "bundled": true
}