Prescription
type: StructureDefinition
node role: treeRoot
id:
  v: Prescription
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition Prescription Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Prescription 0..* Base A - Prescription #xD; patient 0..* Subject A.1.1 Patient administrative data #xD; authentication 0..* BackboneElement A.1.2 Authentication of the prescription #xD; <a href="StructureDefinition-Prescription-definitions.html#Prescription.authentication.identifier" title="A unique string generated by an EPS (Electronic Prescribing System) to #xA;uniquely identify a prescription; this unique code is needed for traceability. #xA;It might be used to register whether a prescription, and/or the maximum #xA;number of repeats, has already been dispensed. The identifier can consist of #xA;a root and an extension [ISO 21090:2011].">identifier 0..* Identifier A.1.2.1 Identifier of the Prescription #xD; date 0..* dateTime A.1.2.2 Issue date #xD; prescriber 0..1 BackboneElement A.1.3 Identification of the prescribing health professional #xD; familyName 0..* string A.1.3.1 Familyname #xD; givenName 0..* string A.1.3.2 Given name #xD; qualification 0..* CodeableConcept A.1.3.3 Professional qualifications #xD; contact 0..* ContactPoint A.1.3.4 Details for direct contact #xD; workAddress 0..* Address A.1.3.5 Work address #xD; signature 0..* Signature A.1.3.6 Signature #xD; <a href="StructureDefinition-Prescription-definitions.html#Prescription.prescriber.identifier" title="A unique number or code issued for the purpose of identifying a health care provider [ISO/TS 27527:2010]; this may be a licence or registration number which can be used to trace the prescriber and to check whether a medicinal product was prescribed by the right person according to the law of the prescribing country.">identifier 0..* Identifier A.1.3.7 Health care provider identifier #xD; product 0..1 MedicinalProduct A1.4 Identification of the prescribed product #xD; details 0..1 BackboneElement A.1.5 Prescription information #x…
url:
  v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/Prescription
version:
  v: 0.1.0
name:
  v: EprescriptionEhn
title:
  v: A - Prescription
status:
  v: draft
date:
  v: 2025-10-10T16:31:37+00:00
publisher:
  v: XpanDH Project
contact:
  name:
    v: XpanDH Project
  telecom:
    system:
      v: url
    value:
      v: https://xpandh-project.iscte-iul.pt
description:
  v: Prescription. Several Sections of the eHN guideline.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 150
    display:
      v: Europe
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/Prescription
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: Prescription
    path:
      v: Prescription
    short:
      v: A - Prescription
    definition:
      v: Prescription. Several Sections of the eHN guideline.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: Prescription.patient
    path:
      v: Prescription.patient
    short:
      v: A.1.1 Patient administrative data
    definition:
      v: Patient administrative data
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Prescription.patient
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/Subject
  element:
    id:
      v: Prescription.authentication
    path:
      v: Prescription.authentication
    short:
      v: A.1.2 Authentication of the prescription
    definition:
      v: Authentication of the prescription
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Prescription.authentication
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
  element:
    id:
      v: Prescription.authentication.id
    path:
      v: Prescription.authentication.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: Prescription.authentication.extension
    path:
      v: Prescription.authentication.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
    comment:
      v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension

url
v: string

v: value

v: url

v: 0

v: *

code:
  v: Extension

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

key:
  v: ext-1
severity:
  v: error
human:
  v: Must have either extensions or value[x], not both
expression:
  v: extension.exists() != value.exists()
xpath:
  v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
source:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  link: http://hl7.org/fhir/StructureDefinition/Extension

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: Prescription.authentication.modifierExtension
path:
  v: Prescription.authentication.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Prescription.authentication.identifier
path:
  v: Prescription.authentication.identifier
short:
  v: A.1.2.1 Identifier of the Prescription
definition:
  v: A unique string generated by an EPS (Electronic Prescribing System) to uniquely identify a prescription; this unique code is needed for traceability. It might be used to register whether a prescription, and/or the maximum number of repeats, has already been dispensed. The identifier can consist of a root and an extension [ISO 21090:2011].
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.authentication.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier

id:
  v: Prescription.authentication.date
path:
  v: Prescription.authentication.date
short:
  v: A.1.2.2 Issue date
