# Dosage asNeededFor - Medication IG DE v1.1.0

* [**Table of Contents**](toc.md)
* [**FHIR Summary**](artifacts.md)
* **Dosage asNeededFor**

## Extension: Dosage asNeededFor 

| | |
| :--- | :--- |
| *Official URL*:http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor | *Version*:1.1.0 |
| Active as of 2026-07-06 | *Computable Name*:DosageAsNeededFor |

Indicates whether the medication is only taken based on a precondition for taking the medication.

**Context of Use**

**Usage info**

**Usages:**

* Use this Extension: [Dosage DE](StructureDefinition-DosageDE.md)
* Examples for this Extension: [MedicationDispense/INV-C-AsNeededForRequiresAsNeeded-Dispense-02-of-03](MedicationDispense-INV-C-AsNeededForRequiresAsNeeded-Dispense-02-of-03.md), [MedicationDispense/INV-C-MaxDosePerPeriodOnly24hOr1d-Dispense-02-of-03](MedicationDispense-INV-C-MaxDosePerPeriodOnly24hOr1d-Dispense-02-of-03.md), [MedicationDispense/INV-C-dos-1-Dispense-02-of-03](MedicationDispense-INV-C-dos-1-Dispense-02-of-03.md), [MedicationRequest/Example-MR-Dosage-Bedarfsmedikation-Kopfschmerzen](MedicationRequest-Example-MR-Dosage-Bedarfsmedikation-Kopfschmerzen.md)... Show 7 more, [MedicationRequest/Example-MR-Dosage-Bedarfsmedikation-Struktur-Intervall](MedicationRequest-Example-MR-Dosage-Bedarfsmedikation-Struktur-Intervall.md), [MedicationRequest/INV-C-AsNeededForRequiresAsNeeded-Request-01-of-03](MedicationRequest-INV-C-AsNeededForRequiresAsNeeded-Request-01-of-03.md), [MedicationRequest/INV-C-MaxDosePerPeriodOnly24hOr1d-Request-01-of-03](MedicationRequest-INV-C-MaxDosePerPeriodOnly24hOr1d-Request-01-of-03.md), [MedicationRequest/INV-C-dos-1-Request-01-of-03](MedicationRequest-INV-C-dos-1-Request-01-of-03.md), [MedicationStatement/INV-C-AsNeededForRequiresAsNeeded-Statement-03-of-03](MedicationStatement-INV-C-AsNeededForRequiresAsNeeded-Statement-03-of-03.md), [MedicationStatement/INV-C-MaxDosePerPeriodOnly24hOr1d-Statement-03-of-03](MedicationStatement-INV-C-MaxDosePerPeriodOnly24hOr1d-Statement-03-of-03.md) and [MedicationStatement/INV-C-dos-1-Statement-03-of-03](MedicationStatement-INV-C-dos-1-Statement-03-of-03.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/de.fhir.medication|current/StructureDefinition/StructureDefinition-extension-Dosage.asNeededFor.json)

### Formal Views of Extension Content

 [Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-extension-Dosage.asNeededFor.csv), [Excel](StructureDefinition-extension-Dosage.asNeededFor.xlsx), [Schematron](StructureDefinition-extension-Dosage.asNeededFor.sch) 

#### Terminology Bindings

#### Constraints



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "extension-Dosage.asNeededFor",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "fhir"
  }],
  "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor",
  "version" : "1.1.0",
  "name" : "DosageAsNeededFor",
  "title" : "Dosage asNeededFor",
  "status" : "active",
  "date" : "2026-07-06T14:32:07+02:00",
  "publisher" : "HL7 Deutschland e.V.",
  "contact" : [{
    "name" : "HL7 Deutschland e.V.",
    "telecom" : [{
      "system" : "url",
      "value" : "https://hl7.de"
    }]
  }],
  "description" : "Indicates whether the medication is only taken based on a precondition for taking the medication.",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "complex-type",
  "abstract" : false,
  "context" : [{
    "type" : "element",
    "expression" : "Dosage"
  }],
  "type" : "Extension",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Extension",
      "path" : "Extension",
      "short" : "Dosage asNeededFor",
      "definition" : "Indicates whether the medication is only taken based on a precondition for taking the medication."
    },
    {
      "id" : "Extension.extension",
      "path" : "Extension.extension",
      "max" : "0"
    },
    {
      "id" : "Extension.url",
      "path" : "Extension.url",
      "fixedUri" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor"
    },
    {
      "id" : "Extension.value[x]",
      "path" : "Extension.value[x]",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "strength" : "example",
        "valueSet" : "http://hl7.org/fhir/ValueSet/medication-as-needed-reason"
      }
    }]
  }
}

```
