Loading
保險
處理限制的自訂整合程序

處理限制的自訂整合程序

標準運算式集的設計目的為在「保單限制」內容內管理責任。不過,有些情況需要更專業的計算。在這種情況下,當您需要使用自訂邏輯處理限制時,您可以實作自訂整合程序 (IP) 來增強計算流程。這可讓您更精確地量身打造原則限制的處理方式。

必要版本

檢視支援的版本。

實例

當主要受益人或任何受養人年滿 18 歲且使用「醫療保險」根本產品下的「嚴重疾病」涵蓋範圍時,系統必須確保整體保單層級限制 (已投保金額) 保持不受影響。相反地,系統應僅扣除特定「福利」限制,例如「小計數測試」和涵蓋層級限制。這可確保保保單的總涵蓋範圍金額會保留給其他潛在索賠。

輸入

  • 涵蓋範圍:重大疾病

  • 益處:血栓計數測試

  • 參與者:參與者年滿 16 歲,表示適用次要規則。

  • 入門限制:

    • 「保單保費總額」(SI) 為 $50,000。這是保單下可用的總金額。
    • 「重要疾病涵蓋範圍」的限制為 $5,000。這是可針對重要疾病相關費用索賠的最大金額。
    • 「血栓計數福利」具有 $600 的特定限制。這是可針對血栓計數測試索賠的最大金額。
  • 索賠 (允許金額):「血栓計數測試」的索賠金額為 $120。這是在福利下要求償還的金額。

在此情節下,這是 IP 收到的輸入,類似此範例。

{
  "claimId": "801xx0000004Cc7GAE",
  "claimCoverageId": "1cxx0000004Cc7GAE",
  "adjustedAmount": 120,
  "benefitName": "Platelet Count Test",
  "limitUnitCount": 1,
  "paymentDetailId": "0Rvxx0000004Cc7GAE",
  "PolicyLimitStandings": [
    {
      "policyLimitId": "9QMSG000000A7t34AC",
      "attributeCategory": "Limit - Currency",
      "attributeScope": "Policy",
      "remainingAmount": 50000
    },
    {
      "policyLimitId": "9QMSG000000A7t35AC",
      "attributeCategory": "Limit - Currency",
      "attributeScope": "Coverage",
      "remainingAmount": 5000
    },
    {
      "policyLimitId": "9QMSG000000A7t36AC",
      "attributeCategory": "Limit - Currency",
      "attributeScope": "Benefit",
      "remainingAmount": 600
    }
  ],
  "additionalFields": {
    "participantAge": 16
  }
}

只有在您在「索賠涵蓋範圍付款詳細資料」物件上設定欄位集,並將其對應至涵蓋範圍產品時,您的 IP 才會收到 additionalFields。如需在其他欄位中包含內容資料的詳細資料,請參閱自訂計算中的 內容資料。

規則

如果「涵蓋範圍」為「嚴重疾病」,且 年齡小於 18 歲,請實作下列規則:

  • 請勿減少保單的「已投保金額」。
  • 僅減少「福利」限制和「涵蓋範圍」限制。
  • 將「付款」計算為允許金額的最小值、剩餘「福利」限制,以及剩餘的「涵蓋範圍」限制。
  • 將「已拒絕」金額計算為允許金額與「付款」之間的差異。

未成年人 (16 歲) 消耗與餘額

分類 之前 變更 之後
血栓計數 (益處) $600 −$120 $480
重大疾病 (涵蓋範圍) $5,000 −$120 $4,880
保單保費 $50,000 −$0 $50,000
  • 付款金額:$120 已批准並將支付。

  • 拒絕金額:$0,表示索賠中沒有部分遭到拒絕。

  • 保單限制:整體保單限制保持不受影響且不變。

以下是範例輸出 JSON。

{
  "result": {
    "exceededAmount": 0,
    "exceededCount": 0,
    "insurancePolicyLimitTrackings": [
      {
        "policyLimitId": "9QMSG000000A7t34AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Policy",
        "calcInitialAmount": 50000,
        "postedAmount": 120,
        "remainingAmount": 50000,
        "totalUsedAmount": 0,
        "isLimitExceeded": false
      },
      {
        "policyLimitId": "9QMSG000000A7t35AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Coverage",
        "calcInitialAmount": 5000,
        "postedAmount": 120,
        "remainingAmount": 4880,
        "totalUsedAmount": 120,
        "isLimitExceeded": false
      },
      {
        "policyLimitId": "9QMSG000000A7t36AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Benefit",
        "calcInitialAmount": 600,
        "postedAmount": 120,
        "remainingAmount": 480,
        "totalUsedAmount": 120,
        "isLimitExceeded": false
      }
    ]
  }
}

相反地,針對 19 歲的成人,保單限制的耗用方式如下:

成人 (19 歲) 消耗與餘額

分類 之前 變更 之後
血栓計數 (益處) $600 −$120 $480
重大疾病 (涵蓋範圍) $5,000 −$120 $4,880
保單保費 $50,000 −$120 $49,880

付款金額:$120 已批准並將支付。

以下是成人案例的範例輸出 JSON。

{
  "result": {
    "exceededAmount": 0,
    "exceededCount": 0,
    "insurancePolicyLimitTrackings": [
      {
        "policyLimitId": "9QMSG000000A7t34AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Policy",
        "calcInitialAmount": 50000,
        "postedAmount": 120,
        "remainingAmount": 49880,
        "totalUsedAmount": 120,
        "isLimitExceeded": false
      },
      {
        "policyLimitId": "9QMSG000000A7t35AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Coverage",
        "calcInitialAmount": 5000,
        "postedAmount": 120,
        "remainingAmount": 4880,
        "totalUsedAmount": 120,
        "isLimitExceeded": false
      },
      {
        "policyLimitId": "9QMSG000000A7t36AC",
        "attributeCategory": "Limit - Currency",
        "attributeScope": "Benefit",
        "calcInitialAmount": 600,
        "postedAmount": 120,
        "remainingAmount": 480,
        "totalUsedAmount": 120,
        "isLimitExceeded": false
      }
    ]
  }
}
備註
備註 在您建立自訂整合程序之前,請確定您已啟用 Omnistudio 中繼資料 API 支援。
 
正在載入
Salesforce Help | Article