{
  "resourceType": "StructureDefinition",
  "id": "7935d7dc-895b-4aae-8917-761cb252884f",
  "meta": {
    "lastUpdated": "2019-03-24T20:35:32.4193799+00:00"
  },
  "url": "http://rivta.se/fhir/StructureDefinition/se-core-vitalsigns-v1/PoCObservationTobaksbruk",
  "name": "PoCObservationTobaksbruk",
  "status": "draft",
  "date": "2019-03-24T20:35:33.3054774+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "410515003",
      "uri": "http://browser.ihtsdotools.org/?perspective=full&conceptId1=410515003&edition=se-edition&release=v20171130&server=https://prod-browser-exten.ihtsdotools.org/api/snomed&langRefset=46011000052107",
      "name": "Känd förekomst",
      "comment": "NI kod för känd förekomst av observation, gäller all använding av FHIR observation"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Levnadsvanor Tobaksbruk"
      },
      {
        "id": "Observation.meta.lastUpdated",
        "path": "Observation.meta.lastUpdated",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/registrationTime"
          }
        ]
      },
      {
        "id": "Observation.meta.extension",
        "path": "Observation.meta.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.meta.Extension:source",
        "path": "Observation.meta.extension",
        "sliceName": "source",
        "type": [
          {
            "code": "Extension",
            "profile": "http://rivta.se/fhir/StructureDefinition/core/se-core-extentions/Source-v1"
          }
        ]
      },
      {
        "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.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:Dokumentationstidpunkt",
        "path": "Observation.extension",
        "sliceName": "Dokumentationstidpunkt",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/Dokumentationstid"
          }
        ]
      },
      {
        "id": "Observation.extension:Negation",
        "path": "Observation.extension",
        "sliceName": "Negation",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://example.org/fhir/StructureDefinition/Negation"
          }
        ]
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/id"
          }
        ]
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/referredInformation/id and getObservations/observationBody/relation/type = refererar till"
          }
        ]
      },
      {
        "id": "Observation.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently va",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "label": "Typ av tobaksbruk",
        "code": [
          {
            "system": "kv-typ av tobaksbruk"
          }
        ],
        "comment": "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.\r\nHär lägger vi också skala från getObservation 1.0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/type and getObservations/observationBody/scale"
          }
        ]
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "fixedCoding": {
          "system": "kv-typ av tobaksbruk",
          "code": "5568007: CigarettrökareI 2302008: PiprökareI 9978006: CigarrökareI 698289004: VattenpipsrökareI 228504007: Snusare",
          "display": "Typ av tubaksbruk"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/patient/id"
          }
        ]
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:Personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "Personnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.3.1"
        }
      },
      {
        "id": "Observation.subject.identifier:Personnummer.type.coding.code",
        "path": "Observation.subject.identifier.type.coding.code",
        "fixedCode": "PN"
      },
      {
        "id": "Observation.subject.identifier:Samordningsnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "Samordningsnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.3.3"
        }
      },
      {
        "id": "Observation.subject.identifier:Samordningsnummer.type.coding.code",
        "path": "Observation.subject.identifier.type.coding.code",
        "fixedCode": "PN"
      },
      {
        "id": "Observation.subject.identifier:NationelltReservnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "NationelltReservnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.74.9.1"
        }
      },
      {
        "id": "Observation.subject.identifier:NationelltReservnummer.type.coding.code",
        "path": "Observation.subject.identifier.type.coding.code",
        "fixedCode": "PNT"
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "comment": "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).\r\nI Poc använder vi episode of care för att förmedla individanpassad vårdprocess id",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/type = relaterat till and getObservations/observationBody/relation/referredInformation/id"
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/time"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "label": "Observationstid",
        "short": "Date/Time for observation",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "comment": "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": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/participation/type = utförare samt Hälso- och sjukvårdspersonal, orgnisation, patient, person eller annan person"
          }
        ]
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.performer.identifier:HSAid_Personal",
        "path": "Observation.performer.identifier",
        "sliceName": "HSAid_Personal",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.4.1"
        }
      },
      {
        "id": "Observation.performer.identifier:HSAid_Personal.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "EI"
      },
      {
        "id": "Observation.performer.identifier:Personnummer",
        "path": "Observation.performer.identifier",
        "sliceName": "Personnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.3.1"
        }
      },
      {
        "id": "Observation.performer.identifier:Personnummer.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "PN"
      },
      {
        "id": "Observation.performer.identifier:Samordningsnummer",
        "path": "Observation.performer.identifier",
        "sliceName": "Samordningsnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.3.3"
        }
      },
      {
        "id": "Observation.performer.identifier:Samordningsnummer.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "PN"
      },
      {
        "id": "Observation.performer.identifier:NationelltReservnummer",
        "path": "Observation.performer.identifier",
        "sliceName": "NationelltReservnummer",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.74.9.1"
        }
      },
      {
        "id": "Observation.performer.identifier:NationelltReservnummer.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "PNT"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "label": "Typ av tobakskonsumtion",
        "short": "Typ av tobakskonsumtion",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "kv-tobakskonsumtion"
        },
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/value"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding",
        "path": "Observation.valueCodeableConcept.coding",
        "fixedCoding": {
          "code": "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": "Typ av tobakskonsumtion"
        }
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "label": "sdfdf",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/description"
          }
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/targetSite"
          }
        ]
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/participation/type = \"det som används\" samt getObservations/observationBody/participation/resource/type =maskin samt getObservations/observationBody/participation/resource/id"
          }
        ]
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "max": "1",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/referredInformation/id and getObservations/observationBody/relation/type =  refererar till  53221000052103"
          }
        ]
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "comment": "The \"derived-from\" type is the only logical choice when referencing the QuestionnaireAnswer resource.\r\n(Samband.typ) uppgift i patientjournalen",
        "fixedCode": "Refererar till"
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "label": "Tobaksförbrukning",
        "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below. (Referens till journaluppgift)",
        "max": "1",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/type = består av 53181000052105"
          }
        ]
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "Per dagIPer vecka"
            }
          ]
        },
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/type (in related observation)"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/value (in related observation)"
          }
        ]
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.component.interpretation",
        "path": "Observation.component.interpretation",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.component.referenceRange",
        "path": "Observation.component.referenceRange",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      }
    ]
  }
}