{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/h-resept/StructureDefinition/MedicinalProductHresept",
  "name": "MedicinalProductHresept",
  "title": "MedicinalProduct for H-resept",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicinalProduct",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicinalProduct",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicinalProduct.extension",
        "path": "MedicinalProduct.extension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.modifierExtension",
        "path": "MedicinalProduct.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier",
        "path": "MedicinalProduct.identifier",
        "slicing": {
          "description": "Sliced",
          "rules": "open"
        }
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID",
        "path": "MedicinalProduct.identifier",
        "sliceName": "hreseptMedicinalProductID",
        "short": "Equal to the element's ID",
        "definition": "Equal to the element's ID, specific to NoMA's and Sykehusinnkjøp HF's FHIR service for H-resept (meaning the ID is different from the corresponding medicinal product in [NoMA's FHIR service for medicinal product master data](https://simplifier.net/SAFEST/~guides)). \r\n\r\n Url (temporary, will change in the future): http://legemiddelverket.no/fhir/HRESEPT/HreseptMedicinalProductID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.extension",
        "path": "MedicinalProduct.identifier.extension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.use",
        "path": "MedicinalProduct.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.type",
        "path": "MedicinalProduct.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.system",
        "path": "MedicinalProduct.identifier.system",
        "min": 1
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.value",
        "path": "MedicinalProduct.identifier.value",
        "min": 1
      },
      {
        "id": "MedicinalProduct.identifier:hreseptMedicinalProductID.assigner",
        "path": "MedicinalProduct.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId",
        "path": "MedicinalProduct.identifier",
        "sliceName": "legemiddelmerkevareId",
        "short": "The medicinal product's FEST (legemiddelMerkevare) ID",
        "definition": "Ensures referential integrity with the medicinal product's representation in the FEST master data. \r\n\r\n Url (temporary, will change in the future): http://legemiddelverket.no/FEST/LegemiddelMerkevareID \r\n\r\n There are cases in which two Medicinal Products (temporarily) reference the same FEST legemiddelMerkevareId, if there is a change in the medicinal product's invented name.",
        "max": "1",
        "meaningWhenMissing": "When missing, the medicinal product is not represented as a product in the FEST master data. For example if the medicinal product represents a combinationpack or a multi strength package which are not represented as a product in FEST."
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.extension",
        "path": "MedicinalProduct.identifier.extension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.use",
        "path": "MedicinalProduct.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.type",
        "path": "MedicinalProduct.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.system",
        "path": "MedicinalProduct.identifier.system",
        "min": 1
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.value",
        "path": "MedicinalProduct.identifier.value",
        "min": 1
      },
      {
        "id": "MedicinalProduct.identifier:legemiddelmerkevareId.assigner",
        "path": "MedicinalProduct.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.type",
        "path": "MedicinalProduct.type",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.domain",
        "path": "MedicinalProduct.domain",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.combinedPharmaceuticalDoseForm",
        "path": "MedicinalProduct.combinedPharmaceuticalDoseForm",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.legalStatusOfSupply",
        "path": "MedicinalProduct.legalStatusOfSupply",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.additionalMonitoringIndicator",
        "path": "MedicinalProduct.additionalMonitoringIndicator",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.specialMeasures",
        "path": "MedicinalProduct.specialMeasures",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.paediatricUseIndicator",
        "path": "MedicinalProduct.paediatricUseIndicator",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.productClassification",
        "path": "MedicinalProduct.productClassification",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.marketingStatus",
        "path": "MedicinalProduct.marketingStatus",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.pharmaceuticalProduct",
        "path": "MedicinalProduct.pharmaceuticalProduct",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.packagedMedicinalProduct",
        "path": "MedicinalProduct.packagedMedicinalProduct",
        "min": 1
      },
      {
        "id": "MedicinalProduct.attachedDocument",
        "path": "MedicinalProduct.attachedDocument",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.masterFile",
        "path": "MedicinalProduct.masterFile",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.contact",
        "path": "MedicinalProduct.contact",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.clinicalTrial",
        "path": "MedicinalProduct.clinicalTrial",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.name",
        "path": "MedicinalProduct.name",
        "short": "The product's name",
        "definition": "The product's name. Only includes full name, which for now consists of the corresponding \"NavnFormStyrke\"-element from FEST."
      },
      {
        "id": "MedicinalProduct.name.extension",
        "path": "MedicinalProduct.name.extension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.name.modifierExtension",
        "path": "MedicinalProduct.name.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.name.productName",
        "path": "MedicinalProduct.name.productName",
        "definition": "The full product name.\r\n\r\nWill always contain the new invented name when there is an invented name change, both for the old and the new medicinal product (as invented name changes results in new medicinal products)."
      },
      {
        "id": "MedicinalProduct.name.namePart",
        "path": "MedicinalProduct.name.namePart",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.name.countryLanguage",
        "path": "MedicinalProduct.name.countryLanguage",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.crossReference",
        "path": "MedicinalProduct.crossReference",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.manufacturingBusinessOperation",
        "path": "MedicinalProduct.manufacturingBusinessOperation",
        "max": "0"
      },
      {
        "id": "MedicinalProduct.specialDesignation",
        "path": "MedicinalProduct.specialDesignation",
        "max": "0"
      }
    ]
  }
}