{
  "resourceType": "StructureDefinition",
  "id": "digidot-TransactionBundle-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no",
  "version": "0.1.0",
  "name": "DigidotTransactionBundleNo",
  "title": "DigiDOT Transaction Bundle (NO)",
  "status": "draft",
  "experimental": true,
  "date": "2026-10-27",
  "publisher": "Novari AS - DigiDOT",
  "description": "Readiness: [Experimental](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-transactionbundle).\n\nProfile base: FHIR R4 Bundle (http://hl7.org/fhir/StructureDefinition/Bundle).\n\nDraft submission profile for an EHR to send one or more related DigiDOT resource changes to central storage as a FHIR R4 transaction. Constrains request shape, declared and actual content profiles, explicit target identities and internal URN references. A valid Bundle still requires DENT authorization, patient and reference checks, supported-operation checks and atomic execution. This proposal is not an active server contract.",
  "purpose": "Prevent malformed or ambiguous clinical write submissions while allowing a single resource, related resources, and later updates to existing care records. Group only changes that must succeed together. No Encounter, Composition or Patient entry is required by this Bundle profile; the resource profiles determine their own clinical context. Existing referenced resources need not be resubmitted. The content catalogue describes permitted resource shapes, not the resource types enabled on a particular DENT release. Do not use this profile for document packages, search results, batch processing or transaction responses.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "NO"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Draft DigiDOT transaction submission profile. Submit one or more related writes to the DENT FHIR base endpoint. The standard transaction semantics apply. The receiving service must separately enforce its supported resources, operations, authorization, patient context and storage rules.</p></div>"
  },
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "short": "Related DigiDOT writes submitted as one FHIR transaction",
        "definition": "One submission of changes intended to commit together. The Bundle is a transport envelope, not a patient record or a FHIR document.",
        "constraint": [
          {
            "key": "dd-txb-1",
            "severity": "error",
            "human": "Declare the DigiDOT Transaction Bundle profile in meta.profile, with or without its version.",
            "expression": "meta.profile.where($this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no|')).exists()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-2",
            "severity": "error",
            "human": "Every supplied fullUrl must be unique within this transaction, including across resource versions.",
            "expression": "entry.fullUrl.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-3",
            "severity": "error",
            "human": "Do not update or delete the same explicit resource URL more than once in a transaction.",
            "expression": "entry.where(request.method = 'PUT' or request.method = 'DELETE').request.url.isDistinct()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-4",
            "severity": "error",
            "human": "Every urn:uuid or urn:oid resource reference in a submitted payload must match a fullUrl in this Bundle.",
            "expression": "entry.resource.descendants().ofType(Reference).reference.where(startsWith('urn:uuid:') or startsWith('urn:oid:')).all($this in %resource.entry.fullUrl)",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          }
        ]
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "short": "Declare this submission profile",
        "comment": "Use the proposed canonical URL, optionally followed by |version. DENT must reject unknown or unsupported versions; this declaration does not prove conformance."
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "comment": "Optional source tracking identifier. FHIR transaction processing does not make this a replay or idempotency key. Use the agreed DENT retry protocol."
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "transaction"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "min": 1,
        "short": "One or more writes that must succeed together",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "definition": "An entry is a create, update or delete request. There is no required clinical resource mix or entry ordering. A deployed DENT release may support only a subset of the content catalogue and methods.",
        "constraint": [
          {
            "key": "dd-txb-5",
            "severity": "error",
            "human": "Use POST, PUT or DELETE; reads, PATCH and operations are outside this submission workflow.",
            "expression": "request.method = 'POST' or request.method = 'PUT' or request.method = 'DELETE'",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-6",
            "severity": "error",
            "human": "POST and PUT entries need a resource payload; DELETE entries must not have one.",
            "expression": "(request.method = 'POST' or request.method = 'PUT') = resource.exists()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-7",
            "severity": "error",
            "human": "For POST, request.url must be the payload resource type, without an id, query or server base.",
            "expression": "request.method = 'POST' implies (resource.exists() and request.url = resource.type().name)",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-8",
            "severity": "error",
            "human": "For PUT, request.url must equal the payload resource type and id: ResourceType/id.",
            "expression": "request.method = 'PUT' implies (resource.id.hasValue() and request.url = (resource.type().name & '/' & resource.id))",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-9",
            "severity": "error",
            "human": "For DELETE, use an explicit ResourceType/id from the content catalogue; conditional deletion is not supported.",
            "expression": "request.method = 'DELETE' implies request.url.matches('^(AllergyIntolerance|Appointment|ChargeItem|Claim|Composition|Condition|Device|DocumentReference|Encounter|EpisodeOfCare|HealthcareService|Location|MedicationAdministration|MedicationRequest|MedicationStatement|Observation|Organization|Patient|Practitioner|PractitionerRole|Procedure|RelatedPerson|ServiceRequest)/[A-Za-z0-9.-]{1,64}$')",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-10",
            "severity": "error",
            "human": "DELETE entries do not define a fullUrl for other submitted resources to reference.",
            "expression": "request.method = 'DELETE' implies fullUrl.empty()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-11",
            "severity": "error",
            "human": "ifNoneExist is a create condition and may only be supplied on POST.",
            "expression": "request.ifNoneExist.exists() implies request.method = 'POST'",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          }
        ]
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Unique identity for reference resolution in this transaction",
        "comment": "For a new resource referenced by another entry, assign a unique urn:uuid fullUrl and use that exact value in Reference.reference. Follow the base FHIR fullUrl rules for PUT. A POST without inbound references need not have fullUrl. Existing external resource references do not require an entry. fullUrl is not a source record identifier or a retry key."
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "short": "Content conforming to a listed DigiDOT or national profile",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "constraint": [
          {
            "key": "dd-txb-12",
            "severity": "error",
            "human": "Declare at least one permitted DigiDOT or reused national content profile on each payload.",
            "expression": "meta.profile.where($this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-Location' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-Location|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-Organization' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-Organization|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no|') or $this = 'http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson' or startsWith('http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no|') or $this = 'https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no' or startsWith('https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no|')).exists()",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          },
          {
            "key": "dd-txb-13",
            "severity": "error",
            "human": "Use a resource type listed in the proposed content profile catalogue.",
            "expression": "type().name in ('AllergyIntolerance' | 'Appointment' | 'ChargeItem' | 'Claim' | 'Coverage' | 'Composition' | 'Condition' | 'Device' | 'DocumentReference' | 'Encounter' | 'EpisodeOfCare' | 'HealthcareService' | 'Location' | 'MedicationAdministration' | 'MedicationRequest' | 'MedicationStatement' | 'Observation' | 'Organization' | 'Patient' | 'Practitioner' | 'PractitionerRole' | 'Procedure' | 'RelatedPerson' | 'ServiceRequest')",
            "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no"
          }
        ],
        "comment": "The payload must actually conform to at least one permitted content profile and to applicable profiles it declares. Unknown declarations are not accepted evidence of conformance. The server must load the accepted profile packages and enforce its resource-type/version policy. Referencing a Patient in MPI does not authorize writing to MPI. Actor maintenance, Patient health-group updates and document submission need their own enabled resource workflows."
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "short": "Create, update or delete within the transaction",
        "comment": "Base FHIR already requires request, method and url for transaction entries. Do not POST this Bundle to /Bundle. A DELETE is structurally supported here because BUNDLE-W1 describes W7; DENT must reject it until W7 and deletion-reason handling are enabled."
      },
      {
        "id": "Bundle.entry.request.ifMatch",
        "path": "Bundle.entry.request.ifMatch",
        "comment": "Use a known ETag for version-aware updates when supported by the agreed DENT contract. The profile does not require it for every PUT or DELETE; server policy and actual version comparison are runtime responsibilities."
      },
      {
        "id": "Bundle.entry.request.ifNoneExist",
        "path": "Bundle.entry.request.ifNoneExist",
        "comment": "Optional conditional create query, such as a stable source identifier. Support and uniqueness rules must be agreed with DENT. Matching an existing resource does not update it. This field is not a guarantee of whole-transaction replay."
      },
      {
        "id": "Bundle.entry:AllergyIntolerance",
        "path": "Bundle.entry",
        "sliceName": "AllergyIntolerance",
        "min": 0,
        "max": "*",
        "short": "AllergyIntolerance create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "AllergyIntolerance",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Appointment",
        "path": "Bundle.entry",
        "sliceName": "Appointment",
        "min": 0,
        "max": "*",
        "short": "Appointment create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Appointment.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Appointment",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:ChargeItem",
        "path": "Bundle.entry",
        "sliceName": "ChargeItem",
        "min": 0,
        "max": "*",
        "short": "ChargeItem create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:ChargeItem.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "ChargeItem",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Claim",
        "path": "Bundle.entry",
        "sliceName": "Claim",
        "min": 0,
        "max": "*",
        "short": "Claim create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Claim.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Claim",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Coverage",
        "path": "Bundle.entry",
        "sliceName": "Coverage",
        "min": 0,
        "max": "*",
        "short": "Coverage create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Coverage.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Coverage",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coverage-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Composition",
        "path": "Bundle.entry",
        "sliceName": "Composition",
        "min": 0,
        "max": "*",
        "short": "Composition create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Composition.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Composition",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Condition",
        "path": "Bundle.entry",
        "sliceName": "Condition",
        "min": 0,
        "max": "*",
        "short": "Condition create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Condition.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Condition",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Device",
        "path": "Bundle.entry",
        "sliceName": "Device",
        "min": 0,
        "max": "*",
        "short": "Device create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Device.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Device",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:DocumentReference",
        "path": "Bundle.entry",
        "sliceName": "DocumentReference",
        "min": 0,
        "max": "*",
        "short": "DocumentReference create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:DocumentReference.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DocumentReference",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Encounter",
        "path": "Bundle.entry",
        "sliceName": "Encounter",
        "min": 0,
        "max": "*",
        "short": "Encounter create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Encounter.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Encounter",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:EpisodeOfCare",
        "path": "Bundle.entry",
        "sliceName": "EpisodeOfCare",
        "min": 0,
        "max": "*",
        "short": "EpisodeOfCare create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "EpisodeOfCare",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:HealthcareService",
        "path": "Bundle.entry",
        "sliceName": "HealthcareService",
        "min": 0,
        "max": "*",
        "short": "HealthcareService create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:HealthcareService.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "HealthcareService",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Location",
        "path": "Bundle.entry",
        "sliceName": "Location",
        "min": 0,
        "max": "*",
        "short": "Location create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Location.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Location",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Location"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedicationAdministration",
        "path": "Bundle.entry",
        "sliceName": "MedicationAdministration",
        "min": 0,
        "max": "*",
        "short": "MedicationAdministration create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:MedicationAdministration.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MedicationAdministration",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedicationRequest",
        "path": "Bundle.entry",
        "sliceName": "MedicationRequest",
        "min": 0,
        "max": "*",
        "short": "MedicationRequest create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:MedicationRequest.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MedicationRequest",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MedicationStatement",
        "path": "Bundle.entry",
        "sliceName": "MedicationStatement",
        "min": 0,
        "max": "*",
        "short": "MedicationStatement create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:MedicationStatement.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MedicationStatement",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Observation",
        "path": "Bundle.entry",
        "sliceName": "Observation",
        "min": 0,
        "max": "*",
        "short": "Observation create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Observation.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Observation",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Organization",
        "path": "Bundle.entry",
        "sliceName": "Organization",
        "min": 0,
        "max": "*",
        "short": "Organization create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Organization.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Organization"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "min": 0,
        "max": "*",
        "short": "Patient create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Patient",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Practitioner",
        "path": "Bundle.entry",
        "sliceName": "Practitioner",
        "min": 0,
        "max": "*",
        "short": "Practitioner create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Practitioner.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Practitioner",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:PractitionerRole",
        "path": "Bundle.entry",
        "sliceName": "PractitionerRole",
        "min": 0,
        "max": "*",
        "short": "PractitionerRole create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:PractitionerRole.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "PractitionerRole",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Procedure",
        "path": "Bundle.entry",
        "sliceName": "Procedure",
        "min": 0,
        "max": "*",
        "short": "Procedure create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:Procedure.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Procedure",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:RelatedPerson",
        "path": "Bundle.entry",
        "sliceName": "RelatedPerson",
        "min": 0,
        "max": "*",
        "short": "RelatedPerson create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:RelatedPerson.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "RelatedPerson",
            "profile": [
              "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:ServiceRequest",
        "path": "Bundle.entry",
        "sliceName": "ServiceRequest",
        "min": 0,
        "max": "*",
        "short": "ServiceRequest create or update entries",
        "comment": "Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction."
      },
      {
        "id": "Bundle.entry:ServiceRequest.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "ServiceRequest",
            "profile": [
              "https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no"
            ]
          }
        ]
      }
    ]
  }
}