{
  "resourceType": "StructureDefinition",
  "id": "MyPractitioner",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "individual"
    }
  ],
  "url": "http://example.org/StructureDefinition/MyPractitioner",
  "version": "2.0",
  "name": "MyPractitioner",
  "status": "active",
  "date": "2023-09-04T16:49:06.4289115+00:00",
  "fhirVersion": "4.3.0",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Practitioner",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Practitioner.identifier",
        "path": "Practitioner.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "description": "Slice",
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Practitioner.identifier:TAX",
        "path": "Practitioner.identifier",
        "sliceName": "TAX",
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://example.org/StructureDefinition/MyIdentifier"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:TAX.system",
        "path": "Practitioner.identifier.system",
        "fixedUri": "http://AT.pt/NIF"
      },
      {
        "id": "Practitioner.identifier:TAX.value",
        "path": "Practitioner.identifier.value",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "Rh_colaboradores.ncontribuinte"
          }
        ]
      },
      {
        "id": "Practitioner.identifier:STAFF",
        "path": "Practitioner.identifier",
        "sliceName": "STAFF",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://example.org/StructureDefinition/MyIdentifier"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:STAFF.system",
        "path": "Practitioner.identifier.system",
        "fixedUri": "http://MyProject/STAFFID"
      },
      {
        "id": "Practitioner.identifier:STAFF.value",
        "path": "Practitioner.identifier.value",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "Rh_colaboradores.codigouser"
          }
        ]
      },
      {
        "id": "Practitioner.active",
        "path": "Practitioner.active",
        "min": 1
      },
      {
        "id": "Practitioner.name",
        "path": "Practitioner.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ]
        },
        "min": 2
      },
      {
        "id": "Practitioner.name:NOME",
        "path": "Practitioner.name",
        "sliceName": "NOME",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Practitioner.name:NOME.use",
        "path": "Practitioner.name.use",
        "fixedCode": "official"
      },
      {
        "id": "Practitioner.name:NOME.text",
        "path": "Practitioner.name.text",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "rh_colaboradores.NOME"
          }
        ]
      },
      {
        "id": "Practitioner.name:NOME.family",
        "path": "Practitioner.name.family",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOME.given",
        "path": "Practitioner.name.given",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOME.prefix",
        "path": "Practitioner.name.prefix",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "rh_colaboradores.TITULOID"
          }
        ]
      },
      {
        "id": "Practitioner.name:NOME.suffix",
        "path": "Practitioner.name.suffix",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOME.period",
        "path": "Practitioner.name.period",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO",
        "path": "Practitioner.name",
        "sliceName": "NOMEPREFERIDO",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.use",
        "path": "Practitioner.name.use",
        "fixedCode": "usual"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.text",
        "path": "Practitioner.name.text",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "rh_colaboradores.NOMEPREFERIDO"
          }
        ]
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.family",
        "path": "Practitioner.name.family",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.given",
        "path": "Practitioner.name.given",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.prefix",
        "path": "Practitioner.name.prefix",
        "mapping": [
          {
            "identity": "xHIS",
            "map": "rh_colaboradores.TITULOID"
          }
        ]
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.suffix",
        "path": "Practitioner.name.suffix",
        "max": "0"
      },
      {
        "id": "Practitioner.name:NOMEPREFERIDO.period",
        "path": "Practitioner.name.period",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom",
        "path": "Practitioner.telecom",
        "max": "0"
      },
      {
        "id": "Practitioner.address",
        "path": "Practitioner.address",
        "max": "0"
      },
      {
        "id": "Practitioner.gender",
        "path": "Practitioner.gender",
        "max": "0"
      },
      {
        "id": "Practitioner.birthDate",
        "path": "Practitioner.birthDate",
        "max": "0"
      },
      {
        "id": "Practitioner.photo",
        "path": "Practitioner.photo",
        "max": "0"
      },
      {
        "id": "Practitioner.qualification.identifier",
        "path": "Practitioner.qualification.identifier",
        "max": "0"
      },
      {
        "id": "Practitioner.qualification.period",
        "path": "Practitioner.qualification.period",
        "max": "0"
      },
      {
        "id": "Practitioner.qualification.issuer",
        "path": "Practitioner.qualification.issuer",
        "max": "0"
      },
      {
        "id": "Practitioner.communication",
        "path": "Practitioner.communication",
        "max": "0"
      }
    ]
  }
}