{
  "resourceType": "StructureDefinition",
  "url": "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitionerRole",
  "name": "UNICASPractitionerRole",
  "title": "PractitionerRole Profesional Sanitario ÚNICAS",
  "status": "draft",
  "description": "Este profile define las restricciones del recurso PractitionerRole para representar el profesional sanitario dentro de un institución o centro específica en el contexto del caso de uso de ÚNICAS.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole.identifier",
        "path": "PractitionerRole.identifier",
        "short": "Identificador único",
        "definition": "Identifiers for a role/location. Business Identifiers that are specific to a role/location."
      },
      {
        "id": "PractitionerRole.identifier.system",
        "path": "PractitionerRole.identifier.system",
        "short": "Sistema de identificador",
        "definition": "The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique."
      },
      {
        "id": "PractitionerRole.identifier.value",
        "path": "PractitionerRole.identifier.value",
        "short": "Valor de identificador",
        "definition": "The value that is unique. The portion of the identifier typically relevant to the user and which is unique within the context of the system."
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "short": "Referencial al profesional sanitario",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitioner"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.practitioner.reference",
        "path": "PractitionerRole.practitioner.reference",
        "short": "Referencia recurso FHIR. Identificador de la referencia del recurso FHIR asociado cuando exista/creamos un recurso en el mismo servidor FHIR",
        "definition": "Formato: [base]/Practitioner?identifier=[OID registro de DNI]|[Número DNI]"
      },
      {
        "id": "PractitionerRole.practitioner.type",
        "path": "PractitionerRole.practitioner.type",
        "short": "Tipo de recurso FHIR",
        "definition": "Type the reference refers to (e.g. \"Patient\") - must be a resource in resources. The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
        "min": 1
      },
      {
        "id": "PractitionerRole.practitioner.identifier",
        "path": "PractitionerRole.practitioner.identifier",
        "short": "Identificadores del profesional sanitario. Cuando no tengamos recurso Practitioner, se debera informar el identificador del profesional sanitario mediante DNI como dato mínimo. Adicionalmente, se puede informar el número colegiado del profesional sanitario como dato recomendado",
        "definition": "Logical reference, when literal reference is not known. An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "min": 1
      },
      {
        "id": "PractitionerRole.practitioner.identifier.extension:numeroColegiadoProfesionalSanitario",
        "path": "PractitionerRole.practitioner.identifier.extension",
        "sliceName": "numeroColegiadoProfesionalSanitario",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/NumeroColegiadoProfesionalSanitario"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "PractitionerRole.practitioner.identifier.type",
        "path": "PractitionerRole.practitioner.identifier.type",
        "short": "Tipos de documentos de identificación para persona ÚNICAS",
        "definition": "Description of identifier. A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Tipos de documentos de identificación para persona ÚNICAS",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/TiposDocumentosIdentificacionPersona"
        }
      },
      {
        "id": "PractitionerRole.practitioner.identifier.type.coding.system",
        "path": "PractitionerRole.practitioner.identifier.type.coding.system",
        "short": "URL del refset Tipos de documento para identificación personal de SNOMED CT. Extensión para España del SNS",
        "definition": "Posible URL de terminología utilizada para indicar el tipo de documentos de identificación y su descripción correspondiente:\r\n\r\n- Refset Tipos de documento para identificación personal del SNOMED CT. Extensión para España del SNS: http://snomed.info/sct/900000001000122104?fhir_vs-refset/900000251000122107"
      },
      {
        "id": "PractitionerRole.practitioner.identifier.type.coding.code",
        "path": "PractitionerRole.practitioner.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "PractitionerRole.practitioner.identifier.type.coding.display",
        "path": "PractitionerRole.practitioner.identifier.type.coding.display",
        "short": "Decripción del identificador",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "PractitionerRole.practitioner.identifier.system",
        "path": "PractitionerRole.practitioner.identifier.system",
        "short": "OID registro de DNI",
        "definition": "The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique."
      },
      {
        "id": "PractitionerRole.practitioner.identifier.value",
        "path": "PractitionerRole.practitioner.identifier.value",
        "short": "Número del DNI",
        "definition": "The value that is unique. The portion of the identifier typically relevant to the user and which is unique within the context of the system."
      },
      {
        "id": "PractitionerRole.practitioner.display",
        "path": "PractitionerRole.practitioner.display",
        "short": "Nombre completo del profesional sanitario",
        "definition": "Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference."
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "short": "Referencia al institución o centro afiliado al profesional sanitario",
        "definition": "Organization where the roles are available. The organization where the Practitioner performs the roles associated.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASOrganization"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.organization.reference",
        "path": "PractitionerRole.organization.reference",
        "short": "Referencia recurso FHIR. Identificador de la referencia del recurso FHIR asociado cuando exista/creamos un recurso en el mismo servidor FHIR",
        "definition": "Formato: [base]/Organization?identifier=[OID registro de número de REGCESS]|[Código REGCESS de la institución]"
      },
      {
        "id": "PractitionerRole.organization.type",
        "path": "PractitionerRole.organization.type",
        "short": "Tipo de recurso FHIR",
        "definition": "Type the reference refers to (e.g. \"Patient\") - must be a resource in resources. The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
        "min": 1
      },
      {
        "id": "PractitionerRole.organization.identifier",
        "path": "PractitionerRole.organization.identifier",
        "short": "Identificador del centro. Cuando no tengamos recurso Organization, se debera informar el identificador de institución mediante código REGCESS",
        "definition": "Logical reference, when literal reference is not known. An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
        "min": 1
      },
      {
        "id": "PractitionerRole.organization.identifier.system",
        "path": "PractitionerRole.organization.identifier.system",
        "short": "OID registro de número de REGCESS",
        "definition": "The namespace for the identifier value. Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique."
      },
      {
        "id": "PractitionerRole.organization.identifier.value",
        "path": "PractitionerRole.organization.identifier.value",
        "short": "Código REGCESS",
        "definition": "The value that is unique. The portion of the identifier typically relevant to the user and which is unique within the context of the system."
      },
      {
        "id": "PractitionerRole.organization.display",
        "path": "PractitionerRole.organization.display",
        "short": "Nombre completo del centro",
        "definition": "Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference."
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "short": "Categoría profesional",
        "definition": "Roles which this practitioner may perform. Roles which this practitioner is authorized to perform for the organization.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Categorías profesionales",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/CategoriasProfesionales"
        }
      },
      {
        "id": "PractitionerRole.code.coding.system",
        "path": "PractitionerRole.code.coding.system",
        "short": "URL del refset Categoría profesional 1 de SNOMED CT. Extensión para España del SNS | URL del SNOMED CT. Extensión para España del SNS",
        "definition": "Posibles URLs de terminologías utilizadas para indicar la categoría profesional y su descripción correspondiente:\r\n\r\n- Refset Categoría profesional 1 del SNOMED CT. Extensión para España del SNS: http://snomed.info/sct/900000001000122104?fhir_vs-refset/900000311000122104\r\n- SNOMED CT. Extensión para España del SNS con filtro aplicado al eje ocupación: http://snomed.info/sct/900000001000122104"
      },
      {
        "id": "PractitionerRole.code.coding.code",
        "path": "PractitionerRole.code.coding.code",
        "short": "Código de la categoría profesional"
      },
      {
        "id": "PractitionerRole.code.coding.display",
        "path": "PractitionerRole.code.coding.display",
        "short": "Descripción de la categoría profesional",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      }
    ]
  }
}