1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "H1",
12 "hospital": "Hospital A",
13 "payer": "Payer X",
14 "code": "99213",
15 "rate": 180,
16 "plan": "PPO",
17 },
18 {
19 "id": "H2",
20 "hospital": "Hospital A",
21 "payer": "Payer Y",
22 "code": "99213",
23 "rate": 260,
24 "plan": "PPO",
25 },
26 {
27 "id": "H3",
28 "hospital": "Hospital B",
29 "payer": "Payer X",
30 "code": "99213",
31 "rate": 210,
32 "plan": "HMO",
33 },
34 ],
35 "previousItems": [
36 {
37 "id": "P1",
38 "hospital": "Hospital A",
39 "payer": "Payer X",
40 "code": "99213",
41 "rate": 150,
42 "plan": "PPO",
43 },
44 {
45 "id": "P2",
46 "hospital": "Hospital A",
47 "payer": "Payer Y",
48 "code": "99213",
49 "rate": 240,
50 "plan": "PPO",
51 },
52 {
53 "id": "P3",
54 "hospital": "Hospital B",
55 "payer": "Payer X",
56 "code": "99213",
57 "rate": 205,
58 "plan": "HMO",
59 },
60 ],
61}
62
63
64run = client.actor("quanmatrix/hospital-price-transparency-drift-intelligence").call(run_input=run_input)
65
66
67print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
68for item in client.dataset(run.default_dataset_id).iterate_items():
69 print(item)
70
71