<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="7791ecd2-0533-4aed-8d23-80554e71e612" />
  <meta>
    <lastUpdated value="2018-11-06T14:33:29.91+00:00" />
  </meta>
  <url value="https://stu3.simplifier.net/StandIN/openehr2fhir_Tobacco_smoking_per_episode_observation" />
  <name value="openehr2fhir_Tobacco_smoking_per_episode_observation" />
  <status value="draft" />
  <date value="2018-11-06T14:33:28.8853205+00:00" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:Status">
      <path value="Observation.component" />
      <sliceName value="Status" />
      <short value="Övergripande status" />
      <definition value="Nuvarande rökbeteende/status för just denna sorts tobak" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:Status.code.id">
      <path value="Observation.component.code.id" />
      <short value="openEHR element code" />
      <fixedString value="at0089" />
    </element>
    <element id="Observation.component:Status.value[x]:valueCodeableConcept">
      <path value="Observation.component.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <description value="OE_SE_Rokning_OvergrppandeStatus" />
        <valueSetUri value="https://stu3.simplifier.net/StandIN/ValueSet/OE_SE_Rokning_OvergrppandeStatus" />
      </binding>
    </element>
    <element id="Observation.component:OverallDescription">
      <path value="Observation.component" />
      <sliceName value="OverallDescription" />
      <short value="Övergripande beskrivning" />
      <definition value="Beskrivande sammanfattning av en individs rökvanor och rökhistorik." />
      <max value="1" />
    </element>
    <element id="Observation.component:OverallDescription.code.id">
      <path value="Observation.component.code.id" />
      <fixedString value="at0043" />
    </element>
    <element id="Observation.component:OverallDescription.value[x]:valueString">
      <path value="Observation.component.valueString" />
      <sliceName value="valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:RegularSmokingCommenced">
      <path value="Observation.component" />
      <sliceName value="RegularSmokingCommenced" />
      <short value="Började röka regelbundet" />
      <definition value="Datum, eller del av datum när individen först började röka någon sorts tobak regelbundet, men inte dagligen" />
      <max value="1" />
    </element>
    <element id="Observation.component:RegularSmokingCommenced.code.id">
      <path value="Observation.component.code.id" />
      <fixedString value="at0015" />
    </element>
    <element id="Observation.component:RegularSmokingCommenced.value[x]:valueDateTime">
      <path value="Observation.component.valueDateTime" />
      <sliceName value="valueDateTime" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.component:DailySmokingCommenced">
      <path value="Observation.component" />
      <sliceName value="DailySmokingCommenced" />
      <max value="1" />
    </element>
    <element id="Observation.component:DailySmokingCommenced.code.id">
      <path value="Observation.component.code.id" />
      <fixedString value="at0080" />
    </element>
    <element id="Observation.component:DailySmokingCommenced.value[x]:valueDateTime">
      <path value="Observation.component.valueDateTime" />
      <sliceName value="valueDateTime" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.component:OverallQuitDate">
      <path value="Observation.component" />
      <sliceName value="OverallQuitDate" />
      <short value="The date when the individual last ceased using tobacco of any type." />
      <comment value="Can be a partial date, for example, only a year. This date could be used by decision support guidance to determine if the individual is at risk of relapse, for example in the first 12 months since quitting." />
      <max value="1" />
    </element>
    <element id="Observation.component:OverallQuitDate.value[x]:valueDateTime">
      <path value="Observation.component.valueDateTime" />
      <sliceName value="valueDateTime" />
      <short value="Overall quit date" />
      <definition value="The date when the individual last ceased using tobacco of any type.&#xD;&#xA;Comment: Can be a partial date, for example, only a year. This date could be used by decision support guidance to determine if the individual is at risk of relapse, for example in the first 12 months since quitting." />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.component:OverallPackYears">
      <path value="Observation.component" />
      <sliceName value="OverallPackYears" />
      <max value="1" />
    </element>
    <element id="Observation.component:OverallPackYears.value[x]:valueQuantity">
      <path value="Observation.component.valueQuantity" />
      <sliceName value="valueQuantity" />
      <short value="Overall pack years" />
      <definition value="Estimate of the cumulative amount for all types of tobacco smoked.&#xD;&#xA;Comment: The definition of a pack can be recorded in the protocol of this archetype using the 'Pack definition' data element." />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Observation.component:OverallComment">
      <path value="Observation.component" />
      <sliceName value="OverallComment" />
      <max value="1" />
    </element>
    <element id="Observation.component:OverallComment.value[x]:valueString">
      <path value="Observation.component.valueString" />
      <sliceName value="valueString" />
      <short value="Overall comment" />
      <definition value="Additional narrative about all tobacco smoking that has not been captured in other fields.&#xD;&#xA;Comment: For example: stopped smoking or reduced amount on becoming pregnant." />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:EpisodeLabel">
      <path value="Observation.component" />
      <sliceName value="EpisodeLabel" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:EpisodeLabel.value[x]">
      <path value="Observation.component.value[x]" />
      <definition value="Identification of an episode of smoking activity - either as a number in a sequence and/or a named event." />
      <comment value="For example: '2' as the second episode within a sequence of episodes; or 'Pregnancy with twins' if describing the smoking activity during a health event such as during a specific pregnancy." />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:StartDate">
      <path value="Observation.component" />
      <sliceName value="StartDate" />
      <short value="Date when this episode commenced." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:StartDate.value[x]:valueDateTime">
      <path value="Observation.component.valueDateTime" />
      <sliceName value="valueDateTime" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.component:EndDate">
      <path value="Observation.component" />
      <sliceName value="EndDate" />
      <short value="Date when this episode ceased." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:EndDate.value[x]:valueDateTime">
      <path value="Observation.component.valueDateTime" />
      <sliceName value="valueDateTime" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.component:Pattern">
      <path value="Observation.component" />
      <sliceName value="Pattern" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:Pattern.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:TypicalUseUnits">
      <path value="Observation.component" />
      <sliceName value="TypicalUseUnits" />
      <short value="Estimate of number of units of the specified type of tobacco consumed." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:TypicalUseUnits.value[x]:valueQuantity">
      <path value="Observation.component.valueQuantity" />
      <sliceName value="valueQuantity" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Observation.component:TypicalUseMass">
      <path value="Observation.component" />
      <sliceName value="TypicalUseMass" />
      <short value="Estimate of the weight of loose leaf tobacco smoked." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:TypicalUseMass.value[x]:valueQuantity">
      <path value="Observation.component.valueQuantity" />
      <sliceName value="valueQuantity" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Observation.component:NumberOfQuitAttempts">
      <path value="Observation.component" />
      <sliceName value="NumberOfQuitAttempts" />
      <short value="Total number of times the individual has attempted to stop smoking the specified type of tobacco within this episode." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:NumberOfQuitAttempts.value[x]:valueQuantity">
      <path value="Observation.component.valueQuantity" />
      <sliceName value="valueQuantity" />
      <type>
        <code value="Quantity" />
      </type>
      <minValueQuantity>
        <value value="0" />
      </minValueQuantity>
    </element>
    <element id="Observation.component:EpisodeComment">
      <path value="Observation.component" />
      <sliceName value="EpisodeComment" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:EpisodeComment.value[x]:valueString">
      <path value="Observation.component.valueString" />
      <sliceName value="valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>