{
  "resourceType": "StructureDefinition",
  "url": "http://phast.fr/fhir/StructureDefinition/Resource/SIPhFrPractitionerRoleProfessionPatched",
  "version": "4.1.0",
  "name": "FrPractionerRoleProfession",
  "status": "draft",
  "date": "2019-11-30",
  "publisher": "Interop'Santé + PHAST",
  "contact": [
    {
      "name": "François MACARY / Isabelle GIBAUD",
      "telecom": [
        {
          "system": "email",
          "value": "francois.macary@phast.fr",
          "use": "work"
        }
      ]
    },
    {
      "name": "Olivier BOUX",
      "telecom": [
        {
          "system": "email",
          "value": "olivier.boux@phast.fr",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Profile of the PractitionerRole resource. This profile specifies the professions of the practitioner authorized for France| Spécification du profil de la ressource PractitionerRole permettant de spécifier la ou les professions du PS autorisées pour un exercice en France.",
  "fhirVersion": "4.0.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": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "definition": "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time. Le profil *frPractionerRoleProfession* d'IS/ASIP complété d'une extension pour discriminer les étudiants selon les spécifcations du MOS.",
        "comment": "Selon le MOS (ASIP) transposé en FHIR, le type du PS est l'élément *code* contraint à un jeu de valeurs tiré du MOS, la spécialité est l'élément *specialty* contraint à un autre jeu de valeurs tiré du MOS. Il y manquait le marqueur *étudiant*, tiré lui aussi du MOS, propriété *categorieProfessionnelle* de la classe *ExerciceProfessionnel* (page 10/119 de la version 2019.10), un concept codé qui prend ses valeurs dans le système de codage *TRE_R09-CategorieProfessionnelle* du MOS.",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/structuredefinition/resource/fr-practitioner"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/structuredefinition/resource/fr-organization"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "short": "Professions which this practitioner may have",
        "definition": "Professions which this practitioner is authorized to perform in France. | Professions que le PS est autorisé à réaliser",
        "binding": {
          "strength": "required",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-practioner-role-profession"
        }
      },
      {
        "id": "PractitionerRole.code.extension",
        "path": "PractitionerRole.code.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PractitionerRole.code.extension:frMOScategorieProfessionnnelle",
        "path": "PractitionerRole.code.extension",
        "sliceName": "frMOScategorieProfessionnnelle",
        "comment": "Seul moyen de discriminer les étudiants selon le MOS qui reflète l'implémentation du système CPS et du RPPS. Si l'extension n'est pas instanciée, le rôle du PS n'est pas étudiant. Il s'agit d'un PS diplômé. Ce système de codage comporte 4 valeurs dont seule &quot;E&quot; est utile en production de soins pour discriminer les étudiants des différentes professions de santé réglementées.",
        "requirements": "Un étudiant n'a pas les mêmes habilitations ni capacités que le professionnel diplômé.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://phast.fr/StructureDefinition/SIPh-FrMOS-categorieProfessionnelle"
            ]
          }
        ],
        "meaningWhenMissing": "Si l'extension n'est pas instanciée, le rôle du PS n'est pas étudiant. Il s'agit d'un PS diplômé.",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "binding": {
          "strength": "required",
          "valueSet": "http://mos.asipsante.fr/NOS/PDF/TRE_R38-SpecialiteOrdinale.tabs.pdf"
        }
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "max": "0"
      },
      {
        "id": "PractitionerRole.healthcareService",
        "path": "PractitionerRole.healthcareService",
        "max": "0"
      },
      {
        "id": "PractitionerRole.telecom",
        "path": "PractitionerRole.telecom",
        "max": "0",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://www.interopsante.org/fhir/structuredefinition/datatype/fr-contact-point"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime",
        "path": "PractitionerRole.availableTime",
        "max": "0"
      },
      {
        "id": "PractitionerRole.notAvailable",
        "path": "PractitionerRole.notAvailable",
        "max": "0"
      },
      {
        "id": "PractitionerRole.availabilityExceptions",
        "path": "PractitionerRole.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "PractitionerRole.endpoint",
        "path": "PractitionerRole.endpoint",
        "max": "0"
      }
    ]
  }
}