Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ifrs17-template/Images/QuotaShareReinsurance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ifrs17-template/Images/QuotaShareReinsurance2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,,,,
ReportingNode,Year,Month,,,
CH,2020,12,,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
RP1.1,CF,PR,A,,1000
RP1.1,CF,NIC,A,,-600
RP1.1,CF,AEM,A,,-300
RPR1.1,CF,PR,A,,-300
RPR1.1,CF,NIC,A,,180
RPR1.1,CF,AC,A,,105
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,,,,
ReportingNode,Year,Month,Scenario,,
CH,2020,12,ELR60A70,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
RP1.1,CF,PR,A,,1000
RP1.1,CF,NIC,A,,-700
RP1.1,CF,AEM,A,,-300
RPR1.1,CF,PR,A,,-300
RPR1.1,CF,NIC,A,,210
RPR1.1,CF,AC,A,,105
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,,,,
ReportingNode,Year,Month,Scenario,,
CH,2020,12,ELR60A80,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
RP1.1,CF,PR,A,,1000
RP1.1,CF,NIC,A,,-800
RP1.1,CF,AEM,A,,-300
RPR1.1,CF,PR,A,,-300
RPR1.1,CF,NIC,A,,240
RPR1.1,CF,AC,A,,105
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,,,,
ReportingNode,Year,Month,Scenario,,
CH,2020,12,LR70,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
RP1.1,CF,PR,A,,1000
RP1.1,CF,NIC,A,,-700
RP1.1,CF,AEM,A,,-300
RPR1.1,CF,PR,A,,-300
RPR1.1,CF,NIC,A,,210
RPR1.1,CF,AC,A,,105
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,,,,
ReportingNode,Year,Month,Scenario,,
CH,2020,12,LR80,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
RP1.1,CF,PR,A,,1000
RP1.1,CF,NIC,A,,-800
RP1.1,CF,AEM,A,,-300
RPR1.1,CF,PR,A,,-300
RPR1.1,CF,NIC,A,,240
RPR1.1,CF,AC,A,,105
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
"metadata": {
"authors": [],
"id": "YGWMnwRniU64QZaE2oBrFw",
"kernelspec": {
"display_name": "Formula Framework",
"language": "C#",
"name": "C#"
},
"language_info": {
"file_extension": ".cs",
"mimetype": "text/plain",
"name": "C#"
}
},
"nbformat": 4,
"nbformat_minor": 5,
"cells": [
{
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\">Contractual Service Margin and Loss Component Switch Data Import</span> </p>"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"This is the Data Import notebook for the Contractual Service Margin and Loss Component Switch case.",
"\n"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Set up and data import"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Reference Data and Parameters"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"#!import \"../../Initialization/InitSystemorphRefDataToMemory\""
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Scenarios"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Scenarios.csv\").WithType<Scenario>().WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Data Nodes"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodes_CH.csv\").WithFormat(ImportFormats.DataNode).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodeStates_CH_2020_12.csv\").WithFormat(ImportFormats.DataNodeState).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodeParameters_CH_2020_12.csv\").WithFormat(ImportFormats.DataNodeParameter).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Best Estimate - Loss Ratio 60%"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"### importing first GIC: 2020 12 for fully retrospective calculation and 2021 3 for the current calculation"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Actual_CH_2020_12_BE.csv\").WithFormat(ImportFormats.Actual).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"NominalCashflows_CH_2020_12_BE.csv\").WithFormat(ImportFormats.Cashflow).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Import Scenarios"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Loss Ratio 70%"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Actual_CH_2020_12_LR70.csv\").WithFormat(ImportFormats.Actual).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"NominalCashflows_CH_2020_12_LR70.csv\").WithFormat(ImportFormats.Cashflow).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Loss Ratio 80%"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Actual_CH_2020_12_LR80.csv\").WithFormat(ImportFormats.Actual).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"NominalCashflows_CH_2020_12_LR80.csv\").WithFormat(ImportFormats.Cashflow).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Expected Loss Ratio 60% (BE) Actual 70%"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Actual_CH_2020_12_ELR60A70.csv\").WithFormat(ImportFormats.Actual).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"## Expected Loss Ratio 60% (BE) Actual 80%"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Actual_CH_2020_12_ELR60A80.csv\").WithFormat(ImportFormats.Actual).WithTarget(DataSource).WithActivityLog().ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Initialize Workspace"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
"Workspace.Reset(x => x.ResetInitializationRules().ResetCurrentPartitions());",
"\nWorkspace.InitializeFrom(DataSource);"
],
"metadata": {},
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"source": [
""
],
"metadata": {},
"execution_count": 0,
"outputs": []
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@@Main,,
ReportingNode,Year,Month,Scenario
CH,2020,12
,,
@@SingleDataNodeParameter,,
DataNode,PremiumAllocation,
RP1.1,0.0
,,
@@InterDataNodeParameter,,
DataNode,LinkedDataNode,ReinsuranceCoverage
RP1.1,RPR1.1,0.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@@Main
ReportingNode,Year,Month,Scenario
CH,2020,12,

@@DataNodeState,,
DataNode,State,
RP1.1,Active,
RPR1.1,Active,
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@@Main
ReportingNode
CH
@@InsurancePortfolio
SystemName,DisplayName,ContractualCurrency,LineOfBusiness,ValuationApproach,OciType,
RP1,Insurance Portfolio,USD,ANN,BBA,Default,
@@GroupOfInsuranceContract
SystemName,DisplayName,InsurancePortfolio,AnnualCohort,LiabilityType,Profitability,
RP1.1,Gross Business Reinsured,RP1,2020,LRC,O,
@@ReinsurancePortfolio
SystemName,DisplayName,ContractualCurrency,LineOfBusiness,ValuationApproach,OciType,
RPR1,Reinsurance Portfolio,USD,ANN,BBA,Default,
@@GroupOfReinsuranceContract
SystemName,DisplayName,ReinsurancePortfolio,AnnualCohort,LiabilityType,Profitability,Partner
RPR1.1,Reinsurance Contract,RPR1,2020,LRC,P,PT1
Loading