<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2026-05-20T14:34:27.1459141+00:00" />
  </meta>
  <url value="http://noma.no/fhir/StructureDefinition/PackageItemContainedItem_NOMA_v3_1" />
  <version value="3.1" />
  <name value="PackageItemContainedItem_NOMA_v3_1" />
  <title value="PackageItemContainedItem_NOMA_v3_1" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2020-06-17T05:20:02.3771798+00:00" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="MedicinalProductPackaged.packageItem" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Containing reference to a Manufactured Item or Nutrition Product and the respective amount" />
      <definition value="The containedItem extension was implemented in order to be compatible with FHIR version R5. It contains two sub-extensions, one referencing the contained Manufactured Item or Nutrition Product, and the other the number of such items in the current (innermost) package level.&#xD;&#xA;&#xD;&#xA;The url of the extension is: [https://mpd.noma.no/structuredefinition/packaged-product-packaging-contained-item](https://mpd.noma.no/structuredefinition/packaged-product-packaging-contained-item)" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <min value="2" />
    </element>
    <element id="Extension.extension:item">
      <path value="Extension.extension" />
      <sliceName value="item" />
      <short value="The manufactured item or nutrition product as contained in the packaged medicinal product" />
      <definition value="Contains a reference to a Medicinal Product Manufactured or Nutrition Product contained within the package. The reference object consists of the absolute URL of the FHIR resource (must be on the same FHIR server) and the type of the FHIR resource, which in this case is MedicinalProductManufactured or NutritionProduct.  &#xD;&#xA;&#xD;&#xA;Extension url: item" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:item.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:item.url">
      <path value="Extension.extension.url" />
      <fixedUri value="item" />
    </element>
    <element id="Extension.extension:item.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Reference to contained item" />
      <definition value="Reference to the manufactured item or device as contained in the packaged medicinal product" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://noma.no/fhir/StructureDefinition/MedicinalProduct_NOMA_v3_1" />
        <targetProfile value="https://noma.no/fhir/StructureDefinition/NutritionProduct_NOMA_v3_1" />
      </type>
    </element>
    <element id="Extension.extension:item.value[x].extension">
      <path value="Extension.extension.value[x].extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:item.value[x].type">
      <path value="Extension.extension.value[x].type" />
      <short value="Type the reference refers to" />
      <definition value="May be &quot;MedicinalProduct&quot; or &quot;Basic&quot; in case it refers to a Nutrition Product" />
    </element>
    <element id="Extension.extension:item.value[x].identifier">
      <path value="Extension.extension.value[x].identifier" />
      <max value="0" />
    </element>
    <element id="Extension.extension:amount">
      <path value="Extension.extension" />
      <sliceName value="amount" />
      <short value="The amount of manufactured items or nutrition products contained in the package item" />
      <definition value="The quantity of the ManufacturedItems or Nutrition Products referenced to in the &quot;iten&quot; attribute that are present in the package.&#xD;&#xA;&#xD;&#xA;Extension url: amount" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:amount.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:amount.url">
      <path value="Extension.extension.url" />
      <fixedUri value="amount" />
    </element>
    <element id="Extension.extension:amount.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="The number of this type of item within this packaging" />
      <definition value="The number of this type of item within this packaging" />
      <min value="1" />
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://noma.no/fhir/StructureDefinition/PackageItemContainedItem_NOMA_v3_1" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="canonical" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="url" />
      </type>
      <type>
        <code value="uuid" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Count" />
      </type>
      <type>
        <code value="Distance" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Money" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://legemiddelverket.no/fhir/StructureDefinition/safest-MedicinalProductManufactured" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="ContactDetail" />
      </type>
      <type>
        <code value="Contributor" />
      </type>
      <type>
        <code value="DataRequirement" />
      </type>
      <type>
        <code value="Expression" />
      </type>
      <type>
        <code value="ParameterDefinition" />
      </type>
      <type>
        <code value="RelatedArtifact" />
      </type>
      <type>
        <code value="TriggerDefinition" />
      </type>
      <type>
        <code value="UsageContext" />
      </type>
      <type>
        <code value="Dosage" />
      </type>
    </element>
  </differential>
</StructureDefinition>