{
  "resourceType": "StructureDefinition",
  "url": "https://hn.indra.es/fhir/StructureDefinition/CareTeam",
  "name": "CareTeam",
  "status": "draft",
  "date": "2024-05-07T15:23:41.5356942+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CareTeam",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CareTeam",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CareTeam.contained",
        "path": "CareTeam.contained",
        "max": "0"
      },
      {
        "id": "CareTeam.extension:temporalidad",
        "path": "CareTeam.extension",
        "sliceName": "temporalidad",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hn.indra.es/fhir/StructureDefinition/careteam/temporality"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "CareTeam.extension:motivo",
        "path": "CareTeam.extension",
        "sliceName": "motivo",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hn.indra.es/fhir/StructureDefinition/careteam/reason"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "CareTeam.category.id",
        "path": "CareTeam.category.id",
        "max": "0"
      },
      {
        "id": "CareTeam.category.coding",
        "path": "CareTeam.category.coding",
        "comment": "El primer coding define el tipo de careteam, se corresponde con el catálogo indicado, tipo_adscripcion, el segundo coding se recibe solo si el primer tipo es ADSRL e indica el tipo de login que le ha asignado el paciente al representante legal, ADSTUTELAFU/ADSLTUTELADE.",
        "max": "2"
      },
      {
        "id": "CareTeam.category.coding.id",
        "path": "CareTeam.category.coding.id",
        "max": "0"
      },
      {
        "id": "CareTeam.category.coding.system",
        "path": "CareTeam.category.coding.system",
        "max": "0"
      },
      {
        "id": "CareTeam.category.coding.version",
        "path": "CareTeam.category.coding.version",
        "max": "0"
      },
      {
        "id": "CareTeam.category.coding.code",
        "path": "CareTeam.category.coding.code",
        "short": "Código del tipo de careteam",
        "definition": "Código del tipo de careteam, se corresponde con el catálogo existente en Ontology, tipo_adscripción.",
        "binding": {
          "strength": "required",
          "description": "Code",
          "valueSet": "http://hl7.org/fhir/CodeSystem/tipo_adscripcion"
        }
      },
      {
        "id": "CareTeam.category.coding.display",
        "path": "CareTeam.category.coding.display",
        "short": "Descripción del tipo de Careteam",
        "binding": {
          "strength": "required",
          "description": "Display",
          "valueSet": "http://hl7.org/fhir/CodeSystem/tipo_adscripcion"
        }
      },
      {
        "id": "CareTeam.category.coding.userSelected",
        "path": "CareTeam.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CareTeam.category.text",
        "path": "CareTeam.category.text",
        "max": "0"
      },
      {
        "id": "CareTeam.name",
        "path": "CareTeam.name",
        "short": "Nombre completo del cuidador/representante",
        "definition": "Nombre completo del cuidador/representante"
      },
      {
        "id": "CareTeam.subject",
        "path": "CareTeam.subject",
        "short": "Identificador lógico del cuidador/representante",
        "definition": "Identificador lógico del cuidador/representante"
      },
      {
        "id": "CareTeam.subject.id",
        "path": "CareTeam.subject.id",
        "max": "0"
      },
      {
        "id": "CareTeam.subject.type",
        "path": "CareTeam.subject.type",
        "fixedUri": "Patient"
      },
      {
        "id": "CareTeam.subject.identifier",
        "path": "CareTeam.subject.identifier",
        "max": "0"
      },
      {
        "id": "CareTeam.subject.display",
        "path": "CareTeam.subject.display",
        "max": "0"
      },
      {
        "id": "CareTeam.encounter",
        "path": "CareTeam.encounter",
        "max": "0"
      },
      {
        "id": "CareTeam.period.id",
        "path": "CareTeam.period.id",
        "max": "0"
      },
      {
        "id": "CareTeam.period.start",
        "path": "CareTeam.period.start",
        "short": "Inicio del periodo de careteam",
        "definition": "Inicio del periodo de careteam"
      },
      {
        "id": "CareTeam.period.end",
        "path": "CareTeam.period.end",
        "short": "Fin del periodo de careteam",
        "definition": "Fin del periodo de careteam"
      },
      {
        "id": "CareTeam.participant.id",
        "path": "CareTeam.participant.id",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.role",
        "path": "CareTeam.participant.role",
        "short": "Relación con la persona cuidada/representada",
        "definition": "Relación con la persona cuidada/representada"
      },
      {
        "id": "CareTeam.participant.role.id",
        "path": "CareTeam.participant.role.id",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.role.coding.id",
        "path": "CareTeam.participant.role.coding.id",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.role.coding.system",
        "path": "CareTeam.participant.role.coding.system",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.role.coding.version",
        "path": "CareTeam.participant.role.coding.version",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.role.coding.code",
        "path": "CareTeam.participant.role.coding.code",
        "binding": {
          "strength": "required",
          "description": "Code",
          "valueSet": "http://hl7.org/fhir/CodeSystem/participant-role"
        }
      },
      {
        "id": "CareTeam.participant.role.coding.display",
        "path": "CareTeam.participant.role.coding.display",
        "binding": {
          "strength": "required",
          "description": "Display",
          "valueSet": "http://hl7.org/fhir/CodeSystem/participant-role"
        }
      },
      {
        "id": "CareTeam.participant.role.coding.userSelected",
        "path": "CareTeam.participant.role.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member.id",
        "path": "CareTeam.participant.member.id",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.member.type",
        "path": "CareTeam.participant.member.type",
        "fixedUri": "Patient"
      },
      {
        "id": "CareTeam.participant.member.identifier",
        "path": "CareTeam.participant.member.identifier",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.onBehalfOf",
        "path": "CareTeam.participant.onBehalfOf",
        "short": "Referencia a la unidad organizativa",
        "definition": "Referencia a la unidad organizativa en el caso de estar asignando un equipo de seguimiento."
      },
      {
        "id": "CareTeam.participant.onBehalfOf.id",
        "path": "CareTeam.participant.onBehalfOf.id",
        "max": "0"
      },
      {
        "id": "CareTeam.participant.onBehalfOf.type",
        "path": "CareTeam.participant.onBehalfOf.type",
        "fixedUri": "Organization"
      },
      {
        "id": "CareTeam.participant.onBehalfOf.identifier",
        "path": "CareTeam.participant.onBehalfOf.identifier",
        "max": "0"
      },
      {
        "id": "CareTeam.reasonCode",
        "path": "CareTeam.reasonCode",
        "max": "0"
      },
      {
        "id": "CareTeam.reasonReference",
        "path": "CareTeam.reasonReference",
        "max": "0"
      },
      {
        "id": "CareTeam.managingOrganization",
        "path": "CareTeam.managingOrganization",
        "max": "0"
      },
      {
        "id": "CareTeam.telecom",
        "path": "CareTeam.telecom",
        "max": "0"
      },
      {
        "id": "CareTeam.note",
        "path": "CareTeam.note",
        "max": "0"
      }
    ]
  }
}