definition:
  v: The date and optionally the time the prescription was issued. - Preferred system(s): ISO 8601
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.authentication.date
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime

id:
  v: Prescription.prescriber
path:
  v: Prescription.prescriber
short:
  v: A.1.3 Identification of the prescribing health professional
definition:
  v: Identification of the prescribing health professional
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Prescription.prescriber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: Prescription.prescriber.id
path:
  v: Prescription.prescriber.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.prescriber.extension
path:
  v: Prescription.prescriber.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.prescriber.modifierExtension
path:
  v: Prescription.prescriber.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Prescription.prescriber.familyName
path:
  v: Prescription.prescriber.familyName
short:
  v: A.1.3.1 Familyname
definition:
  v: The family name/surname/last name of the prescriber. This enables the prescriber to be traced in the event of questions or emergencies.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.familyName
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

id:
  v: Prescription.prescriber.givenName
path:
  v: Prescription.prescriber.givenName
short:
  v: A.1.3.2 Given name
definition:
  v: The given name/ first name of the prescriber. This enables the prescriber to be traced in the event of questions or emergencies.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.givenName
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

id:
  v: Prescription.prescriber.qualification
path:
  v: Prescription.prescriber.qualification
short:
  v: A.1.3.3 Professional qualifications
definition:
  v: The professional title of the prescribing health professional, which may be used to prove the authority of the prescriber.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.qualification
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.prescriber.contact
path:
  v: Prescription.prescriber.contact
short:
  v: A.1.3.4 Details for direct contact
definition:
  v: Details for direct contact could be an email address and/or phone/fax number of the prescriber in order for the dispenser and/or patient to contact the prescriber. This might be necessary if problems arise with dosage, allergies, reimbursement etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint

id:
  v: Prescription.prescriber.workAddress
path:
  v: Prescription.prescriber.workAddress
short:
  v: A.1.3.5 Work address
definition:
  v: This is the address of the hospital or the practice, etc. where the health professional normally works, meets patients and prescribes medication. Minimally, the country should be specified.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.workAddress
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Address

id:
  v: Prescription.prescriber.signature
path:
  v: Prescription.prescriber.signature
short:
  v: A.1.3.6 Signature
definition:
  v: Digital signature or token as proof of the authenticity of the prescriber.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.signature
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Signature

id:
  v: Prescription.prescriber.identifier
path:
  v: Prescription.prescriber.identifier
short:
  v: A.1.3.7 Health care provider identifier
definition:
  v: A unique number or code issued for the purpose of identifying a health care provider [ISO/TS 27527:2010]; this may be a licence or registration number which can be used to trace the prescriber and to check whether a medicinal product was prescribed by the right person according to the law of the prescribing country.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.prescriber.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier

id:
  v: Prescription.product
path:
  v: Prescription.product
short:
  v: A1.4 Identification of the prescribed product
definition:
  v: Identification of the prescribed product
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Prescription.product
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/MedicinalProduct

id:
  v: Prescription.details
path:
  v: Prescription.details
short:
  v: A.1.5 Prescription information
definition:
  v: Prescription information
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Prescription.details
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: Prescription.details.id
path:
  v: Prescription.details.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.details.extension
path:
  v: Prescription.details.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.details.modifierExtension
path:
  v: Prescription.details.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Prescription.details.quantity
path:
  v: Prescription.details.quantity
short:
  v: A.1.5.2 Quantity of prescribed product
definition:
  v: Total quantity or volume of the medicinal product that is prescribed to the specific patient. It can be provided as number of packages, given that the pack size is sufficiently described, or it can be the overall amount in appropriate units of measure (UCUM) or units of presentation (EDQM) (ml, g, tablets, vials). Depending on national legislation, this quantity may or may not be dispensed in one dispensation. - Preferred system(s): UCUM, EDQM
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.quantity
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Quantity

id:
  v: Prescription.details.doseRegimen
path:
  v: Prescription.details.doseRegimen
short:
  v: A.1.5.3 Dose regimen
definition:
  v: The regimen governing the dose quantity per single administration, the dose frequency, and/or speed of administration (in the event of intravenous administration). Note: this information may be used by the dispenser to calculate the quantity to be dispensed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.doseRegimen
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: Prescription.details.doseRegimen.id
path:
  v: Prescription.details.doseRegimen.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.details.doseRegimen.extension
