<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="digidot-TransactionBundle-no" />
  <text>
    <status value="generated" />
    <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>
  </text>
  <url value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
  <version value="0.1.0" />
  <name value="DigidotTransactionBundleNo" />
  <title value="DigiDOT Transaction Bundle (NO)" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2026-10-27" />
  <publisher value="Novari AS - DigiDOT" />
  <description value="Readiness: [Experimental](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-transactionbundle).&#xA;&#xA;Profile base: FHIR R4 Bundle (http://hl7.org/fhir/StructureDefinition/Bundle).&#xA;&#xA;Draft 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." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="NO" />
    </coding>
  </jurisdiction>
  <purpose value="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." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <short value="Related DigiDOT writes submitted as one FHIR transaction" />
      <definition value="One submission of changes intended to commit together. The Bundle is a transport envelope, not a patient record or a FHIR document." />
      <constraint>
        <key value="dd-txb-1" />
        <severity value="error" />
        <human value="Declare the DigiDOT Transaction Bundle profile in meta.profile, with or without its version." />
        <expression value="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 value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-2" />
        <severity value="error" />
        <human value="Every supplied fullUrl must be unique within this transaction, including across resource versions." />
        <expression value="entry.fullUrl.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-3" />
        <severity value="error" />
        <human value="Do not update or delete the same explicit resource URL more than once in a transaction." />
        <expression value="entry.where(request.method = 'PUT' or request.method = 'DELETE').request.url.isDistinct()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-4" />
        <severity value="error" />
        <human value="Every urn:uuid or urn:oid resource reference in a submitted payload must match a fullUrl in this Bundle." />
        <expression value="entry.resource.descendants().ofType(Reference).reference.where(startsWith('urn:uuid:') or startsWith('urn:oid:')).all($this in %resource.entry.fullUrl)" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <short value="Declare this submission profile" />
      <comment value="Use the proposed canonical URL, optionally followed by |version. DENT must reject unknown or unsupported versions; this declaration does not prove conformance." />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <comment value="Optional source tracking identifier. FHIR transaction processing does not make this a replay or idempotency key. Use the agreed DENT retry protocol." />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <fixedCode value="transaction" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="resource" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="One or more writes that must succeed together" />
      <definition value="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." />
      <min value="1" />
      <constraint>
        <key value="dd-txb-5" />
        <severity value="error" />
        <human value="Use POST, PUT or DELETE; reads, PATCH and operations are outside this submission workflow." />
        <expression value="request.method = 'POST' or request.method = 'PUT' or request.method = 'DELETE'" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-6" />
        <severity value="error" />
        <human value="POST and PUT entries need a resource payload; DELETE entries must not have one." />
        <expression value="(request.method = 'POST' or request.method = 'PUT') = resource.exists()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-7" />
        <severity value="error" />
        <human value="For POST, request.url must be the payload resource type, without an id, query or server base." />
        <expression value="request.method = 'POST' implies (resource.exists() and request.url = resource.type().name)" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-8" />
        <severity value="error" />
        <human value="For PUT, request.url must equal the payload resource type and id: ResourceType/id." />
        <expression value="request.method = 'PUT' implies (resource.id.hasValue() and request.url = (resource.type().name &amp; '/' &amp; resource.id))" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-9" />
        <severity value="error" />
        <human value="For DELETE, use an explicit ResourceType/id from the content catalogue; conditional deletion is not supported." />
        <expression value="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 value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-10" />
        <severity value="error" />
        <human value="DELETE entries do not define a fullUrl for other submitted resources to reference." />
        <expression value="request.method = 'DELETE' implies fullUrl.empty()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-11" />
        <severity value="error" />
        <human value="ifNoneExist is a create condition and may only be supplied on POST." />
        <expression value="request.ifNoneExist.exists() implies request.method = 'POST'" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <short value="Unique identity for reference resolution in this transaction" />
      <comment value="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." />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <short value="Content conforming to a listed DigiDOT or national profile" />
      <comment value="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." />
      <type>
        <code value="Resource" />
      </type>
      <constraint>
        <key value="dd-txb-12" />
        <severity value="error" />
        <human value="Declare at least one permitted DigiDOT or reused national content profile on each payload." />
        <expression value="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|')).exists()" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
      <constraint>
        <key value="dd-txb-13" />
        <severity value="error" />
        <human value="Use a resource type listed in the proposed content profile catalogue." />
        <expression value="type().name in ('AllergyIntolerance' | 'Appointment' | 'ChargeItem' | 'Claim' | 'Composition' | 'Condition' | 'Device' | 'DocumentReference' | 'Encounter' | 'EpisodeOfCare' | 'HealthcareService' | 'Location' | 'MedicationAdministration' | 'MedicationRequest' | 'MedicationStatement' | 'Observation' | 'Organization' | 'Patient' | 'Practitioner' | 'PractitionerRole' | 'Procedure' | 'RelatedPerson' | 'ServiceRequest')" />
        <source value="https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no" />
      </constraint>
    </element>
    <element id="Bundle.entry.request">
      <path value="Bundle.entry.request" />
      <short value="Create, update or delete within the transaction" />
      <comment value="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." />
    </element>
    <element id="Bundle.entry.request.ifMatch">
      <path value="Bundle.entry.request.ifMatch" />
      <comment value="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." />
    </element>
    <element id="Bundle.entry.request.ifNoneExist">
      <path value="Bundle.entry.request.ifNoneExist" />
      <comment value="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." />
    </element>
    <element id="Bundle.entry:AllergyIntolerance">
      <path value="Bundle.entry" />
      <sliceName value="AllergyIntolerance" />
      <short value="AllergyIntolerance create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:AllergyIntolerance.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="AllergyIntolerance" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no" />
      </type>
    </element>
    <element id="Bundle.entry:Appointment">
      <path value="Bundle.entry" />
      <sliceName value="Appointment" />
      <short value="Appointment create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Appointment.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Appointment" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no" />
      </type>
    </element>
    <element id="Bundle.entry:ChargeItem">
      <path value="Bundle.entry" />
      <sliceName value="ChargeItem" />
      <short value="ChargeItem create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:ChargeItem.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="ChargeItem" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no" />
      </type>
    </element>
    <element id="Bundle.entry:Claim">
      <path value="Bundle.entry" />
      <sliceName value="Claim" />
      <short value="Claim create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Claim.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Claim" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no" />
      </type>
    </element>
    <element id="Bundle.entry:Composition">
      <path value="Bundle.entry" />
      <sliceName value="Composition" />
      <short value="Composition create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Composition.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Composition" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no" />
      </type>
    </element>
    <element id="Bundle.entry:Condition">
      <path value="Bundle.entry" />
      <sliceName value="Condition" />
      <short value="Condition create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Condition.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Condition" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no" />
      </type>
    </element>
    <element id="Bundle.entry:Device">
      <path value="Bundle.entry" />
      <sliceName value="Device" />
      <short value="Device create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Device.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Device" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no" />
      </type>
    </element>
    <element id="Bundle.entry:DocumentReference">
      <path value="Bundle.entry" />
      <sliceName value="DocumentReference" />
      <short value="DocumentReference create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:DocumentReference.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="DocumentReference" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference" />
      </type>
    </element>
    <element id="Bundle.entry:Encounter">
      <path value="Bundle.entry" />
      <sliceName value="Encounter" />
      <short value="Encounter create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Encounter.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Encounter" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" />
      </type>
    </element>
    <element id="Bundle.entry:EpisodeOfCare">
      <path value="Bundle.entry" />
      <sliceName value="EpisodeOfCare" />
      <short value="EpisodeOfCare create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:EpisodeOfCare.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="EpisodeOfCare" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no" />
      </type>
    </element>
    <element id="Bundle.entry:HealthcareService">
      <path value="Bundle.entry" />
      <sliceName value="HealthcareService" />
      <short value="HealthcareService create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:HealthcareService.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="HealthcareService" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService" />
      </type>
    </element>
    <element id="Bundle.entry:Location">
      <path value="Bundle.entry" />
      <sliceName value="Location" />
      <short value="Location create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Location.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Location" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Location" />
      </type>
    </element>
    <element id="Bundle.entry:MedicationAdministration">
      <path value="Bundle.entry" />
      <sliceName value="MedicationAdministration" />
      <short value="MedicationAdministration create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:MedicationAdministration.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="MedicationAdministration" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no" />
      </type>
    </element>
    <element id="Bundle.entry:MedicationRequest">
      <path value="Bundle.entry" />
      <sliceName value="MedicationRequest" />
      <short value="MedicationRequest create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:MedicationRequest.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="MedicationRequest" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no" />
      </type>
    </element>
    <element id="Bundle.entry:MedicationStatement">
      <path value="Bundle.entry" />
      <sliceName value="MedicationStatement" />
      <short value="MedicationStatement create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:MedicationStatement.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="MedicationStatement" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no" />
      </type>
    </element>
    <element id="Bundle.entry:Observation">
      <path value="Bundle.entry" />
      <sliceName value="Observation" />
      <short value="Observation create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Observation.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Observation" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no" />
      </type>
    </element>
    <element id="Bundle.entry:Organization">
      <path value="Bundle.entry" />
      <sliceName value="Organization" />
      <short value="Organization create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Organization.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Organization" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
      </type>
    </element>
    <element id="Bundle.entry:Patient">
      <path value="Bundle.entry" />
      <sliceName value="Patient" />
      <short value="Patient create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Patient.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Patient" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no" />
      </type>
    </element>
    <element id="Bundle.entry:Practitioner">
      <path value="Bundle.entry" />
      <sliceName value="Practitioner" />
      <short value="Practitioner create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Practitioner.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Practitioner" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
      </type>
    </element>
    <element id="Bundle.entry:PractitionerRole">
      <path value="Bundle.entry" />
      <sliceName value="PractitionerRole" />
      <short value="PractitionerRole create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:PractitionerRole.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="PractitionerRole" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" />
      </type>
    </element>
    <element id="Bundle.entry:Procedure">
      <path value="Bundle.entry" />
      <sliceName value="Procedure" />
      <short value="Procedure create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:Procedure.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Procedure" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no" />
      </type>
    </element>
    <element id="Bundle.entry:RelatedPerson">
      <path value="Bundle.entry" />
      <sliceName value="RelatedPerson" />
      <short value="RelatedPerson create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:RelatedPerson.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="RelatedPerson" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson" />
      </type>
    </element>
    <element id="Bundle.entry:ServiceRequest">
      <path value="Bundle.entry" />
      <sliceName value="ServiceRequest" />
      <short value="ServiceRequest create or update entries" />
      <comment value="Optional, repeatable, unordered type slice. This selects the applicable content profile without requiring this resource type in every transaction." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:ServiceRequest.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="ServiceRequest" />
        <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no" />
      </type>
    </element>
  </differential>
</StructureDefinition>