{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrMPSubstance2Active",
  "version": "0.1.0",
  "name": "FrMPSubstance2Active",
  "status": "draft",
  "experimental": false,
  "date": "2021-11-26",
  "publisher": "InterOp'Santé - FRANCE",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org"
        }
      ]
    }
  ],
  "description": "code for the medicinal product substance",
  "copyright": "InterOp'Santé 2021",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "orim",
      "uri": "http://hl7.org/orim",
      "name": "Ontological RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "CodeableConcept",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CodeableConcept",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CodeableConcept",
        "path": "CodeableConcept",
        "short": "SNOMED CT Medicinal Product Substance",
        "example": [
          {
            "label": "Glucose",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "67079006",
                  "display": "glucose (substance)"
                }
              ],
              "text": "glucose"
            }
          },
          {
            "label": "Perindopril erbumine",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "129485000",
                  "display": "perindopril erbumine (substance)|"
                }
              ],
              "text": "perindopril erbumine (substance)"
            }
          }
        ]
      },
      {
        "id": "CodeableConcept.coding",
        "path": "CodeableConcept.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "description": "SNOMED CT code system mandatory ; other code systems optional",
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "CodeableConcept.coding:snomedSubstanceCoding",
        "path": "CodeableConcept.coding",
        "sliceName": "snomedSubstanceCoding",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Medicinal product Substance",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-mp-substance-active"
        }
      },
      {
        "id": "CodeableConcept.coding:snomedSubstanceCoding.system",
        "path": "CodeableConcept.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "CodeableConcept.coding:otherCoding",
        "path": "CodeableConcept.coding",
        "sliceName": "otherCoding"
      },
      {
        "id": "CodeableConcept.coding:otherCoding.system",
        "path": "CodeableConcept.coding.system",
        "patternUri": "^((?!http:\\/\\/snomed\\.info\\/sct).)*$"
      }
    ]
  }
}