description: This extension should be used in the Task ressource. It shows the timestamp of the last dispense. package_name: de.gematik.erezept derivation: constraint name: GEM_ERP_EX_LastMedicationDispense type: Extension elements: extension: {index: 0} url: pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense'} index: 1 value: constraint: 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))$'')'} choices: [valueInstant] index: 3 valueInstant: type: instant constraint: 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))$'')'} choiceOf: value index: 4 package_version: workflow.r4-1.3.1 extensions: {} class: extension kind: complex-type url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense base: http://hl7.org/fhir/StructureDefinition/Extension version: '1.3'