{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/ieee11073-10207ig/SDCRelation",
  "name": "SDCRelation",
  "status": "draft",
  "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.",
  "fhirVersion": "4.0.0",
  "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.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:kind",
        "path": "Extension.extension",
        "sliceName": "kind",
        "short": "kind of the relation",
        "definition": "Kind specifies the relationship between the METRIC and referenced containment tree entries.\r\nReferenced containment tree entries are defined in ./pm:Relation/@Entries."
      },
      {
        "id": "Extension.extension:kind.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Kind of the relationship",
          "valueSet": "https://simplifier.net/ieee11073-10207ig/kindvalueset"
        }
      },
      {
        "id": "Extension.extension:entries",
        "path": "Extension.extension",
        "sliceName": "entries",
        "short": "Entries",
        "definition": "List of references that relate to the METRIC"
      },
      {
        "id": "Extension.extension:entries.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "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."
      },
      {
        "id": "Extension.extension:code.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "Coding"
          }
        ]
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}