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