{
  "resourceType": "StructureDefinition",
  "id": "KT2CareTeam",
  "language": "nl-NL",
  "url": "http://koppeltaal.nl/fhir/StructureDefinition/KT2CareTeam",
  "version": "0.9.0",
  "name": "KT2_CareTeam",
  "status": "draft",
  "date": "2023-01-24",
  "publisher": "VZVZ",
  "contact": [
    {
      "name": "VZVZ",
      "telecom": [
        {
          "system": "email",
          "value": "standaardisatie@vzvz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The CareTeam resource represents a group of healthcare professionals and related persons who collaborate to provide coordinated care and treatment for a patient. It defines the roles and participants involved in delivering healthcare services within the Koppeltaal ecosystem.",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "NL",
          "system": "urn:iso:std:iso:3166",
          "display": "Netherlands"
        }
      ]
    }
  ],
  "copyright": "VZVZ",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CareTeam",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/nl-core-CareTeam",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CareTeam.extension",
        "path": "CareTeam.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "CareTeam.extension:resource-origin",
        "path": "CareTeam.extension",
        "sliceName": "resource-origin",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/resource-origin"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.identifier",
        "path": "CareTeam.identifier",
        "min": 1
      },
      {
        "id": "CareTeam.status",
        "path": "CareTeam.status",
        "min": 1
      },
      {
        "id": "CareTeam.category",
        "path": "CareTeam.category",
        "max": "0"
      },
      {
        "id": "CareTeam.subject",
        "path": "CareTeam.subject",
        "short": "Patient treated by this care team",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2Patient"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.encounter",
        "path": "CareTeam.encounter",
        "max": "0"
      },
      {
        "id": "CareTeam.participant",
        "path": "CareTeam.participant",
        "comment": "WARNING: `allSlices` is a display bug in Simplifier.net. There is no `allSlices` slice. Firely is already notified of this bug."
      },
      {
        "id": "CareTeam.participant:contactPerson",
        "path": "CareTeam.participant",
        "sliceName": "contactPerson",
        "max": "0"
      },
      {
        "id": "CareTeam.participant:patient",
        "path": "CareTeam.participant",
        "sliceName": "patient",
        "comment": "This slice is not used in the context of Koppeltaal 2.0. The patient is always represented via CareTeam.subject, not as a participant member.",
        "max": "0"
      },
      {
        "id": "CareTeam.participant:healthcareProfessional",
        "path": "CareTeam.participant",
        "sliceName": "healthcareProfessional",
        "comment": "This slice is not used in the context of Koppeltaal 2.0",
        "max": "0"
      },
      {
        "id": "CareTeam.participant:kt2contactperson",
        "path": "CareTeam.participant",
        "sliceName": "kt2contactperson",
        "min": 0,
        "max": "*"
      },
      {
        "id": "CareTeam.participant:kt2contactperson.role",
        "path": "CareTeam.participant.role",
        "definition": "The authorization role of the RelatedPerson within this CareTeam. Determines which actions this person may perform.",
        "comment": "The role defines the authorization level for this RelatedPerson within the CareTeam. See [RelatedPerson autorisaties](https://vzvznl.github.io/Koppeltaal-2.0-FHIR/autorisaties-relatedperson.html) for the permission matrix.",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/koppeltaal-relatedperson-role",
          "description": "Koppeltaal authorization roles for RelatedPersons in a CareTeam."
        }
      },
      {
        "id": "CareTeam.participant:kt2contactperson.member",
        "path": "CareTeam.participant.member",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.participant:kt2contactperson.onBehalfOf",
        "path": "CareTeam.participant.onBehalfOf",
        "comment": "This element is not used in the context of Koppeltaal 2.0"
      },
      {
        "id": "CareTeam.participant:kt2contactperson.period",
        "path": "CareTeam.participant.period",
        "comment": "This element is not used in the context of Koppeltaal 2.0"
      },
      {
        "id": "CareTeam.participant:kt2healthcareProfessional",
        "path": "CareTeam.participant",
        "sliceName": "kt2healthcareProfessional",
        "min": 0,
        "max": "*"
      },
      {
        "id": "CareTeam.participant:kt2healthcareProfessional.role",
        "path": "CareTeam.participant.role",
        "definition": "The authorization role of the Practitioner within this CareTeam. Determines which actions this person may perform. This ValueSet extends the ZorgverlenerRolCodelijst with SNOMED CT codes for authorization roles.",
        "comment": "The role defines the authorization level for this Practitioner within the CareTeam. There are two authorization levels: 405623001 (Assigned practitioner/behandelaar) and zorgondersteuner (224608005 Administrative healthcare staff or 768821004 Care team coordinator). The ZorgverlenerRolCodelijst codes are included for backwards compatibility. See [Rol Code Mapping](https://vzvznl.github.io/Koppeltaal-2.0-FHIR/autorisaties-rol-code-mapping.html) and [Practitioner autorisaties](https://vzvznl.github.io/Koppeltaal-2.0-FHIR/autorisaties-practitioner.html) for more information.",
        "alias": [
          "KoppeltaalPractitionerRole"
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/koppeltaal-practitioner-role",
          "description": "SNOMED CT authorization roles for Practitioners in a CareTeam (extends ZorgverlenerRolCodelijst)."
        }
      },
      {
        "id": "CareTeam.participant:kt2healthcareProfessional.member",
        "path": "CareTeam.participant.member",
        "comment": "This element is used in Koppeltaal 2.0 to refer to the Practitioner who is member of the team",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2Practitioner"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.participant:kt2healthcareProfessional.onBehalfOf",
        "path": "CareTeam.participant.onBehalfOf",
        "comment": "This element is not used in the context of Koppeltaal 2.0"
      },
      {
        "id": "CareTeam.participant:kt2healthcareProfessional.period",
        "path": "CareTeam.participant.period",
        "comment": "This element is not used in the context of Koppeltaal 2.0"
      },
      {
        "id": "CareTeam.reasonCode",
        "path": "CareTeam.reasonCode",
        "max": "0"
      },
      {
        "id": "CareTeam.reasonReference",
        "path": "CareTeam.reasonReference",
        "max": "0"
      },
      {
        "id": "CareTeam.managingOrganization",
        "path": "CareTeam.managingOrganization",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2Organization"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.telecom",
        "path": "CareTeam.telecom",
        "max": "0"
      },
      {
        "id": "CareTeam.note",
        "path": "CareTeam.note",
        "max": "0"
      }
    ]
  }
}