{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/structuredefinition/resource/fr-organization",
  "version": "4.0.0",
  "name": "FrOrganization",
  "status": "active",
  "date": "2019-12-18",
  "publisher": "Interop'Santé",
  "contact": [
    {
      "name": "François Macary/Isabelle Gibaud",
      "telecom": [
        {
          "system": "email",
          "value": "francois.macary@phast.fr",
          "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.0",
  "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"
        }
      },
      {
        "id": "Organization.extension:shortName",
        "path": "Organization.extension",
        "sliceName": "shortName",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.interopsante.org/fhir/structuredefinition/organization/fr-organization-shortname"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:description",
        "path": "Organization.extension",
        "sliceName": "description",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.interopsante.org/fhir/structuredefinition/organization/fr-organization-description"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:usePeriod",
        "path": "Organization.extension",
        "sliceName": "usePeriod",
        "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://www.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:organisationType",
        "path": "Organization.type",
        "sliceName": "organisationType",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.interopsante.fr/CodeSystem/v2-3307"
            }
          ]
        },
        "binding": {
          "strength": "required",
          "valueSet": "http://www.interopsante.org/fhir/valueset/fr-organization-type"
        }
      },
      {
        "id": "Organization.type:organisationType.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.interopsante.org/fhir/valueset/fr-organization-type"
        }
      },
      {
        "id": "Organization.type:organisationType.coding.system",
        "path": "Organization.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.interopsante.fr/CodeSystem/v2-3307",
        "example": [
          {
            "label": "CodeSystem des types d'organisations",
            "valueUri": "http://terminology.interopsante.fr/CodeSystem/v2-3307"
          }
        ]
      },
      {
        "id": "Organization.type:organizationActivityField",
        "path": "Organization.type",
        "sliceName": "organizationActivityField",
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://mos.asipsante.fr/NOS/PDF/TRE_R02-SecteurActivite.tabs"
            }
          ]
        },
        "binding": {
          "strength": "required",
          "valueSet": "http://mos.asipsante.fr/NOS/PDF/TRE_R02-SecteurActivite.tabs"
        }
      },
      {
        "id": "Organization.type:organizationActivityField.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://mos.asipsante.fr/NOS/PDF/TRE_R02-SecteurActivite.tabs"
        }
      },
      {
        "id": "Organization.type:organizationActivityField.coding.system",
        "path": "Organization.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.asipsante.fr/CodeSystem/TRE_R66",
        "example": [
          {
            "label": "CodeSystem ASIP des types d'activité de structures",
            "valueUri": "http://mos.asipsante.fr/NOS/PDF/TRE_R02-SecteurActivite.tabs"
          }
        ]
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
                "valueBoolean": true
              }
            ],
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/structuredefinition/resource/fr-organization"
            ]
          }
        ]
      },
      {
        "id": "Organization.partOf.type",
        "path": "Organization.partOf.type",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://www.interopsante.org/fhir/valueset/fr-organization-type"
        }
      }
    ]
  }
}