path:
  v: Prescription.details.doseRegimen.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Prescription.details.doseRegimen.modifierExtension
path:
  v: Prescription.details.doseRegimen.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Prescription.details.doseRegimen.numOfIntakes
path:
  v: Prescription.details.doseRegimen.numOfIntakes
short:
  v: A.1.5.3.1 Number of units per intake
definition:
  v: The number of units per intake that the patient is taking. Example: 1 tablet - Preferred system(s): UCUM, EDQM
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.doseRegimen.numOfIntakes
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Quantity

id:
  v: Prescription.details.doseRegimen.frequencyOfIntakes
path:
  v: Prescription.details.doseRegimen.frequencyOfIntakes
short:
  v: A.1.5.3.2 Frequency of intakes
definition:
  v: Frequency of intakes per hour/day/week/month. Example: every 24 hours - Preferred system(s): UCUM, HL7 TimingEvent
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.doseRegimen.frequencyOfIntakes
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Timing

id:
  v: Prescription.details.route
path:
  v: Prescription.details.route
short:
  v: A.1.5.4 Route of administration
definition:
  v: The route of administration as prescribed. Example: oral intake - Preferred system(s): EDQM
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.route
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.duration
path:
  v: Prescription.details.duration
short:
  v: A.1.5.5 Duration of treatment
definition:
  v: The duration of the treatment as indicated by the Prescriber. Example: 14 days. Can be left blank for long-term therapies. - Preferred system(s): UCUM
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.duration
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Period

id:
  v: Prescription.details.startDate
path:
  v: Prescription.details.startDate
short:
  v: A.1.5.6 Starting date of therapy
definition:
  v: The time and date on which it is agreed that therapy will start. - Preferred system(s): ISO 8601
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.startDate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime

id:
  v: Prescription.details.directionsOfUse
path:
  v: Prescription.details.directionsOfUse
short:
  v: A.1.5.7 Directions for use
definition:
  v: Information about the directions for use of the prescribed medicinal product (such as ?with food? or ?before a meal?) and any cautionary advice for correct use of the prescribed medicinal product by the patient. - Preferred system(s): HL7 TimingEvent
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.directionsOfUse
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.expiryDate
path:
  v: Prescription.details.expiryDate
short:
  v: A.1.5.8 Prescription expiry date
definition:
  v: This might be dependent on local or national policy or legislation, in accordance with the treatment plan or because the therapeutic need for the prescribed medicine has expired. - Preferred system(s): ISO 8601
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.expiryDate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime

id:
  v: Prescription.details.repeats
path:
  v: Prescription.details.repeats
short:
  v: A.1.5.9 Repeats
definition:
  v: In some countries, when medicinal products are dispensed for the first time, the patient may only receive medication for a short period of time. When a patient starts taking medication for a chronic illness, the prescriber can issue a prescription for a longer period that is now separated by repeats. In addition, the maximum quantity (A.1.4.3) of the prescribed product that may be dispensed in one dispensation may be stated here. Decision on dispensability is made in the country of prescription.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.repeats
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: integer

id:
  v: Prescription.details.reason
path:
  v: Prescription.details.reason
short:
  v: A.1.5.10 Reason for prescription
definition:
  v: The reason why the medicine is being prescribed, including the option to mention that the medicinal product is being prescribed for ?off label? use. The reason for the prescription gives the dispenser the opportunity to review the prescription for medication safety issues. Note: in some countries it is obligatory to state the reason for prescription on the prescription itself for some or all medicinal products.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.reason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.substitution
path:
  v: Prescription.details.substitution
short:
  v: A.1.5.11 Substitution
definition:
  v: Substitution handling can be recorded to indicate whether and to what extent substitution is allowed by the prescriber.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Prescription.details.substitution
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

element:
  id:
    v: Prescription
  path:
    v: Prescription
  short:
    v: A - Prescription
  definition:
    v: Prescription. Several Sections of the eHN guideline.
