{
  "resourceType": "StructureDefinition",
  "id": "PatientBenefitsSynchronization",
  "meta": {
    "versionId": "58441922-0a4a-497f-9927-9861a33e1623",
    "lastUpdated": "2019-08-20T09:22:58.391+00:00"
  },
  "url": "http://spms.min-saude.pt/iop/StructureDefinition/PatientBenefitsSynchronization",
  "name": "PatientBenefitsSynchronization",
  "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:sliceIdentifierPRC",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierPRC",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:sliceIdentifierPRC.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "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",
        "min": 1,
        "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",
        "min": 1,
        "fixedString": "Visto de Residência"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierNIF",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "TAX"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNIF.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "min": 1,
        "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",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierNISS",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "SS"
      },
      {
        "id": "Patient.identifier:sliceIdentifierNISS.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "min": 1,
        "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",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierCZ",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "CZ"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.coding.display",
        "min": 1,
        "fixedString": "Citizenship Card"
      },
      {
        "id": "Patient.identifier:sliceIdentifierCZ.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.identifier.type.text",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC",
        "path": "Patient.identifier",
        "sliceName": "sliceIdentifierHC",
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type",
        "path": "Patient.identifier.type",
        "min": 1
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding",
        "path": "Patient.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding.system",
        "path": "Patient.identifier.type.coding.system",
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Patient.identifier:sliceIdentifierHC.type.coding.code",
        "path": "Patient.identifier.type.coding.code",
        "fixedCode": "HC"
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      }
    ]
  }
}