<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="7935d7dc-895b-4aae-8917-761cb252884f" />
  <meta>
    <lastUpdated value="2019-03-24T20:35:32.4193799+00:00" />
  </meta>
  <url value="http://rivta.se/fhir/StructureDefinition/se-core-vitalsigns-v1/PoCObservationTobaksbruk" />
  <name value="PoCObservationTobaksbruk" />
  <status value="draft" />
  <date value="2019-03-24T20:35:33.3054774+00:00" />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="410515003" />
    <uri value="http://browser.ihtsdotools.org/?perspective=full&amp;conceptId1=410515003&amp;edition=se-edition&amp;release=v20171130&amp;server=https://prod-browser-exten.ihtsdotools.org/api/snomed&amp;langRefset=46011000052107" />
    <name value="Känd förekomst" />
    <comment value="NI kod för känd förekomst av observation, gäller all använding av FHIR observation" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Levnadsvanor Tobaksbruk" />
    </element>
    <element id="Observation.meta.lastUpdated">
      <path value="Observation.meta.lastUpdated" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/registrationTime" />
      </mapping>
    </element>
    <element id="Observation.meta.extension">
      <path value="Observation.meta.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.meta.Extension:source">
      <path value="Observation.meta.extension" />
      <sliceName value="source" />
      <type>
        <code value="Extension" />
        <profile value="http://rivta.se/fhir/StructureDefinition/core/se-core-extentions/Source-v1" />
      </type>
    </element>
    <element id="Observation.implicitRules">
      <path value="Observation.implicitRules" />
      <max value="0" />
    </element>
    <element id="Observation.language">
      <path value="Observation.language" />
      <max value="0" />
    </element>
    <element id="Observation.text">
      <path value="Observation.text" />
      <max value="0" />
    </element>
    <element id="Observation.contained">
      <path value="Observation.contained" />
      <max value="0" />
    </element>
    <element id="Observation.extension">
      <path value="Observation.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.extension:Dokumentationstidpunkt">
      <path value="Observation.extension" />
      <sliceName value="Dokumentationstidpunkt" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Dokumentationstid" />
      </type>
    </element>
    <element id="Observation.extension:Negation">
      <path value="Observation.extension" />
      <sliceName value="Negation" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://example.org/fhir/StructureDefinition/Negation" />
      </type>
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/id" />
      </mapping>
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/relation/referredInformation/id and getObservations/observationBody/relation/type = refererar till" />
      </mapping>
    </element>
    <element id="Observation.status">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
        <valueString value="default: final" />
      </extension>
      <path value="Observation.status" />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently va" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <label value="Typ av tobaksbruk" />
      <code>
        <system value="kv-typ av tobaksbruk" />
      </code>
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;Här lägger vi också skala från getObservation 1.0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/type and getObservations/observationBody/scale" />
      </mapping>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <fixedCoding>
        <system value="kv-typ av tobaksbruk" />
        <code value="5568007: CigarettrökareI 2302008: PiprökareI 9978006: CigarrökareI 698289004: VattenpipsrökareI 228504007: Snusare" />
        <display value="Typ av tubaksbruk" />
      </fixedCoding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/patient/id" />
      </mapping>
    </element>
    <element id="Observation.subject.identifier">
      <path value="Observation.subject.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier:Personnummer">
      <path value="Observation.subject.identifier" />
      <sliceName value="Personnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.129.2.1.3.1" />
      </fixedIdentifier>
    </element>
    <element id="Observation.subject.identifier:Personnummer.type.coding.code">
      <path value="Observation.subject.identifier.type.coding.code" />
      <fixedCode value="PN" />
    </element>
    <element id="Observation.subject.identifier:Samordningsnummer">
      <path value="Observation.subject.identifier" />
      <sliceName value="Samordningsnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.129.2.1.3.3" />
      </fixedIdentifier>
    </element>
    <element id="Observation.subject.identifier:Samordningsnummer.type.coding.code">
      <path value="Observation.subject.identifier.type.coding.code" />
      <fixedCode value="PN" />
    </element>
    <element id="Observation.subject.identifier:NationelltReservnummer">
      <path value="Observation.subject.identifier" />
      <sliceName value="NationelltReservnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.74.9.1" />
      </fixedIdentifier>
    </element>
    <element id="Observation.subject.identifier:NationelltReservnummer.type.coding.code">
      <path value="Observation.subject.identifier.type.coding.code" />
      <fixedCode value="PNT" />
    </element>
    <element id="Observation.context">
      <path value="Observation.context" />
      <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter or episode but still be tied to the context of the encounter or episode (e.g. pre-admission lab tests).&#xD;&#xA;I Poc använder vi episode of care för att förmedla individanpassad vårdprocess id" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/relation/type = relaterat till and getObservations/observationBody/relation/referredInformation/id" />
      </mapping>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/time" />
      </mapping>
    </element>
    <element id="Observation.issued">
      <path value="Observation.issued" />
      <label value="Observationstid" />
      <short value="Date/Time for observation" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository. Motsvarar deltagare typ ..." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/participation/type = utförare samt Hälso- och sjukvårdspersonal, orgnisation, patient, person eller annan person" />
      </mapping>
    </element>
    <element id="Observation.performer.identifier">
      <path value="Observation.performer.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.performer.identifier:HSAid_Personal">
      <path value="Observation.performer.identifier" />
      <sliceName value="HSAid_Personal" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.129.2.1.4.1" />
      </fixedIdentifier>
    </element>
    <element id="Observation.performer.identifier:HSAid_Personal.type.coding.code">
      <path value="Observation.performer.identifier.type.coding.code" />
      <fixedCode value="EI" />
    </element>
    <element id="Observation.performer.identifier:Personnummer">
      <path value="Observation.performer.identifier" />
      <sliceName value="Personnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.129.2.1.3.1" />
      </fixedIdentifier>
    </element>
    <element id="Observation.performer.identifier:Personnummer.type.coding.code">
      <path value="Observation.performer.identifier.type.coding.code" />
      <fixedCode value="PN" />
    </element>
    <element id="Observation.performer.identifier:Samordningsnummer">
      <path value="Observation.performer.identifier" />
      <sliceName value="Samordningsnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.129.2.1.3.3" />
      </fixedIdentifier>
    </element>
    <element id="Observation.performer.identifier:Samordningsnummer.type.coding.code">
      <path value="Observation.performer.identifier.type.coding.code" />
      <fixedCode value="PN" />
    </element>
    <element id="Observation.performer.identifier:NationelltReservnummer">
      <path value="Observation.performer.identifier" />
      <sliceName value="NationelltReservnummer" />
      <fixedIdentifier>
        <system value="urn:oid:1.2.752.74.9.1" />
      </fixedIdentifier>
    </element>
    <element id="Observation.performer.identifier:NationelltReservnummer.type.coding.code">
      <path value="Observation.performer.identifier.type.coding.code" />
      <fixedCode value="PNT" />
    </element>
    <element id="Observation.value[x]:valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <label value="Typ av tobakskonsumtion" />
      <short value="Typ av tobakskonsumtion" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <description value="kv-tobakskonsumtion" />
      </binding>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/value" />
      </mapping>
    </element>
    <element id="Observation.value[x]:valueCodeableConcept.coding">
      <path value="Observation.valueCodeableConcept.coding" />
      <fixedCoding>
        <code value="266919005: har aldrig varit rökareI2101000052103: slutade röka för mer än 6 månader sedanI2111000052101: slutade röka för mindre än 6 månader sedanI428041000124106: sporadisk tobaksrökareI449868002: dagligrökareI228502006: har aldrig använt snus |228503001: före detta snusareI449867007: använder snus iblandI449869005: använder snus dagligen" />
        <display value="Typ av tobakskonsumtion" />
      </fixedCoding>
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.comment">
      <path value="Observation.comment" />
      <label value="sdfdf" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/description" />
      </mapping>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/targetSite" />
      </mapping>
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceMetric" />
        <aggregation value="referenced" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/participation/type = &quot;det som används&quot; samt getObservations/observationBody/participation/resource/type =maskin samt getObservations/observationBody/participation/resource/id" />
      </mapping>
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.related">
      <path value="Observation.related" />
      <max value="1" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/relation/referredInformation/id and getObservations/observationBody/relation/type =  refererar till  53221000052103" />
      </mapping>
    </element>
    <element id="Observation.related.type">
      <path value="Observation.related.type" />
      <comment value="The &quot;derived-from&quot; type is the only logical choice when referencing the QuestionnaireAnswer resource.&#xD;&#xA;(Samband.typ) uppgift i patientjournalen" />
      <fixedCode value="Refererar till" />
    </element>
    <element id="Observation.related.target">
      <path value="Observation.related.target" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
      </type>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <label value="Tobaksförbrukning" />
      <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below. (Referens till journaluppgift)" />
      <max value="1" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/relation/type = består av 53181000052105" />
      </mapping>
    </element>
    <element id="Observation.component.code">
      <path value="Observation.component.code" />
      <fixedCodeableConcept>
        <coding>
          <code value="Per dagIPer vecka" />
        </coding>
      </fixedCodeableConcept>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/type (in related observation)" />
      </mapping>
    </element>
    <element id="Observation.component.value[x]:valueQuantity">
      <path value="Observation.component.valueQuantity" />
      <sliceName value="valueQuantity" />
      <type>
        <code value="Quantity" />
      </type>
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="getObservations/observationBody/value (in related observation)" />
      </mapping>
    </element>
    <element id="Observation.component.dataAbsentReason">
      <path value="Observation.component.dataAbsentReason" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.component.interpretation">
      <path value="Observation.component.interpretation" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
    <element id="Observation.component.referenceRange">
      <path value="Observation.component.referenceRange" />
      <mapping>
        <identity value="rivta-go2.0" />
        <map value="No mapping" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>