<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="405a61ae-791f-4850-8eac-2c430ef5bc4a1" />
  <meta>
    <lastUpdated value="2022-07-12T11:37:03.5286692+00:00" />
  </meta>
  <url value="https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightCore/v1" />
  <version value="1.0.0" />
  <name value="ObservationBodyWeightCore" />
  <title value="ObservationBodyWeightCore" />
  <status value="active" />
  <date value="2021-11-19T12:30:41.5923304+00:00" />
  <description value="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 value="&lt;&lt; genric type of purpose&gt;&gt;" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/bodyweight" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <definition value="A larger event of which this particular Observation is a component or step.  For example,  an observation as part of a procedure" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="registered | final" />
    </element>
    <element id="Observation.code.coding:BodyWeightCodeSct">
      <path value="Observation.code.coding" />
      <sliceName value="BodyWeightCodeSct" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:BodyWeightCodeSct.system">
      <path value="Observation.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.code.coding:BodyWeightCodeSct.code">
      <path value="Observation.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier">
      <path value="Observation.subject.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="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." />
    </element>
    <element id="Observation.subject.identifier.value">
      <path value="Observation.subject.identifier.value" />
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier:personnummer">
      <path value="Observation.subject.identifier" />
      <sliceName value="personnummer" />
    </element>
    <element id="Observation.subject.identifier:personnummer.system">
      <path value="Observation.subject.identifier.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.3.1" />
    </element>
    <element id="Observation.subject.identifier:personnummer.value">
      <path value="Observation.subject.identifier.value" />
      <min value="1" />
    </element>
    <element id="Observation.subject.identifier:samordningsnummer">
      <path value="Observation.subject.identifier" />
      <sliceName value="samordningsnummer" />
    </element>
    <element id="Observation.subject.identifier:samordningsnummer.system">
      <path value="Observation.subject.identifier.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.3.3" />
    </element>
    <element id="Observation.subject.identifier:samordningsnummer.value">
      <path value="Observation.subject.identifier.value" />
      <min value="1" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <definition value="The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.performer:PractitionerRole">
      <path value="Observation.performer" />
      <sliceName value="PractitionerRole" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
    </element>
    <element id="Observation.performer:PractitionerRole.type">
      <path value="Observation.performer.type" />
      <min value="1" />
      <fixedUri value="PractitionerRole" />
    </element>
    <element id="Observation.performer:Patient">
      <path value="Observation.performer" />
      <sliceName value="Patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.performer:Patient.type">
      <path value="Observation.performer.type" />
      <min value="1" />
      <fixedUri value="Patient" />
    </element>
    <element id="Observation.performer:Practitioner">
      <path value="Observation.performer" />
      <sliceName value="Practitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
    </element>
    <element id="Observation.performer:Practitioner.type">
      <path value="Observation.performer.type" />
      <min value="1" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="Observation.performer:Practitioner.identifier.system">
      <path value="Observation.performer.identifier.system" />
      <definition value="The URN of the HSA-ID catalogue" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Observation.performer:Practitioner.identifier.value">
      <path value="Observation.performer.identifier.value" />
      <min value="1" />
    </element>
    <element id="Observation.performer:Organization">
      <path value="Observation.performer" />
      <sliceName value="Organization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
    </element>
    <element id="Observation.performer:Organization.type">
      <path value="Observation.performer.type" />
      <min value="1" />
      <fixedUri value="Organization" />
    </element>
    <element id="Observation.performer:Organization.identifier.system">
      <path value="Observation.performer.identifier.system" />
      <definition value="The URN of the HSA-ID catalogue" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Observation.performer:Organization.identifier.value">
      <path value="Observation.performer.identifier.value" />
      <definition value="The HSA-ID of the organization(unit)" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.value[x]" />
      <sliceName value="valueQuantity" />
      <binding>
        <strength value="preferred" />
        <description value="BodyWeightUnits" />
        <valueSet value="https://cambio.codes/snomed/body-weight-unit/v1" />
      </binding>
    </element>
    <element id="Observation.value[x]:valueQuantity.code">
      <path value="Observation.value[x].code" />
      <binding>
        <strength value="required" />
        <description value="BodyWeightUnits." />
        <valueSet value="https://fhir.cambio.se/ValueSet/BodyWeightUnits/v1" />
      </binding>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>