{
  "resourceType": "StructureDefinition",
  "id": "gd-changed-value",
  "url": "http://ehelse.no/fhir/StructureDefinition/gd-changed-value",
  "version": "2.0.2",
  "name": "GdChangedValue",
  "status": "draft",
  "date": "2019-10-16",
  "description": "The values of a referenced elements that have changed. Contains both old and new values. The newValue will be empty if this is a create transaction. The oldValue will be empty if this is a delete transaction.",
  "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": "The old and new value of the changed element",
        "definition": "The old and new value of the changed element"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:oldValue",
        "path": "Extension.extension",
        "sliceName": "oldValue",
        "short": "The old value of the element",
        "definition": "The old value of the element",
        "max": "1",
        "meaningWhenMissing": "If the oldValue is missing, this is the result of a transaction adding a value to an unpopulated element."
      },
      {
        "id": "Extension.extension:oldValue.url",
        "path": "Extension.extension.url",
        "fixedUri": "oldValue"
      },
      {
        "id": "Extension.extension:oldValue.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "The old value of the element",
        "definition": "The old value of the element"
      },
      {
        "id": "Extension.extension:newValue",
        "path": "Extension.extension",
        "sliceName": "newValue",
        "short": "The new value of the element",
        "definition": "The new value of the element",
        "max": "1",
        "meaningWhenMissing": "If the newValue is missing, this is the result of a transaction deleting a value from an element."
      },
      {
        "id": "Extension.extension:newValue.url",
        "path": "Extension.extension.url",
        "fixedUri": "newValue"
      },
      {
        "id": "Extension.extension:newValue.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "The new value of the element",
        "definition": "The new value of the element"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://ehelse.no/fhir/StructureDefinition/gd-changed-value"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}