Historical Margin Summary
Perform Historical Margin Summary through Brightree.
brightree_historical_margin_summarywritebrightree
Inputs
- Date From
date_fromdateOptional date in YYYY-MM-DD format.
- Date To
date_todateOptional date in YYYY-MM-DD format.
- Min Claim Age Days
min_claim_age_daysnumberrequiredRequired numeric value.
Default:
50 - Min Group Orders
min_group_ordersnumberrequiredRequired numeric value.
Default:
8 - Top N
top_nnumberrequiredRequired numeric value.
Default:
15
Outputs
successSuccessdate_fromDate Fromdate_toDate Toline_countLine Countpaid_line_countPaid Line Countunpaid_line_countUnpaid Line CountrevenueRevenuecostCostgp_dollarsGp Dollarsgp_pctGp Pctnegative_pctNegative Pctbelow_15_pctBelow 15 Pctbelow_30_pctBelow 30 Pctby_payerBy Payerby_hcpcsBy Hcpcssku_opportunitiesSku OpportunitieserrorError
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"min_claim_age_days",
"min_group_orders",
"top_n"
],
"properties": {
"top_n": {
"type": "number",
"default": 15,
"description": "Required numeric value.",
"x-workflow-field-type": "number"
},
"date_to": {
"type": "string",
"format": "date",
"description": "Optional date in YYYY-MM-DD format.",
"x-workflow-field-type": "date"
},
"date_from": {
"type": "string",
"format": "date",
"description": "Optional date in YYYY-MM-DD format.",
"x-workflow-field-type": "date"
},
"min_group_orders": {
"type": "number",
"default": 8,
"description": "Required numeric value.",
"x-workflow-field-type": "number"
},
"min_claim_age_days": {
"type": "number",
"default": 50,
"description": "Required numeric value.",
"x-workflow-field-type": "number"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"cost": {},
"error": {},
"gp_pct": {},
"date_to": {},
"revenue": {},
"success": {},
"by_hcpcs": {},
"by_payer": {},
"date_from": {},
"gp_dollars": {},
"line_count": {},
"below_15_pct": {},
"below_30_pct": {},
"negative_pct": {},
"paid_line_count": {},
"sku_opportunities": {},
"unpaid_line_count": {}
},
"additionalProperties": true
}