{
  "resourceType": "StructureDefinition",
  "url": "http://legemiddelverket.no/fhir/StructureDefinition/MedicinalProductManufacturedSafest",
  "name": "MedicinalProductManufacturedSafest",
  "status": "retired",
  "experimental": true,
  "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",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "extension('http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier').valueIdentifier.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "MedicinalProductManufactured.extension:safestManufacturedItemID",
        "path": "MedicinalProductManufactured.extension",
        "sliceName": "safestManufacturedItemID",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicinalProductManufactured.extension:safestManufacturedItemID.value[x]",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicinalProductManufactured.extension:safestManufacturedItemID.value[x]:valueIdentifier",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "sliceName": "valueIdentifier"
      },
      {
        "id": "MedicinalProductManufactured.extension:safestManufacturedItemID.value[x]:valueIdentifier.system",
        "path": "MedicinalProductManufactured.extension.value[x].system",
        "fixedUri": "http://legemiddelverket.no/fhir/SAFEST/MedicinalProductManufactured"
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddeldoseId",
        "path": "MedicinalProductManufactured.extension",
        "sliceName": "legemiddeldoseId",
        "short": "Legemiddeldose ID from FEST",
        "definition": "Used to find applicable item in the KatLegemiddeldose in FEST.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddeldoseId.value[x]",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddeldoseId.value[x]:valueIdentifier",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "sliceName": "valueIdentifier"
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddeldoseId.value[x]:valueIdentifier.system",
        "path": "MedicinalProductManufactured.extension.value[x].system",
        "fixedUri": "http://ehelse.no/fhir/CodeSystem/FEST/KatLegemiddeldose"
      },
      {
        "id": "MedicinalProductManufactured.extension:lmrNummer",
        "path": "MedicinalProductManufactured.extension",
        "sliceName": "lmrNummer",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicinalProductManufactured.extension:lmrNummer.value[x]",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicinalProductManufactured.extension:lmrNummer.value[x]:valueIdentifier",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "sliceName": "valueIdentifier"
      },
      {
        "id": "MedicinalProductManufactured.extension:lmrNummer.value[x]:valueIdentifier.system",
        "path": "MedicinalProductManufactured.extension.value[x].system",
        "fixedUri": "http://legemiddelverket.no/fhir/SAFEST/lmrNummer"
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddelmerkevareId",
        "path": "MedicinalProductManufactured.extension",
        "sliceName": "legemiddelmerkevareId",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/elementdefinition-identifier"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddelmerkevareId.value[x]",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddelmerkevareId.value[x]:valueIdentifier",
        "path": "MedicinalProductManufactured.extension.value[x]",
        "sliceName": "valueIdentifier"
      },
      {
        "id": "MedicinalProductManufactured.extension:legemiddelmerkevareId.value[x]:valueIdentifier.system",
        "path": "MedicinalProductManufactured.extension.value[x].system",
        "fixedUri": "http://ehelse.no/fhir/CodeSystem/FEST/KatLegemiddelMerkevare"
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.system",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.system",
        "fixedUri": "http://legemiddelverket.no/fhir/CodeSystem/Unused"
      },
      {
        "id": "MedicinalProductManufactured.manufacturedDoseForm.coding.code",
        "path": "MedicinalProductManufactured.manufacturedDoseForm.coding.code",
        "fixedCode": "NA"
      },
      {
        "id": "MedicinalProductManufactured.unitOfPresentation",
        "path": "MedicinalProductManufactured.unitOfPresentation",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.quantity.system",
        "path": "MedicinalProductManufactured.quantity.system",
        "fixedUri": "http://legemiddelverket.no/fhir/CodeSystem/Unused"
      },
      {
        "id": "MedicinalProductManufactured.quantity.code",
        "path": "MedicinalProductManufactured.quantity.code",
        "fixedCode": "NA"
      },
      {
        "id": "MedicinalProductManufactured.manufacturer",
        "path": "MedicinalProductManufactured.manufacturer",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.ingredient",
        "path": "MedicinalProductManufactured.ingredient",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.physicalCharacteristics",
        "path": "MedicinalProductManufactured.physicalCharacteristics",
        "max": "0"
      },
      {
        "id": "MedicinalProductManufactured.otherCharacteristics",
        "path": "MedicinalProductManufactured.otherCharacteristics",
        "max": "0"
      }
    ]
  }
}