{
  "resourceType": "StructureDefinition",
  "id": "AID-EX-RenderedDosageInstruction",
  "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction",
  "version": "1.0.2",
  "name": "AIDEXRenderedDosageInstructionShim",
  "title": "AiD local stand-in for the MedicationRequest.renderedDosageInstruction R5-to-R4 backport",
  "status": "draft",
  "date": "2026-08-11",
  "publisher": "Dosing GmbH",
  "contact": [
    {
      "name": "Dosing GmbH",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.dosing-gmbh.de"
        }
      ]
    }
  ],
  "description": "Local stand-in StructureDefinition — not an official HL7 resource, not served at the hl7.org URL below. Resolves a canonical URL that de.fhir.medication's DosageDgMP references (DosageStructuredRequiresGeneratedText). HL7 International does publish this extension, but only as an unstable pre-release (hl7.fhir.uv.xver-r5.r4, FMM 0, trial-use) that de.fhir.medication itself deliberately avoids depending on (see its 1.0.6 release notes). We pin our own stable copy instead; content is equivalent (verified against the official extension). Published only for validator resolution.",
  "purpose": "Local resolution shim for a canonical URL that DosageDgMP references, pinned instead of the unstable hl7.fhir.uv.xver-r5.r4 pre-release that publishes the same extension.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "MedicationRequest"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Rendered dosage text (e.g. \"1-2-0-1\")",
        "definition": "Human-readable dosage text generated from the structured dosageInstruction entry.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ]
      }
    ]
  }
}