<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="digidot-Claim-no" />
  <url value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
  <version value="0.3.0" />
  <name value="DigidotClaimNo" />
  <title value="DigiDOT Claim (NO)" />
  <status value="draft" />
  <date value="2026-11-23" />
  <publisher value="Novari AS - DigiDOT" />
  <description value="Readiness: [In development](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-claim).&#xA;&#xA;Profile base: FHIR R4 Claim.&#xA;&#xA;A 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 value="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 value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Claim" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Claim" />
  <derivation value="constraint" />
  <differential>
    <element id="Claim">
      <path value="Claim" />
      <short value="Dental tariff claim to a benefit payer or insurer" />
      <definition value="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." />
      <constraint>
        <key value="dd-fin-money-complete" />
        <severity value="error" />
        <human value="Every supplied Money must state both its value and currency. Missing amounts must not be represented as zero." />
        <expression value="descendants().ofType(Money).all(value.exists() and currency.exists())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-procedure-sequence" />
        <severity value="error" />
        <human value="Every item procedureSequence must identify a procedure listed in the same Claim." />
        <expression value="item.procedureSequence.subsetOf(procedure.sequence)" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-unique-procedure" />
        <severity value="error" />
        <human value="Procedure sequence numbers must be unique within the Claim." />
        <expression value="procedure.sequence.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-unique-item" />
        <severity value="error" />
        <human value="Item sequence numbers must be unique within the Claim." />
        <expression value="item.sequence.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-information-sequence" />
        <severity value="error" />
        <human value="Every item informationSequence must identify a ChargeItem attachment entry, not a benefit-ground entry." />
        <expression value="item.informationSequence.subsetOf(supportingInfo.where(category.coding.where(system = 'http://terminology.hl7.org/CodeSystem/claiminformationcategory' and code = 'attachment').exists()).sequence)" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-unique-information" />
        <severity value="error" />
        <human value="Supporting information sequence numbers must be unique." />
        <expression value="supportingInfo.sequence.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-unique-diagnosis" />
        <severity value="error" />
        <human value="Diagnosis sequence numbers must be unique." />
        <expression value="diagnosis.sequence.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-quantity-positive" />
        <severity value="error" />
        <human value="Every tariff quantity must be greater than zero." />
        <expression value="item.all(quantity.value &gt; 0)" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <constraint>
        <key value="dd-claim-currency" />
        <severity value="error" />
        <human value="All claim unit prices must use one currency." />
        <expression value="item.unitPrice.currency.distinct().count() = 1" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.implicitRules">
      <path value="Claim.implicitRules" />
      <comment value="The shared exchange rules apply; no additional implicit processing rules are used." />
      <max value="0" />
    </element>
    <element id="Claim.contained">
      <path value="Claim.contained" />
      <comment value="Referenced resources are stored separately and linked using literal references." />
      <max value="0" />
    </element>
    <element id="Claim.extension">
      <path value="Claim.extension" />
      <comment value="No resource-level extensions are defined for this financial draft." />
      <max value="0" />
    </element>
    <element id="Claim.modifierExtension">
      <path value="Claim.modifierExtension" />
      <comment value="No resource-level modifier extensions are defined for this financial draft." />
      <max value="0" />
    </element>
    <element id="Claim.identifier">
      <path value="Claim.identifier" />
      <short value="Stable identifier of the financial record in the source system" />
      <definition value="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." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.identifier.system">
      <path value="Claim.identifier.system" />
      <min value="1" />
    </element>
    <element id="Claim.identifier.value">
      <path value="Claim.identifier.value" />
      <min value="1" />
    </element>
    <element id="Claim.status">
      <path value="Claim.status" />
      <comment value="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 ." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.type">
      <path value="Claim.type" />
      <short value="Oral health claim type" />
      <comment value="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." />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/claim-type" />
          <code value="oral" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Claim.type.coding">
      <path value="Claim.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.subType">
      <path value="Claim.subType" />
      <max value="0" />
    </element>
    <element id="Claim.use">
      <path value="Claim.use" />
      <comment value="This compact profile records actual claims; preauthorisation and estimates are outside its scope." />
      <min value="1" />
      <max value="1" />
      <fixedCode value="claim" />
    </element>
    <element id="Claim.patient">
      <path value="Claim.patient" />
      <comment value="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." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
      </type>
      <constraint>
        <key value="claim-patient-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.patient.reference">
      <path value="Claim.patient.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.patient.identifier">
      <path value="Claim.patient.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.billablePeriod">
      <path value="Claim.billablePeriod" />
      <max value="0" />
    </element>
    <element id="Claim.created">
      <path value="Claim.created" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.enterer">
      <path value="Claim.enterer" />
      <definition value="Individual who created the claim, predetermination or preauthorization." />
      <comment value="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." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" />
      </type>
      <constraint>
        <key value="claim-enterer-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.enterer.reference">
      <path value="Claim.enterer.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.enterer.identifier">
      <path value="Claim.enterer.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.insurer">
      <path value="Claim.insurer" />
      <definition value="The public benefit payer or insurer to whom the claim is addressed. Use its actual Organization; there is no fixed Helfo-only target." />
      <comment value="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." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
      </type>
      <constraint>
        <key value="claim-insurer-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurer.reference">
      <path value="Claim.insurer.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.insurer.identifier">
      <path value="Claim.insurer.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.provider">
      <path value="Claim.provider" />
      <definition value="The provider which is responsible for the claim, predetermination or preauthorization." />
      <comment value="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." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" />
      </type>
      <constraint>
        <key value="claim-provider-literal" />
        <severity value="error" />
        <human value="A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.provider.reference">
      <path value="Claim.provider.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.provider.identifier">
      <path value="Claim.provider.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.priority">
      <path value="Claim.priority" />
      <short value="Normal processing priority" />
      <comment value="Mandatory in FHIR R4. Send the standard normal code explicitly; no clinician selection or implicit default is needed." />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/processpriority" />
          <code value="normal" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Claim.priority.coding">
      <path value="Claim.priority.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.fundsReserve">
      <path value="Claim.fundsReserve" />
      <max value="0" />
    </element>
    <element id="Claim.related.extension">
      <path value="Claim.related.extension" />
      <max value="0" />
    </element>
    <element id="Claim.related.modifierExtension">
      <path value="Claim.related.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.related.claim">
      <path value="Claim.related.claim" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </type>
      <constraint>
        <key value="dd-claim-related-claim-literal" />
        <severity value="error" />
        <human value="A resource reference must contain a literal reference; identifier-only and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.related.claim.reference">
      <path value="Claim.related.claim.reference" />
      <min value="1" />
    </element>
    <element id="Claim.related.claim.identifier">
      <path value="Claim.related.claim.identifier" />
      <max value="0" />
    </element>
    <element id="Claim.prescription">
      <path value="Claim.prescription" />
      <max value="0" />
    </element>
    <element id="Claim.originalPrescription">
      <path value="Claim.originalPrescription" />
      <max value="0" />
    </element>
    <element id="Claim.payee">
      <path value="Claim.payee" />
      <max value="0" />
    </element>
    <element id="Claim.referral">
      <path value="Claim.referral" />
      <max value="0" />
    </element>
    <element id="Claim.facility">
      <path value="Claim.facility" />
      <max value="0" />
    </element>
    <element id="Claim.careTeam">
      <path value="Claim.careTeam" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo">
      <path value="Claim.supportingInfo" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="category" />
        </discriminator>
        <ordered value="false" />
        <rules value="closed" />
      </slicing>
      <short value="ChargeItem links and optional Helfo benefit ground" />
      <definition value="ChargeItem attachments support the claim lines. A separate optional benefitGround entry records one Helfo innslagspunkt for the claim." />
      <comment value="The 0..1 limit applies to benefitGround, not the whole supportingInfo array. Every claim line still requires one ChargeItem link." />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo.extension">
      <path value="Claim.supportingInfo.extension" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo.modifierExtension">
      <path value="Claim.supportingInfo.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo.category.coding">
      <path value="Claim.supportingInfo.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.supportingInfo.timing[x]">
      <path value="Claim.supportingInfo.timing[x]" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo.reason">
      <path value="Claim.supportingInfo.reason" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo:chargeItem">
      <path value="Claim.supportingInfo" />
      <sliceName value="chargeItem" />
      <short value="Supporting ChargeItem" />
      <min value="1" />
      <max value="*" />
    </element>
    <element id="Claim.supportingInfo:chargeItem.category">
      <path value="Claim.supportingInfo.category" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/claiminformationcategory" />
          <code value="attachment" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Claim.supportingInfo:chargeItem.code">
      <path value="Claim.supportingInfo.code" />
      <max value="0" />
    </element>
    <element id="Claim.supportingInfo:chargeItem.value[x]">
      <path value="Claim.supportingInfo.value[x]" />
      <short value="Reference to the supporting ChargeItem" />
      <comment value="The standard attachment category includes referenced resources. The price is retained in ChargeItem, not copied into this supporting entry." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no" />
      </type>
      <constraint>
        <key value="dd-claim-supportinginfo-value-x-literal" />
        <severity value="error" />
        <human value="A resource reference must contain a literal reference; identifier-only and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.supportingInfo:benefitGround">
      <path value="Claim.supportingInfo" />
      <sliceName value="benefitGround" />
      <short value="Helfo benefit ground (innslagspunkt)" />
      <definition value="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 value="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." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:benefitGround.category">
      <path value="Claim.supportingInfo.category" />
      <comment value="Reuse HL7 other; no DigiDOT category code is introduced." />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/claiminformationcategory" />
          <code value="other" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Claim.supportingInfo:benefitGround.code">
      <path value="Claim.supportingInfo.code" />
      <short value="Helfo innslagspunkt" />
      <definition value="The Helfo dental benefit ground, numbered 1 through 15, with its meaning preserved." />
      <comment value="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." />
      <min value="1" />
      <max value="1" />
      <constraint>
        <key value="dd-claim-benefit-content" />
        <severity value="error" />
        <human value="State the benefit ground in text or with an identified code system and code." />
        <expression value="text.hasValue() or coding.where(system.hasValue() and code.hasValue()).exists()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Claim.supportingInfo:benefitGround.code.coding">
      <path value="Claim.supportingInfo.code.coding" />
      <max value="1" />
    </element>
    <element id="Claim.supportingInfo:benefitGround.code.coding.system">
      <path value="Claim.supportingInfo.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Claim.supportingInfo:benefitGround.code.coding.code">
      <path value="Claim.supportingInfo.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Claim.supportingInfo:benefitGround.value[x]">
      <path value="Claim.supportingInfo.value[x]" />
      <max value="0" />
    </element>
    <element id="Claim.diagnosis.extension">
      <path value="Claim.diagnosis.extension" />
      <max value="0" />
    </element>
    <element id="Claim.diagnosis.modifierExtension">
      <path value="Claim.diagnosis.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.diagnosis.diagnosis[x]">
      <path value="Claim.diagnosis.diagnosis[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no" />
      </type>
      <constraint>
        <key value="dd-claim-diagnosis-diagnosis-x-literal" />
        <severity value="error" />
        <human value="A resource reference must contain a literal reference; identifier-only and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.diagnosis.type">
      <path value="Claim.diagnosis.type" />
      <max value="0" />
    </element>
    <element id="Claim.diagnosis.onAdmission">
      <path value="Claim.diagnosis.onAdmission" />
      <max value="0" />
    </element>
    <element id="Claim.diagnosis.packageCode">
      <path value="Claim.diagnosis.packageCode" />
      <max value="0" />
    </element>
    <element id="Claim.procedure">
      <path value="Claim.procedure" />
      <short value="Performed Procedures referenced by claim lines" />
      <comment value="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." />
      <min value="0" />
    </element>
    <element id="Claim.procedure.extension">
      <path value="Claim.procedure.extension" />
      <max value="0" />
    </element>
    <element id="Claim.procedure.modifierExtension">
      <path value="Claim.procedure.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.procedure.type">
      <path value="Claim.procedure.type" />
      <max value="0" />
    </element>
    <element id="Claim.procedure.date">
      <path value="Claim.procedure.date" />
      <max value="0" />
    </element>
    <element id="Claim.procedure.procedure[x]">
      <path value="Claim.procedure.procedure[x]" />
      <short value="Reference to the performed Procedure" />
      <definition value="The actual Procedure instance. A code alone does not identify the treatment to which a claim line belongs." />
      <comment value="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." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no" />
      </type>
      <constraint>
        <key value="claim-procedure-literal" />
        <severity value="error" />
        <human value="A resource reference must contain a literal reference; identifier-only and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
    </element>
    <element id="Claim.procedure.udi">
      <path value="Claim.procedure.udi" />
      <max value="0" />
    </element>
    <element id="Claim.insurance">
      <path value="Claim.insurance" />
      <comment value="One coverage for the selected payer. Claims to different payers are separate records, even when they concern the same Procedure or ChargeItem." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.insurance.extension">
      <path value="Claim.insurance.extension" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.modifierExtension">
      <path value="Claim.insurance.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.focal">
      <path value="Claim.insurance.focal" />
      <fixedBoolean value="true" />
    </element>
    <element id="Claim.insurance.identifier">
      <path value="Claim.insurance.identifier" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.coverage">
      <path value="Claim.insurance.coverage" />
      <short value="DigiDOT Coverage for the same patient and payer" />
      <comment value="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." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no" />
      </type>
      <constraint>
        <key value="claim-coverage-literal" />
        <severity value="error" />
        <human value="A resource reference must contain a literal reference; identifier-only and contained references are not permitted." />
        <expression value="($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Claim.insurance.coverage.reference">
      <path value="Claim.insurance.coverage.reference" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Claim.insurance.coverage.identifier">
      <path value="Claim.insurance.coverage.identifier" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.businessArrangement">
      <path value="Claim.insurance.businessArrangement" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.preAuthRef">
      <path value="Claim.insurance.preAuthRef" />
      <max value="0" />
    </element>
    <element id="Claim.insurance.claimResponse">
      <path value="Claim.insurance.claimResponse" />
      <max value="0" />
    </element>
    <element id="Claim.accident">
      <path value="Claim.accident" />
      <max value="0" />
    </element>
    <element id="Claim.item">
      <path value="Claim.item" />
      <min value="1" />
    </element>
    <element id="Claim.item.extension">
      <path value="Claim.item.extension" />
      <max value="0" />
    </element>
    <element id="Claim.item.modifierExtension">
      <path value="Claim.item.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Claim.item.careTeamSequence">
      <path value="Claim.item.careTeamSequence" />
      <max value="0" />
    </element>
    <element id="Claim.item.diagnosisSequence">
      <path value="Claim.item.diagnosisSequence" />
      <max value="0" />
    </element>
    <element id="Claim.item.procedureSequence">
      <path value="Claim.item.procedureSequence" />
      <definition value="Sequence number of the related Procedure, when one exists for this tariff line." />
      <comment value="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 value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.informationSequence">
      <path value="Claim.item.informationSequence" />
      <short value="Sequence number linking this line to one ChargeItem" />
      <definition value="The sequence number of the supportingInfo entry whose valueReference identifies the single ChargeItem supporting this claim line." />
      <comment value="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 value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.revenue">
      <path value="Claim.item.revenue" />
      <max value="0" />
    </element>
    <element id="Claim.item.category">
      <path value="Claim.item.category" />
      <max value="0" />
    </element>
    <element id="Claim.item.productOrService">
      <path value="Claim.item.productOrService" />
      <short value="Actual reimbursement or insurance tariff code" />
      <definition value="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." />
      <comment value="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." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.productOrService.coding">
      <path value="Claim.item.productOrService.coding" />
      <min value="1" />
    </element>
    <element id="Claim.item.productOrService.coding.system">
      <path value="Claim.item.productOrService.coding.system" />
      <min value="1" />
    </element>
    <element id="Claim.item.productOrService.coding.code">
      <path value="Claim.item.productOrService.coding.code" />
      <min value="1" />
    </element>
    <element id="Claim.item.modifier">
      <path value="Claim.item.modifier" />
      <max value="0" />
    </element>
    <element id="Claim.item.programCode">
      <path value="Claim.item.programCode" />
      <max value="0" />
    </element>
    <element id="Claim.item.serviced[x]">
      <path value="Claim.item.serviced[x]" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.item.location[x]">
      <path value="Claim.item.location[x]" />
      <max value="0" />
    </element>
    <element id="Claim.item.quantity">
      <path value="Claim.item.quantity" />
      <comment value="Number of units under the claim tariff. Its unit may differ from the price-list unit on ChargeItem." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.quantity.value">
      <path value="Claim.item.quantity.value" />
      <min value="1" />
    </element>
    <element id="Claim.item.unitPrice">
      <path value="Claim.item.unitPrice" />
      <short value="Amount requested per tariff unit" />
      <definition value="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 value="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." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Claim.item.unitPrice.value">
      <path value="Claim.item.unitPrice.value" />
      <min value="1" />
    </element>
    <element id="Claim.item.unitPrice.currency">
      <path value="Claim.item.unitPrice.currency" />
      <min value="1" />
    </element>
    <element id="Claim.item.factor">
      <path value="Claim.item.factor" />
      <max value="0" />
    </element>
    <element id="Claim.item.net">
      <path value="Claim.item.net" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Claim.item.udi">
      <path value="Claim.item.udi" />
      <max value="0" />
    </element>
    <element id="Claim.item.bodySite">
      <path value="Claim.item.bodySite" />
      <max value="0" />
    </element>
    <element id="Claim.item.subSite">
      <path value="Claim.item.subSite" />
      <max value="0" />
    </element>
    <element id="Claim.item.encounter">
      <path value="Claim.item.encounter" />
      <max value="0" />
    </element>
    <element id="Claim.item.detail">
      <path value="Claim.item.detail" />
      <max value="0" />
    </element>
    <element id="Claim.total">
      <path value="Claim.total" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>