{
  "resourceType": "StructureDefinition",
  "id": "405a61ae-791f-4850-8eac-2c430ef5bc4a1",
  "meta": {
    "lastUpdated": "2022-07-12T11:37:03.5286692+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightCore/v1",
  "version": "1.0.0",
  "name": "ObservationBodyWeightCore",
  "title": "ObservationBodyWeightCore",
  "status": "active",
  "date": "2021-11-19T12:30:41.5923304+00:00",
  "description": "Cambio Core profile for communicating the Body weight. For Use case specific profiles, this profile can be derived for the use case profile to be complient with the Cambio core profile.",
  "purpose": "<< genric type of purpose>>",
  "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/bodyweight",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "definition": "A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "registered | final"
      },
      {
        "id": "Observation.code.coding:BodyWeightCodeSct",
        "path": "Observation.code.coding",
        "sliceName": "BodyWeightCodeSct",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:BodyWeightCodeSct.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.code.coding:BodyWeightCodeSct.code",
        "path": "Observation.code.coding.code",
        "min": 1
      },
      {
        "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 set to temp."
      },
      {
        "id": "Observation.subject.identifier.value",
        "path": "Observation.subject.identifier.value",
        "min": 1
      },
      {
        "id": "Observation.subject.identifier:personnummer",
        "path": "Observation.subject.identifier",
        "sliceName": "personnummer"
      },
      {
        "id": "Observation.subject.identifier:personnummer.system",
        "path": "Observation.subject.identifier.system",
        "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"
      },
      {
        "id": "Observation.subject.identifier:samordningsnummer.system",
        "path": "Observation.subject.identifier.system",
        "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.encounter",
        "path": "Observation.encounter",
        "definition": "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made"
      },
      {
        "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"
        }
      },
      {
        "id": "Observation.performer:PractitionerRole",
        "path": "Observation.performer",
        "sliceName": "PractitionerRole",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer:PractitionerRole.type",
        "path": "Observation.performer.type",
        "min": 1,
        "fixedUri": "PractitionerRole"
      },
      {
        "id": "Observation.performer:Patient",
        "path": "Observation.performer",
        "sliceName": "Patient",
        "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:Practitioner",
        "path": "Observation.performer",
        "sliceName": "Practitioner",
        "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": "The URN of 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",
        "min": 1
      },
      {
        "id": "Observation.performer:Organization",
        "path": "Observation.performer",
        "sliceName": "Organization",
        "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": "The URN of the 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]:valueQuantity",
        "path": "Observation.value[x]",
        "sliceName": "valueQuantity",
        "binding": {
          "strength": "preferred",
          "description": "BodyWeightUnits",
          "valueSet": "https://cambio.codes/snomed/body-weight-unit/v1"
        }
      },
      {
        "id": "Observation.value[x]:valueQuantity.code",
        "path": "Observation.value[x].code",
        "binding": {
          "strength": "required",
          "description": "BodyWeightUnits.",
          "valueSet": "https://fhir.cambio.se/ValueSet/BodyWeightUnits/v1"
        }
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "1"
      }
    ]
  }
}