<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://noma.no/fhir/StructureDefinition/CodeSystemNOMA_v3_1" />
  <version value="3.1" />
  <name value="CodeSystem_NOMA_v3_1" />
  <title value="CodeSystem_NOMA_v3_1" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="CodeSystem" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CodeSystem" />
  <derivation value="constraint" />
  <differential>
    <element id="CodeSystem.url">
      <path value="CodeSystem.url" />
      <definition value="The URL of the Code System. It satisfies the GUPRI properties:  &#xD;&#xA;Globally Unique, Persistent, Resolvable Identifier  &#xD;&#xA;The URLs resolve both for browsers (informational, human readable) as well as for systems (content, using the FHIR API)&#xD;&#xA;&#xD;&#xA;The URLs of the code systems published are:  &#xD;&#xA;&#xD;&#xA;##### ATC Codes&#xD;&#xA;&#xD;&#xA;| ATC Category Name | Source | URL (GUPRI) |&#xD;&#xA;| :------- | :------ |:------ |&#xD;&#xA;| 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) |&#xD;&#xA;| 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) |&#xD;&#xA;| 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) |&#xD;&#xA;| 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) |&#xD;&#xA;| 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) |&#xD;&#xA;| ATC (C) Cardiovascular System | WHO | [https://mpd.noma.no/codesystem/atc-c-cardiovascular-system](https://mpd.noma.no/codesystem/atc-c-cardiovascular-system) |&#xD;&#xA;| ATC (D) Dermatologicals | WHO | [https://mpd.noma.no/codesystem/atc-d-dermatologicals](https://mpd.noma.no/codesystem/atc-d-dermatologicals) |&#xD;&#xA;| 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) |&#xD;&#xA;| 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) |&#xD;&#xA;| ATC (N) Nervous system | WHO | [https://mpd.noma.no/codesystem/atc-n-nervous-system](https://mpd.noma.no/codesystem/atc-n-nervous-system) |&#xD;&#xA;| ATC (R) Respiratory System | WHO | [https://mpd.noma.no/codesystem/atc-r-respiratory-system](https://mpd.noma.no/codesystem/atc-r-respiratory-system) |&#xD;&#xA;| ATC (S) Sensory Organs | WHO | [https://mpd.noma.no/codesystem/atc-s-sensory-organs](https://mpd.noma.no/codesystem/atc-s-sensory-organs) |&#xD;&#xA;| 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) |&#xD;&#xA;| ATC (V) Various | WHO | [https://mpd.noma.no/codesystem/atc-v-various](https://mpd.noma.no/codesystem/atc-v-various) |&#xD;&#xA;&#xD;&#xA;##### Dose Form&#xD;&#xA;&#xD;&#xA;| Code System Name | Source | URL (GUPRI) |&#xD;&#xA;| :------- | :------ |:------ |&#xD;&#xA;| Administration Medhod | SPOR RMS | [https://mpd.noma.no/codesystem/administration-method ](https://mpd.noma.no/codesystem/administration-method) |&#xD;&#xA;| Basic Dose Form | SPOR RMS | [https://mpd.noma.no/codesystem/basic-dose-form](https://mpd.noma.no/codesystem/basic-dose-form) |&#xD;&#xA;| Intended Site | SPOR RMS | [https://mpd.noma.no/codesystem/intended-site](https://mpd.noma.no/codesystem/intended-site) |&#xD;&#xA;| Release Characteristics | SPOR RMS | [https://mpd.noma.no/codesystem/release-characteristics](https://mpd.noma.no/codesystem/release-characteristics) |&#xD;&#xA;| State of Matter | SPOR RMS | [https://mpd.noma.no/codesystem/state-of-matter](https://mpd.noma.no/codesystem/state-of-matter) |&#xD;&#xA;| Transformation | SPOR RMS | [https://mpd.noma.no/codesystem/transformation](https://mpd.noma.no/codesystem/transformation) |" />
      <min value="1" />
    </element>
    <element id="CodeSystem.identifier">
      <path value="CodeSystem.identifier" />
      <slicing>
        <description value="Identifiers of the code system and corresponding code systems in external sources,  in most cases SPOR RMS" />
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="2" />
    </element>
    <element id="CodeSystem.identifier:nomaCodeSystemID">
      <path value="CodeSystem.identifier" />
      <sliceName value="nomaCodeSystemID" />
      <short value="Equal to the element's ID" />
      <definition value="URL: https://mpd.noma.no/identifier/code-system-id" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="CodeSystem.identifier:codeSystemExternalID">
      <path value="CodeSystem.identifier" />
      <sliceName value="codeSystemExternalID" />
      <short value="The code system's external ID" />
      <definition value="The external ID in most cases is the SPOR RMS ID&#xD;&#xA;&#xD;&#xA;URL: https://mpd.noma.no/identifier/code-system-external-id" />
      <max value="1" />
    </element>
    <element id="CodeSystem.version">
      <path value="CodeSystem.version" />
      <max value="0" />
    </element>
    <element id="CodeSystem.title">
      <path value="CodeSystem.title" />
      <max value="0" />
    </element>
    <element id="CodeSystem.status">
      <path value="CodeSystem.status" />
      <definition value="Only code ssystems with status &quot;active&quot; are being published" />
    </element>
    <element id="CodeSystem.experimental">
      <path value="CodeSystem.experimental" />
      <max value="0" />
    </element>
    <element id="CodeSystem.date">
      <path value="CodeSystem.date" />
      <max value="0" />
    </element>
    <element id="CodeSystem.publisher">
      <path value="CodeSystem.publisher" />
      <max value="0" />
    </element>
    <element id="CodeSystem.contact">
      <path value="CodeSystem.contact" />
      <max value="0" />
    </element>
    <element id="CodeSystem.description">
      <path value="CodeSystem.description" />
      <max value="0" />
    </element>
    <element id="CodeSystem.useContext">
      <path value="CodeSystem.useContext" />
      <max value="0" />
    </element>
    <element id="CodeSystem.jurisdiction">
      <path value="CodeSystem.jurisdiction" />
      <max value="0" />
    </element>
    <element id="CodeSystem.purpose">
      <path value="CodeSystem.purpose" />
      <max value="0" />
    </element>
    <element id="CodeSystem.copyright">
      <path value="CodeSystem.copyright" />
      <comment value="Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/&#xD;&#xA; Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required.&#xD;&#xA; Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required.&#xD;&#xA; Sometimes, the copyright differs between the code system and the codes that are included. The copyright statement should clearly differentiate between these when required." />
      <max value="0" />
    </element>
    <element id="CodeSystem.caseSensitive">
      <path value="CodeSystem.caseSensitive" />
      <max value="0" />
    </element>
    <element id="CodeSystem.valueSet">
      <path value="CodeSystem.valueSet" />
      <max value="0" />
    </element>
    <element id="CodeSystem.hierarchyMeaning">
      <path value="CodeSystem.hierarchyMeaning" />
      <max value="0" />
    </element>
    <element id="CodeSystem.compositional">
      <path value="CodeSystem.compositional" />
      <max value="0" />
    </element>
    <element id="CodeSystem.versionNeeded">
      <path value="CodeSystem.versionNeeded" />
      <max value="0" />
    </element>
    <element id="CodeSystem.supplements">
      <path value="CodeSystem.supplements" />
      <max value="0" />
    </element>
    <element id="CodeSystem.count">
      <path value="CodeSystem.count" />
      <max value="0" />
    </element>
    <element id="CodeSystem.filter">
      <path value="CodeSystem.filter" />
      <max value="0" />
    </element>
    <element id="CodeSystem.concept.code">
      <path value="CodeSystem.concept.code" />
      <definition value="A code - a text symbol - that uniquely identifies the concept within the code system.&#xD;&#xA;May be a [SPOR RMS](https://spor.ema.europa.eu/rmswi/#/), NOMA or [FinnKode](https://finnkode.helsedirektoratet.no/) code" />
    </element>
    <element id="CodeSystem.concept.definition">
      <path value="CodeSystem.concept.definition" />
      <max value="0" />
    </element>
    <element id="CodeSystem.concept.designation.use">
      <path value="CodeSystem.concept.designation.use" />
      <max value="0" />
    </element>
    <element id="CodeSystem.concept.concept">
      <path value="CodeSystem.concept.concept" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>