{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2026-06-15T13:08:15.2746154+00:00"
  },
  "url": "http://noma.no/fhir/StructureDefinition/PackageItemContainedItem_NOMA_v3_0",
  "version": "3.0",
  "name": "PackageItemContainedItem_NOMA_v3_0",
  "title": "PackageItemContainedItem_NOMA_v3_1",
  "status": "active",
  "experimental": true,
  "date": "2020-06-17T05:20:02.3771798+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicinalProductPackaged.packageItem"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Containing reference to a Manufactured Item or Nutrition Product and the respective amount",
        "definition": "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.\r\n\r\nThe 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)"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "min": 2
      },
      {
        "id": "Extension.extension:item",
        "path": "Extension.extension",
        "sliceName": "item",
        "short": "The manufactured item or nutrition product as contained in the packaged medicinal product",
        "definition": "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.  \r\n\r\nExtension url: item",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:item.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:item.url",
        "path": "Extension.extension.url",
        "fixedUri": "item"
      },
      {
        "id": "Extension.extension:item.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "Reference to contained item",
        "definition": "Reference to the manufactured item or device as contained in the packaged medicinal product",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://noma.no/fhir/StructureDefinition/MedicinalProduct_NOMA_v3_0"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:item.value[x].extension",
        "path": "Extension.extension.value[x].extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:item.value[x].type",
        "path": "Extension.extension.value[x].type",
        "short": "Type the reference refers to",
        "definition": "May be \"MedicinalProduct\" or \"Basic\" in case it refers to a Nutrition Product"
      },
      {
        "id": "Extension.extension:item.value[x].identifier",
        "path": "Extension.extension.value[x].identifier",
        "max": "0"
      },
      {
        "id": "Extension.extension:item.value[x].display",
        "path": "Extension.extension.value[x].display",
        "max": "0"
      },
      {
        "id": "Extension.extension:amount",
        "path": "Extension.extension",
        "sliceName": "amount",
        "short": "The amount of manufactured items or nutrition products contained in the package item",
        "definition": "The quantity of the ManufacturedItems or Nutrition Products referenced to in the \"iten\" attribute that are present in the package. \r\n\r\nExtension url: amount",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:amount.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:amount.url",
        "path": "Extension.extension.url",
        "fixedUri": "amount"
      },
      {
        "id": "Extension.extension:amount.value[x]",
        "path": "Extension.extension.value[x]",
        "short": "The number of this type of item within this packaging",
        "definition": "The number of this type of item within this packaging",
        "min": 1,
        "type": [
          {
            "code": "integer"
          },
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://noma.no/fhir/StructureDefinition/PackageItemContainedItem_NOMA_v3_0"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "canonical"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "url"
          },
          {
            "code": "uuid"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://legemiddelverket.no/fhir/StructureDefinition/safest-MedicinalProductManufactured"
            ]
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "ContactDetail"
          },
          {
            "code": "Contributor"
          },
          {
            "code": "DataRequirement"
          },
          {
            "code": "Expression"
          },
          {
            "code": "ParameterDefinition"
          },
          {
            "code": "RelatedArtifact"
          },
          {
            "code": "TriggerDefinition"
          },
          {
            "code": "UsageContext"
          },
          {
            "code": "Dosage"
          }
        ]
      }
    ]
  }
}