<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://noma.no/fhir/StructureDefinition/MedicinalProduct_NOMA_v3_1" />
  <version value="3.1" />
  <name value="MedicinalProduct_NOMA_v3_1" />
  <title value="MedicinalProduct_NOMA_v3_1" />
  <status value="draft" />
  <description value="Representing the Medicinal Products approved to be marketed in the Norwegian market. May also represent Nutrition Products." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicinalProduct" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicinalProduct" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicinalProduct">
      <path value="MedicinalProduct" />
      <short value="Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use) TEST TESST" />
    </element>
    <element id="MedicinalProduct.extension:authorizedPharmaceuticalDoseForm">
      <path value="MedicinalProduct.extension" />
      <sliceName value="authorizedPharmaceuticalDoseForm" />
      <definition value="Representing the Authorized Pharmaceutical Dose form for the medicinal product. This may be one of the following types, each defined by a separate Code System. All codes are EDQM codes, except local Norwegian codes not present in EDQM, which are published as supplement.&#xD;&#xA;&#xD;&#xA;###### Pharmaceutical Dose Form &#xD;&#xA;In this case, the Authorized Pharmaceutical Dose Form is equal to the Manufactured Dose Form on the Manufactured Item  &#xD;&#xA;**System URL:** [https://mpd.noma.no/codesystem/pharmaceutical-dose-form](https://mpd.noma.no/codesystem/pharmaceutical-dose-form)  &#xD;&#xA;**Supplement System URL:** [https://mpd.noma.no/codesystem/pharmaceutical-dose-form-supplement](https://mpd.noma.no/codesystem/pharmaceutical-dose-form-supplement)&#xD;&#xA;&#xD;&#xA;###### Combined pharmaceutical dose form  &#xD;&#xA;**System URL:**  [https://mpd.noma.no/codesystem/combined-pharmaceutical-dose-form](https://mpd.noma.no/codesystem/combined-pharmaceutical-dose-form)  &#xD;&#xA;**Supplement System URL:**  [https://mpd.noma.no/codesystem/combined-pharmaceutical-dose-form-supplement](https://mpd.noma.no/codesystem/combined-pharmaceutical-dose-form-supplement)&#xD;&#xA;&#xD;&#xA;###### Combined Term  &#xD;&#xA;**System URL:** [https://mpd.noma.no/codesystem/combined-term](https://mpd.noma.no/codesystem/combined-term)  &#xD;&#xA;**Supplement System URL:** [https://mpd.noma.no/codesystem/combined-term-supplement](https://mpd.noma.no/codesystem/combined-term-supplement)  &#xD;&#xA;&#xD;&#xA;###### Combination Pack   &#xD;&#xA;**System URL:** [https://mpd.noma.no/codesystem/combination-pack](https://mpd.noma.no/codesystem/combination-pack)  &#xD;&#xA;**Supplement System URL:** N/A" />
      <type>
        <code value="Extension" />
        <profile value="https://mpd.noma.no/structuredefinition/authorized-pharmaceutical-dose-form" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="MedicinalProduct.extension:nutritionDoseForm">
      <path value="MedicinalProduct.extension" />
      <sliceName value="nutritionDoseForm" />
      <short value="A Medicinal Product's Nutrition Dose Form." />
      <definition value="A Medicinal Product's Nutrition Dose Form, in case it is representing a Nutrition Product.  &#xD;&#xA;The URL points to national Nowegian code system used to classify the nutrition dose form.  &#xD;&#xA;Utl (preliminary): https://api.legemiddelverket.no/FHIR-R4/CodeSystem/ac8e8700-2554-48eb-af05-d1b8e3e54e9f" />
      <type>
        <code value="Extension" />
        <profile value="http://legemiddelverket.no/fhir/StructureDefinition/medicinalproduct-nutrition-dose-form" />
      </type>
      <meaningWhenMissing value="When missing, the Medicinal Product is not a nutritional product" />
      <isModifier value="false" />
    </element>
    <element id="MedicinalProduct.extension:nutritionDoseForm.value[x].coding.code">
      <path value="MedicinalProduct.extension.value[x].coding.code" />
      <short value="The code of the nutrition dose form" />
    </element>
    <element id="MedicinalProduct.extension:nutritionDoseForm.value[x].coding.display">
      <path value="MedicinalProduct.extension.value[x].coding.display" />
      <short value="The name of the nutrition dose form" />
    </element>
    <element id="MedicinalProduct.identifier">
      <path value="MedicinalProduct.identifier" />
      <slicing>
        <description value="Sliced" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id">
      <path value="MedicinalProduct.identifier" />
      <sliceName value="medicinal-product-definition-id" />
      <short value="Equal to the element's ID" />
      <definition value="Equal to the element's ID, specific to NoMA's FHIR API  &#xD;&#xA;System Url: [https://mpd.noma.no/identifier/medicinal-product-definition-id](https://mpd.noma.no/identifier/medicinal-product-definition-id)" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id.use">
      <path value="MedicinalProduct.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id.type">
      <path value="MedicinalProduct.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id.system">
      <path value="MedicinalProduct.identifier.system" />
      <min value="1" />
      <fixedUri value="https://mpd.noma.no/identifier/medicinal-product-definition-id" />
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id.value">
      <path value="MedicinalProduct.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.identifier:medicinal-product-definition-id.assigner">
      <path value="MedicinalProduct.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId">
      <path value="MedicinalProduct.identifier" />
      <sliceName value="legemiddelmerkevareId" />
      <short value="The medicinal product's FEST (legemiddelMerkevare) ID" />
      <definition value="Ensures referential integrity with the medicinal product's representation in the FEST master data.   &#xD;&#xA;&#xD;&#xA;There are cases in which two Medicinal Products (temporarily) reference to the same FEST legemiddekMerkevareId, if there is a change in the medicinal product's invented name. &#xD;&#xA;Furthermore, there are a few medicinal products not referring to any FEST legemiddelMerkevareID, in case of combined medicinal products and multistrength products.  &#xD;&#xA;&#xD;&#xA;System URL: [https://mpd.noma.no/identifier/fest-legemiddel-merkevare-id](https://mpd.noma.no/identifier/fest-legemiddel-merkevare-id)" />
      <max value="1" />
      <meaningWhenMissing value="When missing, the medicinal product is not represented as a product in the FEST master data. For example if the medicinal product represents a combinationpack or a multi strength package which are not represented as a product in FEST." />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId.use">
      <path value="MedicinalProduct.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId.type">
      <path value="MedicinalProduct.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId.system">
      <path value="MedicinalProduct.identifier.system" />
      <min value="1" />
      <fixedUri value="https://mpd.noma.no/identifier/fest-legemiddel-merkevare-id" />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId.value">
      <path value="MedicinalProduct.identifier.value" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.identifier:legemiddelmerkevareId.assigner">
      <path value="MedicinalProduct.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.type">
      <path value="MedicinalProduct.type" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.domain">
      <path value="MedicinalProduct.domain" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.combinedPharmaceuticalDoseForm">
      <path value="MedicinalProduct.combinedPharmaceuticalDoseForm" />
      <definition value="The dose form for a single part product, or combined form of a multiple part product." />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply">
      <path value="MedicinalProduct.legalStatusOfSupply" />
      <definition value="Contains the legal status of supply of the medicinal product if every package connected to it has the same status. If there is one or more packages with different statuses, then the legal status of supply will be defined on the package and this element will be empty.&#xD;&#xA;&#xD;&#xA;Details on the Norwegian code system for Legal Status of Supply: [Finnkode Reseptgruppe](https://finnkode.helsedirektoratet.no/adm/collections/7421?q=7421)&#xD;&#xA;Usually, only the code (e.g. &quot;C&quot;) and not the display text (e.g. &quot;Reseptgruppe C&quot;) is used by the consumers.  &#xD;&#xA;&#xD;&#xA;System URL: [https://mpd.noma.no/codesystem/legal-status-of-supply](https://mpd.noma.no/codesystem/legal-status-of-supply)" />
      <meaningWhenMissing value="When missing, the underlying packages do not all have the same legal status of suppply." />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply.coding.system">
      <path value="MedicinalProduct.legalStatusOfSupply.coding.system" />
      <definition value="(preliminary) https://volven.no/toolws/index.asmx/wsAppInfoSchema?strKveKode=7421" />
      <min value="1" />
      <fixedUri value="https://mpd.noma.no/codesystem/legal-status-of-supply" />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply.coding.version">
      <path value="MedicinalProduct.legalStatusOfSupply.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply.coding.code">
      <path value="MedicinalProduct.legalStatusOfSupply.coding.code" />
      <definition value="The letter code for the legal status of supply - A, B, C, F or K" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply.coding.display">
      <path value="MedicinalProduct.legalStatusOfSupply.coding.display" />
      <definition value="E.g. &quot;Reseptgruppe C&quot;" />
    </element>
    <element id="MedicinalProduct.legalStatusOfSupply.coding.userSelected">
      <path value="MedicinalProduct.legalStatusOfSupply.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.additionalMonitoringIndicator">
      <path value="MedicinalProduct.additionalMonitoringIndicator" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.specialMeasures">
      <path value="MedicinalProduct.specialMeasures" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.paediatricUseIndicator">
      <path value="MedicinalProduct.paediatricUseIndicator" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.productClassification">
      <path value="MedicinalProduct.productClassification" />
      <definition value="Allows the product to be classified by various systems such as ATC." />
      <comment value="##### Published (optional) classification categorie for the Medicinal Product::&#xD;&#xA;&#xD;&#xA;###### **Medicinal Product Type (Preparattype)**&#xD;&#xA;The medicinal product type [Finnkode Preparattype Legemidler](https://finnkode.helsedirektoratet.no/adm/collections/7424?q=7424).  &#xD;&#xA;Cardinality: 0..1  &#xD;&#xA;Code: The medicinal product type code  &#xD;&#xA;Display: The medicinal product type such as &quot;Legemiddel&quot;  or &quot;Enteral ernæring&quot;  &#xD;&#xA;System URL: [https://mpd.noma.no/codesystem/preparattype](https://mpd.noma.no/codesystem/preparattype)&#xD;&#xA;###### **XEVMPD Medicinal Product Type (Søknadstype)**&#xD;&#xA;The [SPOR RMS classification of a medicinal product](https://spor.ema.europa.eu/rmswi/#/lists/200000000324/terms) according to how itt is authorised. Only used if the medicinal product has been Parallel imported  &#xD;&#xA;Cardinality: 0..1  &#xD;&#xA;Code: The SPOR RMS code for the classification  &#xD;&#xA;Display: THe SPOR RMS name for the classification  &#xD;&#xA;System URL: [https://mpd.noma.no/codesystem/xevmpd-medicinal-product-type](https://mpd.noma.no/codesystem/xevmpd-medicinal-product-type)&#xD;&#xA;###### **Søknadstype godkjenningsfritak**&#xD;&#xA;Whether dispensing the medicinal product requires individual authorisation by the Norwegian Medicinal Agency, is at the discretion of the dispenser or can be dispensed without any further considerations. Code system published at [Finnkode Søknadstyper](https://finnkode.helsedirektoratet.no/adm/collections/7422?q=7422)  &#xD;&#xA;Cardinality: 0..1  &#xD;&#xA;Code: According to the code system  &#xD;&#xA;Display: According to the code system  &#xD;&#xA;System URL): [https://mpd.noma.no/codesystem/soknadstype](https://mpd.noma.no/codesystem/soknadstype)&#xD;&#xA;###### **Har utvidet ernæringsinformasjon**&#xD;&#xA;Whether the Medicinal Product has expanded nutritional information such as vitamins and minerals. Used for paranteral nutrition.  &#xD;&#xA;Cardinality: 0..1  &#xD;&#xA;Code: &quot;true&quot;  &#xD;&#xA;Display: &quot;Har utvidet ernæringsinformasjon&quot;   &#xD;&#xA;System URL): [https://mpd.noma.no/codesystem/is-parenteral-nutrition](https://mpd.noma.no/codesystem/is-parenteral-nutrition)&#xD;&#xA;###### **ATC codes**&#xD;&#xA;All the medicinal product's ATC code(s). One entry per code. May represent combination of substances according to the medicinal product's ingredients.  &#xD;&#xA;Cardinality: 0..*  &#xD;&#xA;Code: The ATC code  &#xD;&#xA;Display: The (substances) name  &#xD;&#xA;Urls (preliminary), one per first-level ATC:  &#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) |" />
    </element>
    <element id="MedicinalProduct.productClassification.coding.system">
      <path value="MedicinalProduct.productClassification.coding.system" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.productClassification.coding.version">
      <path value="MedicinalProduct.productClassification.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.productClassification.coding.code">
      <path value="MedicinalProduct.productClassification.coding.code" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.productClassification.coding.userSelected">
      <path value="MedicinalProduct.productClassification.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.marketingStatus">
      <path value="MedicinalProduct.marketingStatus" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.pharmaceuticalProduct">
      <path value="MedicinalProduct.pharmaceuticalProduct" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.packagedMedicinalProduct">
      <path value="MedicinalProduct.packagedMedicinalProduct" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://noma.no/fhir/StructureDefinition/MedicinalProductPackaged_NOMA_v3_1" />
      </type>
    </element>
    <element id="MedicinalProduct.packagedMedicinalProduct.reference">
      <path value="MedicinalProduct.packagedMedicinalProduct.reference" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.packagedMedicinalProduct.type">
      <path value="MedicinalProduct.packagedMedicinalProduct.type" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.packagedMedicinalProduct.identifier">
      <path value="MedicinalProduct.packagedMedicinalProduct.identifier" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.packagedMedicinalProduct.display">
      <path value="MedicinalProduct.packagedMedicinalProduct.display" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.attachedDocument">
      <path value="MedicinalProduct.attachedDocument" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.masterFile">
      <path value="MedicinalProduct.masterFile" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.contact">
      <path value="MedicinalProduct.contact" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.clinicalTrial">
      <path value="MedicinalProduct.clinicalTrial" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.name">
      <path value="MedicinalProduct.name" />
      <short value="The product's name, including invented name and possibly other name parts" />
      <definition value="The product's name, including invented name and possibly other name parts&#xD;&#xA;&#xD;&#xA;For an overview over name part types, see [Name Parts Examples](https://simplifier.net/safest/b9ab9d4b-d268-42cc-82bc-0d4d0d5d3a41)&#xD;&#xA;&#xD;&#xA;For the name composition algorithms and examples, see TODO" />
    </element>
    <element id="MedicinalProduct.name.namePart.type">
      <path value="MedicinalProduct.name.namePart.type" />
      <definition value="Idenifying type for this part of the name (e.g. strength part).  &#xD;&#xA;&#xD;&#xA;Name part types are coded using SPOR RMS.  &#xD;&#xA;System Url: [https://mpd.noma.no/codesystem/medicinal-product-name-part-type](https://mpd.noma.no/codesystem/medicinal-product-name-part-type)" />
    </element>
    <element id="MedicinalProduct.name.namePart.type.system">
      <path value="MedicinalProduct.name.namePart.type.system" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.name.namePart.type.version">
      <path value="MedicinalProduct.name.namePart.type.version" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.name.namePart.type.code">
      <path value="MedicinalProduct.name.namePart.type.code" />
      <min value="1" />
    </element>
    <element id="MedicinalProduct.name.namePart.type.userSelected">
      <path value="MedicinalProduct.name.namePart.type.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.name.countryLanguage">
      <path value="MedicinalProduct.name.countryLanguage" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.crossReference">
      <path value="MedicinalProduct.crossReference" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.manufacturingBusinessOperation">
      <path value="MedicinalProduct.manufacturingBusinessOperation" />
      <max value="0" />
    </element>
    <element id="MedicinalProduct.specialDesignation">
      <path value="MedicinalProduct.specialDesignation" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>