{
  "resourceType": "StructureDefinition",
  "id": "UpdateWithOverwrite",
  "url": "https://fhir.centraxx.de/extension/updateWithOverwrite",
  "version": "2025.4.0",
  "name": "UpdateWithOverwrite",
  "status": "active",
  "publisher": "Kairos an IQVIA business",
  "description": "This Extension determines the update strategy during used the import of FHIR message. If true, elements, which are not present in the FHIR message, will be set to null on the CXX entity. If false, only the provided elements will be updated. Elements that are not present in the message will not affected. If this extension is not present, update with overwrite is used by default.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Resource"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "min": 1,
        "max": "1",
        "fixedUri": "https://fhir.centraxx.de/extension/updateWithOverwrite",
        "mustSupport": true
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}