{
  "resourceType": "StructureDefinition",
  "id": "mp612-dispensetofhirconversion-product",
  "url": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-Product",
  "version": "1.0.0",
  "name": "MP612 DispenseToFHIRConversion Product",
  "title": "MP612 DispenseToFHIRConversion Product",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "info@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile is derived from the profile of the Dutch Health and Care Information model (Dutch: Zorginformatiebouwsteen or ZIB) Product, release 2017",
  "purpose": "This profile defines the FHIR response for HCIM Product / Medication of a Medicationproces V6.12 request on the LSP.",
  "copyright": "CC0",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "Medication-Process-v09",
      "uri": "https://decor.nictiz.nl/medicatieproces/mp-html-20181220T121121/tr-2.16.840.1.113883.2.4.3.11.60.20.77.4.162-2018-11-29T135611.html",
      "name": "Medication Process v09 - verstrekkingenvertaling",
      "comment": "Language of Medication Process is Dutch."
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-Product",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "constraint": [
          {
            "key": "mpp-1",
            "severity": "error",
            "human": "Medication is represented either coded or unstructured by their ProductName and ProductDescription",
            "expression": "code.coding.exists() or (code.text.exists() and extension.where(url = 'http://nictiz.nl/fhir/StructureDefinition/zib-Product-Description').exists())"
          }
        ],
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20238",
            "comment": "Product"
          }
        ]
      },
      {
        "id": "Medication.extension:description",
        "path": "Medication.extension",
        "sliceName": "description",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-19787",
            "comment": "Omschrijving"
          }
        ]
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22289",
            "comment": "ProductCode"
          }
        ]
      },
      {
        "id": "Medication.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Medication.code.text",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22291",
            "comment": "ProductNaam"
          }
        ]
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "max": "0"
      },
      {
        "id": "Medication.isBrand",
        "path": "Medication.isBrand",
        "max": "0"
      },
      {
        "id": "Medication.isOverTheCounter",
        "path": "Medication.isOverTheCounter",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "max": "0"
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22293",
            "comment": "FarmaceutischeVorm"
          }
        ]
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22294",
            "comment": "Ingredient"
          }
        ]
      },
      {
        "id": "Medication.ingredient.itemCodeableConcept:itemCodeableConcept",
        "path": "Medication.ingredient.itemCodeableConcept",
        "sliceName": "itemCodeableConcept",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22298",
            "comment": "IngredientCode"
          }
        ]
      },
      {
        "id": "Medication.ingredient.isActive",
        "path": "Medication.ingredient.isActive",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.amount",
        "path": "Medication.ingredient.amount",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22295",
            "comment": "Sterkte"
          }
        ]
      },
      {
        "id": "Medication.package",
        "path": "Medication.package",
        "max": "0"
      },
      {
        "id": "Medication.image",
        "path": "Medication.image",
        "max": "0"
      }
    ]
  }
}