{
  "resourceType": "StructureDefinition",
  "id": "collectionforsharing-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/CollectionForSharing",
  "version": "1.0.0",
  "name": "CollectionForSharing",
  "status": "active",
  "date": "2025-01-15T09:02:07.2457432+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A list that collects patient data for sharing with healthcare providers. The data belongs to one patient record. Each data entry may also belong to multiple other collections. The collection may be shared with multiple providers. All data, except for XDS documents, are included by reference.",
  "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.identifier",
        "path": "List.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.identifier.type",
        "path": "List.identifier.type",
        "min": 1
      },
      {
        "id": "List.identifier.type.coding",
        "path": "List.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.identifier.type.coding.system",
        "path": "List.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/IdentifierType"
      },
      {
        "id": "List.identifier.type.coding.code",
        "path": "List.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "COLI"
      },
      {
        "id": "List.identifier.system",
        "path": "List.identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986"
      },
      {
        "id": "List.identifier.value",
        "path": "List.identifier.value",
        "short": "Collection ID",
        "definition": "urn-encoded OID that identifies the collection",
        "min": 1
      },
      {
        "id": "List.identifier.period",
        "path": "List.identifier.period",
        "max": "0"
      },
      {
        "id": "List.identifier.assigner",
        "path": "List.identifier.assigner",
        "max": "0"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "fixedCode": "working"
      },
      {
        "id": "List.title",
        "path": "List.title",
        "min": 1
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1
      },
      {
        "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.code",
        "path": "List.code.coding.code",
        "min": 1,
        "fixedCode": "patient-collection"
      },
      {
        "id": "List.code.text",
        "path": "List.code.text",
        "max": "0"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "List.subject.reference",
        "path": "List.subject.reference",
        "min": 1
      },
      {
        "id": "List.subject.type",
        "path": "List.subject.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "List.date",
        "path": "List.date",
        "min": 1
      },
      {
        "id": "List.source",
        "path": "List.source",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.source.extension:sourcePatientRepresentative",
        "path": "List.source.extension",
        "sliceName": "sourcePatientRepresentative",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/SourcePatientRepresentative"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "List.source.reference",
        "path": "List.source.reference",
        "min": 1
      },
      {
        "id": "List.orderedBy",
        "path": "List.orderedBy",
        "min": 1
      },
      {
        "id": "List.orderedBy.coding",
        "path": "List.orderedBy.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.orderedBy.coding.system",
        "path": "List.orderedBy.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/list-order"
      },
      {
        "id": "List.orderedBy.coding.code",
        "path": "List.orderedBy.coding.code",
        "min": 1,
        "fixedCode": "entry-date"
      },
      {
        "id": "List.orderedBy.text",
        "path": "List.orderedBy.text",
        "max": "0"
      },
      {
        "id": "List.entry",
        "path": "List.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "item.type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "List.entry:xdsDocumentEntry",
        "path": "List.entry",
        "sliceName": "xdsDocumentEntry"
      },
      {
        "id": "List.entry:xdsDocumentEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:xdsDocumentEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "DocumentReference"
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier",
        "path": "List.entry.item.identifier",
        "min": 1
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.use",
        "path": "List.entry.item.identifier.use",
        "fixedCode": "usual"
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.type",
        "path": "List.entry.item.identifier.type",
        "max": "0"
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.system",
        "path": "List.entry.item.identifier.system",
        "min": 1
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.value",
        "path": "List.entry.item.identifier.value",
        "min": 1
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.period",
        "path": "List.entry.item.identifier.period",
        "max": "0"
      },
      {
        "id": "List.entry:xdsDocumentEntry.item.identifier.assigner",
        "path": "List.entry.item.identifier.assigner",
        "max": "0"
      },
      {
        "id": "List.entry:conditionEntry",
        "path": "List.entry",
        "sliceName": "conditionEntry"
      },
      {
        "id": "List.entry:conditionEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:conditionEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:conditionEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:conditionEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:conditionEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "Condition"
      },
      {
        "id": "List.entry:procedureEntry",
        "path": "List.entry",
        "sliceName": "procedureEntry"
      },
      {
        "id": "List.entry:procedureEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:procedureEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:procedureEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Procedure"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:procedureEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:procedureEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "Procedure"
      },
      {
        "id": "List.entry:observationEntry",
        "path": "List.entry",
        "sliceName": "observationEntry"
      },
      {
        "id": "List.entry:observationEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:observationEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:observationEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:observationEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:observationEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "Observation"
      },
      {
        "id": "List.entry:encounterEntry",
        "path": "List.entry",
        "sliceName": "encounterEntry"
      },
      {
        "id": "List.entry:encounterEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:encounterEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:encounterEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:encounterEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:encounterEntry.item.type",
        "path": "List.entry.item.type",
        "fixedUri": "Encounter"
      },
      {
        "id": "List.entry:questionnaireResponseEntry",
        "path": "List.entry",
        "sliceName": "questionnaireResponseEntry"
      },
      {
        "id": "List.entry:questionnaireResponseEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:questionnaireResponseEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:questionnaireResponseEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:questionnaireResponseEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:questionnaireResponseEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "QuestionnaireResponse"
      },
      {
        "id": "List.entry:appointmentEntry",
        "path": "List.entry",
        "sliceName": "appointmentEntry"
      },
      {
        "id": "List.entry:appointmentEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:appointmentEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:appointmentEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Appointment"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:appointmentEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:appointmentEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "Appointment"
      },
      {
        "id": "List.entry:taskEntry",
        "path": "List.entry",
        "sliceName": "taskEntry"
      },
      {
        "id": "List.entry:taskEntry.deleted",
        "path": "List.entry.deleted",
        "max": "0"
      },
      {
        "id": "List.entry:taskEntry.date",
        "path": "List.entry.date",
        "min": 1
      },
      {
        "id": "List.entry:taskEntry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "http://hl7.org/fhir/StructureDefinition/Task"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry:taskEntry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.entry:taskEntry.item.type",
        "path": "List.entry.item.type",
        "min": 1,
        "fixedUri": "Task"
      },
      {
        "id": "List.emptyReason",
        "path": "List.emptyReason",
        "max": "0"
      }
    ]
  }
}