{
  "resourceType": "StructureDefinition",
  "id": "reference-targetElement",
  "url": "http://hl7.no/fhir/StructureDefinition/reference-targetElement",
  "version": "4.0.0",
  "name": "TargetElement",
  "title": "targetElement",
  "status": "draft",
  "date": "2019-10-16",
  "description": "Reference to specific elements of the target resource.\r\nCan optionally provide the changed values of the element (old and new)",
  "purpose": "reference specific elements in the target resource using valueUri",
  "fhirVersion": "4.0.0",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Reference"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Reference to specific elements of the target resource",
        "definition": "Reference to specific elements of the target resource.\r\nCan optionally provide the changed values of the element (old and new)"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:elementUri",
        "path": "Extension.extension",
        "sliceName": "elementUri",
        "max": "1"
      },
      {
        "id": "Extension.extension:elementUri.url",
        "path": "Extension.extension.url",
        "fixedUri": "elementUri"
      },
      {
        "id": "Extension.extension:elementUri.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Reference to the specific element of the target resource",
        "definition": "Reference to the specific element of the target resource",
        "type": [
          {
            "code": "uri"
          }
        ],
        "example": [
          {
            "label": "Full uri syntax",
            "valueUri": "gender/gender1"
          },
          {
            "label": "hashtag id syntax",
            "valueUri": "#gender1"
          }
        ]
      },
      {
        "id": "Extension.extension:change",
        "path": "Extension.extension",
        "sliceName": "change",
        "short": "The old and new value of the changed element",
        "definition": "The old and new value of the changed element",
        "max": "1"
      },
      {
        "id": "Extension.extension:change.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:change.extension:oldValue",
        "path": "Extension.extension.extension",
        "sliceName": "oldValue",
        "max": "1"
      },
      {
        "id": "Extension.extension:change.extension:oldValue.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "oldValue"
      },
      {
        "id": "Extension.extension:change.extension:oldValue.value[x]",
        "path": "Extension.extension.extension.value[x]",
        "short": "The old value of the element",
        "definition": "The old value of the element"
      },
      {
        "id": "Extension.extension:change.extension:newValue",
        "path": "Extension.extension.extension",
        "sliceName": "newValue",
        "max": "1"
      },
      {
        "id": "Extension.extension:change.extension:newValue.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "newValue"
      },
      {
        "id": "Extension.extension:change.extension:newValue.value[x]",
        "path": "Extension.extension.extension.value[x]",
        "short": "The new value of the element",
        "definition": "The new value of the element"
      },
      {
        "id": "Extension.extension:change.url",
        "path": "Extension.extension.url",
        "fixedUri": "change"
      },
      {
        "id": "Extension.extension:change.value[x]",
        "path": "Extension.extension.value[x]",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.no/fhir/StructureDefinition/reference-targetElement"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}