element:
  id:
    v: Prescription.patient
  path:
    v: Prescription.patient
  short:
    v: A.1.1 Patient administrative data
  definition:
    v: Patient administrative data
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/Subject
element:
  id:
    v: Prescription.authentication
  path:
    v: Prescription.authentication
  short:
    v: A.1.2 Authentication of the prescription
  definition:
    v: Authentication of the prescription
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
element:
  id:
    v: Prescription.authentication.identifier
  path:
    v: Prescription.authentication.identifier
  short:
    v: A.1.2.1 Identifier of the Prescription
  definition:
    v: A unique string generated by an EPS (Electronic Prescribing System) to uniquely identify a prescription; this unique code is needed for traceability. It might be used to register whether a prescription, and/or the maximum number of repeats, has already been dispensed. The identifier can consist of a root and an extension [ISO 21090:2011].
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier
element:
  id:
    v: Prescription.authentication.date
  path:
    v: Prescription.authentication.date
  short:
    v: A.1.2.2 Issue date
  definition:
    v: The date and optionally the time the prescription was issued. - Preferred system(s): ISO 8601
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: dateTime
element:
  id:
    v: Prescription.prescriber
  path:
    v: Prescription.prescriber
  short:
    v: A.1.3 Identification of the prescribing health professional
  definition:
    v: Identification of the prescribing health professional
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: Prescription.prescriber.familyName
  path:
    v: Prescription.prescriber.familyName
  short:
    v: A.1.3.1 Familyname
  definition:
    v: The family name/surname/last name of the prescriber. This enables the prescriber to be traced in the event of questions or emergencies.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: string
element:
  id:
    v: Prescription.prescriber.givenName
  path:
    v: Prescription.prescriber.givenName
  short:
    v: A.1.3.2 Given name
  definition:
    v: The given name/ first name of the prescriber. This enables the prescriber to be traced in the event of questions or emergencies.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: string
element:
  id:
    v: Prescription.prescriber.qualification
  path:
    v: Prescription.prescriber.qualification
  short:
    v: A.1.3.3 Professional qualifications
  definition:
    v: The professional title of the prescribing health professional, which may be used to prove the authority of the prescriber.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: Prescription.prescriber.contact
  path:
    v: Prescription.prescriber.contact
  short:
    v: A.1.3.4 Details for direct contact
  definition:
    v: Details for direct contact could be an email address and/or phone/fax number of the prescriber in order for the dispenser and/or patient to contact the prescriber. This might be necessary if problems arise with dosage, allergies, reimbursement etc.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: ContactPoint
element:
  id:
    v: Prescription.prescriber.workAddress
  path:
    v: Prescription.prescriber.workAddress
  short:
    v: A.1.3.5 Work address
  definition:
    v: This is the address of the hospital or the practice, etc. where the health professional normally works, meets patients and prescribes medication. Minimally, the country should be specified.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Address
element:
  id:
    v: Prescription.prescriber.signature
  path:
    v: Prescription.prescriber.signature
  short:
    v: A.1.3.6 Signature
  definition:
    v: Digital signature or token as proof of the authenticity of the prescriber.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Signature
element:
  id:
    v: Prescription.prescriber.identifier
  path:
    v: Prescription.prescriber.identifier
  short:
    v: A.1.3.7 Health care provider identifier
  definition:
    v: A unique number or code issued for the purpose of identifying a health care provider [ISO/TS 27527:2010]; this may be a licence or registration number which can be used to trace the prescriber and to check whether a medicinal product was prescribed by the right person according to the law of the prescribing country.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier

id:
  v: Prescription.product
path:
  v: Prescription.product
short:
  v: A1.4 Identification of the prescribed product
definition:
  v: Identification of the prescribed product
min:
  v: 0
max:
  v: 1
type:
  code:
    v: http://hl7.eu/fhir/ig/xpandh-mpd/StructureDefinition/MedicinalProduct

id:
  v: Prescription.details
path:
  v: Prescription.details
short:
  v: A.1.5 Prescription information
definition:
  v: Prescription information
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: Prescription.details.quantity
path:
  v: Prescription.details.quantity
short:
  v: A.1.5.2 Quantity of prescribed product
definition:
  v: Total quantity or volume of the medicinal product that is prescribed to the specific patient. It can be provided as number of packages, given that the pack size is sufficiently described, or it can be the overall amount in appropriate units of measure (UCUM) or units of presentation (EDQM) (ml, g, tablets, vials). Depending on national legislation, this quantity may or may not be dispensed in one dispensation. - Preferred system(s): UCUM, EDQM
