{
  "resourceType": "StructureDefinition",
  "url": "http://legemiddelverket.no/fhir/StructureDefinition/MedicinalProductSafest",
  "name": "MedicinalProductSafest",
  "status": "draft",
  "experimental": true,
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicinalProduct",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "MedicinalProduct.extension"
      },
      {
        "path": "MedicinalProduct.extension",
        "sliceName": "authorizedPharmaceuticalDoseForm",
        "short": "Authorized Pharmaceutical Dose Form",
        "definition": "The authorized Pharmaceutical dose form\r\nThis may be one of the following types:\r\n- Pharmaceutical dose form term\r\n- Combined pharmaceutical dose form term\r\n- Combined term \r\n- Combination package term",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://legemiddelverket.no/fhir/StructureDefinition/medicinalproduct-authorized-pharmaceutical-dose-form-safest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.identifier",
        "short": "Identifier as provided by SAFEST",
        "max": "1"
      },
      {
        "path": "MedicinalProduct.identifier.safestMedicinalProductID",
        "sliceName": "safestMedicinalProductID",
        "short": "Identifier as provided by SAFEST",
        "definition": "Identifier as provided by SAFEST",
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.identifier.system",
        "fixedUri": "http://legemiddelverket.no/fhir/SAFEST/MedicinalProduct"
      },
      {
        "path": "MedicinalProduct.type",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.domain",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.combinedPharmaceuticalDoseForm",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.legalStatusOfSupply.coding.system",
        "definition": "Legal status of supply (prescription group) as presented from Volven",
        "fixedUri": "urn:oid:2.16.578.1.12.4.1.1.7421"
      },
      {
        "path": "MedicinalProduct.additionalMonitoringIndicator",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.specialMeasures",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.paediatricUseIndicator",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.productClassification",
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.productClassification.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "path": "MedicinalProduct.productClassification.coding",
        "sliceName": "ATC"
      },
      {
        "path": "MedicinalProduct.productClassification.coding.system",
        "fixedUri": "http://www.whocc.no/atc"
      },
      {
        "path": "MedicinalProduct.marketingStatus",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.pharmaceuticalProduct",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.packagedMedicinalProduct",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicinalProductPackaged",
              "http://legemiddelverket.no/fhir/StructureDefinition/safest-MedicinalProductPackaged"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.attachedDocument",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.masterFile",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.contact",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.clinicalTrial",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "path": "MedicinalProduct.name",
        "sliceName": "productName",
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.name",
        "sliceName": "namePart",
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "MedicinalProduct.crossReference",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.manufacturingBusinessOperation",
        "max": "0"
      },
      {
        "path": "MedicinalProduct.specialDesignation",
        "max": "0"
      }
    ]
  }
}