{ "description": "This extension should be used in the Task ressource. It shows the timestamp of the last dispense.", "_filename": "StructureDefinition-GEM-ERP-EX-LastMedicationDispense.json", "package_name": "de.gematik.erezept-workflow.r4", "date": "2024-04-16", "derivation": "constraint", "publisher": null, "fhirVersion": "4.0.1", "name": "GEM_ERP_EX_LastMedicationDispense", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" } ], "abstract": false, "type": "Extension", "experimental": null, "resourceType": "StructureDefinition", "title": "Last Medication Dispense", "package_version": "1.3.0-rc3", "status": "draft", "id": "9bbbfed7-0ca7-442f-b6ac-a1d84bf9ac1b", "kind": "complex-type", "url": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense", "context": [ { "type": "element", "expression": "Task" } ], "version": "1.3", "differential": { "element": [ { "id": "Extension", "path": "Extension", "short": "Timestamp which is set when a medication for this task has been dispensed. Must be stated in the format YYYY-MM-DDTHH:MM:SS(Z|±HH:MM)", "definition": "This field allows the E-Rezept-FdV to display to the user that a medication has been dispensed before it was closed by the pharmacy." }, { "id": "Extension.extension", "max": "0", "path": "Extension.extension" }, { "id": "Extension.url", "path": "Extension.url", "fixedUri": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense" }, { "id": "Extension.value[x]", "path": "Extension.value[x]", "type": [ { "code": "instant" } ], "constraint": [ { "key": "workflow-letzteAbgabeDatumsFormat", "human": "The 'value' field must match the datetime format up to seconds precision YYYY-MM-DDTHH:MM:SS(Z|±HH:MM)", "source": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense", "severity": "error", "expression": "value.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(Z|([+-])((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$')" } ] } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension" }