{
  "resourceType": "StructureDefinition",
  "id": "digidot-Claim-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no",
  "version": "0.3.0",
  "name": "DigidotClaimNo",
  "title": "DigiDOT Claim (NO)",
  "status": "draft",
  "date": "2026-11-23",
  "publisher": "Novari AS - DigiDOT",
  "description": "Readiness: [In development](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-claim).\n\nProfile base: FHIR R4 Claim.\n\nA compact dental reimbursement claim to one public benefit payer or insurer. Each tariff line identifies its quantity, unit price and exactly one supporting ChargeItem. Link a performed Procedure when one exists. One optional Helfo benefit ground (innslagspunkt) may apply to the claim. This is not a patient invoice, reimbursement decision or specification of the Helfo submission format.",
  "purpose": "Retain actual reimbursement requests to Helfo or another benefit payer, including insurance claims. Link each tariff line to exactly one ChargeItem and to its performed Procedure when applicable. The requested line amount is unitPrice multiplied by quantity. Keep requests distinct from granted benefits, patient liability and payments received.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Claim",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Claim",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Claim",
        "path": "Claim",
        "constraint": [
          {
            "key": "dd-fin-money-complete",
            "severity": "error",
            "human": "Every supplied Money must state both its value and currency. Missing amounts must not be represented as zero.",
            "expression": "descendants().ofType(Money).all(value.exists() and currency.exists())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-procedure-sequence",
            "severity": "error",
            "human": "Every item procedureSequence must identify a procedure listed in the same Claim.",
            "expression": "item.procedureSequence.subsetOf(procedure.sequence)",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-unique-procedure",
            "severity": "error",
            "human": "Procedure sequence numbers must be unique within the Claim.",
            "expression": "procedure.sequence.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-unique-item",
            "severity": "error",
            "human": "Item sequence numbers must be unique within the Claim.",
            "expression": "item.sequence.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-information-sequence",
            "severity": "error",
            "human": "Every item informationSequence must identify a ChargeItem attachment entry, not a benefit-ground entry.",
            "expression": "item.informationSequence.subsetOf(supportingInfo.where(category.coding.where(system = 'http://terminology.hl7.org/CodeSystem/claiminformationcategory' and code = 'attachment').exists()).sequence)",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-unique-information",
            "severity": "error",
            "human": "Supporting information sequence numbers must be unique.",
            "expression": "supportingInfo.sequence.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-unique-diagnosis",
            "severity": "error",
            "human": "Diagnosis sequence numbers must be unique.",
            "expression": "diagnosis.sequence.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-quantity-positive",
            "severity": "error",
            "human": "Every tariff quantity must be greater than zero.",
            "expression": "item.all(quantity.value > 0)",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          },
          {
            "key": "dd-claim-currency",
            "severity": "error",
            "human": "All claim unit prices must use one currency.",
            "expression": "item.unitPrice.currency.distinct().count() = 1",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ],
        "short": "Dental tariff claim to a benefit payer or insurer",
        "definition": "An actual dental reimbursement claim to one payer under one coverage arrangement. Each flat tariff line has one supporting ChargeItem, tariff code, quantity and unit price. A Procedure is referenced when the priced service has one; an administrative service may have none. Granted benefits, patient liability and payments received are separate information."
      },
      {
        "id": "Claim.implicitRules",
        "path": "Claim.implicitRules",
        "max": "0",
        "comment": "The shared exchange rules apply; no additional implicit processing rules are used."
      },
      {
        "id": "Claim.contained",
        "path": "Claim.contained",
        "max": "0",
        "comment": "Referenced resources are stored separately and linked using literal references."
      },
      {
        "id": "Claim.extension",
        "path": "Claim.extension",
        "max": "0",
        "comment": "No resource-level extensions are defined for this financial draft."
      },
      {
        "id": "Claim.modifierExtension",
        "path": "Claim.modifierExtension",
        "max": "0",
        "comment": "No resource-level modifier extensions are defined for this financial draft."
      },
      {
        "id": "Claim.identifier",
        "path": "Claim.identifier",
        "min": 1,
        "mustSupport": true,
        "short": "Stable identifier of the financial record in the source system",
        "definition": "Business identifier used to recognise the same financial record across submissions and corrections. Repeated delivery must not create another charge or claim. Retain the source system and value; do not use a new identifier for a simple retry."
      },
      {
        "id": "Claim.identifier.system",
        "path": "Claim.identifier.system",
        "min": 1
      },
      {
        "id": "Claim.identifier.value",
        "path": "Claim.identifier.value",
        "min": 1
      },
      {
        "id": "Claim.status",
        "path": "Claim.status",
        "min": 1,
        "max": "1",
        "comment": "Status describes the Claim record, not the payer decision. A denial does not automatically change it. Follow the FHIR R4 financial lifecycle: a draft entered in error can become entered-in-error; an already active erroneous claim is cancelled, with any amended request recorded as a new Claim. Do not overwrite the submitted amount or count cancelled, draft or entered-in-error records as current requests. Cancellation at the payer requires the agreed workflow; setting this field alone does not execute it. See https://hl7.org/fhir/R4/financial-module.html#status ."
      },
      {
        "id": "Claim.type",
        "path": "Claim.type",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/claim-type",
              "code": "oral"
            }
          ]
        },
        "short": "Oral health claim type",
        "comment": "FHIR R4 requires a claim category. DigiDOT uses the standard oral category for dental claims. Send it explicitly; a profile constraint does not insert a default value."
      },
      {
        "id": "Claim.type.coding",
        "path": "Claim.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.subType",
        "path": "Claim.subType",
        "max": "0"
      },
      {
        "id": "Claim.use",
        "path": "Claim.use",
        "min": 1,
        "max": "1",
        "comment": "This compact profile records actual claims; preauthorisation and estimates are outside its scope.",
        "fixedCode": "claim"
      },
      {
        "id": "Claim.patient",
        "path": "Claim.patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient"
            ]
          }
        ],
        "comment": "Reference the MPI-managed Patient using the agreed literal patient reference. Do not create a Patient in DENT as part of the financial submission. Identifier-only and contained references are not permitted. The receiving service checks patient identity and consistency across the linked clinical and financial resources.",
        "constraint": [
          {
            "key": "claim-patient-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.patient.reference",
        "path": "Claim.patient.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.patient.identifier",
        "path": "Claim.patient.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.billablePeriod",
        "path": "Claim.billablePeriod",
        "max": "0"
      },
      {
        "id": "Claim.created",
        "path": "Claim.created",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.enterer",
        "path": "Claim.enterer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole"
            ]
          }
        ],
        "definition": "Individual who created the claim, predetermination or preauthorization.",
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
        "constraint": [
          {
            "key": "claim-enterer-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.enterer.reference",
        "path": "Claim.enterer.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.enterer.identifier",
        "path": "Claim.enterer.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.insurer",
        "path": "Claim.insurer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
            ]
          }
        ],
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage. Identify the actual benefit payer when known. Public dental-service funding must not automatically be represented as Helfo coverage.",
        "constraint": [
          {
            "key": "claim-insurer-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ],
        "mustSupport": true,
        "min": 1,
        "max": "1",
        "definition": "The public benefit payer or insurer to whom the claim is addressed. Use its actual Organization; there is no fixed Helfo-only target."
      },
      {
        "id": "Claim.insurer.reference",
        "path": "Claim.insurer.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.insurer.identifier",
        "path": "Claim.insurer.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.provider",
        "path": "Claim.provider",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole"
            ]
          }
        ],
        "definition": "The provider which is responsible for the claim, predetermination or preauthorization.",
        "comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
        "constraint": [
          {
            "key": "claim-provider-literal",
            "severity": "error",
            "human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.provider.reference",
        "path": "Claim.provider.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.provider.identifier",
        "path": "Claim.provider.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.priority",
        "path": "Claim.priority",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/processpriority",
              "code": "normal"
            }
          ]
        },
        "short": "Normal processing priority",
        "comment": "Mandatory in FHIR R4. Send the standard normal code explicitly; no clinician selection or implicit default is needed."
      },
      {
        "id": "Claim.priority.coding",
        "path": "Claim.priority.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.fundsReserve",
        "path": "Claim.fundsReserve",
        "max": "0"
      },
      {
        "id": "Claim.related.extension",
        "path": "Claim.related.extension",
        "max": "0"
      },
      {
        "id": "Claim.related.modifierExtension",
        "path": "Claim.related.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.related.claim",
        "path": "Claim.related.claim",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
            ]
          }
        ],
        "constraint": [
          {
            "key": "dd-claim-related-claim-literal",
            "severity": "error",
            "human": "A resource reference must contain a literal reference; identifier-only and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.related.claim.reference",
        "path": "Claim.related.claim.reference",
        "min": 1
      },
      {
        "id": "Claim.related.claim.identifier",
        "path": "Claim.related.claim.identifier",
        "max": "0"
      },
      {
        "id": "Claim.prescription",
        "path": "Claim.prescription",
        "max": "0"
      },
      {
        "id": "Claim.originalPrescription",
        "path": "Claim.originalPrescription",
        "max": "0"
      },
      {
        "id": "Claim.payee",
        "path": "Claim.payee",
        "max": "0"
      },
      {
        "id": "Claim.referral",
        "path": "Claim.referral",
        "max": "0"
      },
      {
        "id": "Claim.facility",
        "path": "Claim.facility",
        "max": "0"
      },
      {
        "id": "Claim.careTeam",
        "path": "Claim.careTeam",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo",
        "path": "Claim.supportingInfo",
        "min": 1,
        "max": "*",
        "mustSupport": true,
        "short": "ChargeItem links and optional Helfo benefit ground",
        "definition": "ChargeItem attachments support the claim lines. A separate optional benefitGround entry records one Helfo innslagspunkt for the claim.",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "category"
            }
          ],
          "ordered": false,
          "rules": "closed"
        },
        "comment": "The 0..1 limit applies to benefitGround, not the whole supportingInfo array. Every claim line still requires one ChargeItem link."
      },
      {
        "id": "Claim.supportingInfo.extension",
        "path": "Claim.supportingInfo.extension",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo.modifierExtension",
        "path": "Claim.supportingInfo.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo.category.coding",
        "path": "Claim.supportingInfo.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.supportingInfo.timing[x]",
        "path": "Claim.supportingInfo.timing[x]",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo.reason",
        "path": "Claim.supportingInfo.reason",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo:chargeItem",
        "path": "Claim.supportingInfo",
        "sliceName": "chargeItem",
        "min": 1,
        "max": "*",
        "short": "Supporting ChargeItem"
      },
      {
        "id": "Claim.supportingInfo:chargeItem.category",
        "path": "Claim.supportingInfo.category",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/claiminformationcategory",
              "code": "attachment"
            }
          ]
        }
      },
      {
        "id": "Claim.supportingInfo:chargeItem.code",
        "path": "Claim.supportingInfo.code",
        "max": "0"
      },
      {
        "id": "Claim.supportingInfo:chargeItem.value[x]",
        "path": "Claim.supportingInfo.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no"
            ]
          }
        ],
        "short": "Reference to the supporting ChargeItem",
        "constraint": [
          {
            "key": "dd-claim-supportinginfo-value-x-literal",
            "severity": "error",
            "human": "A resource reference must contain a literal reference; identifier-only and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ],
        "comment": "The standard attachment category includes referenced resources. The price is retained in ChargeItem, not copied into this supporting entry."
      },
      {
        "id": "Claim.supportingInfo:benefitGround",
        "path": "Claim.supportingInfo",
        "sliceName": "benefitGround",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "short": "Helfo benefit ground (innslagspunkt)",
        "definition": "One of Helfo's 15 dental benefit grounds applying to this claim. This is separate from the patient health group and the tariff code.",
        "comment": "If claim lines require different benefit grounds, separate the claims in this compact model. Clinical eligibility and payer rules remain the responsibility of the EHR/payer."
      },
      {
        "id": "Claim.supportingInfo:benefitGround.category",
        "path": "Claim.supportingInfo.category",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/claiminformationcategory",
              "code": "other"
            }
          ]
        },
        "comment": "Reuse HL7 other; no DigiDOT category code is introduced."
      },
      {
        "id": "Claim.supportingInfo:benefitGround.code",
        "path": "Claim.supportingInfo.code",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "short": "Helfo innslagspunkt",
        "definition": "The Helfo dental benefit ground, numbered 1 through 15, with its meaning preserved.",
        "comment": "Source: https://www.helfo.no/tannlege/regelverk-og-takster-for-tannlege/tilstander-som-kan-gi-rett-til-st%C3%B8nad-til-tannbehandling . The code-system identifier and binding remain to be agreed. The inherited FHIR example binding is not the Helfo list. Draft examples use CodeableConcept.text with the official number and label; this is not machine-checkable membership. Do not invent an official Coding.system.",
        "constraint": [
          {
            "key": "dd-claim-benefit-content",
            "severity": "error",
            "human": "State the benefit ground in text or with an identified code system and code.",
            "expression": "text.hasValue() or coding.where(system.hasValue() and code.hasValue()).exists()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.supportingInfo:benefitGround.code.coding",
        "path": "Claim.supportingInfo.code.coding",
        "max": "1"
      },
      {
        "id": "Claim.supportingInfo:benefitGround.code.coding.system",
        "path": "Claim.supportingInfo.code.coding.system",
        "min": 1
      },
      {
        "id": "Claim.supportingInfo:benefitGround.code.coding.code",
        "path": "Claim.supportingInfo.code.coding.code",
        "min": 1
      },
      {
        "id": "Claim.supportingInfo:benefitGround.value[x]",
        "path": "Claim.supportingInfo.value[x]",
        "max": "0"
      },
      {
        "id": "Claim.diagnosis.extension",
        "path": "Claim.diagnosis.extension",
        "max": "0"
      },
      {
        "id": "Claim.diagnosis.modifierExtension",
        "path": "Claim.diagnosis.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.diagnosis.diagnosis[x]",
        "path": "Claim.diagnosis.diagnosis[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
            ]
          }
        ],
        "constraint": [
          {
            "key": "dd-claim-diagnosis-diagnosis-x-literal",
            "severity": "error",
            "human": "A resource reference must contain a literal reference; identifier-only and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ]
      },
      {
        "id": "Claim.diagnosis.type",
        "path": "Claim.diagnosis.type",
        "max": "0"
      },
      {
        "id": "Claim.diagnosis.onAdmission",
        "path": "Claim.diagnosis.onAdmission",
        "max": "0"
      },
      {
        "id": "Claim.diagnosis.packageCode",
        "path": "Claim.diagnosis.packageCode",
        "max": "0"
      },
      {
        "id": "Claim.procedure",
        "path": "Claim.procedure",
        "min": 0,
        "short": "Performed Procedures referenced by claim lines",
        "comment": "A claim can have no Procedure entries. Include the Procedure whenever the priced service has a related performed Procedure; do not invent a clinical Procedure for an administrative service."
      },
      {
        "id": "Claim.procedure.extension",
        "path": "Claim.procedure.extension",
        "max": "0"
      },
      {
        "id": "Claim.procedure.modifierExtension",
        "path": "Claim.procedure.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.procedure.type",
        "path": "Claim.procedure.type",
        "max": "0"
      },
      {
        "id": "Claim.procedure.date",
        "path": "Claim.procedure.date",
        "max": "0"
      },
      {
        "id": "Claim.procedure.procedure[x]",
        "path": "Claim.procedure.procedure[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no"
            ]
          }
        ],
        "short": "Reference to the performed Procedure",
        "comment": "A claim line can select one of these entries through procedureSequence. When its ChargeItem has a Procedure, the claim line must identify the same Procedure. The receiving service checks resolved-reference consistency.",
        "constraint": [
          {
            "key": "claim-procedure-literal",
            "severity": "error",
            "human": "A resource reference must contain a literal reference; identifier-only and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ],
        "definition": "The actual Procedure instance. A code alone does not identify the treatment to which a claim line belongs."
      },
      {
        "id": "Claim.procedure.udi",
        "path": "Claim.procedure.udi",
        "max": "0"
      },
      {
        "id": "Claim.insurance",
        "path": "Claim.insurance",
        "min": 1,
        "max": "1",
        "comment": "One coverage for the selected payer. Claims to different payers are separate records, even when they concern the same Procedure or ChargeItem."
      },
      {
        "id": "Claim.insurance.extension",
        "path": "Claim.insurance.extension",
        "max": "0"
      },
      {
        "id": "Claim.insurance.modifierExtension",
        "path": "Claim.insurance.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.insurance.focal",
        "path": "Claim.insurance.focal",
        "fixedBoolean": true
      },
      {
        "id": "Claim.insurance.identifier",
        "path": "Claim.insurance.identifier",
        "max": "0"
      },
      {
        "id": "Claim.insurance.coverage",
        "path": "Claim.insurance.coverage",
        "comment": "Reference a separately stored DigiDOT Coverage. Reuse the same record across claims under the same arrangement. The receiving service must resolve it and check Coverage.beneficiary against Claim.patient and Coverage.payor against Claim.insurer. Do not infer coverage or treatment entitlement from a health-group code alone.",
        "constraint": [
          {
            "key": "claim-coverage-literal",
            "severity": "error",
            "human": "A resource reference must contain a literal reference; identifier-only and contained references are not permitted.",
            "expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
          }
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no"
            ]
          }
        ],
        "mustSupport": true,
        "short": "DigiDOT Coverage for the same patient and payer"
      },
      {
        "id": "Claim.insurance.coverage.reference",
        "path": "Claim.insurance.coverage.reference",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Claim.insurance.coverage.identifier",
        "path": "Claim.insurance.coverage.identifier",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.insurance.businessArrangement",
        "path": "Claim.insurance.businessArrangement",
        "max": "0"
      },
      {
        "id": "Claim.insurance.preAuthRef",
        "path": "Claim.insurance.preAuthRef",
        "max": "0"
      },
      {
        "id": "Claim.insurance.claimResponse",
        "path": "Claim.insurance.claimResponse",
        "max": "0"
      },
      {
        "id": "Claim.accident",
        "path": "Claim.accident",
        "max": "0"
      },
      {
        "id": "Claim.item",
        "path": "Claim.item",
        "min": 1
      },
      {
        "id": "Claim.item.extension",
        "path": "Claim.item.extension",
        "max": "0"
      },
      {
        "id": "Claim.item.modifierExtension",
        "path": "Claim.item.modifierExtension",
        "max": "0"
      },
      {
        "id": "Claim.item.careTeamSequence",
        "path": "Claim.item.careTeamSequence",
        "max": "0"
      },
      {
        "id": "Claim.item.diagnosisSequence",
        "path": "Claim.item.diagnosisSequence",
        "max": "0"
      },
      {
        "id": "Claim.item.procedureSequence",
        "path": "Claim.item.procedureSequence",
        "mustSupport": true,
        "definition": "Sequence number of the related Procedure, when one exists for this tariff line.",
        "comment": "Include the link whenever the service has a related performed Procedure. A priced form or other administrative service may have no Procedure. Split amounts spanning multiple Procedures into allocated lines.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Claim.item.informationSequence",
        "path": "Claim.item.informationSequence",
        "mustSupport": true,
        "definition": "The sequence number of the supportingInfo entry whose valueReference identifies the single ChargeItem supporting this claim line.",
        "comment": "Always reference one ChargeItem attachment entry, not the optional benefit-ground entry. The patient must match. When the charge has a Procedure, the line must link to that same Procedure. Split requests spanning several ChargeItems into allocated lines.",
        "min": 1,
        "max": "1",
        "short": "Sequence number linking this line to one ChargeItem"
      },
      {
        "id": "Claim.item.revenue",
        "path": "Claim.item.revenue",
        "max": "0"
      },
      {
        "id": "Claim.item.category",
        "path": "Claim.item.category",
        "max": "0"
      },
      {
        "id": "Claim.item.productOrService",
        "path": "Claim.item.productOrService",
        "min": 1,
        "short": "Actual reimbursement or insurance tariff code",
        "definition": "The tariff code used for this claim line, from the actual public payer or insurer code system. This may differ from the optional price code on ChargeItem.",
        "mustSupport": true,
        "comment": "The inherited FHIR example binding is not an adopted Norwegian tariff list. Record the actual system and code; do not substitute a clinical Procedure code for a tariff code."
      },
      {
        "id": "Claim.item.productOrService.coding",
        "path": "Claim.item.productOrService.coding",
        "min": 1
      },
      {
        "id": "Claim.item.productOrService.coding.system",
        "path": "Claim.item.productOrService.coding.system",
        "min": 1
      },
      {
        "id": "Claim.item.productOrService.coding.code",
        "path": "Claim.item.productOrService.coding.code",
        "min": 1
      },
      {
        "id": "Claim.item.modifier",
        "path": "Claim.item.modifier",
        "max": "0"
      },
      {
        "id": "Claim.item.programCode",
        "path": "Claim.item.programCode",
        "max": "0"
      },
      {
        "id": "Claim.item.serviced[x]",
        "path": "Claim.item.serviced[x]",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.item.location[x]",
        "path": "Claim.item.location[x]",
        "max": "0"
      },
      {
        "id": "Claim.item.quantity",
        "path": "Claim.item.quantity",
        "min": 1,
        "mustSupport": true,
        "comment": "Number of units under the claim tariff. Its unit may differ from the price-list unit on ChargeItem.",
        "max": "1"
      },
      {
        "id": "Claim.item.quantity.value",
        "path": "Claim.item.quantity.value",
        "min": 1
      },
      {
        "id": "Claim.item.unitPrice",
        "path": "Claim.item.unitPrice",
        "max": "1",
        "min": 1,
        "mustSupport": true,
        "short": "Amount requested per tariff unit",
        "definition": "The requested reimbursement amount for one tariff unit, with its currency. Multiply by item.quantity.value to obtain the amount requested for this line.",
        "comment": "This is not the full ChargeItem fee, an awarded benefit or a payment. Factor, net and total are excluded to avoid competing amount representations. The EHR must supply the unit price used for the claim and apply the agreed currency rounding when calculating line amounts. The linked ChargeItem.priceOverride is already the total fee for the complete charge; do not copy it as a per-unit claim amount. The claim amount and charge fee need not be equal, and their quantities may use different units."
      },
      {
        "id": "Claim.item.unitPrice.value",
        "path": "Claim.item.unitPrice.value",
        "min": 1
      },
      {
        "id": "Claim.item.unitPrice.currency",
        "path": "Claim.item.unitPrice.currency",
        "min": 1
      },
      {
        "id": "Claim.item.factor",
        "path": "Claim.item.factor",
        "max": "0"
      },
      {
        "id": "Claim.item.net",
        "path": "Claim.item.net",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Claim.item.udi",
        "path": "Claim.item.udi",
        "max": "0"
      },
      {
        "id": "Claim.item.bodySite",
        "path": "Claim.item.bodySite",
        "max": "0"
      },
      {
        "id": "Claim.item.subSite",
        "path": "Claim.item.subSite",
        "max": "0"
      },
      {
        "id": "Claim.item.encounter",
        "path": "Claim.item.encounter",
        "max": "0"
      },
      {
        "id": "Claim.item.detail",
        "path": "Claim.item.detail",
        "max": "0"
      },
      {
        "id": "Claim.total",
        "path": "Claim.total",
        "min": 0,
        "max": "0"
      }
    ]
  }
}