{
  "payment_type": "patient_deposit",
  "ledger_entry_type": "patient_deposit_apply",
  "authorization": "Confirm the payer's authorization and deposit amount without including clinical information in Payment parameters.",
  "amounts": "Positive integer strings in USD cents, resolved server-side from approved records.",
  "identity": "Authenticate the payer and resolve the Ledger and business record server-side.",
  "idempotency": "Persist one stable key and exact payload per operation. Recover existing operations after timeouts.",
  "concurrency": "Serialize application approvals per record; the apply entry condition prevents a negative available balance.",
  "settlement": "Verify Payment status on the server. Never post native settlement entries manually.",
  "domain_rules": {
    "Coverage changes": "Confirm final patient responsibility in the billing system before applying the deposit.",
    "Third-party payer": "Verify who may pay for the appointment and keep that authorization in your application.",
    "Clinical data": "Use opaque identifiers. Do not put diagnoses or treatment notes in the Payment's parameters."
  }
}
