EHDSMedicationPrescription
type: StructureDefinition
node role: treeRoot
id:
  v: EHDSMedicationPrescription
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition EHDSMedicationPrescription Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> EHDSMedicationPrescription 0..* EHDSDataSet Elements defined in Ancestors:header, presentedForm Medication prescription model Instances of this logical model can be the target of a Reference #xD; header 1..1 Base Prescription header #xD; subject 1..1 EHDSPatient The person for whom the medication is prescribed/ordered. [Used for searching] #xD; identifier 0..* Identifier Business identifier(s) for the prescription. [Used for searching] #xD; authorship #xD; author[x] 1..1 EHDSHealthProfessional, EHDSOrganisation, EHDSDevice The prescriber, the person who made the prescription, and who takes the responsibility of the treatment. [Used for searching] #xD; datetime 1..1 dateTime Time of issuing (signing) the prescription by health care professional. [Used for searching] #xD; status 1..1 CodeableConcept Status of the prescription, this should not be status of treatment. For multi-item prescription, the status of prescription is often related to statuses of single lines. In case of single-item prescriptions, the status for line is usually the status of prescription. [Used for searching] #xD; statusReason[x] 0..1 CodeableConcept, string Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous #xD; recorder 0..1 EHDSHealthProfessional The recorder of the prescription/draft in the information system #xD; recordingDate 0..1 dateTime Time of authoring the prescription/draft in the information system #xD; validFrom 0..1 dateTime Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate. [Used for searching] #xD; validUntil 0..1 dateTime The validity period end date. The prescription is not dispensable after this date. [Us…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
  value: code
    v: can-be-target
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
  value: code
    v: can-be-target
url:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSMedicationPrescription
version:
  v: 0.1.0
name:
  v: EHDSMedicationPrescription
title:
  v: Medication prescription model
status:
  v: draft
date:
  v: 2025-08-25T17:05:40+00:00
publisher:
  v: Xt-EHR
contact:
  name:
    v: Xt-EHR
  telecom:
    system:
      v: url
    value:
      v: http://Xt-EHR.eu
description:
  v: Logical model for medication prescription. A prescription contains one or more prescription items.
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSMedicationPrescription
base definition:
  v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDataSet
  link: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDataSet
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 0.1.0
  element:
    id:
      v: EHDSMedicationPrescription
    path:
      v: EHDSMedicationPrescription
    short:
      v: Medication prescription model
    definition:
      v: Logical model for medication prescription. A prescription contains one or more prescription items.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: EHDSMedicationPrescription.header
    path:
      v: EHDSMedicationPrescription.header
    short:
      v: Prescription header
    definition:
      v: Prescription header data elements
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: EHDSDataSet.header
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Base
  element:
    id:
      v: EHDSMedicationPrescription.header.subject
    path:
      v: EHDSMedicationPrescription.header.subject
    short:
      v: The person for whom the medication is prescribed/ordered. [Used for searching]
    definition:
      v: Patient/subject information
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: EHDSDataSet.header.subject
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSPatient
  element:
    id:
      v: EHDSMedicationPrescription.header.identifier
    path:
      v: EHDSMedicationPrescription.header.identifier
    short:
      v: Business identifier(s) for the prescription. [Used for searching]
    definition:
      v: Business identifier for the object
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: EHDSDataSet.header.identifier
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Identifier
  element:
    id:
      v: EHDSMedicationPrescription.header.authorship
    path:
      v: EHDSMedicationPrescription.header.authorship
    short:
      v: Authorship
    definition:
      v: Resource authoring details
    min:
      v: 1
    max:
      v: *
    base:
      path:
        v: EHDSDataSet.header.authorship
      min:
        v: 1
      max:
        v: *
    type:
      code:
        v: Base
  element:
    id:
      v: EHDSMedicationPrescription.header.authorship.author[x]
    path:
      v: EHDSMedicationPrescription.header.authorship.author[x]
    short:
      v: The prescriber, the person who made the prescription, and who takes the responsibility of the treatment. [Used for searching]
    definition:
      v: Author(s) by whom the resource was/were authored. Multiple authors could be provided.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: EHDSDataSet.header.authorship.author[x]

v: 1

v: 1

id:
  v: EHDSMedicationPrescription.header.authorship.datetime
path:
  v: EHDSMedicationPrescription.header.authorship.datetime
