{
  "resourceType": "StructureDefinition",
  "url": "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASFamilyMemberHistory",
  "name": "UNICASFamilyMemberHistory",
  "title": "FamilyMemberHistory Antecedente Familiar ÚNICAS",
  "status": "draft",
  "description": "Este profile define las restricciones del recurso FamilyMemberHistory para representar el registro de un antecedente familiar en el contexto del caso de uso de ÚNICAS.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "FamilyMemberHistory",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "FamilyMemberHistory.identifier",
        "path": "FamilyMemberHistory.identifier",
        "short": "Identificador único",
        "definition": "External Id(s) for this record. Business identifiers assigned to this family member history by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.identifier.system",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.identifier.value",
        "path": "FamilyMemberHistory.identifier.value",
        "short": "Identificador interno del sistema para el antecedente familiar",
        "definition": "Debe indicar el ID interno del sistema de origen utilizado para el antecedente familiar.",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.patient",
        "path": "FamilyMemberHistory.patient",
        "short": "Referencia al paciente",
        "definition": "Patient history is about. The person who this history concerns.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://unicas-fhir.sanidad.gob.es/StructureDefinition/UNICASPatient"
            ]
          }
        ]
      },
      {
        "id": "FamilyMemberHistory.patient.reference",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.type",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier.type",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier.type.coding.system",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier.type.coding.code",
        "path": "FamilyMemberHistory.patient.identifier.type.coding.code",
        "short": "Código del identificador"
      },
      {
        "id": "FamilyMemberHistory.patient.identifier.type.coding.display",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier.system",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.patient.identifier.value",
        "path": "FamilyMemberHistory.patient.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": "FamilyMemberHistory.patient.display",
        "path": "FamilyMemberHistory.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": "FamilyMemberHistory.relationship",
        "path": "FamilyMemberHistory.relationship",
        "short": "Relación de parentesco entre el paciente y el familiar con enfermedad hereditaria (Grado de parentesco)",
        "definition": "Relationship to the subject. The type of relationship this person has to the patient (father, mother, brother etc.).",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Tipos de relaciones de parentesco entre el paciente y el familiar con enfermedades hereditarias en ÚNICAS (Grados de parentesco)",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/GradosParentescoHereditario"
        }
      },
      {
        "id": "FamilyMemberHistory.relationship.coding.system",
        "path": "FamilyMemberHistory.relationship.coding.system",
        "short": "URL del SNOMED CT. Extensión para España del SNS",
        "definition": "Posible URL de terminología utilizada para indicar el grado de parentesco y su descripción correspondiente:\r\n\r\n- SNOMED CT. Extensión para España del SNS con descendientes del familiar consanguíneo: http://snomed.info/sct/900000001000122104",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.relationship.coding.code",
        "path": "FamilyMemberHistory.relationship.coding.code",
        "short": "Código del grado de parentesco",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.relationship.coding.display",
        "path": "FamilyMemberHistory.relationship.coding.display",
        "short": "Decripción del grado de parentesco",
        "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": "FamilyMemberHistory.condition",
        "path": "FamilyMemberHistory.condition",
        "short": "Enfermedad familiar hereditaria",
        "definition": "Condition that the related person had. The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition.",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.condition.code",
        "path": "FamilyMemberHistory.condition.code",
        "short": "Enfermedad",
        "definition": "Condition suffered by relation. The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system.",
        "binding": {
          "strength": "extensible",
          "description": "Value set de Enfermedades",
          "valueSet": "https://unicas-fhir.sanidad.gob.es/ValueSet/Enfermedades"
        }
      },
      {
        "id": "FamilyMemberHistory.condition.code.coding.system",
        "path": "FamilyMemberHistory.condition.code.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 la enfermedad y su descripción correspondiente:\r\n\n- SNOMED CT. Extensión para España del SNS con filtro aplicado al eje hallazgo: http://snomed.info/sct/900000001000122104\n- CIE-10-ES. Diagnósticos: urn:oid:2.16.724.4.21.5.29\r\n- ORPHA: urn:oid:2.16.724.4.21.5.22",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.condition.code.coding.code",
        "path": "FamilyMemberHistory.condition.code.coding.code",
        "short": "Código del enfermedad",
        "min": 1
      },
      {
        "id": "FamilyMemberHistory.condition.code.coding.display",
        "path": "FamilyMemberHistory.condition.code.coding.display",
        "short": "Descripción del enfermedad",
        "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": "FamilyMemberHistory.condition.code.text",
        "path": "FamilyMemberHistory.condition.code.text",
        "short": "Representation defined by the system. A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "FamilyMemberHistory.condition.onset[x]",
        "path": "FamilyMemberHistory.condition.onset[x]",
        "short": "Fecha de inicio",
        "definition": "When condition first manifested. Either the age of onset, range of approximate age or descriptive string can be recorded.  For conditions with multiple occurrences, this describes the first known occurrence."
      }
    ]
  }
}