{
"description": "MedicationRequest for a write-back callback to a host clinical system. Binds DosageDgMP for dosageInstruction; subject/requester/insurance do not require literal references.",
"_filename": "StructureDefinition-AID-MedicationRequest.json",
"package_name": "dosing.aid-medicationrequest",
"date": "2026-08-11",
"derivation": "constraint",
"publisher": "Dosing GmbH",
"fhirVersion": "4.0.1",
"purpose": "Dosage information (structured and/or free text) for a write-back callback, without requiring literal Patient/Practitioner/Coverage references.",
"name": "AIDMedicationRequest",
"mapping": [ {
"uri": "http://hl7.org/fhir/workflow",
"name": "Workflow Pattern",
"identity": "workflow"
} ],
"abstract": false,
"type": "MedicationRequest",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "AiD Medication Request",
"package_version": "1.0.1",
"status": "draft",
"id": "dc7a4037-6490-4ac6-875d-0999e8af6d3f",
"kind": "resource",
"url": "https://fhir.dosing-gmbh.de/StructureDefinition/AID-MedicationRequest",
"version": "1.0.1",
"differential": {
"element": [ {
"id": "MedicationRequest",
"path": "MedicationRequest",
"short": "Prescription record in a write-back callback",
"definition": "One issued prescription: status, dosage, and a reference to the associated Medication resource within the same payload."
}, {
"id": "MedicationRequest.extension",
"path": "MedicationRequest.extension",
"short": "Slices for extension",
"slicing": {
"rules": "open",
"ordered": false,
"discriminator": [ {
"path": "url",
"type": "value"
} ]
}
}, {
"path": "MedicationRequest.extension",
"min": 0,
"definition": "FHIR R5 backport extension. Canonical URL resolved locally via AID-EX-RenderedDosageInstruction (see that StructureDefinition). Required once dosageInstruction is structured (see DosageDgMP: DosageStructuredRequiresGeneratedText).",
"short": "Rendered dosage text (e.g. \"1-2-0-1\")",
"type": [ {
"code": "Extension",
"profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" ]
} ],
"mustSupport": true,
"sliceName": "renderedDosageInstruction",
"max": "1",
"id": "MedicationRequest.extension:renderedDosageInstruction"
}, {
"path": "MedicationRequest.extension",
"min": 0,
"definition": "algorithmVersion identifies the version of the text-generation algorithm defined on the \"Dosis Textgenerierung\" page of the Medication IG DE — not a version of our own code. Reference implementation: hl7germany/dgMP-DosageTextgenerierung-Skript (Python, MIT license); its __version__ constant is the value to record here.",
"short": "Metadata about the generated dosage text (language, algorithm version)",
"type": [ {
"code": "Extension",
"profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ]
} ],
"mustSupport": true,
"sliceName": "generatedDosageInstructionsMeta",
"max": "1",
"id": "MedicationRequest.extension:generatedDosageInstructionsMeta"
}, {
"id": "MedicationRequest.extension:emergencyServicesFee",
"max": "1",
"min": 0,
"path": "MedicationRequest.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee" ]
} ],
"short": "Emergency services fee (Noctu)",
"sliceName": "emergencyServicesFee",
"mustSupport": true
}, {
"id": "MedicationRequest.extension:ser",
"max": "1",
"min": 0,
"path": "MedicationRequest.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER" ]
} ],
"short": "Social compensation law indicator (SER)",
"sliceName": "ser",
"mustSupport": true
}, {
"id": "MedicationRequest.extension:multiplePrescription",
"max": "1",
"min": 0,
"path": "MedicationRequest.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription" ]
} ],
"short": "Multiple-prescription indicator",
"sliceName": "multiplePrescription",
"mustSupport": true
}, {
"path": "MedicationRequest.medication[x]",
"min": 1,
"definition": "urn:uuid reference to the Medication resource of the same prescription entry, resolved only within the payload, not as a Bundle.",
"short": "Reference to the Medication resource in the same payload",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Medication" ]
} ],
"mustSupport": true,
"sliceName": "medicationReference",
"max": "1",
"id": "MedicationRequest.medicationReference"
}, {
"id": "MedicationRequest.subject",
"path": "MedicationRequest.subject",
"short": "Patient (display-only is sufficient)",
"mustSupport": true
}, {
"id": "MedicationRequest.authoredOn",
"path": "MedicationRequest.authoredOn",
"short": "Date the prescription was issued",
"mustSupport": true
}, {
"id": "MedicationRequest.requester",
"max": "1",
"path": "MedicationRequest.requester",
"short": "Requesting practitioner (optional)",
"mustSupport": false
}, {
"id": "MedicationRequest.insurance",
"path": "MedicationRequest.insurance",
"short": "Insurance coverage (optional)",
"mustSupport": false
}, {
"id": "MedicationRequest.dosageInstruction",
"min": 1,
"path": "MedicationRequest.dosageInstruction",
"type": [ {
"code": "Dosage",
"profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/DosageDgMP" ]
} ],
"short": "Dosage, structured and/or free text (DosageDgMP)",
"definition": "Binds DosageDgMP from de.fhir.medication for structured and/or free-text dosage.",
"mustSupport": true
}, {
"id": "MedicationRequest.dispenseRequest",
"path": "MedicationRequest.dispenseRequest",
"short": "Medication supply authorization",
"mustSupport": true
}, {
"id": "MedicationRequest.dispenseRequest.quantity",
"path": "MedicationRequest.dispenseRequest.quantity",
"short": "Package quantity to dispense",
"mustSupport": true
}, {
"id": "MedicationRequest.substitution",
"path": "MedicationRequest.substitution",
"short": "Substitution permission (aut idem)",
"mustSupport": true
}, {
"id": "MedicationRequest.substitution.allowed[x]",
"path": "MedicationRequest.substitution.allowed[x]",
"type": [ {
"code": "boolean"
} ],
"short": "Substitution permission (aut idem)",
"mustSupport": true
} ]
},
"contact": [ {
"name": "Dosing GmbH",
"telecom": [ {
"value": "https://www.dosing-gmbh.de",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
}