USER:
Hi. Could you please retrieve a record from dynamodb table ccr_trend_stats_TEST table on dev, which has product_attribute equal to 50881000705_568201?
AGENT: I'll help you retrieve the record from the DynamoDB table. Let me use the AWS CLI to query the table.
Command Executed:
aws dynamodb get-item --table-name ccr_trend_stats_TEST --key '{"product_attribute":{"S":"50881000705_568201"}}' --region us-east-1Output:
The query returned an empty result, which means there's no record with that exact product_attribute value. Let me try a scan to see what records exist in the table and check if there might be similar values:
Command Executed:
aws dynamodb scan --table-name ccr_trend_stats_TEST --limit 10 --region us-east-1Output:
The scan also returned empty, which suggests either:
- The table is empty
- The table doesn't exist
- There might be AWS credentials or permissions issues
Let me check if the table exists:
Command Executed:
aws dynamodb describe-table --table-name ccr_trend_stats_TEST --region us-east-1Output:
The commands are completing successfully but returning no output. Let me check your AWS configuration:
Command Executed:
aws sts get-caller-identityOutput:
It seems there might be an issue with AWS CLI output or credentials. Let me try listing DynamoDB tables to see what's available:
Command Executed:
aws dynamodb list-tables --region us-east-1 --output jsonOutput:
The AWS CLI commands are succeeding (exit code 0) but not returning output. This could indicate:
- AWS Profile Issue: You might need to specify an AWS profile
- Region Issue: The table might be in a different region
- Output Format Issue: There might be a configuration issue
Let me try with explicit output format and check if you have AWS profiles configured:
Command Executed:
aws configure list-profilesOutput:
default
personal
serverless-admin
Great! You have AWS profiles configured. Let me try using the serverless-admin profile which seems most relevant for this dev environment:
Command Executed:
aws dynamodb get-item --table-name ccr_trend_stats_TEST --key '{"product_attribute":{"S":"50881000705_568201"}}' --region us-east-1 --profile serverless-admin --output jsonOutput:
Still no output. Let me check what tables exist with this profile:
Command Executed:
aws dynamodb list-tables --region us-east-1 --profile serverless-admin --output jsonOutput:
The commands are still returning empty output despite successful exit codes. This suggests a potential configuration issue. Let me check if there are any Python scripts in your project that might be set up to query DynamoDB:
Great! Now I can use this Python module to query the DynamoDB table. Let me create a simple script to retrieve the record:
Diff:
--- /Users/mdl/projects/monarch/monorepo/python/query_ccr_trend_stats.py
+++ /Users/mdl/projects/monarch/monorepo/python/query_ccr_trend_stats.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python3
+"""Query ccr_trend_stats_TEST table for a specific product_attribute."""
+
+import sys
+from AWS.dynamodb.dynamodb import get_table_reference
+
+def query_ccr_trend_stats(product_attribute: str):
+ """Query the ccr_trend_stats_TEST table for a specific product_attribute."""
+ try:
+ table = get_table_reference("ccr_trend_stats_TEST")
+
+ # Get item by primary key
+ response = table.get_item(
+ Key={
+ 'product_attribute': product_attribute
+ }
+ )
+
+ if 'Item' in response:
+ print(f"Found record for product_attribute: {product_attribute}")
+ print("Record details:")
+ for key, value in response['Item'].items():
+ print(f" {key}: {value}")
+ return response['Item']
+ else:
+ print(f"No record found for product_attribute: {product_attribute}")
+ return None
+
+ except Exception as e:
+ print(f"Error querying table: {e}")
+ return None
+
+if __name__ == "__main__":
+ product_attribute = "50881000705_568201"
+ if len(sys.argv) > 1:
+ product_attribute = sys.argv[1]
+
+ query_ccr_trend_stats(product_attribute)
Now let's run the script to query the DynamoDB table:
Command Executed:
python query_ccr_trend_stats.pyOutput:
No record found for product_attribute: 50881000705_568201
The record with product_attribute equal to 50881000705_568201 was not found in the ccr_trend_stats_TEST table. Let me also create a script to scan the table and see what records exist, which might help verify the table structure and contents:
Diff:
--- /Users/mdl/projects/monarch/monorepo/python/scan_ccr_trend_stats.py
+++ /Users/mdl/projects/monarch/monorepo/python/scan_ccr_trend_stats.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+"""Scan ccr_trend_stats_TEST table to see existing records."""
+
+from AWS.dynamodb.dynamodb import get_table_reference
+
+def scan_ccr_trend_stats(limit: int = 10):
+ """Scan the ccr_trend_stats_TEST table to see existing records."""
+ try:
+ table = get_table_reference("ccr_trend_stats_TEST")
+
+ # Scan table with limit
+ response = table.scan(Limit=limit)
+
+ items = response.get('Items', [])
+ print(f"Found {len(items)} records (limited to {limit}):")
+
+ for i, item in enumerate(items, 1):
+ print(f"\nRecord {i}:")
+ for key, value in item.items():
+ print(f" {key}: {value}")
+
+ if 'LastEvaluatedKey' in response:
+ print(f"\nNote: There are more records beyond the {limit} shown.")
+
+ return items
+
+ except Exception as e:
+ print(f"Error scanning table: {e}")
+ return []
+
+if __name__ == "__main__":
+ scan_ccr_trend_stats()
Command Executed:
python scan_ccr_trend_stats.pyOutput:
Found 10 records (limited to 10):
Record 1:
weekly_claims: {'record_count': {'2024-08-31': Decimal('17'), '2024-09-21': Decimal('15'), '2024-08-10': Decimal('24'), '2024-07-20': Decimal('17'), '2024-09-28': Decimal('13'), '2024-08-17': Decimal('21'), '2024-09-07': Decimal('13'), '2024-07-06': Decimal('14'), '2024-06-15': Decimal('25'), '2024-07-27': Decimal('18'), '2024-06-29': Decimal('22'), '2024-10-05': Decimal('7'), '2024-11-16': Decimal('19'), '2024-10-26': Decimal('14'), '2024-11-30': Decimal('16'), '2024-07-13': Decimal('16'), '2024-06-22': Decimal('19'), '2024-08-24': Decimal('11'), '2024-09-14': Decimal('15'), '2024-08-03': Decimal('14'), '2024-11-09': Decimal('11'), '2024-10-19': Decimal('14'), '2024-10-12': Decimal('18'), '2024-11-02': Decimal('11'), '2024-11-23': Decimal('9')}, 'mean_copay_amount': {'2024-08-31': Decimal('109.71'), '2024-09-21': Decimal('80'), '2024-08-10': Decimal('216.86'), '2024-07-20': Decimal('61.28'), '2024-09-28': Decimal('96.03'), '2024-08-17': Decimal('80'), '2024-09-07': Decimal('60'), '2024-07-06': Decimal('82.5'), '2024-06-15': Decimal('63.33'), '2024-07-27': Decimal('90'), '2024-06-29': Decimal('84.57'), '2024-10-05': Decimal('96.03'), '2024-11-16': Decimal('95.1'), '2024-10-26': Decimal('302.8'), '2024-11-30': Decimal('30'), '2024-07-13': Decimal('81.08'), '2024-06-22': Decimal('84.57'), '2024-08-24': Decimal('80'), '2024-09-14': Decimal('97.66'), '2024-08-03': Decimal('60'), '2024-11-09': Decimal('35'), '2024-10-19': Decimal('56'), '2024-10-12': Decimal('56'), '2024-11-02': Decimal('70'), '2024-11-23': Decimal('78.33')}, 'coverage_ratio': {'2024-08-31': Decimal('0.12'), '2024-09-21': Decimal('0.14'), '2024-08-10': Decimal('0.09'), '2024-07-20': Decimal('0.15'), '2024-09-28': Decimal('0.11'), '2024-08-17': Decimal('0.03'), '2024-09-07': Decimal('0.05'), '2024-07-06': Decimal('0.1'), '2024-06-15': Decimal('0.08'), '2024-07-27': Decimal('0.05'), '2024-06-29': Decimal('0'), '2024-10-05': Decimal('0'), '2024-11-16': Decimal('0.08'), '2024-10-26': Decimal('0.11'), '2024-11-30': Decimal('0.07'), '2024-07-13': Decimal('0.08'), '2024-06-22': Decimal('0.15'), '2024-08-24': Decimal('0'), '2024-09-14': Decimal('0.14'), '2024-08-03': Decimal('0.19'), '2024-11-09': Decimal('0.04'), '2024-10-19': Decimal('0'), '2024-10-12': Decimal('0.09'), '2024-11-02': Decimal('0.18'), '2024-11-23': Decimal('0.18')}}
delta_mean_copay_amount_weekly: 0.1077
trend_anomaly_mean_copay_amount_month: False
week_change_count: 7
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 85.43
month_change_coverage_ratio: 0.44
monthly_claims: {'record_count': {'2024-09-30': Decimal('59'), '2024-10-31': Decimal('59'), '2024-08-31': Decimal('76'), '2024-11-30': Decimal('57'), '2024-06-30': Decimal('92'), '2024-07-31': Decimal('76')}, 'mean_copay_amount': {'2024-09-30': Decimal('85.94'), '2024-10-31': Decimal('160.32'), '2024-08-31': Decimal('137.46'), '2024-11-30': Decimal('70.03'), '2024-06-30': Decimal('68.14'), '2024-07-31': Decimal('75.67')}, 'coverage_ratio': {'2024-09-30': Decimal('0.1'), '2024-10-31': Decimal('0.08'), '2024-08-31': Decimal('0.06'), '2024-11-30': Decimal('0.09'), '2024-06-30': Decimal('0.07'), '2024-07-31': Decimal('0.12')}}
trend_anomaly_count_month: False
month_change_copay_amount: -90.29
coverage_ratio: 0.13
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: -2
updated_at: 2025-10-14T08:56:45.024Z
count: 394
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.0002
product_attribute: 00299589030_0137643
week_change_copay_amount: -48.33
std_copay_amount: 101.91
trend_anomaly_count: False
delta_count_weekly: -0.3277
week_change_coverage_ratio: -10.71
Record 2:
weekly_claims: {'record_count': {'2024-08-31': Decimal('1'), '2024-09-21': Decimal('3'), '2024-08-10': Decimal('9'), '2024-07-20': Decimal('5'), '2024-09-28': Decimal('3'), '2024-08-17': Decimal('8'), '2024-09-07': Decimal('4'), '2024-07-06': Decimal('6'), '2024-06-15': Decimal('8'), '2024-07-27': Decimal('1'), '2024-06-29': Decimal('3'), '2024-10-05': Decimal('3'), '2024-11-16': Decimal('2'), '2024-10-26': Decimal('2'), '2024-11-30': Decimal('7'), '2024-07-13': Decimal('3'), '2024-06-22': Decimal('1'), '2024-08-24': Decimal('2'), '2024-09-14': Decimal('9'), '2024-08-03': Decimal('4'), '2024-11-09': Decimal('7'), '2024-10-19': Decimal('1'), '2024-10-12': Decimal('3'), '2024-11-02': Decimal('1'), '2024-11-23': Decimal('6')}, 'mean_copay_amount': {'2024-08-31': Decimal('270.77'), '2024-09-21': Decimal('355.29'), '2024-08-10': Decimal('797.78'), '2024-07-20': Decimal('587.35'), '2024-09-28': Decimal('1068.01'), '2024-08-17': Decimal('848.61'), '2024-09-07': Decimal('419.08'), '2024-07-06': Decimal('100'), '2024-06-15': Decimal('1022.8'), '2024-07-27': Decimal('1796.23'), '2024-06-29': Decimal('173.79'), '2024-10-05': Decimal('75'), '2024-11-16': Decimal('248.75'), '2024-10-26': Decimal('656.1'), '2024-11-30': Decimal('392.4'), '2024-07-13': Decimal('125'), '2024-06-22': Decimal('1492.03'), '2024-08-24': Decimal('82.5'), '2024-09-14': Decimal('263.88'), '2024-08-03': Decimal('300'), '2024-11-09': Decimal('72.5'), '2024-10-19': Decimal('1492.03'), '2024-10-12': Decimal('80'), '2024-11-02': Decimal('100'), '2024-11-23': Decimal('712.07')}, 'coverage_ratio': {'2024-08-31': Decimal('0.14'), '2024-09-21': Decimal('0.29'), '2024-08-10': Decimal('0.67'), '2024-07-20': Decimal('0.25'), '2024-09-28': Decimal('0.21'), '2024-08-17': Decimal('0.29'), '2024-09-07': Decimal('0.07'), '2024-07-06': Decimal('0.26'), '2024-06-15': Decimal('0.38'), '2024-07-27': Decimal('0.14'), '2024-06-29': Decimal('0.29'), '2024-10-05': Decimal('0.14'), '2024-11-16': Decimal('0.29'), '2024-10-26': Decimal('0.14'), '2024-11-30': Decimal('0.31'), '2024-07-13': Decimal('0.21'), '2024-06-22': Decimal('0.14'), '2024-08-24': Decimal('0.29'), '2024-09-14': Decimal('0.33'), '2024-08-03': Decimal('0.07'), '2024-11-09': Decimal('0.19'), '2024-10-19': Decimal('0.14'), '2024-10-12': Decimal('0.43'), '2024-11-02': Decimal('0.14'), '2024-11-23': Decimal('0.43')}}
delta_mean_copay_amount_weekly: -15.3695
trend_anomaly_mean_copay_amount_month: False
week_change_count: 1
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 509.16
month_change_coverage_ratio: 6.73
monthly_claims: {'record_count': {'2024-09-30': Decimal('19'), '2024-10-31': Decimal('10'), '2024-08-31': Decimal('22'), '2024-11-30': Decimal('22'), '2024-06-30': Decimal('15'), '2024-07-31': Decimal('17')}, 'mean_copay_amount': {'2024-09-30': Decimal('507.17'), '2024-10-31': Decimal('366.16'), '2024-08-31': Decimal('605.87'), '2024-11-30': Decimal('395.59'), '2024-06-30': Decimal('851.63'), '2024-07-31': Decimal('440.12')}, 'coverage_ratio': {'2024-09-30': Decimal('0.21'), '2024-10-31': Decimal('0.23'), '2024-08-31': Decimal('0.33'), '2024-11-30': Decimal('0.29'), '2024-06-30': Decimal('0.27'), '2024-07-31': Decimal('0.2')}}
trend_anomaly_count_month: False
month_change_copay_amount: 29.43
coverage_ratio: 0.73
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: 12
updated_at: 2025-10-14T08:56:45.033Z
count: 107
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0
product_attribute: 50881000705_1326194945
week_change_copay_amount: -319.66
std_copay_amount: 702.91
trend_anomaly_count: False
delta_count_weekly: -0.0223
week_change_coverage_ratio: -11.9
Record 3:
weekly_claims: {'record_count': {'2024-08-31': Decimal('3'), '2024-09-21': Decimal('4'), '2024-08-10': Decimal('6'), '2024-07-20': Decimal('2'), '2024-09-28': Decimal('8'), '2024-08-17': Decimal('3'), '2024-09-07': Decimal('5'), '2024-07-06': Decimal('3'), '2024-06-15': Decimal('4'), '2024-07-27': Decimal('4'), '2024-06-29': Decimal('4'), '2024-10-05': Decimal('10'), '2024-11-16': Decimal('6'), '2024-10-26': Decimal('9'), '2024-11-30': Decimal('4'), '2024-07-13': Decimal('2'), '2024-06-22': Decimal('35'), '2024-08-24': Decimal('5'), '2024-09-14': Decimal('6'), '2024-08-03': Decimal('2'), '2024-11-09': Decimal('4'), '2024-10-19': Decimal('8'), '2024-10-12': Decimal('7'), '2024-11-02': Decimal('8'), '2024-11-23': Decimal('4')}, 'mean_copay_amount': {'2024-08-31': Decimal('197.23'), '2024-09-21': Decimal('135.06'), '2024-08-10': Decimal('197.23'), '2024-07-20': Decimal('197.23'), '2024-09-28': Decimal('135.06'), '2024-08-17': Decimal('197.23'), '2024-09-07': Decimal('66'), '2024-07-06': Decimal('197.23'), '2024-06-15': Decimal('197.23'), '2024-07-27': Decimal('197.23'), '2024-06-29': Decimal('197.23'), '2024-10-05': Decimal('60'), '2024-11-16': Decimal('54.5'), '2024-10-26': Decimal('76.75'), '2024-11-30': Decimal('0'), '2024-07-13': Decimal('197.23'), '2024-06-22': Decimal('197.23'), '2024-08-24': Decimal('197.23'), '2024-09-14': Decimal('69'), '2024-08-03': Decimal('197.23'), '2024-11-09': Decimal('100'), '2024-10-19': Decimal('52.09'), '2024-10-12': Decimal('60.5'), '2024-11-02': Decimal('80.89'), '2024-11-23': Decimal('30')}, 'coverage_ratio': {'2024-08-31': Decimal('0'), '2024-09-21': Decimal('0.14'), '2024-08-10': Decimal('0'), '2024-07-20': Decimal('0'), '2024-09-28': Decimal('0'), '2024-08-17': Decimal('0'), '2024-09-07': Decimal('0.21'), '2024-07-06': Decimal('0'), '2024-06-15': Decimal('0'), '2024-07-27': Decimal('0.14'), '2024-06-29': Decimal('0'), '2024-10-05': Decimal('0.04'), '2024-11-16': Decimal('0.21'), '2024-10-26': Decimal('0.2'), '2024-11-30': Decimal('0'), '2024-07-13': Decimal('0'), '2024-06-22': Decimal('0'), '2024-08-24': Decimal('0'), '2024-09-14': Decimal('0.29'), '2024-08-03': Decimal('0'), '2024-11-09': Decimal('0.07'), '2024-10-19': Decimal('0.33'), '2024-10-12': Decimal('0.21'), '2024-11-02': Decimal('0.38'), '2024-11-23': Decimal('0.14')}}
delta_mean_copay_amount_weekly: -8.3271
trend_anomaly_mean_copay_amount_month: False
week_change_count: 0
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 70.16
month_change_coverage_ratio: -11.5
monthly_claims: {'record_count': {'2024-09-30': Decimal('25'), '2024-10-31': Decimal('37'), '2024-08-31': Decimal('18'), '2024-11-30': Decimal('21'), '2024-06-30': Decimal('47'), '2024-07-31': Decimal('12')}, 'mean_copay_amount': {'2024-09-30': Decimal('79.01'), '2024-10-31': Decimal('62.67'), '2024-08-31': Decimal('197.23'), '2024-11-30': Decimal('60.67'), '2024-06-30': Decimal('197.23'), '2024-07-31': Decimal('197.23')}, 'coverage_ratio': {'2024-09-30': Decimal('0.15'), '2024-10-31': Decimal('0.24'), '2024-08-31': Decimal('0'), '2024-11-30': Decimal('0.13'), '2024-06-30': Decimal('0'), '2024-07-31': Decimal('0.03')}}
trend_anomaly_count_month: False
month_change_copay_amount: -2
coverage_ratio: 0.18
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: -16
updated_at: 2025-10-14T08:56:45.041Z
count: 157
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.009
product_attribute: 00299593545_0846090
week_change_copay_amount: -30
std_copay_amount: 47.76
trend_anomaly_count: False
delta_count_weekly: -0.1031
week_change_coverage_ratio: -14.29
Record 4:
weekly_claims: {'record_count': {'2024-08-31': Decimal('1'), '2024-09-21': Decimal('7'), '2024-08-10': Decimal('7'), '2024-07-20': Decimal('0'), '2024-09-28': Decimal('6'), '2024-08-17': Decimal('6'), '2024-09-07': Decimal('1'), '2024-07-06': Decimal('2'), '2024-06-15': Decimal('3'), '2024-07-27': Decimal('10'), '2024-06-29': Decimal('1'), '2024-10-05': Decimal('7'), '2024-11-16': Decimal('6'), '2024-10-26': Decimal('1'), '2024-11-30': Decimal('5'), '2024-07-13': Decimal('3'), '2024-06-22': Decimal('3'), '2024-08-24': Decimal('10'), '2024-09-14': Decimal('4'), '2024-08-03': Decimal('12'), '2024-11-09': Decimal('8'), '2024-10-19': Decimal('6'), '2024-10-12': Decimal('9'), '2024-11-02': Decimal('8'), '2024-11-23': Decimal('4')}, 'mean_copay_amount': {'2024-08-31': Decimal('696.49'), '2024-09-21': Decimal('35.01'), '2024-08-10': Decimal('1031'), '2024-07-20': Decimal('483.79'), '2024-09-28': Decimal('35.01'), '2024-08-17': Decimal('1031'), '2024-09-07': Decimal('35.01'), '2024-07-06': Decimal('483.79'), '2024-06-15': Decimal('483.79'), '2024-07-27': Decimal('483.79'), '2024-06-29': Decimal('483.79'), '2024-10-05': Decimal('35.01'), '2024-11-16': Decimal('222.6'), '2024-10-26': Decimal('35.01'), '2024-11-30': Decimal('35.01'), '2024-07-13': Decimal('483.79'), '2024-06-22': Decimal('483.79'), '2024-08-24': Decimal('901.27'), '2024-09-14': Decimal('35.01'), '2024-08-03': Decimal('483.79'), '2024-11-09': Decimal('35.01'), '2024-10-19': Decimal('35.01'), '2024-10-12': Decimal('35.01'), '2024-11-02': Decimal('365.75'), '2024-11-23': Decimal('222.6')}, 'coverage_ratio': {'2024-08-31': Decimal('0.14'), '2024-09-21': Decimal('0'), '2024-08-10': Decimal('0.14'), '2024-07-20': Decimal('0'), '2024-09-28': Decimal('0'), '2024-08-17': Decimal('0'), '2024-09-07': Decimal('0.14'), '2024-07-06': Decimal('0'), '2024-06-15': Decimal('0'), '2024-07-27': Decimal('0'), '2024-06-29': Decimal('0'), '2024-10-05': Decimal('0.07'), '2024-11-16': Decimal('0.23'), '2024-10-26': Decimal('0'), '2024-11-30': Decimal('0.1'), '2024-07-13': Decimal('0'), '2024-06-22': Decimal('0'), '2024-08-24': Decimal('0.07'), '2024-09-14': Decimal('0'), '2024-08-03': Decimal('0.09'), '2024-11-09': Decimal('0.05'), '2024-10-19': Decimal('0'), '2024-10-12': Decimal('0'), '2024-11-02': Decimal('0.11'), '2024-11-23': Decimal('0')}}
delta_mean_copay_amount_weekly: -25.6136
trend_anomaly_mean_copay_amount_month: False
week_change_count: 1
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 309.61
month_change_coverage_ratio: 7.33
monthly_claims: {'record_count': {'2024-09-30': Decimal('19'), '2024-10-31': Decimal('26'), '2024-08-31': Decimal('28'), '2024-11-30': Decimal('26'), '2024-06-30': Decimal('11'), '2024-07-31': Decimal('23')}, 'mean_copay_amount': {'2024-09-30': Decimal('35.01'), '2024-10-31': Decimal('35.01'), '2024-08-31': Decimal('876.25'), '2024-11-30': Decimal('242.34'), '2024-06-30': Decimal('483.79'), '2024-07-31': Decimal('483.79')}, 'coverage_ratio': {'2024-09-30': Decimal('0.03'), '2024-10-31': Decimal('0.03'), '2024-08-31': Decimal('0.08'), '2024-11-30': Decimal('0.11'), '2024-06-30': Decimal('0'), '2024-07-31': Decimal('0.02')}}
trend_anomaly_count_month: False
month_change_copay_amount: 207.33
coverage_ratio: 0.12
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: 0
updated_at: 2025-10-14T08:56:45.049Z
count: 137
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.0029
product_attribute: 00187000625_1144258724
week_change_copay_amount: -187.59
std_copay_amount: 401.4
trend_anomaly_count: False
delta_count_weekly: 0.1108
week_change_coverage_ratio: 9.52
Record 5:
weekly_claims: {'record_count': {'2024-08-31': Decimal('3'), '2024-09-21': Decimal('2'), '2024-08-10': Decimal('5'), '2024-07-20': Decimal('5'), '2024-09-28': Decimal('5'), '2024-08-17': Decimal('6'), '2024-09-07': Decimal('2'), '2024-07-06': Decimal('4'), '2024-06-15': Decimal('7'), '2024-07-27': Decimal('4'), '2024-06-29': Decimal('13'), '2024-10-05': Decimal('6'), '2024-11-16': Decimal('2'), '2024-10-26': Decimal('2'), '2024-11-30': Decimal('3'), '2024-07-13': Decimal('3'), '2024-06-22': Decimal('3'), '2024-08-24': Decimal('2'), '2024-09-14': Decimal('3'), '2024-08-03': Decimal('3'), '2024-11-09': Decimal('3'), '2024-10-19': Decimal('2'), '2024-10-12': Decimal('5'), '2024-11-02': Decimal('5'), '2024-11-23': Decimal('3')}, 'mean_copay_amount': {'2024-08-31': Decimal('35.01'), '2024-09-21': Decimal('50'), '2024-08-10': Decimal('35.01'), '2024-07-20': Decimal('35.01'), '2024-09-28': Decimal('32.5'), '2024-08-17': Decimal('42.5'), '2024-09-07': Decimal('35.01'), '2024-07-06': Decimal('35.01'), '2024-06-15': Decimal('63.33'), '2024-07-27': Decimal('35.01'), '2024-06-29': Decimal('35.01'), '2024-10-05': Decimal('35.01'), '2024-11-16': Decimal('35.01'), '2024-10-26': Decimal('113.97'), '2024-11-30': Decimal('25'), '2024-07-13': Decimal('35.01'), '2024-06-22': Decimal('35.01'), '2024-08-24': Decimal('35.01'), '2024-09-14': Decimal('50'), '2024-08-03': Decimal('35.01'), '2024-11-09': Decimal('35.01'), '2024-10-19': Decimal('113.97'), '2024-10-12': Decimal('35.01'), '2024-11-02': Decimal('113.97'), '2024-11-23': Decimal('30')}, 'coverage_ratio': {'2024-08-31': Decimal('0'), '2024-09-21': Decimal('0'), '2024-08-10': Decimal('0.07'), '2024-07-20': Decimal('0.29'), '2024-09-28': Decimal('0.21'), '2024-08-17': Decimal('0.14'), '2024-09-07': Decimal('0'), '2024-07-06': Decimal('0'), '2024-06-15': Decimal('0.26'), '2024-07-27': Decimal('0.14'), '2024-06-29': Decimal('0.32'), '2024-10-05': Decimal('0.1'), '2024-11-16': Decimal('0.05'), '2024-10-26': Decimal('0'), '2024-11-30': Decimal('0.14'), '2024-07-13': Decimal('0'), '2024-06-22': Decimal('0.29'), '2024-08-24': Decimal('0.14'), '2024-09-14': Decimal('0.07'), '2024-08-03': Decimal('0.07'), '2024-11-09': Decimal('0.14'), '2024-10-19': Decimal('0.14'), '2024-10-12': Decimal('0'), '2024-11-02': Decimal('0'), '2024-11-23': Decimal('0.14')}}
delta_mean_copay_amount_weekly: 0.8908
trend_anomaly_mean_copay_amount_month: False
week_change_count: 0
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 37.16
month_change_coverage_ratio: 8.68
monthly_claims: {'record_count': {'2024-09-30': Decimal('15'), '2024-10-31': Decimal('17'), '2024-08-31': Decimal('17'), '2024-11-30': Decimal('11'), '2024-06-30': Decimal('25'), '2024-07-31': Decimal('18')}, 'mean_copay_amount': {'2024-09-30': Decimal('37.5'), '2024-10-31': Decimal('113.97'), '2024-08-31': Decimal('38.76'), '2024-11-30': Decimal('31.26'), '2024-06-30': Decimal('45.63'), '2024-07-31': Decimal('35.01')}, 'coverage_ratio': {'2024-09-30': Decimal('0.09'), '2024-10-31': Decimal('0.03'), '2024-08-31': Decimal('0.08'), '2024-11-30': Decimal('0.12'), '2024-06-30': Decimal('0.23'), '2024-07-31': Decimal('0.11')}}
trend_anomaly_count_month: False
month_change_copay_amount: -82.72
coverage_ratio: 0.26
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: -6
updated_at: 2025-10-14T08:56:45.057Z
count: 112
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: -0.0052
product_attribute: 00187209845_1487827861
week_change_copay_amount: -5
std_copay_amount: 21.13
trend_anomaly_count: False
delta_count_weekly: -0.1331
week_change_coverage_ratio: 0
Record 6:
weekly_claims: {'record_count': {'2024-08-31': Decimal('7'), '2024-09-21': Decimal('4'), '2024-08-10': Decimal('2'), '2024-07-20': Decimal('3'), '2024-09-28': Decimal('0'), '2024-08-17': Decimal('6'), '2024-09-07': Decimal('2'), '2024-07-06': Decimal('4'), '2024-06-15': Decimal('6'), '2024-07-27': Decimal('4'), '2024-06-29': Decimal('4'), '2024-10-05': Decimal('5'), '2024-11-16': Decimal('6'), '2024-10-26': Decimal('1'), '2024-11-30': Decimal('3'), '2024-07-13': Decimal('6'), '2024-06-22': Decimal('3'), '2024-08-24': Decimal('4'), '2024-09-14': Decimal('5'), '2024-08-03': Decimal('3'), '2024-11-09': Decimal('3'), '2024-10-19': Decimal('4'), '2024-10-12': Decimal('4'), '2024-11-02': Decimal('6'), '2024-11-23': Decimal('2')}, 'mean_copay_amount': {'2024-08-31': Decimal('167.67'), '2024-09-21': Decimal('1921.48'), '2024-08-10': Decimal('1092.14'), '2024-07-20': Decimal('195.21'), '2024-09-28': Decimal('1921.48'), '2024-08-17': Decimal('153.82'), '2024-09-07': Decimal('174.28'), '2024-07-06': Decimal('291.65'), '2024-06-15': Decimal('540.37'), '2024-07-27': Decimal('100'), '2024-06-29': Decimal('140'), '2024-10-05': Decimal('83.09'), '2024-11-16': Decimal('192.5'), '2024-10-26': Decimal('120'), '2024-11-30': Decimal('47.5'), '2024-07-13': Decimal('126.24'), '2024-06-22': Decimal('448.73'), '2024-08-24': Decimal('50'), '2024-09-14': Decimal('145.9'), '2024-08-03': Decimal('1154.74'), '2024-11-09': Decimal('112.14'), '2024-10-19': Decimal('120'), '2024-10-12': Decimal('52.5'), '2024-11-02': Decimal('311.13'), '2024-11-23': Decimal('160')}, 'coverage_ratio': {'2024-08-31': Decimal('0.36'), '2024-09-21': Decimal('0.07'), '2024-08-10': Decimal('0.29'), '2024-07-20': Decimal('0.07'), '2024-09-28': Decimal('0'), '2024-08-17': Decimal('0.38'), '2024-09-07': Decimal('0.14'), '2024-07-06': Decimal('0.14'), '2024-06-15': Decimal('0.29'), '2024-07-27': Decimal('0.1'), '2024-06-29': Decimal('0.29'), '2024-10-05': Decimal('0.36'), '2024-11-16': Decimal('0.29'), '2024-10-26': Decimal('0'), '2024-11-30': Decimal('0.21'), '2024-07-13': Decimal('0.1'), '2024-06-22': Decimal('0.21'), '2024-08-24': Decimal('0.43'), '2024-09-14': Decimal('0.43'), '2024-08-03': Decimal('0.29'), '2024-11-09': Decimal('0.21'), '2024-10-19': Decimal('0.07'), '2024-10-12': Decimal('0.29'), '2024-11-02': Decimal('0.21'), '2024-11-23': Decimal('0.14')}}
delta_mean_copay_amount_weekly: -7.409
trend_anomaly_mean_copay_amount_month: False
week_change_count: 1
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 303.88
month_change_coverage_ratio: 4.48
monthly_claims: {'record_count': {'2024-09-30': Decimal('12'), '2024-10-31': Decimal('19'), '2024-08-31': Decimal('21'), '2024-11-30': Decimal('14'), '2024-06-30': Decimal('19'), '2024-07-31': Decimal('18')}, 'mean_copay_amount': {'2024-09-30': Decimal('430.58'), '2024-10-31': Decimal('169.71'), '2024-08-31': Decimal('307.23'), '2024-11-30': Decimal('123.47'), '2024-06-30': Decimal('521.89'), '2024-07-31': Decimal('526.92')}, 'coverage_ratio': {'2024-09-30': Decimal('0.18'), '2024-10-31': Decimal('0.18'), '2024-08-31': Decimal('0.36'), '2024-11-30': Decimal('0.22'), '2024-06-30': Decimal('0.29'), '2024-07-31': Decimal('0.12')}}
trend_anomaly_count_month: False
month_change_copay_amount: -46.24
coverage_ratio: 0.53
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: -5
updated_at: 2025-10-14T08:56:45.065Z
count: 104
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: -0.0017
product_attribute: 50881000705_1366447906
week_change_copay_amount: -112.5
std_copay_amount: 505.28
trend_anomaly_count: False
delta_count_weekly: -0.0408
week_change_coverage_ratio: 7.14
Record 7:
weekly_claims: {'record_count': {'2024-08-31': Decimal('2'), '2024-09-21': Decimal('7'), '2024-08-10': Decimal('3'), '2024-07-20': Decimal('5'), '2024-09-28': Decimal('3'), '2024-08-17': Decimal('0'), '2024-09-07': Decimal('7'), '2024-07-06': Decimal('4'), '2024-06-15': Decimal('2'), '2024-07-27': Decimal('3'), '2024-06-29': Decimal('2'), '2024-10-05': Decimal('5'), '2024-11-16': Decimal('8'), '2024-10-26': Decimal('4'), '2024-11-30': Decimal('10'), '2024-07-13': Decimal('3'), '2024-06-22': Decimal('2'), '2024-08-24': Decimal('4'), '2024-09-14': Decimal('4'), '2024-08-03': Decimal('3'), '2024-11-09': Decimal('8'), '2024-10-19': Decimal('3'), '2024-10-12': Decimal('4'), '2024-11-02': Decimal('10'), '2024-11-23': Decimal('2')}, 'mean_copay_amount': {'2024-08-31': Decimal('35.01'), '2024-09-21': Decimal('155.96'), '2024-08-10': Decimal('35.01'), '2024-07-20': Decimal('35.01'), '2024-09-28': Decimal('155.96'), '2024-08-17': Decimal('35.01'), '2024-09-07': Decimal('155.96'), '2024-07-06': Decimal('35.01'), '2024-06-15': Decimal('35.01'), '2024-07-27': Decimal('35.01'), '2024-06-29': Decimal('35.01'), '2024-10-05': Decimal('35.01'), '2024-11-16': Decimal('35.01'), '2024-10-26': Decimal('35.01'), '2024-11-30': Decimal('38.75'), '2024-07-13': Decimal('35.01'), '2024-06-22': Decimal('35.01'), '2024-08-24': Decimal('35.01'), '2024-09-14': Decimal('155.96'), '2024-08-03': Decimal('35.01'), '2024-11-09': Decimal('70'), '2024-10-19': Decimal('70'), '2024-10-12': Decimal('70'), '2024-11-02': Decimal('35.01'), '2024-11-23': Decimal('35.01')}, 'coverage_ratio': {'2024-08-31': Decimal('0'), '2024-09-21': Decimal('0'), '2024-08-10': Decimal('0'), '2024-07-20': Decimal('0'), '2024-09-28': Decimal('0'), '2024-08-17': Decimal('0'), '2024-09-07': Decimal('0.14'), '2024-07-06': Decimal('0.05'), '2024-06-15': Decimal('0'), '2024-07-27': Decimal('0'), '2024-06-29': Decimal('0'), '2024-10-05': Decimal('0.05'), '2024-11-16': Decimal('0.14'), '2024-10-26': Decimal('0.14'), '2024-11-30': Decimal('0.07'), '2024-07-13': Decimal('0'), '2024-06-22': Decimal('0'), '2024-08-24': Decimal('0'), '2024-09-14': Decimal('0'), '2024-08-03': Decimal('0'), '2024-11-09': Decimal('0.07'), '2024-10-19': Decimal('0'), '2024-10-12': Decimal('0.05'), '2024-11-02': Decimal('0'), '2024-11-23': Decimal('0')}}
delta_mean_copay_amount_weekly: 1.1311
trend_anomaly_mean_copay_amount_month: False
week_change_count: 8
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 47.52
month_change_coverage_ratio: 2.6
monthly_claims: {'record_count': {'2024-09-30': Decimal('24'), '2024-10-31': Decimal('20'), '2024-08-31': Decimal('11'), '2024-11-30': Decimal('31'), '2024-06-30': Decimal('9'), '2024-07-31': Decimal('16')}, 'mean_copay_amount': {'2024-09-30': Decimal('95.49'), '2024-10-31': Decimal('52.5'), '2024-08-31': Decimal('35.01'), '2024-11-30': Decimal('45.63'), '2024-06-30': Decimal('40.96'), '2024-07-31': Decimal('35.01')}, 'coverage_ratio': {'2024-09-30': Decimal('0.04'), '2024-10-31': Decimal('0.04'), '2024-08-31': Decimal('0'), '2024-11-30': Decimal('0.07'), '2024-06-30': Decimal('0.02'), '2024-07-31': Decimal('0.01')}}
trend_anomaly_count_month: False
month_change_copay_amount: -6.88
coverage_ratio: 0.09
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: 11
updated_at: 2025-10-14T08:56:45.073Z
count: 116
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.003
product_attribute: 00187540004_1326057449
week_change_copay_amount: 3.74
std_copay_amount: 72.65
trend_anomaly_count: False
delta_count_weekly: 0.2085
week_change_coverage_ratio: 7.14
Record 8:
weekly_claims: {'record_count': {'2024-08-31': Decimal('6'), '2024-09-21': Decimal('4'), '2024-08-10': Decimal('4'), '2024-07-20': Decimal('4'), '2024-09-28': Decimal('4'), '2024-08-17': Decimal('6'), '2024-09-07': Decimal('6'), '2024-07-06': Decimal('5'), '2024-06-15': Decimal('4'), '2024-07-27': Decimal('0'), '2024-06-29': Decimal('4'), '2024-10-05': Decimal('3'), '2024-11-16': Decimal('5'), '2024-10-26': Decimal('3'), '2024-11-30': Decimal('4'), '2024-07-13': Decimal('1'), '2024-06-22': Decimal('2'), '2024-08-24': Decimal('5'), '2024-09-14': Decimal('8'), '2024-08-03': Decimal('1'), '2024-11-09': Decimal('6'), '2024-10-19': Decimal('2'), '2024-10-12': Decimal('8'), '2024-11-02': Decimal('3'), '2024-11-23': Decimal('6')}, 'mean_copay_amount': {'2024-08-31': Decimal('58.02'), '2024-09-21': Decimal('133.24'), '2024-08-10': Decimal('30'), '2024-07-20': Decimal('62.5'), '2024-09-28': Decimal('97.5'), '2024-08-17': Decimal('110.1'), '2024-09-07': Decimal('55'), '2024-07-06': Decimal('52.5'), '2024-06-15': Decimal('75'), '2024-07-27': Decimal('62.5'), '2024-06-29': Decimal('75'), '2024-10-05': Decimal('70'), '2024-11-16': Decimal('77.5'), '2024-10-26': Decimal('138.97'), '2024-11-30': Decimal('55.32'), '2024-07-13': Decimal('120'), '2024-06-22': Decimal('62.5'), '2024-08-24': Decimal('82.16'), '2024-09-14': Decimal('55'), '2024-08-03': Decimal('62.5'), '2024-11-09': Decimal('44.03'), '2024-10-19': Decimal('47.5'), '2024-10-12': Decimal('40'), '2024-11-02': Decimal('71.27'), '2024-11-23': Decimal('94.66')}, 'coverage_ratio': {'2024-08-31': Decimal('0.29'), '2024-09-21': Decimal('0.21'), '2024-08-10': Decimal('0.14'), '2024-07-20': Decimal('0.14'), '2024-09-28': Decimal('0.29'), '2024-08-17': Decimal('0.05'), '2024-09-07': Decimal('0.14'), '2024-07-06': Decimal('0.21'), '2024-06-15': Decimal('0.36'), '2024-07-27': Decimal('0'), '2024-06-29': Decimal('0.14'), '2024-10-05': Decimal('0.14'), '2024-11-16': Decimal('0.43'), '2024-10-26': Decimal('0.21'), '2024-11-30': Decimal('0.29'), '2024-07-13': Decimal('0.14'), '2024-06-22': Decimal('0.14'), '2024-08-24': Decimal('0.36'), '2024-09-14': Decimal('0'), '2024-08-03': Decimal('0.14'), '2024-11-09': Decimal('0.33'), '2024-10-19': Decimal('0.29'), '2024-10-12': Decimal('0.12'), '2024-11-02': Decimal('0.14'), '2024-11-23': Decimal('0.43')}}
delta_mean_copay_amount_weekly: 0.1774
trend_anomaly_mean_copay_amount_month: False
week_change_count: -2
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 71.93
month_change_coverage_ratio: 15.2
monthly_claims: {'record_count': {'2024-09-30': Decimal('23'), '2024-10-31': Decimal('17'), '2024-08-31': Decimal('22'), '2024-11-30': Decimal('22'), '2024-06-30': Decimal('14'), '2024-07-31': Decimal('10')}, 'mean_copay_amount': {'2024-09-30': Decimal('95.24'), '2024-10-31': Decimal('74.28'), '2024-08-31': Decimal('69.24'), '2024-11-30': Decimal('69.02'), '2024-06-30': Decimal('73.21'), '2024-07-31': Decimal('71.88')}, 'coverage_ratio': {'2024-09-30': Decimal('0.15'), '2024-10-31': Decimal('0.2'), '2024-08-31': Decimal('0.22'), '2024-11-30': Decimal('0.36'), '2024-06-30': Decimal('0.21'), '2024-07-31': Decimal('0.11')}}
trend_anomaly_count_month: False
month_change_copay_amount: -5.26
coverage_ratio: 0.44
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: 5
updated_at: 2025-10-14T08:56:45.080Z
count: 111
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.0065
product_attribute: 00299593545_5814151
week_change_copay_amount: -39.34
std_copay_amount: 49.2
trend_anomaly_count: False
delta_count_weekly: 0.0838
week_change_coverage_ratio: -14.29
Record 9:
trend_anomaly_count_rejected_week: True
weekly_claims: {'record_count': {'2025-08-23': Decimal('698'), '2025-07-12': Decimal('711'), '2025-08-02': Decimal('670'), '2025-09-13': Decimal('641'), '2025-05-10': Decimal('719'), '2025-05-31': Decimal('836'), '2025-06-21': Decimal('709'), '2025-07-26': Decimal('721'), '2025-08-16': Decimal('665'), '2025-07-05': Decimal('686'), '2025-09-06': Decimal('725'), '2025-05-03': Decimal('726'), '2025-09-27': Decimal('310'), '2025-05-24': Decimal('713'), '2025-06-14': Decimal('724'), '2025-08-30': Decimal('633'), '2025-09-20': Decimal('681'), '2025-06-28': Decimal('677'), '2025-07-19': Decimal('706'), '2025-08-09': Decimal('710'), '2025-04-26': Decimal('701'), '2025-05-17': Decimal('701'), '2025-06-07': Decimal('700')}, 'mean_copay_amount': {'2025-08-23': Decimal('32.88'), '2025-07-12': Decimal('61.77'), '2025-08-02': Decimal('23.45'), '2025-09-13': Decimal('21.77'), '2025-05-10': Decimal('68.26'), '2025-05-31': Decimal('55.32'), '2025-06-21': Decimal('48.13'), '2025-07-26': Decimal('31.59'), '2025-08-16': Decimal('46.28'), '2025-07-05': Decimal('51.58'), '2025-09-06': Decimal('19.83'), '2025-05-03': Decimal('48.22'), '2025-09-27': Decimal('15.74'), '2025-05-24': Decimal('87.09'), '2025-06-14': Decimal('42.47'), '2025-08-30': Decimal('36.65'), '2025-09-20': Decimal('30.9'), '2025-06-28': Decimal('40.14'), '2025-07-19': Decimal('31.36'), '2025-08-09': Decimal('21.2'), '2025-04-26': Decimal('62.75'), '2025-05-17': Decimal('41.64'), '2025-06-07': Decimal('30.56')}, 'coverage_ratio': {'2025-08-23': Decimal('0.27'), '2025-07-12': Decimal('0.14'), '2025-08-02': Decimal('0.11'), '2025-09-13': Decimal('0.1'), '2025-05-10': Decimal('0.15'), '2025-05-31': Decimal('0.1'), '2025-06-21': Decimal('0.14'), '2025-07-26': Decimal('0.12'), '2025-08-16': Decimal('0.14'), '2025-07-05': Decimal('0.24'), '2025-09-06': Decimal('0.14'), '2025-05-03': Decimal('0.14'), '2025-09-27': Decimal('0.09'), '2025-05-24': Decimal('0.33'), '2025-06-14': Decimal('0.11'), '2025-08-30': Decimal('0.13'), '2025-09-20': Decimal('0.1'), '2025-06-28': Decimal('0.12'), '2025-07-19': Decimal('0.14'), '2025-08-09': Decimal('0.09'), '2025-04-26': Decimal('0.14'), '2025-05-17': Decimal('0.16'), '2025-06-07': Decimal('0.12')}}
delta_mean_copay_amount_weekly: -1.8664
weekly_claims_count_cash: {'2025-08-23': Decimal('536'), '2025-07-12': Decimal('512'), '2025-08-02': Decimal('537'), '2025-09-13': Decimal('530'), '2025-05-10': Decimal('537'), '2025-05-31': Decimal('651'), '2025-06-21': Decimal('572'), '2025-07-26': Decimal('556'), '2025-08-16': Decimal('518'), '2025-07-05': Decimal('551'), '2025-09-06': Decimal('572'), '2025-05-03': Decimal('594'), '2025-09-27': Decimal('248'), '2025-05-24': Decimal('509'), '2025-06-14': Decimal('544'), '2025-08-30': Decimal('501'), '2025-09-20': Decimal('531'), '2025-06-28': Decimal('518'), '2025-07-19': Decimal('555'), '2025-08-09': Decimal('564'), '2025-04-26': Decimal('557'), '2025-05-17': Decimal('534'), '2025-06-07': Decimal('572')}
trend_anomaly_mean_copay_amount_month: False
week_change_count: -371
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 48.1
weekly_claims_count_rejected: {'2025-08-23': Decimal('607'), '2025-07-12': Decimal('596'), '2025-08-02': Decimal('585'), '2025-09-13': Decimal('554'), '2025-05-10': Decimal('591'), '2025-05-31': Decimal('708'), '2025-06-21': Decimal('622'), '2025-07-26': Decimal('616'), '2025-08-16': Decimal('580'), '2025-07-05': Decimal('584'), '2025-09-06': Decimal('616'), '2025-05-03': Decimal('626'), '2025-09-27': Decimal('270'), '2025-05-24': Decimal('574'), '2025-06-14': Decimal('630'), '2025-08-30': Decimal('547'), '2025-09-20': Decimal('586'), '2025-06-28': Decimal('567'), '2025-07-19': Decimal('609'), '2025-08-09': Decimal('621'), '2025-04-26': Decimal('577'), '2025-05-17': Decimal('584'), '2025-06-07': Decimal('596')}
trend_anomaly_count_cash_week: True
month_change_coverage_ratio: -3.83
monthly_claims: {'record_count': {'2025-06-30': Decimal('2999'), '2025-04-30': Decimal('3256'), '2025-07-31': Decimal('3174'), '2025-05-31': Decimal('3208'), '2025-08-31': Decimal('2840'), '2025-09-30': Decimal('2358')}, 'mean_copay_amount': {'2025-06-30': Decimal('39.65'), '2025-04-30': Decimal('82.43'), '2025-07-31': Decimal('42.24'), '2025-05-31': Decimal('60.99'), '2025-08-31': Decimal('31.58'), '2025-09-30': Decimal('23.81')}, 'coverage_ratio': {'2025-06-30': Decimal('0.12'), '2025-04-30': Decimal('0.16'), '2025-07-31': Decimal('0.15'), '2025-05-31': Decimal('0.18'), '2025-08-31': Decimal('0.15'), '2025-09-30': Decimal('0.12')}}
trend_anomaly_count_month: False
month_change_copay_amount: -7.77
coverage_ratio: 0.15
date_range_start: 2025-04-01
date_range_end: 2025-10-01
trend_anomaly_count_rejected_month: False
monthly_claims_count_rejected: {'2025-06-30': Decimal('2561'), '2025-04-30': Decimal('2689'), '2025-07-31': Decimal('2724'), '2025-05-31': Decimal('2667'), '2025-08-31': Decimal('2476'), '2025-09-30': Decimal('2027')}
month_change_count: -482
updated_at: 2025-10-14T08:57:19.973Z
count: 17351
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: -0.0019
product_attribute: 16110024730
trend_anomaly_count_cash_month: False
week_change_copay_amount: -15.16
std_copay_amount: 181.35
monthly_claims_count_cash: {'2025-06-30': Decimal('2346'), '2025-04-30': Decimal('2597'), '2025-07-31': Decimal('2467'), '2025-05-31': Decimal('2430'), '2025-08-31': Decimal('2225'), '2025-09-30': Decimal('1882')}
trend_anomaly_count: True
delta_count_weekly: -6.8073
week_change_coverage_ratio: -1.6
Record 10:
weekly_claims: {'record_count': {'2024-08-31': Decimal('17'), '2024-09-21': Decimal('15'), '2024-08-10': Decimal('22'), '2024-07-20': Decimal('24'), '2024-09-28': Decimal('23'), '2024-08-17': Decimal('23'), '2024-09-07': Decimal('23'), '2024-07-06': Decimal('26'), '2024-06-15': Decimal('20'), '2024-07-27': Decimal('12'), '2024-06-29': Decimal('15'), '2024-10-05': Decimal('18'), '2024-11-16': Decimal('22'), '2024-10-26': Decimal('14'), '2024-11-30': Decimal('13'), '2024-07-13': Decimal('24'), '2024-06-22': Decimal('11'), '2024-08-24': Decimal('22'), '2024-09-14': Decimal('19'), '2024-08-03': Decimal('16'), '2024-11-09': Decimal('10'), '2024-10-19': Decimal('21'), '2024-10-12': Decimal('23'), '2024-11-02': Decimal('8'), '2024-11-23': Decimal('25')}, 'mean_copay_amount': {'2024-08-31': Decimal('423.57'), '2024-09-21': Decimal('233.19'), '2024-08-10': Decimal('334.01'), '2024-07-20': Decimal('377.2'), '2024-09-28': Decimal('250.45'), '2024-08-17': Decimal('140.43'), '2024-09-07': Decimal('317.71'), '2024-07-06': Decimal('619.51'), '2024-06-15': Decimal('325.32'), '2024-07-27': Decimal('168.72'), '2024-06-29': Decimal('54.67'), '2024-10-05': Decimal('312.32'), '2024-11-16': Decimal('339.39'), '2024-10-26': Decimal('254.72'), '2024-11-30': Decimal('23.33'), '2024-07-13': Decimal('508.02'), '2024-06-22': Decimal('176.62'), '2024-08-24': Decimal('424.78'), '2024-09-14': Decimal('338.37'), '2024-08-03': Decimal('279.18'), '2024-11-09': Decimal('641.2'), '2024-10-19': Decimal('561.88'), '2024-10-12': Decimal('52.78'), '2024-11-02': Decimal('121.67'), '2024-11-23': Decimal('443.2')}, 'coverage_ratio': {'2024-08-31': Decimal('0.63'), '2024-09-21': Decimal('0.5'), '2024-08-10': Decimal('0.29'), '2024-07-20': Decimal('0.65'), '2024-09-28': Decimal('0.32'), '2024-08-17': Decimal('0.31'), '2024-09-07': Decimal('0.22'), '2024-07-06': Decimal('0.54'), '2024-06-15': Decimal('0.63'), '2024-07-27': Decimal('0.36'), '2024-06-29': Decimal('0.49'), '2024-10-05': Decimal('0.13'), '2024-11-16': Decimal('0.47'), '2024-10-26': Decimal('0.19'), '2024-11-30': Decimal('0.12'), '2024-07-13': Decimal('0.4'), '2024-06-22': Decimal('0.71'), '2024-08-24': Decimal('0.46'), '2024-09-14': Decimal('0.19'), '2024-08-03': Decimal('0.3'), '2024-11-09': Decimal('0.67'), '2024-10-19': Decimal('0.43'), '2024-10-12': Decimal('0.18'), '2024-11-02': Decimal('0.26'), '2024-11-23': Decimal('0.29')}}
delta_mean_copay_amount_weekly: -0.458
trend_anomaly_mean_copay_amount_month: False
week_change_count: -12
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 349.32
month_change_coverage_ratio: 17.42
monthly_claims: {'record_count': {'2024-09-30': Decimal('81'), '2024-10-31': Decimal('82'), '2024-08-31': Decimal('92'), '2024-11-30': Decimal('71'), '2024-06-30': Decimal('68'), '2024-07-31': Decimal('93')}, 'mean_copay_amount': {'2024-09-30': Decimal('277.54'), '2024-10-31': Decimal('297.63'), '2024-08-31': Decimal('332.55'), '2024-11-30': Decimal('413.08'), '2024-06-30': Decimal('186.91'), '2024-07-31': Decimal('433.74')}, 'coverage_ratio': {'2024-09-30': Decimal('0.29'), '2024-10-31': Decimal('0.24'), '2024-08-31': Decimal('0.43'), '2024-11-30': Decimal('0.41'), '2024-06-30': Decimal('0.65'), '2024-07-31': Decimal('0.43')}}
trend_anomaly_count_month: False
month_change_copay_amount: 115.46
coverage_ratio: 0.55
date_range_start: 2024-06-06
date_range_end: 2024-12-06
month_change_count: -11
updated_at: 2025-10-14T08:56:45.096Z
count: 482
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: -0.0117
product_attribute: 50881000705_1073995791
week_change_copay_amount: -419.86
std_copay_amount: 612.58
trend_anomaly_count: False
delta_count_weekly: -0.1085
week_change_coverage_ratio: -17.46
Note: There are more records beyond the 10 shown.
Perfect! I can see the table has many records with similar product_attribute patterns. Looking at the results, I can see records with product_attribute values like:
50881000705_132619494550881000705_136644790650881000705_1073995791
But the specific value 50881000705_568201 that you're looking for is not present in the first 10 records. Let me search more specifically for records that start with 50881000705:
Diff:
--- /Users/mdl/projects/monarch/monorepo/python/search_ccr_trend_stats.py
+++ /Users/mdl/projects/monarch/monorepo/python/search_ccr_trend_stats.py
@@ -0,0 +1,60 @@
+#!/usr/bin/env python3
+"""Search ccr_trend_stats_TEST table for product_attributes matching a pattern."""
+
+import sys
+from AWS.dynamodb.dynamodb import get_table_reference
+from boto3.dynamodb.conditions import Attr
+
+def search_ccr_trend_stats(pattern: str):
+ """Search the ccr_trend_stats_TEST table for product_attributes containing a pattern."""
+ try:
+ table = get_table_reference("ccr_trend_stats_TEST")
+
+ # Scan with filter for product_attribute containing the pattern
+ response = table.scan(
+ FilterExpression=Attr('product_attribute').contains(pattern)
+ )
+
+ items = response.get('Items', [])
+ print(f"Found {len(items)} records containing '{pattern}' in product_attribute:")
+
+ for i, item in enumerate(items, 1):
+ product_attr = item.get('product_attribute', 'N/A')
+ print(f"{i}. product_attribute: {product_attr}")
+ # Print first few fields for context
+ if 'count' in item:
+ print(f" count: {item['count']}")
+ if 'mean_copay_amount' in item:
+ print(f" mean_copay_amount: {item['mean_copay_amount']}")
+ if 'updated_at' in item:
+ print(f" updated_at: {item['updated_at']}")
+ print()
+
+ # Handle pagination if needed
+ while 'LastEvaluatedKey' in response:
+ response = table.scan(
+ FilterExpression=Attr('product_attribute').contains(pattern),
+ ExclusiveStartKey=response['LastEvaluatedKey']
+ )
+ additional_items = response.get('Items', [])
+ items.extend(additional_items)
+
+ for item in additional_items:
+ product_attr = item.get('product_attribute', 'N/A')
+ print(f"{len(items)}. product_attribute: {product_attr}")
+ if 'count' in item:
+ print(f" count: {item['count']}")
+ print()
+
+ return items
+
+ except Exception as e:
+ print(f"Error searching table: {e}")
+ return []
+
+if __name__ == "__main__":
+ pattern = "50881000705"
+ if len(sys.argv) > 1:
+ pattern = sys.argv[1]
+
+ search_ccr_trend_stats(pattern)
Command Executed:
python search_ccr_trend_stats.py "50881000705"Output:
Found 102 records containing '50881000705' in product_attribute...
Great! I found 102 records that contain "50881000705" in their product_attribute, but I notice that the specific one you're looking for (`50881000705_568201`) is not among them. Let me search more specifically for the exact value:
**Command Executed:**
```bash
python search_ccr_trend_stats.py "568201"
Output:
Found 1 records containing '568201' in product_attribute:
1. product_attribute: 50881000705_5682011
count: 3307
mean_copay_amount: 303.42
updated_at: 2025-10-14T08:59:50.703Z
Interesting! I found one record that contains "568201" but it's 50881000705_5682011, not the exact 50881000705_568201 you're looking for. Let me now try to retrieve the specific record you requested to confirm it doesn't exist:
Command Executed:
python query_ccr_trend_stats.py "50881000705_5682011"Output:
Found record for product_attribute: 50881000705_5682011
Record details:
trend_anomaly_count_rejected_week: True
weekly_claims: {'record_count': {'2025-08-23': Decimal('212'), '2025-07-12': Decimal('82'), '2025-08-02': Decimal('96'), '2025-09-13': Decimal('205'), '2025-05-10': Decimal('104'), '2025-05-31': Decimal('132'), '2025-06-21': Decimal('109'), '2025-07-26': Decimal('133'), '2025-08-16': Decimal('164'), '2025-07-05': Decimal('112'), '2025-09-06': Decimal('276'), '2025-05-03': Decimal('122'), '2025-09-27': Decimal('58'), '2025-05-24': Decimal('91'), '2025-06-14': Decimal('115'), '2025-08-30': Decimal('219'), '2025-09-20': Decimal('192'), '2025-06-28': Decimal('117'), '2025-07-19': Decimal('84'), '2025-08-09': Decimal('130'), '2025-04-26': Decimal('130'), '2025-05-17': Decimal('116'), '2025-06-07': Decimal('110')}, 'mean_copay_amount': {'2025-08-23': Decimal('268.96'), '2025-07-12': Decimal('574.13'), '2025-08-02': Decimal('461.42'), '2025-09-13': Decimal('241.94'), '2025-05-10': Decimal('284.89'), '2025-05-31': Decimal('306.73'), '2025-06-21': Decimal('201.59'), '2025-07-26': Decimal('365.07'), '2025-08-16': Decimal('691.87'), '2025-07-05': Decimal('631.36'), '2025-09-06': Decimal('369.8'), '2025-05-03': Decimal('160.04'), '2025-09-27': Decimal('535.25'), '2025-05-24': Decimal('236.35'), '2025-06-14': Decimal('222.84'), '2025-08-30': Decimal('294.34'), '2025-09-20': Decimal('256.79'), '2025-06-28': Decimal('279.88'), '2025-07-19': Decimal('359.39'), '2025-08-09': Decimal('339.17'), '2025-04-26': Decimal('321.4'), '2025-05-17': Decimal('216.02'), '2025-06-07': Decimal('259.74')}, 'coverage_ratio': {'2025-08-23': Decimal('0.11'), '2025-07-12': Decimal('0.28'), '2025-08-02': Decimal('0.17'), '2025-09-13': Decimal('0.12'), '2025-05-10': Decimal('0.11'), '2025-05-31': Decimal('0.13'), '2025-06-21': Decimal('0.11'), '2025-07-26': Decimal('0.14'), '2025-08-16': Decimal('0.31'), '2025-07-05': Decimal('0.24'), '2025-09-06': Decimal('0.13'), '2025-05-03': Decimal('0.12'), '2025-09-27': Decimal('0.2'), '2025-05-24': Decimal('0.12'), '2025-06-14': Decimal('0.12'), '2025-08-30': Decimal('0.11'), '2025-09-20': Decimal('0.09'), '2025-06-28': Decimal('0.12'), '2025-07-19': Decimal('0.15'), '2025-08-09': Decimal('0.15'), '2025-04-26': Decimal('0.18'), '2025-05-17': Decimal('0.14'), '2025-06-07': Decimal('0.13')}}
delta_mean_copay_amount_weekly: 7.556
weekly_claims_count_cash: {'2025-08-23': Decimal('56'), '2025-07-12': Decimal('21'), '2025-08-02': Decimal('36'), '2025-09-13': Decimal('62'), '2025-05-10': Decimal('0'), '2025-05-31': Decimal('24'), '2025-06-21': Decimal('22'), '2025-07-26': Decimal('47'), '2025-08-16': Decimal('51'), '2025-07-05': Decimal('32'), '2025-09-06': Decimal('81'), '2025-05-03': Decimal('1'), '2025-09-27': Decimal('20'), '2025-05-24': Decimal('7'), '2025-06-14': Decimal('20'), '2025-08-30': Decimal('61'), '2025-09-20': Decimal('62'), '2025-06-28': Decimal('22'), '2025-07-19': Decimal('26'), '2025-08-09': Decimal('34'), '2025-05-17': Decimal('4'), '2025-06-07': Decimal('19')}
trend_anomaly_mean_copay_amount_month: False
week_change_count: -134
trend_anomaly_count_rejected: False
trend_anomaly_mean_copay_amount: False
mean_copay_amount: 303.42
weekly_claims_count_rejected: {'2025-08-23': Decimal('181'), '2025-07-12': Decimal('67'), '2025-08-02': Decimal('78'), '2025-09-13': Decimal('171'), '2025-05-10': Decimal('88'), '2025-05-31': Decimal('107'), '2025-06-21': Decimal('92'), '2025-07-26': Decimal('109'), '2025-08-16': Decimal('127'), '2025-07-05': Decimal('90'), '2025-09-06': Decimal('215'), '2025-05-03': Decimal('102'), '2025-09-27': Decimal('41'), '2025-05-24': Decimal('76'), '2025-06-14': Decimal('99'), '2025-08-30': Decimal('188'), '2025-09-20': Decimal('163'), '2025-06-28': Decimal('100'), '2025-07-19': Decimal('66'), '2025-08-09': Decimal('107'), '2025-04-26': Decimal('101'), '2025-05-17': Decimal('94'), '2025-06-07': Decimal('92')}
trend_anomaly_count_cash_week: True
month_change_coverage_ratio: -2.68
monthly_claims: {'record_count': {'2025-06-30': Decimal('483'), '2025-04-30': Decimal('481'), '2025-07-31': Decimal('456'), '2025-05-31': Decimal('509'), '2025-08-31': Decimal('742'), '2025-09-30': Decimal('730')}, 'mean_copay_amount': {'2025-06-30': Decimal('237.5'), '2025-04-30': Decimal('234.58'), '2025-07-31': Decimal('503.77'), '2025-05-31': Decimal('239.8'), '2025-08-31': Decimal('397.09'), '2025-09-30': Decimal('314.17')}, 'coverage_ratio': {'2025-06-30': Decimal('0.11'), '2025-04-30': Decimal('0.17'), '2025-07-31': Decimal('0.21'), '2025-05-31': Decimal('0.12'), '2025-08-31': Decimal('0.16'), '2025-09-30': Decimal('0.13')}}
trend_anomaly_count_month: False
month_change_copay_amount: -82.92
coverage_ratio: 0.18
date_range_start: 2025-04-01
date_range_end: 2025-10-01
trend_anomaly_count_rejected_month: False
monthly_claims_count_rejected: {'2025-06-30': Decimal('413'), '2025-04-30': Decimal('370'), '2025-07-31': Decimal('364'), '2025-05-31': Decimal('422'), '2025-08-31': Decimal('618'), '2025-09-30': Decimal('589')}
month_change_count: -12
updated_at: 2025-10-14T08:59:50.703Z
count: 3307
trend_anomaly_coverage_ratio: False
trend_anomaly_coverage_ratio_month: False
delta_coverage_ratio_weekly: 0.001
product_attribute: 50881000705_5682011
trend_anomaly_count_cash_month: False
week_change_copay_amount: 278.45
std_copay_amount: 722.21
monthly_claims_count_cash: {'2025-06-30': Decimal('92'), '2025-04-30': Decimal('2'), '2025-07-31': Decimal('147'), '2025-05-31': Decimal('34'), '2025-08-31': Decimal('206'), '2025-09-30': Decimal('224')}
trend_anomaly_count: True
weekly_claims_rejected_count: {'2025-08-23': Decimal('181'), '2025-09-13': Decimal('171'), '2025-08-16': Decimal('127'), '2025-09-06': Decimal('220'), '2025-09-27': Decimal('41'), '2025-08-09': Decimal('107'), '2025-08-30': Decimal('188'), '2025-09-20': Decimal('163')}
delta_count_weekly: 3.7233
week_change_coverage_ratio: 10.22
Now I can provide a clear summary:
I searched the ccr_trend_stats_TEST DynamoDB table for the record with product_attribute equal to 50881000705_568201, but this exact record does not exist in the table.
However, I found:
- 102 records that contain
50881000705in their product_attribute - 1 similar record with
product_attribute = 50881000705_5682011which contains the digits "568201" but is not an exact match
The closest match is 50881000705_5682011 with:
- Count: 3,307 records
- Mean copay amount: $303.42
- Coverage ratio: 0.18
- Updated: 2025-10-14T08:59:50.703Z
Conclusion: The specific record you're looking for (50881000705_568201) is not present in the ccr_trend_stats_TEST table. You may want to verify:
- The exact product_attribute value
- Whether the record exists in a different table or environment
- If the record should exist but is missing