{
  "resourceType": "StructureDefinition",
  "id": "371cc312-55d9-42c7-a1b4-98583d4758f6",
  "meta": {
    "versionId": "4",
    "lastUpdated": "2020-04-15T14:51:56.012+00:00"
  },
  "url": "http://electronichealth.se/fhir/StructureDefinition/NLLDosage",
  "name": "NLLDosage",
  "status": "draft",
  "date": "2020-04-15T14:51:53.48721Z",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "EHM",
      "uri": "http://ehalsomyndigheten.se",
      "name": "E-hälsomyndigheten concept"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Dosage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Dosage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Dosage.extension",
        "path": "Dosage.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Dosage.extension:nllObservandumDose",
        "path": "Dosage.extension",
        "sliceName": "nllObservandumDose",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLObservandumDose"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Obs. överstiger rekommenderad dos"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllAdministeringInstruction",
        "path": "Dosage.extension",
        "sliceName": "nllAdministeringInstruction",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLAdministeringInstruction"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Administreringsinstruktion"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllSiteQualifier",
        "path": "Dosage.extension",
        "sliceName": "nllSiteQualifier",
        "short": "Specific/qualified body site to administer to",
        "definition": "Specific/qualified body site to administer to, used when site alone is not enough to describe the correct site to administer to.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLSiteQualifier"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Snomed CT codes for specific site, as stipulated by NLL (terminology server).",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-snomed-qualifier"
        }
      },
      {
        "id": "Dosage.extension:nllSiteQualifier.value[x].coding",
        "path": "Dosage.extension.value[x].coding",
        "max": "1",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Precisering av administreringsställe"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllSiteQualifier.value[x].text",
        "path": "Dosage.extension.value[x].text",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Beskrivning annan precisering av administreringsställe"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllMedicalDevice",
        "path": "Dosage.extension",
        "sliceName": "nllMedicalDevice",
        "short": "Medical device to use for administration.",
        "definition": "Medical device to use for administration.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLMedicalDevice"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Snomed CT codes for medical device used for administration, as stipulated by NLL (terminology server).",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-snomed-medical-device"
        }
      },
      {
        "id": "Dosage.extension:nllMedicalDevice.value[x].coding",
        "path": "Dosage.extension.value[x].coding",
        "max": "1",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Medicinteknisk produkt"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllMedicalDevice.value[x].text",
        "path": "Dosage.extension.value[x].text",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Beskrivning annan medicinteknisk produkt"
          }
        ]
      },
      {
        "id": "Dosage.extension:nllSubSequence",
        "path": "Dosage.extension",
        "sliceName": "nllSubSequence",
        "short": "Subsequence",
        "definition": "The purpose of a subsequence is to provide a repeat mechanism within a sequence. With subsequences there is a possibility to express irregular dosage schedules that should be repeated within a dosage step (Dosage with a sequence).",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLSubSequence"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.extension:nllDosageType",
        "path": "Dosage.extension",
        "sliceName": "nllDosageType",
        "definition": "Calculated by the Swedish eHealth Agency.\r\nThe dosage type that matches the provided set of data.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLDosageType"
            ]
          }
        ]
      },
      {
        "id": "Dosage.sequence",
        "path": "Dosage.sequence",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Dosage.text",
        "path": "Dosage.text",
        "short": "Free text dosage",
        "definition": "Free text dosage. In the Swedish National Medication List there will be either a free text dosage or coded dosage instructions, never both.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Fritextdosering"
          }
        ]
      },
      {
        "id": "Dosage.additionalInstruction",
        "path": "Dosage.additionalInstruction",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Dosage.additionalInstruction.coding",
        "path": "Dosage.additionalInstruction.coding",
        "max": "0"
      },
      {
        "id": "Dosage.additionalInstruction.text",
        "path": "Dosage.additionalInstruction.text",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Annan instruktion"
          }
        ]
      },
      {
        "id": "Dosage.patientInstruction",
        "path": "Dosage.patientInstruction",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringsinstruktion"
          }
        ]
      },
      {
        "id": "Dosage.timing",
        "path": "Dosage.timing",
        "mustSupport": true
      },
      {
        "id": "Dosage.timing.repeat",
        "path": "Dosage.timing.repeat",
        "mustSupport": true
      },
      {
        "id": "Dosage.timing.repeat.extension",
        "path": "Dosage.timing.repeat.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Dosage.timing.repeat.extension:nllSubSequenceDuration",
        "path": "Dosage.timing.repeat.extension",
        "sliceName": "nllSubSequenceDuration",
        "short": "SubSequence duration",
        "definition": "The duration of the subsequence. Can only be used if there is a subsequence within the sequence. The lengh of a subsequence is always in the form of a quantity (never a range) and it can only be expressed in number of days.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLSubSequenceDuration"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Dosage.timing.repeat.bounds[x]",
        "path": "Dosage.timing.repeat.bounds[x]",
        "type": [
          {
            "code": "Duration",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/SequenceDuration"
            ]
          },
          {
            "code": "Range",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/SequenceDurationRange"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Längd doseringssteg"
          },
          {
            "identity": "EHM",
            "map": "Doseringssteg.Längd doseringssteg min resp Längd doseringssteg max"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.count",
        "path": "Dosage.timing.repeat.count",
        "short": "Single dose",
        "definition": "In the Swedish National Medication List count is used for describing single doseages that occur one (1) time. The only value allowed is count=1.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Antal upprepningar"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.duration",
        "path": "Dosage.timing.repeat.duration",
        "definition": "How long this thing happens for when it happens.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Administreringstillfällets varaktighet"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.durationUnit",
        "path": "Dosage.timing.repeat.durationUnit",
        "short": "min | h - unit of time (UCUM)",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-dose-duration-units"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Enhet för administreringstillfällets varaktighet"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.frequency",
        "path": "Dosage.timing.repeat.frequency",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Antal administreringar"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.frequencyMax",
        "path": "Dosage.timing.repeat.frequencyMax",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Antal administreringar max"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.period",
        "path": "Dosage.timing.repeat.period",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Period"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.periodMax",
        "path": "Dosage.timing.repeat.periodMax",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Period max"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.periodUnit",
        "path": "Dosage.timing.repeat.periodUnit",
        "short": "h | d  - unit of time (UCUM)",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-dose-period-units"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Periodenhet"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.dayOfWeek",
        "path": "Dosage.timing.repeat.dayOfWeek",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Veckodag"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.timeOfDay",
        "path": "Dosage.timing.repeat.timeOfDay",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Tillfällesdosering.Klockslag"
          }
        ]
      },
      {
        "id": "Dosage.timing.repeat.when",
        "path": "Dosage.timing.repeat.when",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-event-timing"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Strukturerad dosering.Tillfällesdosering.Period på dygnet"
          }
        ]
      },
      {
        "id": "Dosage.asNeeded[x]",
        "path": "Dosage.asNeeded[x]",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Vid behov"
          }
        ]
      },
      {
        "id": "Dosage.site",
        "path": "Dosage.site",
        "mustSupport": true
      },
      {
        "id": "Dosage.site.coding",
        "path": "Dosage.site.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Snomed CT codes for administration site, as stipulated by NLL (terminology server).",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-snomed-site"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Administreringsställe"
          }
        ]
      },
      {
        "id": "Dosage.site.text",
        "path": "Dosage.site.text",
        "definition": "A human language representation of the administration site. Used when no specific code can describe the site and the code 'OTH' has been selected.",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Beskrivning annat administreringsställe"
          }
        ]
      },
      {
        "id": "Dosage.route",
        "path": "Dosage.route",
        "mustSupport": true
      },
      {
        "id": "Dosage.route.coding",
        "path": "Dosage.route.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Snomed CT codes for administration route, as stipulated by NLL",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-snomed-route"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Administreringsväg"
          }
        ]
      },
      {
        "id": "Dosage.route.text",
        "path": "Dosage.route.text",
        "definition": "A human language representation of the administration route. Used when no specific code can describe the route and the code 'OTH' has been selected.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Beskrivning annan administreringsväg"
          }
        ]
      },
      {
        "id": "Dosage.method",
        "path": "Dosage.method",
        "mustSupport": true
      },
      {
        "id": "Dosage.method.coding",
        "path": "Dosage.method.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Snomed CT codes for administration method, as stipulated by NLL (terminology server).",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-snomed-method"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Administreringsmetod"
          }
        ]
      },
      {
        "id": "Dosage.method.text",
        "path": "Dosage.method.text",
        "definition": "A human language representation of the administration method. Used when no specific code can describe the method and the code 'OTH' has been selected.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Beskrivning annan administreringsmetod"
          }
        ]
      },
      {
        "id": "Dosage.doseAndRate",
        "path": "Dosage.doseAndRate",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Dosage.doseAndRate.dose[x]",
        "path": "Dosage.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Range",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DoseQuantityRange"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DoseQuantity"
            ]
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-ucum-unit"
        }
      },
      {
        "id": "Dosage.doseAndRate.rate[x]",
        "path": "Dosage.doseAndRate.rate[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-ucum-rate-unit"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringshastighet"
          }
        ]
      },
      {
        "id": "Dosage.doseAndRate.rate[x].value",
        "path": "Dosage.doseAndRate.rate[x].value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringshastighet"
          }
        ]
      },
      {
        "id": "Dosage.doseAndRate.rate[x].code",
        "path": "Dosage.doseAndRate.rate[x].code",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringshastighetsenhet"
          }
        ]
      },
      {
        "id": "Dosage.maxDosePerPeriod",
        "path": "Dosage.maxDosePerPeriod",
        "short": "Upper limit on medication per day",
        "definition": "Upper limit on medication per day",
        "mustSupport": true
      },
      {
        "id": "Dosage.maxDosePerPeriod.numerator",
        "path": "Dosage.maxDosePerPeriod.numerator",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DoseQuantity"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://electronichealth.se/fhir/ValueSet/nll-ucum-unit"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Maxdos"
          }
        ]
      },
      {
        "id": "Dosage.maxDosePerPeriod.numerator.code",
        "path": "Dosage.maxDosePerPeriod.numerator.code",
        "min": 1
      },
      {
        "id": "Dosage.maxDosePerPeriod.denominator",
        "path": "Dosage.maxDosePerPeriod.denominator",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DoseQuantity"
            ]
          }
        ],
        "fixedQuantity": {
          "value": 1,
          "system": "http://unitsofmeasure.org",
          "code": "d"
        },
        "mapping": [
          {
            "identity": "EHM",
            "map": "Doseringssteg.Maxdosperiod"
          }
        ]
      }
    ]
  }
}