{
  "resourceType": "StructureDefinition",
  "id": "Patient",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-07-08T15:53:31.181+00:00"
  },
  "url": "http://spms.min-saude.pt/spms/STU3/StructureDefinition/Patient",
  "version": "1",
  "name": "Patient",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "min": 1
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierHC",
        "min": 1,
        "max": "1",
        "fixedIdentifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203/",
                "code": "HC",
                "display": "Health Card Number"
              }
            ]
          }
        }
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203/"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "HC"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "min": 1,
        "fixedString": "Health Card Number"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "fixedString": "SNS"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://spms.min-saude.pt/sclinico/identifiers/patient-id"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierPRC",
        "fixedIdentifier": {
          "use": "usual"
        }
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://hl7.org/fhir/valueset/identifier-type"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "PRC"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "fixedString": "Permanent Resident Card Number"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "fixedString": "Visto de Residência"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://www.sef.pt/identifiers/prc-card"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierCZ"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://hl7.org/fhir/valueset/identifier-type"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "CZ"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierNIF"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://hl7.org/fhir/valueset/identifier-type"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "NIF"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "fixedString": "Fiscal Identification Number"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "fixedString": "Número de Identificação Fiscal"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.system",
        "path": "Patient.identifier.system",
        "fixedUri": "https://www.nif.pt/"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierNISS"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://hl7.org/fhir/valueset/identifier-type"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "NISS"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "fixedString": "Social Security Identification Number"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "fixedString": "Número de Identificação da Segurança Social"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.system",
        "path": "Patient.identifier.system",
        "fixedUri": "http://www.seg-social.pt/pedido-de-niss1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNP",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierNP"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNP.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://www.seg-social.pt/pedido-de-niss1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNP.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "NProcesso"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNP.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "fixedString": "Process Number"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNP.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "fixedString": "Número do Processo"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.text",
        "path": "Patient.name.text",
        "min": 1
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom:sliceTelecomPhone",
        "path": "Patient.telecom",
        "sliceName": "sliceTelecomPhone"
      },
      {
        "id": "Patient.telecom:sliceTelecomPhone.system",
        "path": "Patient.telecom.system",
        "fixedCode": "phone"
      },
      {
        "id": "Patient.telecom:sliceTelecomEmail",
        "path": "Patient.telecom",
        "sliceName": "sliceTelecomEmail"
      },
      {
        "id": "Patient.telecom:sliceTelecomEmail.system",
        "path": "Patient.telecom.system",
        "fixedCode": "email"
      },
      {
        "id": "Patient.telecom:sliceTelecomFax",
        "path": "Patient.telecom",
        "sliceName": "sliceTelecomFax"
      },
      {
        "id": "Patient.telecom:sliceTelecomFax.system",
        "path": "Patient.telecom.system",
        "fixedCode": "fax"
      },
      {
        "id": "Patient.telecom:sliceTelecomOther",
        "path": "Patient.telecom",
        "sliceName": "sliceTelecomOther"
      },
      {
        "id": "Patient.telecom:sliceTelecomOther.system",
        "path": "Patient.telecom.system",
        "fixedCode": "other"
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      }
    ]
  }
}