{
  "resourceType": "Bundle",
  "id": "example-digidot-financial-lines",
  "type": "collection",
  "entry": [
    {
      "fullUrl": "https://example.org/fhir/ChargeItem/finance-restoration-line",
      "resource": {
        "resourceType": "ChargeItem",
        "id": "finance-restoration-line",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no|0.3.0"
          ]
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/charge-lines",
            "value": "finance-restoration-line"
          }
        ],
        "status": "billable",
        "code": {
          "text": "Restoration fee"
        },
        "subject": {
          "reference": "Patient/pas-demo"
        },
        "context": {
          "reference": "Encounter/enc-finance-demo-2028"
        },
        "occurrenceDateTime": "2028-08-10T06:30:00+00:00",
        "quantity": {
          "value": 1,
          "unit": "procedure",
          "system": "http://unitsofmeasure.org",
          "code": "1"
        },
        "service": [
          {
            "reference": "Procedure/proc-finance-demo-restoration"
          }
        ],
        "note": [
          {
            "text": "Synthetic price example. The entire fee is NOK 1000 before payer allocation."
          }
        ],
        "extension": [
          {
            "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.totalPriceComponent",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/_datatype",
                "valueString": "MonetaryComponent"
              },
              {
                "url": "type",
                "valueCode": "base"
              },
              {
                "url": "amount",
                "valueMoney": {
                  "value": 1000,
                  "currency": "NOK"
                }
              }
            ]
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Restoration: 1 procedure, total fee NOK 1000 before payer allocation. Synthetic example.</p></div>"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/ChargeItem/finance-time-line",
      "resource": {
        "resourceType": "ChargeItem",
        "id": "finance-time-line",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no|0.3.0"
          ]
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/charge-lines",
            "value": "finance-time-line"
          }
        ],
        "status": "billable",
        "code": {
          "text": "Consultation charged per minute"
        },
        "subject": {
          "reference": "Patient/pas-demo"
        },
        "context": {
          "reference": "Encounter/enc-finance-demo-2028"
        },
        "quantity": {
          "value": 30,
          "unit": "minute",
          "system": "http://unitsofmeasure.org",
          "code": "min"
        },
        "service": [
          {
            "reference": "Procedure/proc-finance-demo-consultation"
          }
        ],
        "note": [
          {
            "text": "Thirty tariff minutes; NOK 900 is the whole line amount, not the price per minute. No reimbursement claim is implied."
          }
        ],
        "occurrencePeriod": {
          "start": "2028-08-10T06:00:00+00:00",
          "end": "2028-08-10T06:30:00+00:00"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.totalPriceComponent",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/_datatype",
                "valueString": "MonetaryComponent"
              },
              {
                "url": "type",
                "valueCode": "base"
              },
              {
                "url": "amount",
                "valueMoney": {
                  "value": 900,
                  "currency": "NOK"
                }
              }
            ]
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Consultation: 30 minutes, total fee NOK 900. Synthetic example; elapsed time alone does not establish billability.</p></div>"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/ChargeItem/finance-xray-line",
      "resource": {
        "resourceType": "ChargeItem",
        "id": "finance-xray-line",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no|0.3.0"
          ]
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/charge-lines",
            "value": "finance-xray-line"
          }
        ],
        "status": "billable",
        "code": {
          "text": "Two intraoral radiographic images"
        },
        "subject": {
          "reference": "Patient/pas-demo"
        },
        "context": {
          "reference": "Encounter/enc-finance-demo-2028"
        },
        "occurrenceDateTime": "2028-08-10T06:30:00+00:00",
        "quantity": {
          "value": 2,
          "unit": "image",
          "system": "http://unitsofmeasure.org",
          "code": "1"
        },
        "service": [
          {
            "reference": "Procedure/proc-finance-demo-radiography"
          }
        ],
        "note": [
          {
            "text": "Count of images acquired in one radiography Procedure. No image binary or Device resource is required to describe this fee."
          }
        ],
        "extension": [
          {
            "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.totalPriceComponent",
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/_datatype",
                "valueString": "MonetaryComponent"
              },
              {
                "url": "type",
                "valueCode": "base"
              },
              {
                "url": "amount",
                "valueMoney": {
                  "value": 300,
                  "currency": "NOK"
                }
              }
            ]
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Radiography: 2 images in one Procedure, total fee NOK 300. Synthetic example.</p></div>"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Coverage/finance-synthetic-coverage",
      "resource": {
        "resourceType": "Coverage",
        "id": "finance-synthetic-coverage",
        "status": "active",
        "beneficiary": {
          "reference": "Patient/pas-demo"
        },
        "payor": [
          {
            "reference": "Organization/finance-synthetic-payer"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Synthetic public-benefit coverage for the example patient. Not evidence of actual eligibility.</p></div>"
        },
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no|0.1.0"
          ]
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/coverage-records",
            "value": "finance-synthetic-coverage"
          }
        ],
        "type": {
          "text": "Synthetic public dental benefit arrangement"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Organization/finance-synthetic-payer",
      "resource": {
        "resourceType": "Organization",
        "id": "finance-synthetic-payer",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
          ]
        },
        "name": "Synthetic public-benefit payer",
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Fictional public-benefit payer, not the identity of Helfo.</p></div>"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Claim/finance-synthetic-claim",
      "resource": {
        "resourceType": "Claim",
        "id": "finance-synthetic-claim",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no|0.3.0"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Synthetic public-benefit claim: NOK 600 requested for the restoration whose full fee is NOK 1000. The fictional tariff is not a Helfo code. Neither approval nor payment is represented. Time and radiography are not claimed here.</p></div>"
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/claims",
            "value": "finance-synthetic-claim"
          }
        ],
        "status": "active",
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/claim-type",
              "code": "oral"
            }
          ]
        },
        "use": "claim",
        "patient": {
          "reference": "Patient/pas-demo"
        },
        "created": "2028-08-10T08:00:00+00:00",
        "insurer": {
          "reference": "Organization/finance-synthetic-payer"
        },
        "provider": {
          "reference": "Organization/org-demo"
        },
        "priority": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/processpriority",
              "code": "normal"
            }
          ]
        },
        "procedure": [
          {
            "sequence": 1,
            "procedureReference": {
              "reference": "Procedure/proc-finance-demo-restoration"
            }
          }
        ],
        "insurance": [
          {
            "sequence": 1,
            "focal": true,
            "coverage": {
              "reference": "Coverage/finance-synthetic-coverage"
            }
          }
        ],
        "item": [
          {
            "sequence": 1,
            "procedureSequence": [
              1
            ],
            "productOrService": {
              "coding": [
                {
                  "system": "https://novari.no/fhir/digidot/CodeSystem/digidot-tariff-code",
                  "version": "0.1.1",
                  "code": "T-DEMO-REST",
                  "display": "Demo restoration fee"
                }
              ]
            },
            "servicedDate": "2028-08-10",
            "quantity": {
              "value": 1
            },
            "net": {
              "value": 600,
              "currency": "NOK"
            },
            "informationSequence": [
              1
            ]
          }
        ],
        "total": {
          "value": 600,
          "currency": "NOK"
        },
        "supportingInfo": [
          {
            "sequence": 1,
            "category": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/claiminformationcategory",
                  "code": "attachment"
                }
              ]
            },
            "valueReference": {
              "reference": "ChargeItem/finance-restoration-line"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Coverage/finance-synthetic-policy",
      "resource": {
        "resourceType": "Coverage",
        "id": "finance-synthetic-policy",
        "status": "active",
        "beneficiary": {
          "reference": "Patient/pas-demo"
        },
        "payor": [
          {
            "reference": "Organization/finance-synthetic-insurer"
          }
        ],
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Synthetic dental insurance coverage for the example patient.</p></div>"
        },
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no|0.1.0"
          ]
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/coverage-records",
            "value": "finance-synthetic-policy"
          }
        ],
        "type": {
          "text": "Synthetic dental insurance"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Organization/finance-synthetic-insurer",
      "resource": {
        "resourceType": "Organization",
        "id": "finance-synthetic-insurer",
        "meta": {
          "profile": [
            "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
          ]
        },
        "name": "Synthetic dental insurer",
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Fictional dental insurer for the insurance alternative.</p></div>"
        }
      }
    },
    {
      "fullUrl": "https://example.org/fhir/Claim/finance-insurance-alternative",
      "resource": {
        "resourceType": "Claim",
        "id": "finance-insurance-alternative",
        "meta": {
          "profile": [
            "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no|0.3.0"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Alternative scenario: a fictional insurer is asked for NOK 400 for the same restoration. Not an additional payment to aggregate with the public-benefit example. This uses an existing demonstration tariff, not an insurer tariff list.</p></div>"
        },
        "identifier": [
          {
            "system": "https://example.org/digidot/claims",
            "value": "finance-insurance-alternative"
          }
        ],
        "status": "active",
        "type": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/claim-type",
              "code": "oral"
            }
          ]
        },
        "use": "claim",
        "patient": {
          "reference": "Patient/pas-demo"
        },
        "created": "2028-08-10T08:00:00+00:00",
        "insurer": {
          "reference": "Organization/finance-synthetic-insurer"
        },
        "provider": {
          "reference": "Organization/org-demo"
        },
        "priority": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/processpriority",
              "code": "normal"
            }
          ]
        },
        "procedure": [
          {
            "sequence": 1,
            "procedureReference": {
              "reference": "Procedure/proc-finance-demo-restoration"
            }
          }
        ],
        "insurance": [
          {
            "sequence": 1,
            "focal": true,
            "coverage": {
              "reference": "Coverage/finance-synthetic-policy"
            }
          }
        ],
        "item": [
          {
            "sequence": 1,
            "procedureSequence": [
              1
            ],
            "productOrService": {
              "coding": [
                {
                  "system": "https://novari.no/fhir/digidot/CodeSystem/digidot-tariff-code",
                  "version": "0.1.1",
                  "code": "T-DEMO-REST",
                  "display": "Demo restoration fee"
                }
              ]
            },
            "servicedDate": "2028-08-10",
            "quantity": {
              "value": 1
            },
            "net": {
              "value": 400,
              "currency": "NOK"
            },
            "informationSequence": [
              1
            ]
          }
        ],
        "total": {
          "value": 400,
          "currency": "NOK"
        },
        "supportingInfo": [
          {
            "sequence": 1,
            "category": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/claiminformationcategory",
                  "code": "attachment"
                }
              ]
            },
            "valueReference": {
              "reference": "ChargeItem/finance-restoration-line"
            }
          }
        ]
      }
    }
  ]
}