short:
  v: Time of issuing (signing) the prescription by health care professional. [Used for searching]
definition:
  v: Date and time of the issuing the document/resource by its author.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.authorship.datetime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: EHDSMedicationPrescription.header.lastUpdate
path:
  v: EHDSMedicationPrescription.header.lastUpdate
short:
  v: Date and time of the last update to the resource
definition:
  v: Date and time of the last update to the document/information
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.lastUpdate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: EHDSMedicationPrescription.header.status
path:
  v: EHDSMedicationPrescription.header.status
short:
  v: Status of the prescription, this should not be status of treatment. For multi-item prescription, the status of prescription is often related to statuses of single lines. In case of single-item prescriptions, the status for line is usually the status of prescription. [Used for searching]
definition:
  v: Status of the resource
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.header.statusReason[x]
path:
  v: EHDSMedicationPrescription.header.statusReason[x]
short:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
definition:
  v: Reason for the current status of the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.statusReason[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.header.language
path:
  v: EHDSMedicationPrescription.header.language
short:
  v: Language
definition:
  v: Language in which the resource is written. Language is expressed by the IETF language tag.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: preferred
  description:
    v: BCP 47

id:
  v: EHDSMedicationPrescription.header.version
path:
  v: EHDSMedicationPrescription.header.version
short:
  v: Version
definition:
  v: Business version of the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSDataSet.header.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.presentedForm
path:
  v: EHDSMedicationPrescription.presentedForm
short:
  v: Entire prescription as issued. Various formats could be provided, PDF format is recommended.
definition:
  v: A narrative easy-to-read representation of the full data set, e.g. PDF-version of a document
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSDataSet.presentedForm
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSAttachment

id:
  v: EHDSMedicationPrescription.header.recorder
path:
  v: EHDSMedicationPrescription.header.recorder
short:
  v: The recorder of the prescription/draft in the information system
definition:
  v: The recorder of the prescription/draft in the information system
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.header.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional

id:
  v: EHDSMedicationPrescription.header.recordingDate
path:
  v: EHDSMedicationPrescription.header.recordingDate
short:
  v: Time of authoring the prescription/draft in the information system
definition:
  v: Time of authoring the prescription/draft in the information system
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.header.recordingDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: EHDSMedicationPrescription.header.validFrom
path:
  v: EHDSMedicationPrescription.header.validFrom
short:
  v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate. [Used for searching]
definition:
  v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate. [Used for searching]
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.header.validFrom
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: EHDSMedicationPrescription.header.validUntil
path:
  v: EHDSMedicationPrescription.header.validUntil
short:
  v: The validity period end date. The prescription is not dispensable after this date. [Used for searching]
definition:
  v: The validity period end date. The prescription is not dispensable after this date. [Used for searching]
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.header.validUntil
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: EHDSMedicationPrescription.comment
path:
  v: EHDSMedicationPrescription.comment
short:
  v: Additional information or comments
definition:
  v: Additional information or comments
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.comment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem
path:
  v: EHDSMedicationPrescription.prescriptionItem
short:
  v: Prescription line for one medication. In many countries, only one item is allowed. In case multiple medications are allowed, all lines need to be authored together.
definition:
  v: Prescription line for one medication. In many countries, only one item is allowed. In case multiple medications are allowed, all lines need to be authored together.
min:
  v: 1
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: Base

id:
  v: EHDSMedicationPrescription.prescriptionItem.identifier
path:
  v: EHDSMedicationPrescription.prescriptionItem.identifier
short:
  v: Identifier for a single item on prescription, if exists. In case of single-item prescription, this identifier is typically the same as prescription identifier.
definition:
  v: Identifier for a single item on prescription, if exists. In case of single-item prescription, this identifier is typically the same as prescription identifier.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier

id:
  v: EHDSMedicationPrescription.prescriptionItem.category
path:
  v: EHDSMedicationPrescription.prescriptionItem.category
short:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
definition:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.medication
path:
  v: EHDSMedicationPrescription.prescriptionItem.medication
short:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
definition:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.medication
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSMedication

id:
  v: EHDSMedicationPrescription.prescriptionItem.indication[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.indication[x]
short:
  v: Reason for the prescription (typically diagnosis, or a procedure)
definition:
  v: Reason for the prescription (typically diagnosis, or a procedure)
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.indication[x]
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCondition

id:
  v: EHDSMedicationPrescription.prescriptionItem.indicationText
path:
  v: EHDSMedicationPrescription.prescriptionItem.indicationText
short:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
definition:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.indicationText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.prescriptionIntent
path:
  v: EHDSMedicationPrescription.prescriptionItem.prescriptionIntent
short:
  v: Intent of the prescription - prophylaxis, treatment, anesthesia, etc
definition:
  v: Intent of the prescription - prophylaxis, treatment, anesthesia, etc
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.prescriptionIntent
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.treatmentPeriod
path:
  v: EHDSMedicationPrescription.prescriptionItem.treatmentPeriod
short:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
definition:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.treatmentPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period

id:
  v: EHDSMedicationPrescription.prescriptionItem.quantityPrescribed
path:
  v: EHDSMedicationPrescription.prescriptionItem.quantityPrescribed
short:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
definition:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.quantityPrescribed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
binding:
  strength:
    v: preferred
  description:
    v: UCUM, EDQM Standard Terms

id:
  v: EHDSMedicationPrescription.prescriptionItem.dosageInstructions
path:
  v: EHDSMedicationPrescription.prescriptionItem.dosageInstructions
short:
  v: Dosaging and administration instructions
definition:
  v: Dosaging and administration instructions
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.dosageInstructions
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDosaging

id:
  v: EHDSMedicationPrescription.prescriptionItem.preparationInstructions
path:
  v: EHDSMedicationPrescription.prescriptionItem.preparationInstructions
short:
  v: Additional instructions about preparation or dispense
definition:
  v: Additional instructions about preparation or dispense
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.preparationInstructions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution
short:
  v: Whether and which type of substitution is allowed for this medication treatment item
definition:
  v: Whether and which type of substitution is allowed for this medication treatment item
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.substitution
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Base

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.allowed[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.allowed[x]
short:
  v: Whether and to what extent substitution is allowed.
definition:
  v: Whether and to what extent substitution is allowed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.substitution.allowed[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.reason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.reason[x]
short:
  v: Reason for the substitution requirement (e.g. Biological product, Patient allergic to an excipient in alternative products, etc)
definition:
  v: Reason for the substitution requirement (e.g. Biological product, Patient allergic to an excipient in alternative products, etc)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.substitution.reason[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.status
path:
  v: EHDSMedicationPrescription.prescriptionItem.status
short:
  v: Status of a single item of a multi-item prescription. In case of single-item prescriptions, the status of prescription has the same meaning as the status of the item.
definition:
  v: Status of a single item of a multi-item prescription. In case of single-item prescriptions, the status of prescription has the same meaning as the status of the item.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.statusReason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.statusReason[x]
short:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
definition:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.statusReason[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.repeatsAllowed
path:
  v: EHDSMedicationPrescription.prescriptionItem.repeatsAllowed
short:
  v: Number of refills authorized
definition:
  v: How many times the prescription item can be dispensed in addition to the original dispense.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.repeatsAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer

id:
  v: EHDSMedicationPrescription.prescriptionItem.minimumDispenseInterval
path:
  v: EHDSMedicationPrescription.prescriptionItem.minimumDispenseInterval
short:
  v: Minimum Dispense Interval
definition:
  v: If a prescription allows for repeated dispensations, the interval between dispensations shall be stated here.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.minimumDispenseInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel
short:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the drug
definition:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the drug
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.offLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Base

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.isOffLabelUse
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.isOffLabelUse
short:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
definition:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.offLabel.isOffLabelUse
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.reason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.reason[x]
short:
  v: Reason or related clarification for off-label use
definition:
  v: Reason or related clarification for off-label use
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.offLabel.reason[x]
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.comment
path:
  v: EHDSMedicationPrescription.prescriptionItem.comment
short:
  v: Additional information or comments
definition:
  v: Additional information or comments
min:
  v: 0
max:
  v: *
base:
  path:
    v: EHDSMedicationPrescription.prescriptionItem.comment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

element:
  id:
    v: EHDSMedicationPrescription
  path:
    v: EHDSMedicationPrescription
  short:
    v: Medication prescription model
  definition:
    v: Logical model for medication prescription. A prescription contains one or more prescription items.
element:
  id:
    v: EHDSMedicationPrescription.header
  path:
    v: EHDSMedicationPrescription.header
  short:
    v: Prescription header
  definition:
    v: Prescription header data elements
element:
  id:
    v: EHDSMedicationPrescription.header.subject
  path:
    v: EHDSMedicationPrescription.header.subject
  short:
    v: The person for whom the medication is prescribed/ordered. [Used for searching]
element:
  id:
    v: EHDSMedicationPrescription.header.identifier
  path:
    v: EHDSMedicationPrescription.header.identifier
  short:
    v: Business identifier(s) for the prescription. [Used for searching]
element:
  id:
    v: EHDSMedicationPrescription.header.authorship.author[x]
  path:
    v: EHDSMedicationPrescription.header.authorship.author[x]
  short:
    v: The prescriber, the person who made the prescription, and who takes the responsibility of the treatment. [Used for searching]
element:
  id:
    v: EHDSMedicationPrescription.header.authorship.datetime
  path:
    v: EHDSMedicationPrescription.header.authorship.datetime
  short:
    v: Time of issuing (signing) the prescription by health care professional. [Used for searching]
element:
  id:
    v: EHDSMedicationPrescription.header.status
  path:
    v: EHDSMedicationPrescription.header.status
  short:
    v: Status of the prescription, this should not be status of treatment. For multi-item prescription, the status of prescription is often related to statuses of single lines. In case of single-item prescriptions, the status for line is usually the status of prescription. [Used for searching]
element:
  id:
    v: EHDSMedicationPrescription.header.statusReason[x]
  path:
    v: EHDSMedicationPrescription.header.statusReason[x]
  short:
    v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
element:
  id:
    v: EHDSMedicationPrescription.header.recorder
  path:
    v: EHDSMedicationPrescription.header.recorder
  short:
    v: The recorder of the prescription/draft in the information system
  definition:
    v: The recorder of the prescription/draft in the information system
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSHealthProfessional
element:
  id:
    v: EHDSMedicationPrescription.header.recordingDate
  path:
    v: EHDSMedicationPrescription.header.recordingDate
  short:
    v: Time of authoring the prescription/draft in the information system
  definition:
    v: Time of authoring the prescription/draft in the information system
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: EHDSMedicationPrescription.header.validFrom
  path:
    v: EHDSMedicationPrescription.header.validFrom
  short:
    v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate. [Used for searching]
  definition:
    v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate. [Used for searching]
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: EHDSMedicationPrescription.header.validUntil
  path:
    v: EHDSMedicationPrescription.header.validUntil
  short:
    v: The validity period end date. The prescription is not dispensable after this date. [Used for searching]
  definition:
    v: The validity period end date. The prescription is not dispensable after this date. [Used for searching]
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: EHDSMedicationPrescription.presentedForm
  path:
    v: EHDSMedicationPrescription.presentedForm
  short:
    v: Entire prescription as issued. Various formats could be provided, PDF format is recommended.
element:
  id:
    v: EHDSMedicationPrescription.comment
  path:
    v: EHDSMedicationPrescription.comment
  short:
    v: Additional information or comments
  definition:
    v: Additional information or comments
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: string
element:
  id:
    v: EHDSMedicationPrescription.prescriptionItem
  path:
    v: EHDSMedicationPrescription.prescriptionItem
  short:
    v: Prescription line for one medication. In many countries, only one item is allowed. In case multiple medications are allowed, all lines need to be authored together.
  definition:
    v: Prescription line for one medication. In many countries, only one item is allowed. In case multiple medications are allowed, all lines need to be authored together.
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Base
element:
  id:
    v: EHDSMedicationPrescription.prescriptionItem.identifier
  path:
    v: EHDSMedicationPrescription.prescriptionItem.identifier
  short:
    v: Identifier for a single item on prescription, if exists. In case of single-item prescription, this identifier is typically the same as prescription identifier.
  definition:
    v: Identifier for a single item on prescription, if exists. In case of single-item prescription, this identifier is typically the same as prescription identifier.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Identifier
element:
  id:
    v: EHDSMedicationPrescription.prescriptionItem.category
  path:
    v: EHDSMedicationPrescription.prescriptionItem.category
  short:
    v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
  definition:
    v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: EHDSMedicationPrescription.prescriptionItem.medication
  path:
    v: EHDSMedicationPrescription.prescriptionItem.medication
  short:
    v: Prescribed product, branded, generic, virtual, extemporal, etc

v: Prescribed product, branded, generic, virtual, extemporal, etc

v: 1

v: 1

id:
  v: EHDSMedicationPrescription.prescriptionItem.indication[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.indication[x]
short:
  v: Reason for the prescription (typically diagnosis, or a procedure)
definition:
  v: Reason for the prescription (typically diagnosis, or a procedure)
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSCondition

id:
  v: EHDSMedicationPrescription.prescriptionItem.indicationText
path:
  v: EHDSMedicationPrescription.prescriptionItem.indicationText
short:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
definition:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.prescriptionIntent
path:
  v: EHDSMedicationPrescription.prescriptionItem.prescriptionIntent
short:
  v: Intent of the prescription - prophylaxis, treatment, anesthesia, etc
definition:
  v: Intent of the prescription - prophylaxis, treatment, anesthesia, etc
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.treatmentPeriod
path:
  v: EHDSMedicationPrescription.prescriptionItem.treatmentPeriod
short:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
definition:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Period

id:
  v: EHDSMedicationPrescription.prescriptionItem.quantityPrescribed
path:
  v: EHDSMedicationPrescription.prescriptionItem.quantityPrescribed
short:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
definition:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Quantity
binding:
  strength:
    v: preferred
  description:
    v: UCUM, EDQM Standard Terms

id:
  v: EHDSMedicationPrescription.prescriptionItem.dosageInstructions
path:
  v: EHDSMedicationPrescription.prescriptionItem.dosageInstructions
short:
  v: Dosaging and administration instructions
definition:
  v: Dosaging and administration instructions
min:
  v: 0
max:
  v: *
type:
  code:
    v: https://www.xt-ehr.eu/specifications/fhir/StructureDefinition/EHDSDosaging

id:
  v: EHDSMedicationPrescription.prescriptionItem.preparationInstructions
path:
  v: EHDSMedicationPrescription.prescriptionItem.preparationInstructions
short:
  v: Additional instructions about preparation or dispense
definition:
  v: Additional instructions about preparation or dispense
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution
short:
  v: Whether and which type of substitution is allowed for this medication treatment item
definition:
  v: Whether and which type of substitution is allowed for this medication treatment item
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Base

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.allowed[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.allowed[x]
short:
  v: Whether and to what extent substitution is allowed.
definition:
  v: Whether and to what extent substitution is allowed.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.reason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.substitution.reason[x]
short:
  v: Reason for the substitution requirement (e.g. Biological product, Patient allergic to an excipient in alternative products, etc)
definition:
  v: Reason for the substitution requirement (e.g. Biological product, Patient allergic to an excipient in alternative products, etc)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.status
path:
  v: EHDSMedicationPrescription.prescriptionItem.status
short:
  v: Status of a single item of a multi-item prescription. In case of single-item prescriptions, the status of prescription has the same meaning as the status of the item.
definition:
  v: Status of a single item of a multi-item prescription. In case of single-item prescriptions, the status of prescription has the same meaning as the status of the item.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept

id:
  v: EHDSMedicationPrescription.prescriptionItem.statusReason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.statusReason[x]
short:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
definition:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid or why the prescription was changed from previous
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.repeatsAllowed
path:
  v: EHDSMedicationPrescription.prescriptionItem.repeatsAllowed
short:
  v: Number of refills authorized
definition:
  v: How many times the prescription item can be dispensed in addition to the original dispense.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer

id:
  v: EHDSMedicationPrescription.prescriptionItem.minimumDispenseInterval
path:
  v: EHDSMedicationPrescription.prescriptionItem.minimumDispenseInterval
short:
  v: Minimum Dispense Interval
definition:
  v: If a prescription allows for repeated dispensations, the interval between dispensations shall be stated here.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Quantity

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel
short:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the drug
definition:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the drug
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Base

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.isOffLabelUse
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.isOffLabelUse
short:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
definition:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.reason[x]
path:
  v: EHDSMedicationPrescription.prescriptionItem.offLabel.reason[x]
short:
  v: Reason or related clarification for off-label use
definition:
  v: Reason or related clarification for off-label use
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: EHDSMedicationPrescription.prescriptionItem.comment
path:
  v: EHDSMedicationPrescription.prescriptionItem.comment
short:
  v: Additional information or comments
definition:
  v: Additional information or comments
min:
  v: 0
max:
  v: *
type:
  code:
    v: string