{
  "resourceType": "StructureDefinition",
  "url": "https://fohm.se/nvr/fhir/StructureDefinition/NVRVaccine",
  "name": "NVRVaccine",
  "status": "draft",
  "description": "A vaccine defined by nplId and lot number",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "0"
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Medication.code.coding:nplId",
        "path": "Medication.code.coding",
        "sliceName": "nplId",
        "max": "1"
      },
      {
        "id": "Medication.code.coding:nplId.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://electronichealth.se/fhir/NamingSystem/nplid"
      },
      {
        "id": "Medication.code.coding:nplId.version",
        "path": "Medication.code.coding.version",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:nplId.display",
        "path": "Medication.code.coding.display",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:nplId.userSelected",
        "path": "Medication.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:atc",
        "path": "Medication.code.coding",
        "sliceName": "atc",
        "max": "1"
      },
      {
        "id": "Medication.code.coding:atc.system",
        "path": "Medication.code.coding.system",
        "fixedUri": "http://www.whocc.no/atc/example"
      },
      {
        "id": "Medication.code.coding:atc.version",
        "path": "Medication.code.coding.version",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:atc.code",
        "path": "Medication.code.coding.code",
        "min": 1
      },
      {
        "id": "Medication.code.coding:atc.display",
        "path": "Medication.code.coding.display",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:atc.userSelected",
        "path": "Medication.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:program",
        "path": "Medication.code.coding",
        "sliceName": "program",
        "min": 1
      },
      {
        "id": "Medication.code.coding:program.system",
        "path": "Medication.code.coding.system",
        "binding": {
          "strength": "required",
          "valueSet": "http://fohm.se/nvr/fhir/ValueSet/vaccination-programs"
        }
      },
      {
        "id": "Medication.code.coding:program.version",
        "path": "Medication.code.coding.version",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:program.code",
        "path": "Medication.code.coding.code",
        "min": 1
      },
      {
        "id": "Medication.code.coding:program.display",
        "path": "Medication.code.coding.display",
        "max": "0"
      },
      {
        "id": "Medication.code.coding:program.userSelected",
        "path": "Medication.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "min": 1
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "min": 1
      },
      {
        "id": "Medication.marketingAuthorizationHolder",
        "path": "Medication.marketingAuthorizationHolder",
        "max": "0"
      },
      {
        "id": "Medication.doseForm",
        "path": "Medication.doseForm",
        "max": "0"
      },
      {
        "id": "Medication.totalVolume",
        "path": "Medication.totalVolume",
        "max": "0"
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "max": "0"
      },
      {
        "id": "Medication.batch.lotNumber",
        "path": "Medication.batch.lotNumber",
        "min": 1
      },
      {
        "id": "Medication.batch.expirationDate",
        "path": "Medication.batch.expirationDate",
        "max": "0"
      },
      {
        "id": "Medication.definition",
        "path": "Medication.definition",
        "max": "0"
      }
    ]
  }
}