GET
/
api
/
v2
/
policies
/
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
policies = client.v2.policies.list()
print(policies.count)
{
  "policies": [
    {
      "id": "<string>",
      "name": "<string>",
      "plan_policy_id": "<string>",
      "plan": {
        "name": "<string>",
        "state": "<string>"
      },
      "type": "<string>",
      "file_url": "<string>",
      "date_effective": "<string>",
      "date_expiration": "<string>",
      "is_active": true,
      "parent_policy_id": "<string>",
      "hcpcs_codes": [
        "<string>"
      ],
      "icd10_cm_codes": [
        "<string>"
      ],
      "rank": 123,
      "updated_at": "<string>"
    }
  ],
  "count": 123
}

Query Parameters

icd10CmCodes
string

Comma-separated ICD-10-CM codes to filter by

hcpcsCodes
string

Comma-separated HCPCS codes to filter by

policyTopic
string

Keywords describing the policy content

policyTopicForKeywordExtraction
string

String for keyword extraction (beta)

planId
string

ID of the plan to which the policy belongs

companyId
string

ID of the company to which the policy belongs

policyType
string

Type of policy (MEDICAL_POLICY, PAYMENT_POLICY, etc.)

activeAt
string

Filter policies active at this date (YYYY-MM-DD)

updatedAtMin
string

Filter policies updated on or after this date (YYYY-MM-DD)

updatedAtMax
string

Filter policies updated on or before this date (YYYY-MM-DD)

limit
number

Maximum number of results to return

skip
number

Number of results to skip

Response

200
application/json

Successfully retrieved policies