{
  "resourceType": "StructureDefinition",
  "id": "fr-organization",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrOrganization",
  "version": "1.0.1",
  "name": "FrOrganization",
  "status": "active",
  "date": "2022-10-20",
  "publisher": "InteropSanté",
  "contact": [
    {
      "name": "InteropSanté",
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org",
          "use": "work"
        }
      ]
    }
  ],
  "description": "New Profile of the Organization resource for France | New Profil de la ressource Organization pour la France\r\nThis profile specifies the types of identifiers for organizations in France, and adds a number of French extensions. | Ce profil spécifie les types d'identifiants pour l'organisation en France, et ajoute des extensions françaises.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Organization.extension:shortName",
        "path": "Organization.extension",
        "sliceName": "shortName",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrOrganizationShortName"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:description",
        "path": "Organization.extension",
        "sliceName": "description",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrOrganizationDescription"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:usePeriod",
        "path": "Organization.extension",
        "sliceName": "usePeriod",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/organization-period"
            ]
          }
        ]
      },
      {
        "id": "Organization.identifier.use",
        "path": "Organization.identifier.use",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use"
        }
      },
      {
        "id": "Organization.identifier.type",
        "path": "Organization.identifier.type",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-organization-identifier-type"
        }
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "min": 1
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "min": 1
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.type:organizationType",
        "path": "Organization.type",
        "sliceName": "organizationType",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-organization-type"
        }
      },
      {
        "id": "Organization.type:organizationType.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type:organizationType.coding.system",
        "path": "Organization.type.coding.system",
        "min": 1,
        "fixedUri": "http://interopsante.org/fhir/CodeSystem/fr-v2-3307",
        "example": [
          {
            "label": "CodeSystem des types d'organisations",
            "valueUri": "http://interopsante.org/fhir/CodeSystem/fr-v2-3307"
          }
        ]
      },
      {
        "id": "Organization.type:secteurActiviteRASS",
        "path": "Organization.type",
        "sliceName": "secteurActiviteRASS",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Secteurs d'activité des établissements avec la même activité dans le RASS",
          "valueSet": "https://mos.esante.gouv.fr/NOS/JDV_J101-SecteurActivite-RASS/FHIR/JDV-J101-SecteurActivite-RASS"
        }
      },
      {
        "id": "Organization.type:secteurActiviteRASS.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type:secteurActiviteRASS.coding.system",
        "path": "Organization.type.coding.system",
        "short": "Secteur d'activité",
        "definition": "Secteur d'activité",
        "min": 1,
        "fixedUri": "https://mos.esante.gouv.fr/NOS/TRE_R02-SecteurActivite/FHIR/TRE-R02-SecteurActivite",
        "example": [
          {
            "label": "CodeSystem ASIP des types d'activité de structures",
            "valueUri": "https://mos.esante.gouv.fr/NOS/TRE_R02-SecteurActivite/FHIR/TRE-R02-SecteurActivite"
          }
        ]
      },
      {
        "id": "Organization.type:categorieEtablissementRASS",
        "path": "Organization.type",
        "sliceName": "categorieEtablissementRASS",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Catégorie d'établissement du RASS",
          "valueSet": "https://mos.esante.gouv.fr/NOS/JDV_J129-CategorieEtablissement-RASS/FHIR/JDV-J129-CategorieEtablissement-RASS"
        }
      },
      {
        "id": "Organization.type:categorieEtablissementRASS.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.type:categorieEtablissementRASS.coding.system",
        "path": "Organization.type.coding.system",
        "short": "Catégorie d'établissements",
        "definition": "Catégorie d'établissements",
        "min": 1,
        "fixedUri": "https://mos.esante.gouv.fr/NOS/TRE_R66-CategorieEtablissement/FHIR/TRE-R66-CategorieEtablissement"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrContactPoint"
            ]
          }
        ]
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrAddress"
            ]
          }
        ]
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrOrganization"
            ]
          }
        ]
      },
      {
        "id": "Organization.partOf.type",
        "path": "Organization.partOf.type",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-organization-type"
        }
      },
      {
        "id": "Organization.contact.telecom",
        "path": "Organization.contact.telecom",
        "type": [
          {
            "code": "ContactPoint",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrContactPoint"
            ]
          }
        ]
      },
      {
        "id": "Organization.contact.address",
        "path": "Organization.contact.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrAddress"
            ]
          }
        ]
      }
    ]
  }
}