{
  "resourceType": "StructureDefinition",
  "id": "consent-label-ext",
  "url": "http://fhir.xt.dev/StructureDefinition/ConsentLabel",
  "version": "1.0.0",
  "name": "ConsentLabel",
  "title": "Consent Label",
  "status": "active",
  "date": "2026-03-24T00:00:00+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This extension carries a specific consent label as Coding.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Encounter"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.xt.dev/StructureDefinition/ConsentLabel"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Consent label coding",
        "min": 1,
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.xt.dev/ValueSet/ConsentLabels"
        }
      },
      {
        "id": "Extension.value[x].system",
        "path": "Extension.value[x].system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/ConsentLabels"
      },
      {
        "id": "Extension.value[x].code",
        "path": "Extension.value[x].code",
        "min": 1
      }
    ]
  }
}