# Relation extension - Point-of-Care Device Implementation Guide v1.0.0

* [**Table of Contents**](toc.md)
* [**Artifact List**](artifacts.md)
* **Relation extension**

## Extension: Relation extension 

| | | |
| :--- | :--- | :--- |
| *Official URL*:http://hl7.org/fhir/uv/pocd/StructureDefinition/relation | *Version*:1.0.0 | |
| * Standards status: *[Trial-use](http://hl7.org/fhir/R4/versions.html#std-process) | [Maturity Level](http://hl7.org/fhir/versions.html#maturity): 2 | *Computable Name*:Relation |

Relation allows the modelling of relationships between a metric and other containment tree entries. Related containment tree entries are defined in Entries, whereby the flavor of a relationship can be set up in Kind.

**Context of Use**

**Usage info**

**Usages:**

* Use this Extension: [Enumeration DeviceMetric profile](StructureDefinition-EnumerationDeviceMetric.md), [Numeric DeviceMetric profile](StructureDefinition-NumericDeviceMetric.md) and [Sample Array DeviceMetric profile](StructureDefinition-SampleArrayDeviceMetric.md)
* Examples for this Extension: [DeviceMetric/HeartRateNumericDeviceMetric](DeviceMetric-HeartRateNumericDeviceMetric.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/hl7.fhir.uv.pocd|current/StructureDefinition/relation)

### Formal Views of Extension Content

 [Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-relation.csv), [Excel](StructureDefinition-relation.xlsx), [Schematron](StructureDefinition-relation.sch) 

#### Terminology Bindings

#### Constraints



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "relation",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "dev"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/pocd/ImplementationGuide/hl7.fhir.uv.pocd"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/pocd/ImplementationGuide/hl7.fhir.uv.pocd"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/uv/pocd/StructureDefinition/relation",
  "version" : "1.0.0",
  "name" : "Relation",
  "title" : "Relation extension",
  "status" : "active",
  "date" : "2022-01-16",
  "publisher" : "HL7 International / Devices",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/healthcaredevices"
    }]
  }],
  "description" : "Relation allows the modelling of relationships between a metric and other containment tree entries.\r\nRelated containment tree entries are defined in Entries, whereby the flavor of a relationship can be\r\nset up in Kind.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "sdc",
    "uri" : "urn:iso:std:iso:11073:10207",
    "name" : "IEEE 11073-10207 SDC"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "complex-type",
  "abstract" : false,
  "context" : [{
    "type" : "element",
    "expression" : "DeviceMetric"
  }],
  "type" : "Extension",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "Modelling relationships",
      "definition" : "Relation allows the modelling of relationships between a metric and other containment tree entries."
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "rules" : "open"
      },
      "min" : 2
    },
    {
      "id" : "Extension.extension:kind",
      "path" : "Extension.extension",
      "sliceName" : "kind",
      "short" : "Kind of relation",
      "definition" : "Kind specifies the relationship between the metric and referenced containment tree entries.",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Extension.extension:kind.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "kind"
    },
    {
      "id" : "Extension.extension:kind.valueCode",
      "path" : "Extension.extension.valueCode",
      "min" : 1,
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "strength" : "required",
        "description" : "Kind of relationship",
        "valueSet" : "http://hl7.org/fhir/uv/pocd/ValueSet/kind-of-relation"
      },
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Kind"
      }]
    },
    {
      "id" : "Extension.extension:entries",
      "path" : "Extension.extension",
      "sliceName" : "entries",
      "short" : "Referenced containment tree entries",
      "definition" : "List of references that relate to the metric.",
      "min" : 1
    },
    {
      "id" : "Extension.extension:entries.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "entries"
    },
    {
      "id" : "Extension.extension:entries.valueReference",
      "path" : "Extension.extension.valueReference",
      "min" : 1,
      "type" : [{
        "code" : "Reference"
      }]
    },
    {
      "id" : "Extension.extension:entries.valueReference.reference",
      "path" : "Extension.extension.valueReference.reference",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Entries"
      }]
    },
    {
      "id" : "Extension.extension:entries.valueReference.identifier",
      "path" : "Extension.extension.valueReference.identifier"
    },
    {
      "id" : "Extension.extension:entries.valueReference.identifier.system",
      "path" : "Extension.extension.valueReference.identifier.system",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Identification/Root"
      }]
    },
    {
      "id" : "Extension.extension:entries.valueReference.identifier.value",
      "path" : "Extension.extension.valueReference.identifier.value",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Identification/Extension"
      }]
    },
    {
      "id" : "Extension.extension:code",
      "path" : "Extension.extension",
      "sliceName" : "code",
      "short" : "Description of relation",
      "definition" : "Code allows the semantic description of the relationship between the metric and the list of related containment tree entries defined in Entries.",
      "max" : "1"
    },
    {
      "id" : "Extension.extension:code.url",
      "path" : "Extension.extension.url",
      "fixedUri" : "code"
    },
    {
      "id" : "Extension.extension:code.valueCoding",
      "path" : "Extension.extension.valueCoding",
      "min" : 1,
      "type" : [{
        "code" : "Coding"
      }]
    },
    {
      "id" : "Extension.extension:code.valueCoding.system",
      "path" : "Extension.extension.valueCoding.system",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Code/CodingSystem"
      }]
    },
    {
      "id" : "Extension.extension:code.valueCoding.version",
      "path" : "Extension.extension.valueCoding.version",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Code/CodingSystemVersion"
      }]
    },
    {
      "id" : "Extension.extension:code.valueCoding.code",
      "path" : "Extension.extension.valueCoding.code",
      "mapping" : [{
        "identity" : "sdc",
        "map" : "AbstractMetricDescriptor/Relation/Code/Code"
      }]
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "fixedUri" : "http://hl7.org/fhir/uv/pocd/StructureDefinition/relation"
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "max" : "0"
    }]
  }
}

```
