{
  "resourceType": "StructureDefinition",
  "url": "http://www.adusoft.fr/xips/StructureDefinition/fr-patient",
  "version": "4.0.0",
  "name": "FrPatient",
  "title": "fr-isr4-patient-clone",
  "status": "draft",
  "date": "2019-07-08",
  "publisher": "Interop'Santé",
  "contact": [
    {
      "name": "François Macary/Isabelle Gibaud",
      "telecom": [
        {
          "system": "email",
          "value": "francois.macary@phast.fr",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Profile of the Patient resource for France | Profil de la ressource Patient pour l'usage en France\r\nThis profile specifies the patient's identifiers for France. It uses international extensions (birtplace and nationality) and adds specific French extensions | Ce profil spécifie les identifiants de patient utilisés en France. Il utilise des extensions internationales (birthplace et nationalité) et ajoute des extensions propres à la France.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-birth-place"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:deathPlace",
        "path": "Patient.extension",
        "sliceName": "deathPlace",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-deathplace"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:reliabilityIdentity",
        "path": "Patient.extension",
        "sliceName": "reliabilityIdentity",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-identity-reliability"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:nationality",
        "path": "Patient.extension",
        "sliceName": "nationality",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/patient-nationality"
            ]
          }
        ]
      },
      {
        "id": "Patient.extension:lunarDate",
        "path": "Patient.extension",
        "sliceName": "lunarDate",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-lunar-date"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "description": "slicing de l'identifiant Patient sur le type d'identifiant (IPP, INS-NIR, INS-NIA, etc.)",
          "rules": "open"
        },
        "short": "National Health Identifier | Identifiant national de santé"
      },
      {
        "id": "Patient.identifier.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:INS-NIR",
        "path": "Patient.identifier",
        "sliceName": "INS-NIR"
      },
      {
        "id": "Patient.identifier:INS-NIR.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:INS-NIR.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "INS-NIR",
              "display": "NIR"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:INS-NIR.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "urn:iso:std:iso:1.2.250.1.213.1.4.10"
      },
      {
        "id": "Patient.identifier:INS-NIR.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:INS-NIA",
        "path": "Patient.identifier",
        "sliceName": "INS-NIA"
      },
      {
        "id": "Patient.identifier:INS-NIA.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:INS-NIA.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "INS-NIA",
              "display": "NIR temporaire"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:INS-NIA.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "urn:iso:std:iso:1.2.250.1.213.1.4.10"
      },
      {
        "id": "Patient.identifier:INS-NIA.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:PPN",
        "path": "Patient.identifier",
        "sliceName": "PPN",
        "max": "1"
      },
      {
        "id": "Patient.identifier:PPN.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:PPN.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "PPN",
              "display": "Passport number"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:PPN.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://terminology.interopsante.org/CodeSystem/v2-0203"
      },
      {
        "id": "Patient.identifier:PPN.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:INS-C",
        "path": "Patient.identifier",
        "sliceName": "INS-C",
        "short": "Computed National Health Identifier | Identifiant National de Santé Calculé"
      },
      {
        "id": "Patient.identifier:INS-C.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:INS-C.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "INS-C",
              "display": "INS calculé"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:INS-C.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "urn:iso:std:iso:1.2.250.1.213.1.4.2"
      },
      {
        "id": "Patient.identifier:INS-C.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:NNFRA",
        "path": "Patient.identifier",
        "sliceName": "NNFRA",
        "short": "National Person Identifier | Numéro de carte nationale d'identité",
        "max": "1"
      },
      {
        "id": "Patient.identifier:NNFRA.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:NNFRA.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "NNFRA",
              "display": "National person identifier"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:NNFRA.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://terminology.interopsante.org/CodeSystem/v2-0203"
      },
      {
        "id": "Patient.identifier:NNFRA.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:NDP",
        "path": "Patient.identifier",
        "sliceName": "NDP",
        "short": "Pharmaceutical Record Identifier | Numéro de Dossier Pharmaceutique",
        "max": "1"
      },
      {
        "id": "Patient.identifier:NDP.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:NDP.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "NDP",
              "display": "Identifiant au dossier pharmaceutique"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:NDP.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "urn:iso:std:iso:1.2.250.1.176.1.2"
      },
      {
        "id": "Patient.identifier:NDP.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:PI",
        "path": "Patient.identifier",
        "sliceName": "PI",
        "short": "Hospital assigned patient identifier | IPP",
        "max": "1"
      },
      {
        "id": "Patient.identifier:PI.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:PI.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "PI",
              "display": "Patient internal identifier"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:PI.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:PI.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:PN",
        "path": "Patient.identifier",
        "sliceName": "PN",
        "short": "Person Number | Identifiant de personne",
        "max": "1"
      },
      {
        "id": "Patient.identifier:PN.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:PN.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "PN",
              "display": "Person name"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:PN.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:PN.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:RRI",
        "path": "Patient.identifier",
        "sliceName": "RRI",
        "short": "Regional Registry ID | Identifiant régional"
      },
      {
        "id": "Patient.identifier:RRI.use",
        "path": "Patient.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Patient.identifier:RRI.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.org/CodeSystem/v2-0203",
              "code": "RRI",
              "display": "Regional registry ID"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-patient-identifier-type"
        }
      },
      {
        "id": "Patient.identifier:RRI.system",
        "path": "Patient.identifier.system",
        "min": 1
      },
      {
        "id": "Patient.identifier:RRI.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-human-name"
            ]
          }
        ]
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "short": "Given names (not always 'first'). Includes middle names | Prénoms",
        "definition": "Given name. The first occurence of the given name represents the given name usualy used.",
        "min": 1
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-contact-point"
            ]
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender"
        }
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-address"
            ]
          }
        ]
      },
      {
        "id": "Patient.contact.extension",
        "path": "Patient.contact.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.contact.extension:contactIdentifier",
        "path": "Patient.contact.extension",
        "sliceName": "contactIdentifier",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-contact-identifier"
            ]
          }
        ]
      },
      {
        "id": "Patient.contact.extension:comment",
        "path": "Patient.contact.extension",
        "sliceName": "comment",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-comment"
            ]
          }
        ]
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/valueset/fr-contact-relationship"
        }
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "type": [
          {
            "code": "HumanName",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-human-name"
            ]
          }
        ]
      },
      {
        "id": "Patient.contact.telecom",
        "path": "Patient.contact.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://www.adusoft.fr/xips/StructureDefinition/fr-contact-point"
            ]
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/structuredefinition/resource/fr-organization",
              "http://interopsante.org/fhir/structuredefinition/resource/fr-practitioner",
              "http://www.interopsante.org/fhir/structuredefinition/fr-practitioner-role"
            ]
          }
        ]
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/structuredefinition/resource/fr-organization"
            ]
          }
        ]
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                "valueBoolean": false
              }
            ],
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://www.interopsante.org/fhir/structuredefinition/resource/fr-patient"
            ]
          }
        ]
      },
      {
        "id": "Patient.link.type",
        "path": "Patient.link.type",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/link-type"
        }
      }
    ]
  }
}