{
  "resourceType": "StructureDefinition",
  "url": "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASImmunization",
  "name": "UNICASImmunization",
  "title": "Immunization Inmunización ÚNICAS",
  "status": "draft",
  "description": "Este profile define las restricciones del recurso Immunization para representar el registro de una inmunización en el contexto del caso de uso de ÚNICAS.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Immunization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Immunization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Immunization.identifier",
        "path": "Immunization.identifier",
        "short": "Identificador único",
        "definition": "Business identifier. A unique identifier assigned to this immunization record.",
        "min": 1
      },
      {
        "id": "Immunization.identifier.system",
        "path": "Immunization.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": "Immunization.identifier.value",
        "path": "Immunization.identifier.value",
        "short": "Identificador interno del sistema para la inmunización",
        "definition": "Debe indicar el ID interno del sistema de origen utilizado para la inmunización.",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode",
        "path": "Immunization.vaccineCode",
        "short": "Vacuna (producto)",
        "definition": "Vaccine administered. Vaccine that was administered or was to be administered.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Vacunas",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/Vacunas"
        }
      },
      {
        "id": "Immunization.vaccineCode.coding.system",
        "path": "Immunization.vaccineCode.coding.system",
        "short": "OID del catálogo Sistema de Información en Vacunaciones e Inmunizaciones (SIVIAN)",
        "definition": "Posible OID de catálogo utilizado para indicar la vacuna y su descripción correspondiente:\r\n\r\n- Catálogo de Sistema de Información en Vacunaciones e Inmunizaciones (SIVAIN): urn:oid:2.16.724.4.21.5.13",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.code",
        "path": "Immunization.vaccineCode.coding.code",
        "short": "Código de la vacuna",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.display",
        "path": "Immunization.vaccineCode.coding.display",
        "short": "Descripción de la vacuna",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system.",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.text",
        "path": "Immunization.vaccineCode.text",
        "short": "Nombre comercial de la vacuna",
        "definition": "Plain text representation of the concept. A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."
      },
      {
        "id": "Immunization.lotNumber",
        "path": "Immunization.lotNumber",
        "short": "Número de lote de la vacuna",
        "definition": "Vaccine lot number. Lot number of the  vaccine product."
      },
      {
        "id": "Immunization.expirationDate",
        "path": "Immunization.expirationDate",
        "short": "Fecha de caducidad",
        "definition": "Vaccine expiration date. Date vaccine batch expires."
      },
      {
        "id": "Immunization.patient",
        "path": "Immunization.patient",
        "short": "Referencia al paciente",
        "definition": "Who was immunized. The patient who either received or did not receive the immunization.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPatient"
            ]
          }
        ]
      },
      {
        "id": "Immunization.patient.reference",
        "path": "Immunization.patient.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": "Immunization.patient.type",
        "path": "Immunization.patient.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": "Immunization.patient.identifier",
        "path": "Immunization.patient.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": "Immunization.patient.identifier.type",
        "path": "Immunization.patient.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": "Immunization.patient.identifier.type.coding.system",
        "path": "Immunization.patient.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": "Immunization.patient.identifier.type.coding.code",
        "path": "Immunization.patient.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "Immunization.patient.identifier.type.coding.display",
        "path": "Immunization.patient.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": "Immunization.patient.identifier.system",
        "path": "Immunization.patient.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": "Immunization.patient.identifier.value",
        "path": "Immunization.patient.identifier.value",
        "short": "Número CIP-SNS",
        "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": "Immunization.patient.display",
        "path": "Immunization.patient.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": "Immunization.encounter",
        "path": "Immunization.encounter",
        "short": "Referencia a la interacción clínica",
        "definition": "Encounter immunization was part of. The visit or admission or other contact between patient and health care provider the immunization was performed as part of.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASEncounter"
            ]
          }
        ]
      },
      {
        "id": "Immunization.encounter.reference",
        "path": "Immunization.encounter.reference",
        "short": "Referencia recurso FHIR",
        "definition": "Formato: [base]/Encounter?identifier=urn:regcess:[CódigoREGCESS]|[Id interno del sistema para la interacción clínica]"
      },
      {
        "id": "Immunization.encounter.type",
        "path": "Immunization.encounter.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": "Immunization.encounter.identifier",
        "path": "Immunization.encounter.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": "Immunization.encounter.identifier.system",
        "path": "Immunization.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:"
      },
      {
        "id": "Immunization.encounter.identifier.value",
        "path": "Immunization.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"
      },
      {
        "id": "Immunization.occurrence[x]",
        "path": "Immunization.occurrence[x]",
        "short": "Fecha de administración",
        "definition": "Vaccine administration date. Date vaccine administered or was to be administered.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Immunization.site",
        "path": "Immunization.site",
        "short": "Localización anatómica de administración",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Localizaciones anatómicas de administración",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/LocalizacionesAnatomicas"
        }
      },
      {
        "id": "Immunization.site.coding.system",
        "path": "Immunization.site.coding.system",
        "short": "OID del catálogo Sistema de Información en Vacunaciones e Inmunizaciones (SIVIAN)",
        "definition": "Posible OID de catálogo utilizado para indicar la localización anatómica de administración y su descripción correspondiente:\r\n\r\n- Catálogo de Sistema de Información en Vacunaciones e Inmunizaciones (SIVAIN): urn:oid:2.16.724.4.21.5.13"
      },
      {
        "id": "Immunization.site.coding.code",
        "path": "Immunization.site.coding.code",
        "short": "Código del localización anatómica de administración"
      },
      {
        "id": "Immunization.site.coding.display",
        "path": "Immunization.site.coding.display",
        "short": "Descripción del localización anatómica de administración",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Immunization.route",
        "path": "Immunization.route",
        "short": "Vía de administración",
        "definition": "How vaccine entered body. The path by which the vaccine product is taken into the body.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Vias de administración vacunación",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/ViasAdministracionVacunacion"
        }
      },
      {
        "id": "Immunization.route.coding.system",
        "path": "Immunization.route.coding.system",
        "short": "OID del catálogo Sistema de Información en Vacunaciones e Inmunizaciones (SIVIAN)",
        "definition": "Posible OID de catálogo utilizado para indicar la vía de administración y su descripción correspondiente:\r\n\r\n- Catálogo de Sistema de Información en Vacunaciones e Inmunizaciones (SIVAIN): urn:oid:2.16.724.4.21.5.13"
      },
      {
        "id": "Immunization.route.coding.code",
        "path": "Immunization.route.coding.code",
        "short": "Código de la vía de administración"
      },
      {
        "id": "Immunization.route.coding.display",
        "path": "Immunization.route.coding.display",
        "short": "Descripción de la vía de administración",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Immunization.doseQuantity",
        "path": "Immunization.doseQuantity",
        "short": "Dosis administrada",
        "definition": "Amount of vaccine administered. The quantity of vaccine product that was administered.",
        "min": 1
      },
      {
        "id": "Immunization.doseQuantity.value",
        "path": "Immunization.doseQuantity.value",
        "short": "Número de dosis",
        "definition": "Numerical value (with implicit precision). The value of the measured amount. The value includes an implicit precision in the presentation of the value."
      },
      {
        "id": "Immunization.doseQuantity.unit",
        "path": "Immunization.doseQuantity.unit",
        "short": "Unidad de dosis",
        "definition": "Unit representation. A human-readable form of the unit."
      },
      {
        "id": "Immunization.doseQuantity.system",
        "path": "Immunization.doseQuantity.system",
        "short": "URL del catálogo UCUM",
        "definition": "- Unified Code for Units of Measure (UCUM): http://unitsofmeasure.org"
      },
      {
        "id": "Immunization.doseQuantity.code",
        "path": "Immunization.doseQuantity.code",
        "short": "Código de la unidad de la dosis",
        "definition": "Coded form of the unit. A computer processable form of the unit in some unit representation system."
      },
      {
        "id": "Immunization.performer",
        "path": "Immunization.performer",
        "short": "Profesional sanitario",
        "definition": "Who performed event. Indicates who performed the immunization event.",
        "min": 1
      },
      {
        "id": "Immunization.performer.actor",
        "path": "Immunization.performer.actor",
        "short": "Referencia al profesional sanitario",
        "definition": "Individual or organization who was performing. The practitioner or organization who performed the action.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitionerRole",
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPractitioner",
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASOrganization"
            ]
          }
        ]
      },
      {
        "id": "Immunization.performer.actor.reference",
        "path": "Immunization.performer.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": "Immunization.performer.actor.type",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier.extension:numeroColegiadoProfesionalSanitario",
        "path": "Immunization.performer.actor.identifier.extension",
        "sliceName": "numeroColegiadoProfesionalSanitario",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/NumeroColegiadoProfesionalSanitario"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Immunization.performer.actor.identifier.type",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier.type.coding.system",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier.type.coding.code",
        "path": "Immunization.performer.actor.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "Immunization.performer.actor.identifier.type.coding.display",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier.system",
        "path": "Immunization.performer.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": "Immunization.performer.actor.identifier.value",
        "path": "Immunization.performer.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": "Immunization.performer.actor.display",
        "path": "Immunization.performer.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": "Immunization.reason",
        "path": "Immunization.reason",
        "short": "Motivo de la vacunación",
        "definition": "Why immunization occurred. Describes why the immunization occurred in coded or textual form, or Indicates another resource (Condition, Observation or DiagnosticReport) whose existence justifies this immunization.",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "description": "Value set de Motivos de vacunación",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/MotivosVacunacion"
        }
      },
      {
        "id": "Immunization.reason.concept",
        "path": "Immunization.reason.concept",
        "short": "Motivo de la vacunación",
        "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."
      },
      {
        "id": "Immunization.reason.concept.coding.system",
        "path": "Immunization.reason.concept.coding.system",
        "short": "OID del catálogo Sistema de Información en Vacunaciones e Inmunizaciones (SIVIAN)",
        "definition": "Posible OID de catálogo utilizado para indicar el motivo de la vacunación y su descripción correspondiente:\r\n\r\n- Catálogo de Sistema de Información en Vacunaciones e Inmunizaciones (SIVAIN): urn:oid:2.16.724.4.21.5.13",
        "min": 1
      },
      {
        "id": "Immunization.reason.concept.coding.code",
        "path": "Immunization.reason.concept.coding.code",
        "short": "Código del motivo de la vacunación",
        "min": 1
      },
      {
        "id": "Immunization.reason.concept.coding.display",
        "path": "Immunization.reason.concept.coding.display",
        "short": "Descripción del motivo de la vacunación",
        "definition": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system.",
        "min": 1
      }
    ]
  }
}