{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2026-06-29T15:31:30.4887539+00:00"
  },
  "url": "http://mpd.noma.no/structuredefinition/substance-classification",
  "version": "2.1",
  "name": "SubstanceSpecification_ClassificationExtension_NOMA_GUPRI",
  "title": "SubstanceSpecification_ClassificationExtension_NOMA_GUPRI",
  "status": "draft",
  "date": "2020-09-17T11:33:08.6995668+00:00",
  "purpose": "Classificatin of substances",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "SubstanceSpecification"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Classifies the substance",
        "definition": "Optional xtension for classifying substances. Possible classification categories:\r\n- All the substance's ATC code(s). One entry per code.\r\n- The substance's E-number(s). One entry per e-number.\r\n- Whether the substance is therapeutic (only published when \"true\")\r\n- Whether the substance is a prodrug (only published when \"true\")\r\n- Whether the substance is complex (only published when \"true\")",
        "comment": "##### Published (optional) classification categories:\r\n\r\n###### **E-Number**\r\nThe substance's [E-number(s)](https://ec.europa.eu/food/food-feed-portal/screen/food-additives/search). A substance can have multiple e-numbers.\r\nCardinality: 0..*  \r\nCode: The E-number  \r\nDisplay: The E-number name (substance)  \r\nSystem URL: [https://mpd.noma.no/codesystem/e-number](https://mpd.noma.no/codesystem/e-number)\r\n###### **Is Therapeutic**\r\nWhether the substance is therapeutic (only published when \"true\").  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er terapautisk del\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-active-moiety](https://mpd.noma.no/codesystem/is-active-moiety)\r\n###### **Is Prodrug**\r\nWhether the substance is a prodrug (only published when \"true\")  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er prodrug\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-prodrug](https://mpd.noma.no/codesystem/is-prodrug)\r\n###### **Is Complex**\r\nWhether the substance is complex (only published when \"true\")  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er kompleks\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-complex-substance](https://mpd.noma.no/codesystem/is-complex-substance)\r\n###### **ATC codes**\r\nAll the substance's ATC code(s). Human codes only.\r\nCardinality: 0..*  \r\nCode: The ATC code  \r\nDisplay: The (substances) name  \r\nSystem URLs, one per first-level ATC:  \r\n\r\n| ATC Category Name | Source | URL (GUPRI) |\r\n| :------- | :------ |:------ |\r\n| ATC (A) Alimentary tract and metabolism | WHO | [https://mpd.noma.no/codesystem/atc-a-alimentary-tract-and-metabolism](https://mpd.noma.no/codesystem/atc-a-alimentary-tract-and-metabolism) |\r\n| ATC (J) Antiinfectives | WHO | [https://mpd.noma.no/codesystem/atc-j-antiinfectives-for-systemic-use](https://mpd.noma.no/codesystem/atc-j-antiinfectives-for-systemic-use) |\r\n| ATC (L) Antineoplastic, immunomodulating agents | WHO | [https://mpd.noma.no/codesystem/atc-l-antineoplastic-and-immunomodulating-agents](https://mpd.noma.no/codesystem/atc-l-antineoplastic-and-immunomodulating-agents) |\r\n| ATC (P) Antiparasitic Products | WHO | [https://mpd.noma.no/codesystem/atc-p-antiparasitic-products-insecticides-and-repellents](https://mpd.noma.no/codesystem/atc-p-antiparasitic-products-insecticides-and-repellents) |\r\n| ATC (B) Blood, Blood Forming Organs | WHO | [https://mpd.noma.no/codesystem/atc-b-blood-and-blood-forming-organs](https://mpd.noma.no/codesystem/atc-b-blood-and-blood-forming-organs) |\r\n| ATC (C) Cardiovascular System | WHO | [https://mpd.noma.no/codesystem/atc-c-cardiovascular-system](https://mpd.noma.no/codesystem/atc-c-cardiovascular-system) |\r\n| ATC (D) Dermatologicals | WHO | [https://mpd.noma.no/codesystem/atc-d-dermatologicals](https://mpd.noma.no/codesystem/atc-d-dermatologicals) |\r\n| ATC (G) Genito urinary System | WHO | [https://mpd.noma.no/codesystem/atc-g-genito-urinary-system-and-sex-hormones](https://mpd.noma.no/codesystem/atc-g-genito-urinary-system-and-sex-hormones) |\r\n| ATC (M) Musculo-skeletal System | WHO | [https://mpd.noma.no/codesystem/atc-m-musculo-skeletal-system](https://mpd.noma.no/codesystem/atc-m-musculo-skeletal-system) |\r\n| ATC (N) Nervous system | WHO | [https://mpd.noma.no/codesystem/atc-n-nervous-system](https://mpd.noma.no/codesystem/atc-n-nervous-system) |\r\n| ATC (R) Respiratory System | WHO | [https://mpd.noma.no/codesystem/atc-r-respiratory-system](https://mpd.noma.no/codesystem/atc-r-respiratory-system) |\r\n| ATC (S) Sensory Organs | WHO | [https://mpd.noma.no/codesystem/atc-s-sensory-organs](https://mpd.noma.no/codesystem/atc-s-sensory-organs) |\r\n| ATC (H) Systemic Hormonal Preparations | WHO | [https://mpd.noma.no/codesystem/atc-h-systemic-hormonal-preparations-excl-sex-hormones-and-insulins](https://mpd.noma.no/codesystem/atc-h-systemic-hormonal-preparations-excl-sex-hormones-and-insulins) |\r\n| ATC (V) Various | WHO | [https://mpd.noma.no/codesystem/atc-v-various](https://mpd.noma.no/codesystem/atc-v-various) |",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Extension",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.id",
        "path": "Extension.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "0",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "uri"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "fixedUri": "http://mpd.noma.no/structuredefinition/substance-classification",
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Classifies the substance",
        "definition": "Optional xtension for classifying substances. Possible classification categories:\r\n- All the substance's ATC code(s). One entry per code.\r\n- The substance's E-number(s). One entry per e-number.\r\n- Whether the substance is therapeutic (only published when \"true\")\r\n- Whether the substance is a prodrug (only published when \"true\")\r\n- Whether the substance is complex (only published when \"true\")",
        "comment": "##### Published (optional) classification categories:\r\n\r\n###### **E-Number**\r\nThe substance's [E-number(s)](https://ec.europa.eu/food/food-feed-portal/screen/food-additives/search). A substance can have multiple e-numbers.\r\nCardinality: 0..*  \r\nCode: The E-number  \r\nDisplay: The E-number name (substance)  \r\nSystem URL: [https://mpd.noma.no/codesystem/e-number](https://mpd.noma.no/codesystem/e-number)\r\n###### **Is Therapeutic**\r\nWhether the substance is therapeutic (only published when \"true\").  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er terapautisk del\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-active-moiety](https://mpd.noma.no/codesystem/is-active-moiety)\r\n###### **Is Prodrug**\r\nWhether the substance is a prodrug (only published when \"true\")  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er prodrug\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-prodrug](https://mpd.noma.no/codesystem/is-prodrug)\r\n###### **Is Complex**\r\nWhether the substance is complex (only published when \"true\")  \r\nCardinality: 0..1  \r\nCode: \"true\"  \r\nDisplay: \"Er kompleks\"  \r\nSystem URL: [https://mpd.noma.no/codesystem/is-complex-substance](https://mpd.noma.no/codesystem/is-complex-substance)\r\n###### **ATC codes**\r\nAll the substance's ATC code(s). Human codes only.\r\nCardinality: 0..*  \r\nCode: The ATC code  \r\nDisplay: The (substances) name  \r\nSystem URLs, one per first-level ATC:  \r\n\r\n| ATC Category Name | Source | URL (GUPRI) |\r\n| :------- | :------ |:------ |\r\n| ATC (A) Alimentary tract and metabolism | WHO | [https://mpd.noma.no/codesystem/atc-a-alimentary-tract-and-metabolism](https://mpd.noma.no/codesystem/atc-a-alimentary-tract-and-metabolism) |\r\n| ATC (J) Antiinfectives | WHO | [https://mpd.noma.no/codesystem/atc-j-antiinfectives-for-systemic-use](https://mpd.noma.no/codesystem/atc-j-antiinfectives-for-systemic-use) |\r\n| ATC (L) Antineoplastic, immunomodulating agents | WHO | [https://mpd.noma.no/codesystem/atc-l-antineoplastic-and-immunomodulating-agents](https://mpd.noma.no/codesystem/atc-l-antineoplastic-and-immunomodulating-agents) |\r\n| ATC (P) Antiparasitic Products | WHO | [https://mpd.noma.no/codesystem/atc-p-antiparasitic-products-insecticides-and-repellents](https://mpd.noma.no/codesystem/atc-p-antiparasitic-products-insecticides-and-repellents) |\r\n| ATC (B) Blood, Blood Forming Organs | WHO | [https://mpd.noma.no/codesystem/atc-b-blood-and-blood-forming-organs](https://mpd.noma.no/codesystem/atc-b-blood-and-blood-forming-organs) |\r\n| ATC (C) Cardiovascular System | WHO | [https://mpd.noma.no/codesystem/atc-c-cardiovascular-system](https://mpd.noma.no/codesystem/atc-c-cardiovascular-system) |\r\n| ATC (D) Dermatologicals | WHO | [https://mpd.noma.no/codesystem/atc-d-dermatologicals](https://mpd.noma.no/codesystem/atc-d-dermatologicals) |\r\n| ATC (G) Genito urinary System | WHO | [https://mpd.noma.no/codesystem/atc-g-genito-urinary-system-and-sex-hormones](https://mpd.noma.no/codesystem/atc-g-genito-urinary-system-and-sex-hormones) |\r\n| ATC (M) Musculo-skeletal System | WHO | [https://mpd.noma.no/codesystem/atc-m-musculo-skeletal-system](https://mpd.noma.no/codesystem/atc-m-musculo-skeletal-system) |\r\n| ATC (N) Nervous system | WHO | [https://mpd.noma.no/codesystem/atc-n-nervous-system](https://mpd.noma.no/codesystem/atc-n-nervous-system) |\r\n| ATC (R) Respiratory System | WHO | [https://mpd.noma.no/codesystem/atc-r-respiratory-system](https://mpd.noma.no/codesystem/atc-r-respiratory-system) |\r\n| ATC (S) Sensory Organs | WHO | [https://mpd.noma.no/codesystem/atc-s-sensory-organs](https://mpd.noma.no/codesystem/atc-s-sensory-organs) |\r\n| ATC (H) Systemic Hormonal Preparations | WHO | [https://mpd.noma.no/codesystem/atc-h-systemic-hormonal-preparations-excl-sex-hormones-and-insulins](https://mpd.noma.no/codesystem/atc-h-systemic-hormonal-preparations-excl-sex-hormones-and-insulins) |\r\n| ATC (V) Various | WHO | [https://mpd.noma.no/codesystem/atc-v-various](https://mpd.noma.no/codesystem/atc-v-various) |"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://mpd.noma.no/structuredefinition/substance-classification"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}