Hi, I have a scenario where I am trying to model claims data. A claim has a claim id as it’s unique identifier so we have a claim hub, the claim can have multiple versions if it needs to be modified after it has been finalised. The claim version number always starts as 0 and will increment each time the claim is adjusted. Each version of a claim has an associated claim invoice (years ago we used to group invoices under a claim but these days any invoice generates a new claim id so by default the claim invoice number is just a 1.). For each claim invoice the claim can have multiple lines or items so there is a claim invoice line number that starts as 1 and increments for each item on the invoice.
The latest version of our conceptual model has Claim, Claim Invoice and Claim Item as separate concepts so the business key for Claim Invoice would be Claim Id + Claim Version + Claim Invoice Number and the business key for Claim Item would be Claim Id + Claim Version + Claim Invoice Number + Claim Invoice Line Number e.g. 123456789||0||1||1.
Is this valid for a composite business key? Initially we modelled the concepts as Links (linking a claim to something else e.g. the healthcare provider that billed us) with the version, invoice number and invoice line number as dependent child keys as those components have no meaning on their own.