{
  "resourceType": "StructureDefinition",
  "id": "SESCAMPatient",
  "url": "https://sescam.jccm.es/fhir/ig/core/StructureDefinition/SESCAMPatient",
  "name": "SESCAMPatient",
  "title": "Patient (SESCAM)",
  "status": "draft",
  "description": "Perfil del Paciente SESCAM, derivado del perfil EU Core Patient",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.eu/fhir/base-r5/StructureDefinition/patient-eu-core",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:nif",
        "path": "Patient.identifier",
        "sliceName": "nif",
        "short": "NIF/NIE (identificador fiscal en España)",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:nif.type",
        "path": "Patient.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "NNESP",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
            }
          ]
        }
      },
      {
        "id": "Patient.identifier:nass",
        "path": "Patient.identifier",
        "sliceName": "nass",
        "short": "Número de afiliación a la Seguridad Social",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:nass.type",
        "path": "Patient.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "SS",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
            }
          ]
        }
      },
      {
        "id": "Patient.identifier:cipSns",
        "path": "Patient.identifier",
        "sliceName": "cipSns",
        "short": "Código de identificación personal único del SNS",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:cipSns.use",
        "path": "Patient.identifier.use",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:cipSns.type",
        "path": "Patient.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "HC",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
            }
          ]
        }
      },
      {
        "id": "Patient.identifier:nhc",
        "path": "Patient.identifier",
        "sliceName": "nhc",
        "short": "Número de historia clínica",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:nhc.type",
        "path": "Patient.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "MR",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
            }
          ]
        }
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "https://sescam.jccm.es/fhir/ig/core/StructureDefinition/humanname-eu-sescam"
            ]
          }
        ]
      }
    ]
  }
}