Skip to content

ASR · Insurance

A car changes insurer over the years; each period is an insurance_policies row. A claim names its insurer and must use one of that insurer's partner garages (bengkel rekanan). Code ASR, from asuransi.

R-ASR-01 · A claim that names an insurer and a garage uses one of that insurer's partner garages

Section titled “R-ASR-01 · A claim that names an insurer and a garage uses one of that insurer's partner garages”
  • Status: planned
  • Example: given insurer A partners with garage X but not garage Y, when a claim with insurer A and garage Y is saved, then it is refused.
  • Refusal: none: foreign_key_violation (23503), from insurance_claims_partner_garage_fk.
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_claims, insurer_garages.

R-ASR-02 · A claim code is unique within the organization

Section titled “R-ASR-02 · A claim code is unique within the organization”
  • Status: planned
  • Example: given a claim with a code, when a second claim with the same code is saved in the organization, then it is refused.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_claims.

R-ASR-03 · A policy number is unique per insurer within the organization

Section titled “R-ASR-03 · A policy number is unique per insurer within the organization”
  • Status: planned
  • Example: given insurer A's policy P-001, when a second P-001 for insurer A is saved, then it is refused; P-001 for insurer B is accepted.
  • Refusal: none: unique_violation (23505).
  • Who: every writer.
  • Source: [Ref] Data model V13: insurance_policies.

R-ASR-04 · Reading insurance policies and claims needs insurance:read at the car's pool

Section titled “R-ASR-04 · Reading insurance policies and claims needs insurance:read at the car's pool”
  • Status: planned
  • Example: given a checker at PML, when she reads insurance_claims, then nothing comes back; an asuransi user at PML sees PML's claims.
  • Refusal: none: hidden.
  • Who: super_admin, admin, admin_fleet, asuransi and viewer hold insurance:read.
  • Source: [Ref] Roles, policy matrix.

R-ASR-05 · Adding or changing an insurance policy or claim needs insurance:write at the car's pool

Section titled “R-ASR-05 · Adding or changing an insurance policy or claim needs insurance:write at the car's pool”
  • Status: planned
  • Example: given a maintenance user at PML, when he files a claim for a PML car, then it is refused; an asuransi user at PML may.
  • Refusal: none: insufficient_privilege (42501) on insert; no effect on update.
  • Who: super_admin, admin, admin_fleet and asuransi hold insurance:write.
  • Source: [Ref] Roles, policy matrix.