{
  "resourceType": "StructureDefinition",
  "id": "test-digidot-ChargeItem-no",
  "url": "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-ChargeItem-no",
  "version": "0.1.0-test",
  "name": "TestDigidotChargeItemNo",
  "title": "TEST DigiDot ChargeItem (NO)",
  "status": "draft",
  "date": "2026-05-19",
  "publisher": "Novari AS - DigiDOT",
  "description": "TEST comparison draft. Not for production use. DigiDOT profile for dental fee, tariff and charge lines. Economic coding is kept separate from clinical Procedure.code.",
  "purpose": "Use this profile to represent dental fee, tariff or charge lines separately from clinical Procedure coding. This is test material for comparison and must not be treated as final settlement conformance.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ChargeItem",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ChargeItem",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ChargeItem",
        "path": "ChargeItem"
      },
      {
        "id": "ChargeItem.status",
        "path": "ChargeItem.status",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ChargeItem.code",
        "path": "ChargeItem.code",
        "min": 1,
        "short": "Fee, charge or other financial code.",
        "definition": "Economic code for billing, reimbursement or tariff handling. This is deliberately separate from Procedure.code, which carries the clinical SNOMED CT procedure meaning."
      },
      {
        "id": "ChargeItem.subject",
        "path": "ChargeItem.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.context",
        "path": "ChargeItem.context",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-Encounter-no",
              "http://hl7.org/fhir/StructureDefinition/Encounter",
              "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-EpisodeOfCare-no",
              "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.occurrence[x]",
        "path": "ChargeItem.occurrence[x]",
        "min": 0
      },
      {
        "id": "ChargeItem.performer.actor",
        "path": "ChargeItem.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.quantity",
        "path": "ChargeItem.quantity",
        "min": 0
      },
      {
        "id": "ChargeItem.factorOverride",
        "path": "ChargeItem.factorOverride",
        "min": 0
      },
      {
        "id": "ChargeItem.priceOverride",
        "path": "ChargeItem.priceOverride",
        "min": 0
      },
      {
        "id": "ChargeItem.service",
        "path": "ChargeItem.service",
        "short": "Clinical service that the financial line applies to.",
        "definition": "Reference to the clinical Procedure or Observation that the charge line is derived from when such a link is available. Some administrative or aggregate charge lines may not map one-to-one to a clinical resource.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-Procedure-no",
              "http://novari.no/fhir/digidot/StructureDefinition/test-digidot-Observation-no",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Procedure",
              "http://hl7.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ]
          }
        ]
      }
    ]
  }
}