{
  "resourceType": "StructureDefinition",
  "id": "hso-lib-Medication",
  "url": "https://hso.no/fhir/StructureDefinition/HsoLibMedication",
  "name": "HsoLibMedication",
  "status": "draft",
  "description": "HSØ implementation profile for Active Medications - Legemidler i Bruk (LiB).",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.no/fhir/StructureDefinition/no-basis-Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelVirkestoff",
        "path": "Medication.code.coding",
        "sliceName": "FEST-LegemiddelVirkestoff",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelVirkestoff.system",
        "path": "Medication.code.coding.system",
        "fixedUri": "http://legemiddelverket.no/FEST/LegemiddelVirkestoffID"
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelMerkevare",
        "path": "Medication.code.coding",
        "sliceName": "FEST-LegemiddelMerkevare",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelMerkevare.system",
        "path": "Medication.code.coding.system",
        "fixedUri": "http://legemiddelverket.no/FEST/LegemiddelMerkevareID"
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelPakning",
        "path": "Medication.code.coding",
        "sliceName": "FEST-LegemiddelPakning",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Medication.code.coding:FEST-LegemiddelPakning.system",
        "path": "Medication.code.coding.system",
        "fixedUri": "http://legemiddelverket.no/FEST/LegemiddelPakningID"
      },
      {
        "id": "Medication.code.coding:Magistrell",
        "path": "Medication.code.coding",
        "sliceName": "Magistrell",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Medication.code.coding:Magistrell.system",
        "path": "Medication.code.coding.system",
        "fixedUri": "urn:oid:2.16.578.1.12.4.1.1.7424"
      },
      {
        "id": "Medication.code.coding:Magistrell.code",
        "path": "Medication.code.coding.code",
        "fixedCode": "10"
      }
    ]
  }
}