{
  "resourceType": "StructureDefinition",
  "url": "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASEncounter",
  "name": "UNICASEncounter",
  "title": "Encounter Interacción Clínica ÚNICAS",
  "status": "draft",
  "description": "Este profile define las restricciones del recurso Encounter para representar el registro de la interacción clínica en el contexto del caso de uso de ÚNICAS.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.text",
        "path": "Encounter.text",
        "short": "Descripción del episodio",
        "definition": "Indica la descripción del episodio registrada en el sistema de información identificado.\r\n\r\nDescriptivo del diagnóstico en el momento de crearlo o modificarlo para:\r\n- Consultas externas.\r\n- Hospitalización a domicilio.\r\n- Hospital día.\r\n- Urgencias.\r\n\r\nPara las Hospitalizaciones si son programadas:\r\n- Desde el momento en que estén planificadas, el descriptivo del procedimiento principal por el que se programaron\r\n- Sí se produce algún cambio en el procedimiento principal desde la admisión hasta el alta, este se trasladará a la narrativa\r\n\r\nPara las no programadas:\r\n- Mientras no exista diagnóstico principal se utilizará el motivo de ingreso (chief complaint)\r\n- Desde el momento que se registre o modifique el diagnóstico principal se utilizará este."
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "short": "Identificador único",
        "min": 1
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "short": "Sistema para identificar el origen",
        "definition": "Formato: urn:regcess:[CódigoREGCESS]\r\nDebe incluir el código REGCESS después de urn:regcess:",
        "min": 1,
        "constraint": [
          {
            "key": "regcess-system",
            "severity": "warning",
            "human": "system debe comenzar por urn:regcess: seguido del identificador del sistema.",
            "expression": "matches('^urn:regcess:[A-Za-z0-9]+$')"
          }
        ]
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "short": "Identificador interno del sistema para la interacción clínica",
        "definition": "Debe indicar el ID interno del sistema de origen utilizado para la interacción clínica",
        "min": 1
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "short": "Tipo de actividad ÚNICAS",
        "definition": "Classification of patient encounter context - e.g. Inpatient, outpatient. Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Value set de Actividades ÚNICAS",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/ActividadesUNICAS"
        }
      },
      {
        "id": "Encounter.class.coding.system",
        "path": "Encounter.class.coding.system",
        "short": "URL del Code system de Actividades ÚNICAS",
        "definition": "Posible URL de codesystem utilizado para indicar la actividad ÚNICAS y su descripción correspondiente:\r\n\r\n- Code system de Actividades ÚNICAS: https://unicas-fhir.sanidad.gob.es/CodeSystem/CodigosActividadesUNICAS"
      },
      {
        "id": "Encounter.class.coding.code",
        "path": "Encounter.class.coding.code",
        "short": "Código de la actividad ÚNICAS"
      },
      {
        "id": "Encounter.class.coding.display",
        "path": "Encounter.class.coding.display",
        "short": "Descripción de la actividad ÚNICAS",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "short": "Tipo de servicio",
        "definition": "Specific type of service. Broad categorization of the service that is to be provided (e.g. cardiology)."
      },
      {
        "id": "Encounter.serviceType.concept",
        "path": "Encounter.serviceType.concept",
        "short": "Tipo de Servicio",
        "definition": "Reference to a concept (by class). A reference to a concept - e.g. the information is identified by its general class to the degree of precision found in the terminology.",
        "binding": {
          "strength": "required",
          "description": "Value set de Tipos de servicios asistenciales para ÚNICAS",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/TiposServicios"
        }
      },
      {
        "id": "Encounter.serviceType.concept.coding.system",
        "path": "Encounter.serviceType.concept.coding.system",
        "short": "OID del catálogo de clasificación de Servicios",
        "definition": "Posible OID de catálogo utilizado para indicar la clasificación de servicio y su descripción correspondiente:\r\n\r\n- Catálogo de clasificación de Servicios: urn:oid:2.16.724.4.21.5.9"
      },
      {
        "id": "Encounter.serviceType.concept.coding.code",
        "path": "Encounter.serviceType.concept.coding.code",
        "short": "Código del servicio asistencial para ÚNICAS"
      },
      {
        "id": "Encounter.serviceType.concept.coding.display",
        "path": "Encounter.serviceType.concept.coding.display",
        "short": "Descripción del servicio asistencial para ÚNICAS",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "short": "Referencia al paciente",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPatient"
            ]
          }
        ]
      },
      {
        "id": "Encounter.subject.reference",
        "path": "Encounter.subject.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]/Patient?identifier=[OID registro de número de CIP-SNS]|[Número CIP-SNS]"
      },
      {
        "id": "Encounter.subject.type",
        "path": "Encounter.subject.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.\r\n\r\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": "Encounter.subject.identifier",
        "path": "Encounter.subject.identifier",
        "short": "Identificador de paciente CIP-SNS. Cuando no tengamos recurso Patient, se debera informar el identificador de paciente mediante CIP-SNS",
        "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": "Encounter.subject.identifier.type",
        "path": "Encounter.subject.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": "Encounter.subject.identifier.type.coding.system",
        "path": "Encounter.subject.identifier.type.coding.system",
        "short": "URL del 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- SNOMED CT. Extensión para España del SNS: http://snomed.info/sct/900000001000122104"
      },
      {
        "id": "Encounter.subject.identifier.type.coding.code",
        "path": "Encounter.subject.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "Encounter.subject.identifier.type.coding.display",
        "path": "Encounter.subject.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": "Encounter.subject.identifier.system",
        "path": "Encounter.subject.identifier.system",
        "short": "OID registro de número de CIP-SNS",
        "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": "Encounter.subject.identifier.value",
        "path": "Encounter.subject.identifier.value",
        "short": "Número CIP-SNS",
        "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": "Encounter.subject.display",
        "path": "Encounter.subject.display",
        "short": "Nombre completo del paciente",
        "definition": "Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference."
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "short": "Referencia a la institución (Servicio Funcional)",
        "definition": "The organization (facility) responsible for this encounter. The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation.  Refer to the colonoscopy example on the Encounter examples tab.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASOrganization"
            ]
          }
        ]
      },
      {
        "id": "Encounter.serviceProvider.reference",
        "path": "Encounter.serviceProvider.reference",
        "short": "Referencia recurso FHIR",
        "definition": "Formato: [base]/Organization?identifier=[OID registro de número de REGCESS]|[Código REGCESS de la institución]"
      },
      {
        "id": "Encounter.serviceProvider.type",
        "path": "Encounter.serviceProvider.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.\r\n\r\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": "Encounter.serviceProvider.identifier",
        "path": "Encounter.serviceProvider.identifier",
        "short": "Identificador de la institución. 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": "Encounter.serviceProvider.identifier.system",
        "path": "Encounter.serviceProvider.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": "Encounter.serviceProvider.identifier.value",
        "path": "Encounter.serviceProvider.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": "Encounter.serviceProvider.display",
        "path": "Encounter.serviceProvider.display",
        "short": "Nombre completo de la institución",
        "definition": "Text alternative for the resource. Plain text narrative that identifies the resource in addition to the resource reference."
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "short": "Profesional sanitario",
        "definition": "List of participants involved in the encounter. The list of people responsible for providing the service.",
        "min": 1
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "short": "Tipo de profesional que atiende al paciente"
      },
      {
        "id": "Encounter.participant.type.coding.system",
        "path": "Encounter.participant.type.coding.system",
        "short": "OID del codesystem ParticipationType",
        "definition": "Posible URL de codesystem utilizado para indicar el tipo de profesional y su descripción correspondiente:\r\n\r\n- Code system ParticipationType: http://terminology.hl7.org/CodeSystem/v3-ParticipationType"
      },
      {
        "id": "Encounter.participant.type.coding.code",
        "path": "Encounter.participant.type.coding.code",
        "short": "Código del tipo de profesional: PPRF"
      },
      {
        "id": "Encounter.participant.type.coding.display",
        "path": "Encounter.participant.type.coding.display",
        "short": "Descripción del tipo de profesional: primary performer",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Encounter.participant.actor",
        "path": "Encounter.participant.actor",
        "short": "Referencia al profesional sanitario",
        "definition": "The individual, device, or service participating in the encounter. Person involved in the encounter, the patient/group is also included here to indicate that the patient was actually participating in the encounter. Not including the patient here covers use cases such as a case meeting between practitioners about a patient - non contact times.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitionerRole",
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitioner"
            ]
          }
        ]
      },
      {
        "id": "Encounter.participant.actor.reference",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.type",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier.extension:numeroColegiadoProfesionalSanitario",
        "path": "Encounter.participant.actor.identifier.extension",
        "sliceName": "numeroColegiadoProfesionalSanitario",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/NumeroColegiadoProfesionalSanitario"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.participant.actor.identifier.type",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier.type.coding.system",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier.type.coding.code",
        "path": "Encounter.participant.actor.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "Encounter.participant.actor.identifier.type.coding.display",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier.system",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.identifier.value",
        "path": "Encounter.participant.actor.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": "Encounter.participant.actor.display",
        "path": "Encounter.participant.actor.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": "Encounter.appointment",
        "path": "Encounter.appointment",
        "short": "Referencia a la cita programada",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASAppointment"
            ]
          }
        ]
      },
      {
        "id": "Encounter.appointment.reference",
        "path": "Encounter.appointment.reference",
        "short": "Referencia recurso FHIR",
        "definition": "Formato: [base]/Appointment?identifier=urn:regcess:[CódigoREGCESS]|[Id interno del sistema para la cita programada]"
      },
      {
        "id": "Encounter.appointment.type",
        "path": "Encounter.appointment.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)."
      },
      {
        "id": "Encounter.appointment.identifier",
        "path": "Encounter.appointment.identifier",
        "short": "Identificador de recurso FHIR",
        "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."
      },
      {
        "id": "Encounter.appointment.identifier.system",
        "path": "Encounter.appointment.identifier.system",
        "short": "Sistema para identificar el origen",
        "definition": "Formato: urn:regcess:[CódigoREGCESS]\r\nDebe incluir el código REGCESS después de urn:regcess:"
      },
      {
        "id": "Encounter.appointment.identifier.value",
        "path": "Encounter.appointment.identifier.value",
        "short": "Identificador interno del sistema para la cita programada",
        "definition": "Debe indicar el ID interno del sistema de origen utilizado para la cita programada."
      },
      {
        "id": "Encounter.plannedStartDate",
        "path": "Encounter.plannedStartDate",
        "short": "Fecha de inicio de la interacción clínica",
        "min": 1
      },
      {
        "id": "Encounter.plannedEndDate",
        "path": "Encounter.plannedEndDate",
        "short": "Fecha de fin de la interacción clínica"
      },
      {
        "id": "Encounter.reason",
        "path": "Encounter.reason",
        "short": "Motivo de cita"
      },
      {
        "id": "Encounter.reason.value.concept",
        "path": "Encounter.reason.value.concept",
        "short": "Motivo de cita",
        "definition": "Reference to a concept (by class). A reference to a concept - e.g. the information is identified by its general class to the degree of precision found in the terminology.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Motivos de la cita",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/MotivosCita"
        }
      },
      {
        "id": "Encounter.reason.value.concept.coding.system",
        "path": "Encounter.reason.value.concept.coding.system",
        "short": "URL del SNOMED CT. Extensión para España del SNS | OID del CIE-10-ES. Diagnósticos | OID del ORPHA",
        "definition": "Posibles URLs y/o OIDs de terminologías utilizadas para indicar el motivo de la cita y su descripción correspondiente:\r\n\n- SNOMED CT. Extensión para España del SNS con filtro eje hallazgo: http://snomed.info/sct/900000001000122104\n- CIE-10-ES. Diagnósticos: urn:oid:2.16.724.4.21.5.29\n- ORPHA: urn:oid:2.16.724.4.21.5.22"
      },
      {
        "id": "Encounter.reason.value.concept.coding.code",
        "path": "Encounter.reason.value.concept.coding.code",
        "short": "Código del motivo de la cita"
      },
      {
        "id": "Encounter.reason.value.concept.coding.display",
        "path": "Encounter.reason.value.concept.coding.display",
        "short": "Descripción del motivo de la cita",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Encounter.diagnosis",
        "path": "Encounter.diagnosis",
        "short": "Diagnósticos (Diagnóstico principal y/o secundarios asociados a la interacción clínica)"
      },
      {
        "id": "Encounter.diagnosis.condition",
        "path": "Encounter.diagnosis.condition",
        "short": "Referencia al diagnóstico",
        "definition": "The diagnosis relevant to the encounter. The coded diagnosis or a reference to a Condition (with other resources referenced in the evidence.detail), the use property will indicate the purpose of this specific diagnosis.",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASConditionDiagnostico"
            ]
          }
        ]
      },
      {
        "id": "Encounter.diagnosis.condition.reference",
        "path": "Encounter.diagnosis.condition.reference",
        "short": "Referencia al diagnóstico",
        "definition": "Reference to a resource (by instance). A reference to a resource the provides exact details about the information being referenced."
      },
      {
        "id": "Encounter.diagnosis.condition.reference.reference",
        "path": "Encounter.diagnosis.condition.reference.reference",
        "short": "Referencia recurso FHIR",
        "definition": "Formato: [base]/Condition?identifier=urn:regcess:[CódigoREGCESS]|[Id interno del sistema para el diagnóstico]"
      },
      {
        "id": "Encounter.diagnosis.condition.reference.type",
        "path": "Encounter.diagnosis.condition.reference.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.\r\n\r\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)."
      },
      {
        "id": "Encounter.diagnosis.condition.reference.identifier",
        "path": "Encounter.diagnosis.condition.reference.identifier",
        "short": "Identificador del recurso FHIR",
        "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."
      },
      {
        "id": "Encounter.diagnosis.condition.reference.identifier.system",
        "path": "Encounter.diagnosis.condition.reference.identifier.system",
        "short": "Sistema para identificar el origen",
        "definition": "Formato: urn:regcess:[CódigoREGCESS]\r\nDebe incluir el código REGCESS después de urn:regcess:"
      },
      {
        "id": "Encounter.diagnosis.condition.reference.identifier.value",
        "path": "Encounter.diagnosis.condition.reference.identifier.value",
        "short": "Identificador interno del sistema para el diagnóstico",
        "definition": "Debe indicar el ID interno del sistema de origen utilizado para el diagnóstico."
      },
      {
        "id": "Encounter.diagnosis.use",
        "path": "Encounter.diagnosis.use",
        "short": "Uso del diagnóstico en función de su registro"
      },
      {
        "id": "Encounter.admission.admitSource",
        "path": "Encounter.admission.admitSource",
        "short": "Procedencia de la interacción clínica",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Procedencia de la interacción clínica (Encounter)",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/ProcedenciaInteraccionClinica"
        }
      },
      {
        "id": "Encounter.admission.dischargeDisposition",
        "path": "Encounter.admission.dischargeDisposition",
        "short": "Tipo de alta de la interacción clínica",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Tipo de alta de la interacción clínica (Encounter)",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/TipoAltaInteraccionClinica"
        }
      }
    ]
  }
}