{
  "resourceType": "StructureDefinition",
  "id": "access-granted-list",
  "url": "http://fhir.xt.dev/StructureDefinition/AccessGrantedList",
  "version": "1.0.0",
  "name": "AccessGrantedList",
  "status": "active",
  "date": "2026-06-18T16:00:00+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A list with this profile represents a patients list to which the authorized user has access.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.extension",
        "path": "List.extension",
        "min": 1
      },
      {
        "id": "List.extension:listAccessibleBy",
        "path": "List.extension",
        "sliceName": "listAccessibleBy",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/AccessGrantedListAccessibleBy"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "fixedCode": "snapshot"
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1
      },
      {
        "id": "List.code.extension",
        "path": "List.code.extension",
        "max": "0"
      },
      {
        "id": "List.code.coding",
        "path": "List.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.code.coding.system",
        "path": "List.code.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/ListPurpose"
      },
      {
        "id": "List.code.coding.version",
        "path": "List.code.coding.version",
        "max": "0"
      },
      {
        "id": "List.code.coding.code",
        "path": "List.code.coding.code",
        "min": 1,
        "fixedCode": "access-granted-list"
      },
      {
        "id": "List.code.coding.userSelected",
        "path": "List.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "List.code.text",
        "path": "List.code.text",
        "max": "0"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "max": "0"
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "max": "0"
      },
      {
        "id": "List.entry.extension",
        "path": "List.entry.extension",
        "min": 1
      },
      {
        "id": "List.entry.extension:policyId",
        "path": "List.entry.extension",
        "sliceName": "policyId",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/AccessGrantedListPolicyId"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      }
    ]
  }
}