{
  "resourceType": "StructureDefinition",
  "id": "profile-careteam",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-careteam",
  "name": "CareTeam",
  "title": "Care Team Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "CareTeam participant details.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "CareTeam",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CareTeam",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CareTeam.extension",
        "path": "CareTeam.extension",
        "max": "0"
      },
      {
        "id": "CareTeam.modifierExtension",
        "path": "CareTeam.modifierExtension",
        "max": "0"
      },
      {
        "id": "CareTeam.identifier",
        "path": "CareTeam.identifier",
        "max": "0"
      },
      {
        "id": "CareTeam.status",
        "path": "CareTeam.status",
        "max": "0"
      },
      {
        "id": "CareTeam.category",
        "path": "CareTeam.category",
        "max": "0"
      },
      {
        "id": "CareTeam.name",
        "path": "CareTeam.name",
        "max": "0"
      },
      {
        "id": "CareTeam.subject",
        "path": "CareTeam.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.period",
        "path": "CareTeam.period",
        "max": "0"
      },
      {
        "id": "CareTeam.participant",
        "path": "CareTeam.participant",
        "min": 1
      },
      {
        "id": "CareTeam.participant.role",
        "path": "CareTeam.participant.role",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "description": "The role of the participant in the care team."
        }
      },
      {
        "id": "CareTeam.participant.role.coding",
        "path": "CareTeam.participant.role.coding",
        "max": "1"
      },
      {
        "id": "CareTeam.participant.role.coding.system",
        "path": "CareTeam.participant.role.coding.system"
      },
      {
        "id": "CareTeam.participant.member",
        "path": "CareTeam.participant.member",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.participant.member:practitioner",
        "path": "CareTeam.participant.member",
        "sliceName": "practitioner",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.participant.member:practitioner.identifier.use",
        "path": "CareTeam.participant.member.identifier.use",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:practitioner.identifier.type",
        "path": "CareTeam.participant.member.identifier.type",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:practitioner.identifier.period",
        "path": "CareTeam.participant.member.identifier.period",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:practitioner.identifier.assigner",
        "path": "CareTeam.participant.member.identifier.assigner",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:relatedPerson",
        "path": "CareTeam.participant.member",
        "sliceName": "relatedPerson",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-relatedperson"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.participant.member:relatedPerson.reference",
        "path": "CareTeam.participant.member.reference",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:relatedPerson.type",
        "path": "CareTeam.participant.member.type",
        "min": 1,
        "patternUri": "RelatedPerson"
      },
      {
        "id": "CareTeam.participant.member:relatedPerson.identifier",
        "path": "CareTeam.participant.member.identifier",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member:relatedPerson.display",
        "path": "CareTeam.participant.member.display",
        "min": 1
      },
      {
        "id": "CareTeam.participant.onBehalfOf",
        "path": "CareTeam.participant.onBehalfOf",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.coverage[x]",
        "path": "CareTeam.participant.coverage[x]",
        "max": "0"
      },
      {
        "id": "CareTeam.reason",
        "path": "CareTeam.reason",
        "max": "0"
      },
      {
        "id": "CareTeam.managingOrganization",
        "path": "CareTeam.managingOrganization",
        "short": "A reference from one resource to another",
        "definition": "A reference from one resource to another.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "CareTeam.telecom",
        "path": "CareTeam.telecom",
        "max": "0"
      },
      {
        "id": "CareTeam.note",
        "path": "CareTeam.note",
        "max": "0"
      }
    ]
  }
}