<Bundle xmlns="http://hl7.org/fhir">
  <id value="example-digidot-contact-note-allergy-medication" />
  <type value="collection" />
  <entry>
    <fullUrl value="https://example.org/fhir/Patient/example-patient" />
    <resource>
      <Patient>
        <id value="example-patient" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
        </meta>
        <name>
          <family value="Example" />
          <given value="Patient" />
        </name>
      </Patient>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Organization/example-dental-clinic" />
    <resource>
      <Organization>
        <id value="example-dental-clinic" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
        </meta>
        <name value="Example dental clinic" />
      </Organization>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Location/example-dental-location" />
    <resource>
      <Location>
        <id value="example-dental-location" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Location" />
        </meta>
        <name value="Example treatment room" />
        <managingOrganization>
          <reference value="Organization/example-dental-clinic" />
        </managingOrganization>
      </Location>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Encounter/example-digidot-encounter-minimal" />
    <resource>
      <Encounter>
        <id value="example-digidot-encounter-minimal" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" />
        </meta>
        <identifier>
          <system value="urn:novari:example:encounter" />
          <value value="minimal-contact-001" />
        </identifier>
        <status value="finished" />
        <class>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
          <code value="AMB" />
        </class>
        <subject>
          <reference value="Patient/example-patient" />
        </subject>
        <participant>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
              <code value="PPRF" />
            </coding>
          </type>
          <individual>
            <reference value="Practitioner/demo-practitioner-9e6ccd1cc9fa" />
            <type value="Practitioner" />
          </individual>
        </participant>
        <period>
          <start value="2026-09-07T09:45:00+02:00" />
          <end value="2026-09-07T10:00:00+02:00" />
        </period>
        <location>
          <location>
            <reference value="Location/example-dental-location" />
          </location>
        </location>
        <serviceProvider>
          <reference value="Organization/example-dental-clinic" />
        </serviceProvider>
      </Encounter>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Practitioner/demo-practitioner-9e6ccd1cc9fa" />
    <resource>
      <Practitioner>
        <id value="demo-practitioner-9e6ccd1cc9fa" />
        <meta>
          <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        </meta>
        <identifier>
          <system value="urn:oid:2.16.578.1.12.4.1.4.4" />
          <value value="123456789" />
        </identifier>
        <active value="true" />
      </Practitioner>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/AllergyIntolerance/contact-note-reported-allergy" />
    <resource>
      <AllergyIntolerance>
        <id value="contact-note-reported-allergy" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no" />
        </meta>
        <identifier>
          <system value="https://novari.no/fhir/digidot/identifier/allergy-intolerance" />
          <value value="contact-note-allergy-example-001" />
        </identifier>
        <clinicalStatus>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" />
            <code value="active" />
            <display value="Active" />
          </coding>
        </clinicalStatus>
        <verificationStatus>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" />
            <code value="confirmed" />
            <display value="Confirmed" />
          </coding>
        </verificationStatus>
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <version value="http://snomed.info/sct/51000202101/version/20260915" />
            <code value="111088007" />
            <display value="Latex (substance)" />
          </coding>
        </code>
        <patient>
          <reference value="Patient/example-patient" />
        </patient>
        <encounter>
          <reference value="Encounter/example-digidot-encounter-minimal" />
        </encounter>
        <recordedDate value="2026-09-07T09:50:00+02:00" />
        <recorder>
          <reference value="Practitioner/demo-practitioner-9e6ccd1cc9fa" />
          <type value="Practitioner" />
        </recorder>
        <asserter>
          <reference value="Practitioner/demo-practitioner-9e6ccd1cc9fa" />
          <type value="Practitioner" />
        </asserter>
        <note>
          <text value="The latex allergy is confirmed in a note from the patient's general practitioner." />
        </note>
      </AllergyIntolerance>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/MedicationStatement/contact-note-reported-medication" />
    <resource>
      <MedicationStatement>
        <id value="contact-note-reported-medication" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no" />
        </meta>
        <status value="active" />
        <medicationCodeableConcept>
          <text value="Amlodipine, reported by the patient; product details not confirmed." />
        </medicationCodeableConcept>
        <subject>
          <reference value="Patient/example-patient" />
        </subject>
        <context>
          <reference value="Encounter/example-digidot-encounter-minimal" />
        </context>
        <dateAsserted value="2026-09-07T09:50:00+02:00" />
        <informationSource>
          <reference value="Patient/example-patient" />
        </informationSource>
        <note>
          <text value="Prescribed by medical doctor in Spain." />
        </note>
        <dosage>
          <timing>
            <repeat>
              <frequency value="1" />
              <period value="1" />
              <periodUnit value="d" />
            </repeat>
          </timing>
          <asNeededBoolean value="false" />
          <doseAndRate>
            <doseQuantity>
              <value value="1" />
              <unit value="tablet" />
            </doseQuantity>
          </doseAndRate>
        </dosage>
      </MedicationStatement>
    </resource>
  </entry>
  <entry>
    <fullUrl value="https://example.org/fhir/Composition/contact-note-allergy-medication" />
    <resource>
      <Composition>
        <id value="contact-note-allergy-medication" />
        <meta>
          <profile value="https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|0.4.11" />
        </meta>
        <identifier>
          <system value="urn:novari:example:dental-contact-note" />
          <value value="allergy-medication-note-001" />
        </identifier>
        <status value="final" />
        <type>
          <coding>
            <system value="urn:oid:2.16.578.1.12.4.1.1.9602" />
            <code value="B02-2" />
          </coding>
        </type>
        <subject>
          <reference value="Patient/example-patient" />
        </subject>
        <encounter>
          <reference value="Encounter/example-digidot-encounter-minimal" />
        </encounter>
        <date value="2026-09-07T10:15:00+02:00" />
        <author>
          <reference value="Practitioner/demo-practitioner-9e6ccd1cc9fa" />
          <type value="Practitioner" />
        </author>
        <title value="Dental contact note with allergy and medication context" />
        <section>
          <text>
            <status value="additional" />
            <div xmlns="http://www.w3.org/1999/xhtml">
              <p>Dental examination completed. The existing latex allergy record was reviewed. The patient reported taking amlodipine once daily; product details were not confirmed. The supporting records preserve the allergy information and reported medication use.</p>
            </div>
          </text>
          <entry>
            <reference value="AllergyIntolerance/contact-note-reported-allergy" />
          </entry>
          <entry>
            <reference value="MedicationStatement/contact-note-reported-medication" />
          </entry>
        </section>
      </Composition>
    </resource>
  </entry>
</Bundle>