{
  "resourceType": "StructureDefinition",
  "url": "https://noma.ono/fhir/StructureDefinition/MedicinalProductManufactured_NOMA_v3_1",
  "version": "3.1",
  "name": "MedicinalProductManufactured_NOMA_v3_1",
  "title": "MedicinalProductManufactured_NOMA_v3_1",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicinalProductManufactured",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicinalProductManufactured",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicinalProductManufactured.extension",
        "path": "MedicinalProductManufactured.extension",
        "min": 1
      },
      {
        "id": "MedicinalProductManufactured.extension:nomaManufacturedItemID",
        "path": "MedicinalProductManufactured.extension",
        "sliceName": "nomaManufacturedItemID",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://legemiddelverket.no/fhir/StructureDefinition/IdentifierExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm",
        "path": "MedicinalProductManufactured.manufacturedDoseForm",
        "definition": "The manufactured dose form is an element from the Pharmaceutical Dose Form Code System.  \r\n**System URL:** [https://mpd.noma.no/codesystem/pharmaceutical-dose-form](https://mpd.noma.no/codesystem/pharmaceutical-dose-form)  \r\n**Supplement System URL:** [https://mpd.noma.no/codesystem/pharmaceutical-dose-form-supplement](https://mpd.noma.no/codesystem/pharmaceutical-dose-form-supplement)"
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.system",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.system",
        "min": 1,
        "constraint": [
          {
            "key": "manufacturedDoseFormSystemUrls",
            "severity": "error",
            "human": "The dose form must be from either the pharmaceutical-dose-form or pharmaceutical-dose-form-supplement code system.",
            "expression": "coding.all(system = 'https://mpd.noma.no/codesystem/pharmaceutical-dose-form' or system = 'https://mpd.noma.no/codesystem/pharmaceutical-dose-form-supplement')"
          }
        ]
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.version",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.version",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.code",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.code",
        "min": 1
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.userSelected",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.unitOfPresentation",
        "path": "MedicinalProductManufactured.unitOfPresentation",
        "definition": "System URL: [https://mpd.noma.no/codesystem/units-of-presentation](https://mpd.noma.no/codesystem/units-of-presentation)"
      },
      {
        "id": "MedicinalProductManufactured.quantity",
        "path": "MedicinalProductManufactured.quantity",
        "short": "Not used",
        "definition": "From FHIR R4B onward, The \"quantity\" element is moved from the MedicinalProductManufactured (or, in R4B terms, [ManufacturedItemDefinition](https://hl7.org/fhir/R5/manufactureditemdefinition.html)) profile to the ContainedItem element in the  [PackagedProductDefinition](https://hl7.org/fhir/R5/packagedproductdefinition.html) profile, \r\n\r\nHence, the quantity attribute should be deleted from this profile (cardinality = 0..0). Yet, the cardinality of the quantity element is 1..1, which cannot be \"narrowd\" to 0..0, therefore the quantity is always published with  \r\nsystem (temporary)= http://legemiddelverket.no/fhir/CodeSystem/Unused and  \r\ncode = \"NA\"",
        "fixedQuantity": {
          "system": "http://legemiddelverket.no/fhir/CodeSystem/Unused",
          "code": "N/A"
        }
      },
      {
        "id": "MedicinalProductManufactured.quantity.value",
        "path": "MedicinalProductManufactured.quantity.value",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.quantity.comparator",
        "path": "MedicinalProductManufactured.quantity.comparator",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.quantity.unit",
        "path": "MedicinalProductManufactured.quantity.unit",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.manufacturer",
        "path": "MedicinalProductManufactured.manufacturer",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.ingredient",
        "path": "MedicinalProductManufactured.ingredient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://noma.no/fhir/StructureDefinition/MedicinalProductIngredient_NOMA_v3_1"
            ]
          }
        ]
      },
      {
        "id": "MedicinalProductManufactured.physicalCharacteristics",
        "path": "MedicinalProductManufactured.physicalCharacteristics",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.otherCharacteristics",
        "path": "MedicinalProductManufactured.otherCharacteristics",
        "max": "0"
      }
    ]
  }
}