{
  "resourceType": "StructureDefinition",
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/ca-bc-eforms-profile-observationSmoking",
  "name": "ObservationSmoking",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta",
        "path": "Observation.meta"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "comment": "Apply \"http://ehealth.bc.ca/fhir/StructureDefinition/ca-bc-eforms-profile-observationSmoking\"",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.implicitRules",
        "path": "Observation.implicitRules",
        "max": "0"
      },
      {
        "id": "Observation.language",
        "path": "Observation.language",
        "max": "0"
      },
      {
        "id": "Observation.text",
        "path": "Observation.text",
        "max": "0"
      },
      {
        "id": "Observation.contained",
        "path": "Observation.contained",
        "max": "0"
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "code": [
          {
            "system": "http://loinc.org"
          }
        ],
        "min": 1
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "code": [
          {
            "code": "72166-2"
          }
        ],
        "min": 1
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForms",
            "map": "fullURL ends with \"Patient/\"+(Patient ID)"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "code": [
          {
            "system": "http://loinc.org"
          }
        ],
        "min": 1
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "code": [
          {
            "code": "LA18976-3",
            "display": "Current every day smoker"
          },
          {
            "code": "LA18977-1",
            "display": "Current some day smoker"
          },
          {
            "code": "LA15920-4",
            "display": "Former smoker"
          },
          {
            "code": "LA18978-9",
            "display": "Never smoker"
          },
          {
            "code": "LA18979-7",
            "display": "Smoker, current status unknown"
          },
          {
            "code": "LA18980-5",
            "display": "Unknown if ever smoked"
          },
          {
            "code": "LA18981-3",
            "display": "Heavy tobacco smoker"
          },
          {
            "code": "LA18982-1",
            "display": "Light tobacco smoker"
          }
        ],
        "min": 1
      }
    ]
  }
}