Skip to content
Merged
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
8 changes: 7 additions & 1 deletion ifrs17/Report/ReportScopes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
"source": [
"public interface BestEstimate: IScope<(ReportIdentity Id, CurrencyType CurrencyType), ReportStorage>, IDataCube<ReportVariable> {",
"\n IDataCube<ReportVariable> BestEstimate => Identity.Id switch {",
"\n { ValuationApproach: ValuationApproaches.PAA } => GetScope<LockedBestEstimate>(Identity).LockedBestEstimate, //TODO we should use the economic basis driver to decide which Economic basis to use",
"\n { ValuationApproach: ValuationApproaches.PAA, LiabilityType: LiabilityTypes.LRC } => GetScope<LockedBestEstimate>(Identity).LockedBestEstimate, //TODO we should use the economic basis driver to decide which Economic basis to use",
"\n { ValuationApproach: ValuationApproaches.BBA, IsOci: true } => GetScope<LockedBestEstimate>(Identity).LockedBestEstimate,",
"\n _ => GetScope<CurrentBestEstimate>(Identity).CurrentBestEstimate };",
"\n}",
Expand Down Expand Up @@ -310,6 +310,7 @@
"source": [
"public interface RiskAdjustment: IScope<(ReportIdentity Id, CurrencyType CurrencyType), ReportStorage>, IDataCube<ReportVariable> {",
"\n IDataCube<ReportVariable> RiskAdjustment => Identity.Id switch {",
"\n { ValuationApproach: ValuationApproaches.PAA, LiabilityType: LiabilityTypes.LRC } => GetScope<LockedRiskAdjustment>(Identity).LockedRiskAdjustment, //TODO we should use the economic basis driver to decide which Economic basis to use",
"\n { ValuationApproach: ValuationApproaches.BBA, IsOci: true } => GetScope<LockedRiskAdjustment>(Identity).LockedRiskAdjustment,",
"\n _ => GetScope<CurrentRiskAdjustment>(Identity).CurrentRiskAdjustment };",
"\n}",
Expand All @@ -322,6 +323,11 @@
"\npublic interface CurrentRiskAdjustment: IScope<(ReportIdentity Id, CurrencyType CurrencyType), ReportStorage>, IDataCube<ReportVariable> {",
"\n IDataCube<ReportVariable> CurrentRiskAdjustment => GetScope<FxData>((Identity.Id, Identity.CurrencyType, EstimateTypes.RA)).FxData",
"\n .Filter((\"LiabilityType\", Identity.Id.LiabilityType), (\"EconomicBasis\", EconomicBases.C));",
"\n}",
"\n",
"\npublic interface NominalRiskAdjustment: IScope<(ReportIdentity Id, CurrencyType CurrencyType), ReportStorage>, IDataCube<ReportVariable> {",
"\n IDataCube<ReportVariable> NominalRiskAdjustment => GetScope<FxData>((Identity.Id, Identity.CurrencyType, EstimateTypes.RA)).FxData",
"\n .Filter((\"LiabilityType\", Identity.Id.LiabilityType), (\"EconomicBasis\", EconomicBases.N));",
"\n}"
],
"metadata": {},
Expand Down