<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-01-30T21:22:27.369+01:00" />
  </meta>
  <url value="http://helse-nord.no/fhir/StructureDefinition/AllergyIntolerance_HN" />
  <version value="1.0" />
  <name value="AllergyIntolerance Helse Nord" />
  <title value="AllergyIntolerance HelseNord" />
  <status value="draft" />
  <date value="2017-09-22T09:22:24.395+02:00" />
  <publisher value="Helse Nord IKT" />
  <description value="Structure definition for the AllergyIntolerance resource used by the Clinical.AllergyIntolerance service." />
  <purpose value="Provides information about patients allergy and/or intolerance to substances, registered in the patients journal EHR." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="AllergyIntolerance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" />
  <derivation value="constraint" />
  <differential>
    <element id="AllergyIntolerance.meta">
      <path value="AllergyIntolerance.meta" />
      <comment value="&lt;sdf-20 validation error placeholder&gt;" />
    </element>
    <element id="AllergyIntolerance.implicitRules">
      <path value="AllergyIntolerance.implicitRules" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.language">
      <path value="AllergyIntolerance.language" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.text">
      <path value="AllergyIntolerance.text" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.identifier">
      <path value="AllergyIntolerance.identifier" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.type">
      <path value="AllergyIntolerance.type" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.category">
      <path value="AllergyIntolerance.category" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.criticality.extension">
      <path value="AllergyIntolerance.criticality.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.criticality.extension:AllergyIntoleranceCriticality">
      <path value="AllergyIntolerance.criticality.extension" />
      <sliceName value="AllergyIntoleranceCriticality" />
      <comment value="&lt;sdf-20 validator placeholder&gt;" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceCriticality_HN" />
      </type>
    </element>
    <element id="AllergyIntolerance.patient">
      <path value="AllergyIntolerance.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://helse-nord.no/fhir/StructureDefinition/Clinical.Patient/Patient_HN" />
      </type>
    </element>
    <element id="AllergyIntolerance.onsetDateTime:onsetDateTime">
      <path value="AllergyIntolerance.onsetDateTime" />
      <sliceName value="onsetDateTime" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="AllergyIntolerance.assertedDate">
      <path value="AllergyIntolerance.assertedDate" />
      <comment value="Replacing recordedDate (DSTU2)." />
    </element>
    <element id="AllergyIntolerance.recorder.extension">
      <path value="AllergyIntolerance.recorder.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.recorder.extension:AllergyIntoleranceRecordedDate">
      <path value="AllergyIntolerance.recorder.extension" />
      <sliceName value="AllergyIntoleranceRecordedDate" />
      <type>
        <code value="Extension" />
        <profile value="http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceRecordedDate_HN" />
      </type>
    </element>
    <element id="AllergyIntolerance.asserter.extension">
      <path value="AllergyIntolerance.asserter.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="AllergyIntolerance.asserter.extension:AllergyIntoleranceSource">
      <path value="AllergyIntolerance.asserter.extension" />
      <sliceName value="AllergyIntoleranceSource" />
      <type>
        <code value="Extension" />
        <profile value="http://helse-nord.no/fhir/StructureDefinition/AllergyIntoleranceSource_HN" />
      </type>
    </element>
    <element id="AllergyIntolerance.lastOccurrence">
      <path value="AllergyIntolerance.lastOccurrence" />
      <max value="0" />
    </element>
    <element id="AllergyIntolerance.reaction">
      <path value="AllergyIntolerance.reaction" />
      <max value="1" />
    </element>
    <element id="AllergyIntolerance.reaction.manifestation.coding.system">
      <path value="AllergyIntolerance.reaction.manifestation.coding.system" />
      <definition value="Kodeverk volven (Reaksjonstyper, OID=7497).&#xD;&#xA;https://volven.no/produkt.asp?id=317787&amp;catID=3&amp;subID=8" />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.1.7497" />
    </element>
  </differential>
</StructureDefinition>