min:
  v: 0
max:
  v: *
type:
  code:
    v: Quantity

id:
  v: Prescription.details.doseRegimen
path:
  v: Prescription.details.doseRegimen
short:
  v: A.1.5.3 Dose regimen
definition:
  v: The regimen governing the dose quantity per single administration, the dose frequency, and/or speed of administration (in the event of intravenous administration). Note: this information may be used by the dispenser to calculate the quantity to be dispensed.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: Prescription.details.doseRegimen.numOfIntakes
path:
  v: Prescription.details.doseRegimen.numOfIntakes
short:
  v: A.1.5.3.1 Number of units per intake
definition:
  v: The number of units per intake that the patient is taking. Example: 1 tablet - Preferred system(s): UCUM, EDQM
min:
  v: 0
max:
  v: *
type:
  code:
    v: Quantity

id:
  v: Prescription.details.doseRegimen.frequencyOfIntakes
path:
  v: Prescription.details.doseRegimen.frequencyOfIntakes
short:
  v: A.1.5.3.2 Frequency of intakes
definition:
  v: Frequency of intakes per hour/day/week/month. Example: every 24 hours - Preferred system(s): UCUM, HL7 TimingEvent
min:
  v: 0
max:
  v: *
type:
  code:
    v: Timing

id:
  v: Prescription.details.route
path:
  v: Prescription.details.route
short:
  v: A.1.5.4 Route of administration
definition:
  v: The route of administration as prescribed. Example: oral intake - Preferred system(s): EDQM
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.duration
path:
  v: Prescription.details.duration
short:
  v: A.1.5.5 Duration of treatment
definition:
  v: The duration of the treatment as indicated by the Prescriber. Example: 14 days. Can be left blank for long-term therapies. - Preferred system(s): UCUM
min:
  v: 0
max:
  v: *
type:
  code:
    v: Period

id:
  v: Prescription.details.startDate
path:
  v: Prescription.details.startDate
short:
  v: A.1.5.6 Starting date of therapy
definition:
  v: The time and date on which it is agreed that therapy will start. - Preferred system(s): ISO 8601
min:
  v: 0
max:
  v: *
type:
  code:
    v: dateTime

id:
  v: Prescription.details.directionsOfUse
path:
  v: Prescription.details.directionsOfUse
short:
  v: A.1.5.7 Directions for use
definition:
  v: Information about the directions for use of the prescribed medicinal product (such as ?with food? or ?before a meal?) and any cautionary advice for correct use of the prescribed medicinal product by the patient. - Preferred system(s): HL7 TimingEvent
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.expiryDate
path:
  v: Prescription.details.expiryDate
short:
  v: A.1.5.8 Prescription expiry date
definition:
  v: This might be dependent on local or national policy or legislation, in accordance with the treatment plan or because the therapeutic need for the prescribed medicine has expired. - Preferred system(s): ISO 8601
min:
  v: 0
max:
  v: *
type:
  code:
    v: dateTime

id:
  v: Prescription.details.repeats
path:
  v: Prescription.details.repeats
short:
  v: A.1.5.9 Repeats
definition:
  v: In some countries, when medicinal products are dispensed for the first time, the patient may only receive medication for a short period of time. When a patient starts taking medication for a chronic illness, the prescriber can issue a prescription for a longer period that is now separated by repeats. In addition, the maximum quantity (A.1.4.3) of the prescribed product that may be dispensed in one dispensation may be stated here. Decision on dispensability is made in the country of prescription.
min:
  v: 0
max:
  v: *
type:
  code:
    v: integer

id:
  v: Prescription.details.reason
path:
  v: Prescription.details.reason
short:
  v: A.1.5.10 Reason for prescription
definition:
  v: The reason why the medicine is being prescribed, including the option to mention that the medicinal product is being prescribed for ?off label? use. The reason for the prescription gives the dispenser the opportunity to review the prescription for medication safety issues. Note: in some countries it is obligatory to state the reason for prescription on the prescription itself for some or all medicinal products.
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept

id:
  v: Prescription.details.substitution
path:
  v: Prescription.details.substitution
short:
  v: A.1.5.11 Substitution
definition:
  v: Substitution handling can be recorded to indicate whether and to what extent substitution is allowed by the prescriber.
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept