{
  "resourceType": "StructureDefinition",
  "id": "777c9578-e85c-4710-aaaf-9cd375f0efc0",
  "meta": {
    "lastUpdated": "2021-05-11T14:02:22.735+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ObservationPainNrsCore/v1",
  "name": "ObservationPainNrsCore",
  "status": "draft",
  "date": "2021-05-11T13:54:29.2808256+00:00",
  "description": "Cambio Core profile for communicating the level of pain using NRS scale  For Use case specific profiles, this profile can be derived for the use case profile to be complient with the Cambio core profile.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.identifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:PainNrsCode",
        "path": "Observation.code.coding",
        "sliceName": "PainNrsCode",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding:PainNrsCode.system",
        "path": "Observation.code.coding.system",
        "comment": "The code is from the UK edition from SnomedCT. However we have decided to reference to the international edition since it will be added there after a request.",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding:PainNrsCode.code",
        "path": "Observation.code.coding.code",
        "definition": "49121000146105 | Numeric rating scale score (observable entity) |",
        "comment": "1104441000000100 Alert Confusion Voice Pain Unresponsive scale score (observable entity) Is published on the British edition of Snomed CT. It is not yet added to the International edition. It is most possible that the code will be added to the International edition and we therefore use the International system uri.",
        "min": 1,
        "fixedCode": "49121000146105"
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "definition": "If the patient has a temporary ID and the system URIs for personnummer and samordningsnummer can not be applied, then use element MUST be fixed to temp."
      },
      {
        "id": "Observation.subject.identifier:personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "personnummer",
        "definition": "Swe Personnummer"
      },
      {
        "id": "Observation.subject.identifier:personnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n\r\nSkatteverket Person-id för någon som är folkbokförd i Sverige enligt SKV704.",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.1"
      },
      {
        "id": "Observation.subject.identifier:personnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "samordningsnummer",
        "definition": "Samordningsnummer 1.2.752.129.2.1.3.3 Ägare: Skatteverket. \r\nPerson-id för någon som inte är eller har varit folkbokförd i Sverige enligt SKV704. Samordningsnummer tilldelas av Skatteverket på begäran av en myndighet."
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.system",
        "path": "Observation.subject.identifier.system",
        "definition": "Samordningsnummer 1.2.752.129.2.1.3.3 Ägare: Skatteverket. \r\nPerson-id för någon som inte är eller har varit folkbokförd i Sverige enligt SKV704. Samordningsnummer tilldelas av Skatteverket på begäran av en myndighet.",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.3"
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "max": "0"
      },
      {
        "id": "Observation.encounter.identifier.system",
        "path": "Observation.encounter.identifier.system",
        "min": 1
      },
      {
        "id": "Observation.encounter.identifier.value",
        "path": "Observation.encounter.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.performer:practitioner",
        "path": "Observation.performer",
        "sliceName": "practitioner",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:practitioner.type",
        "path": "Observation.performer.type",
        "min": 1,
        "fixedUri": "Practitioner"
      },
      {
        "id": "Observation.performer:practitioner.identifier.system",
        "path": "Observation.performer.identifier.system",
        "definition": "Oid for the HSA-ID catalogue",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Observation.performer:practitioner.identifier.value",
        "path": "Observation.performer.identifier.value",
        "definition": "The HSA-ID of the practitioner(staff)",
        "min": 1
      },
      {
        "id": "Observation.performer:patient",
        "path": "Observation.performer",
        "sliceName": "patient",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:patient.type",
        "path": "Observation.performer.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "Observation.performer:practitionerRole",
        "path": "Observation.performer",
        "sliceName": "practitionerRole",
        "definition": "If both practitioner and organization is known PractitionerRole should be used",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:practitionerRole.type",
        "path": "Observation.performer.type",
        "min": 1,
        "fixedUri": "PractitionerRole"
      },
      {
        "id": "Observation.performer:organization",
        "path": "Observation.performer",
        "sliceName": "organization",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:organization.type",
        "path": "Observation.performer.type",
        "min": 1,
        "fixedUri": "organization"
      },
      {
        "id": "Observation.performer:organization.identifier.system",
        "path": "Observation.performer.identifier.system",
        "definition": "Oid for HSA-ID catalogue",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Observation.performer:organization.identifier.value",
        "path": "Observation.performer.identifier.value",
        "definition": "The HSA-ID of the organization(Unit)",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding",
        "path": "Observation.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.system",
        "path": "Observation.value[x].coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept.coding.code",
        "path": "Observation.value[x].coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.loinc.org/ValueSet/?url=http://loinc.org/vs/LL2335-9"
        }
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "max": "1"
      },
      {
        "id": "Observation.note.author[x]",
        "path": "Observation.note.author[x]",
        "max": "0"
      },
      {
        "id": "Observation.note.time",
        "path": "Observation.note.time",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}