{
  "resourceType": "StructureDefinition",
  "id": "7935d7dc-895b-4aae-8917-761cb252884f",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2018-06-05T17:35:43.959+00:00"
  },
  "url": "http://rivta.se/fhir/StructureDefinition/se-core-vitalsigns-v1/Observation",
  "name": "PoCObservation",
  "status": "draft",
  "date": "2018-06-05T17:35:42.409Z",
  "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",
      "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.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.identifier",
        "path": "Observation.identifier",
        "min": 1,
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/id"
          }
        ]
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "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",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "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.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location",
            "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/Encounter",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
            "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]",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/time"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "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/Organization",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location",
            "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:vardgivare",
        "path": "Observation.performer.identifier",
        "sliceName": "vardgivare",
        "short": "Avser vårdgivare enligt PDL",
        "min": 1,
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.4.1"
        },
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/referredInformation/informationOwner/id"
          }
        ]
      },
      {
        "id": "Observation.performer.identifier:vardgivare.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "EN"
      },
      {
        "id": "Observation.performer.identifier:vardenhet",
        "path": "Observation.performer.identifier",
        "sliceName": "vardenhet",
        "short": "Avser vårdenhet enligt PDL",
        "min": 1,
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.4.1"
        }
      },
      {
        "id": "Observation.performer.identifier:vardenhet.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "XX"
      },
      {
        "id": "Observation.performer.identifier:HSAid_Organisation",
        "path": "Observation.performer.identifier",
        "sliceName": "HSAid_Organisation",
        "fixedIdentifier": {
          "system": "urn:oid:1.2.752.129.2.1.4.1"
        }
      },
      {
        "id": "Observation.performer.identifier:HSAid_Organisation.type.coding.code",
        "path": "Observation.performer.identifier.type.coding.code",
        "fixedCode": "PRN"
      },
      {
        "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]",
        "path": "Observation.value[x]",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/value"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "label": "sdfdf",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/description"
          }
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/targetSite"
          }
        ]
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "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",
        "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",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "No mapping"
          }
        ]
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "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",
        "min": 1
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below. (Referens till journaluppgift)",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/relation/type = består av 53181000052105"
          }
        ]
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "mapping": [
          {
            "identity": "rivta-go2.0",
            "map": "getObservations/observationBody/type (in related observation)"
          }
        ]
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "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"
          }
        ]
      }
    ]
  }
}