Implementation Guide
Version 1.2.0 - release

Resource Profile: ERP Service Request Rezeptanforderung

Official URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-prescription-request Version: 1.2.0
Active as of 2025-07-31 Computable Name: ERPServiceRequestPrescriptionRequest

ServiceRequest, der zur Anforderung eines Rezepts verwendet wird

Motivation

Als zentrales Element in einer Anfrage gelten in dieser Spezifikation ServiceRequests. Diese Bündeln die Informationen für eine konkrete Anfrage an einen anderen Leistungserbringer. Folgende Begriffe werden in diesem IG für diesen ServiceRequests genutzt:

  • ServiceRequest meint den Request als Basisprofil von HL7
  • ERPServiceRequestPrescriptionRequest meint konkret dieses Profil in diesem Projekt
  • Verordnungsanfrage ist der fachliche Begriff für dieses Profil

Der ERPServiceRequestPrescriptionRequest ist eine Anfrage zum Ausstellen einer Verordnung an einen Arzt. Alle für den Arzt relevanten Informationen zum Ausstellen einer entsprechenden Verordnung sind hier aufgeführt, bzw. referenziert.

Die Identifikation als ERPServiceRequestPrescriptionRequest (Verordnungsanfrage) wird über .code.coding.code = #prescription-request angegeben.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1, servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension ?! 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged ?!S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient ?!S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
.... identifier:requestId Σ 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... basedOn SΣ 1..1 Reference(ERP Service Request Medikationsanforderung) Requested or fulfilled MedicationRequest.
... requisition SΣ 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status ?!SΣ 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
Fixed Value: order
... priority SΣ 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConcept Indicates the type of service request.
Binding: ProcedureCodes(SNOMEDCT) (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred.
.... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type SΣ 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)

Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
...... system Σ 1..1 uri Identity of the terminology system
...... code Σ 1..1 code Symbol in syntax defined by the system
... subject SΣ 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... occurrence[x] SΣ 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... authoredOn SΣ 1..1 dateTime Creation date of the request.
... requester SΣ 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performer SΣ 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... reasonCode SΣ 0..* CodeableConcept Reason for the prescription request.
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
.... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding SΣ 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text SΣ 0..1 string Plain text representation of the concept
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... type Σ 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Organization
... note S 0..* Annotation Further information on the prescription request.
.... time SΣ 1..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.intentrequiredFixed Value: order
http://hl7.org/fhir/ValueSet/request-intent|4.0.1
From the FHIR Standard
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.codeexampleProcedureCodes(SNOMEDCT)
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.reasonCodeexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG
ServiceRequest.supportingInfo:pflegeeinrichtungKopie.typeextensiblePattern Value: Organization
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
... Slices for identifier S 1..* Identifier Defines identifiers to be used in this profile.
Slice: Unordered, Open by pattern:system
.... identifier:requestId 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... requisition S 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status S 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent S 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Fixed Value: order
... priority S 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... code S 1..1 CodeableConcept Indicates the type of service request.
.... Slices for coding S 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type S 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)
Required Pattern: At least the following
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... system 1..1 uri Identity of the terminology system
...... code 1..1 code Symbol in syntax defined by the system
... subject S 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... occurrence[x] S 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... authoredOn S 1..1 dateTime Creation date of the request.
... requester S 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performer S 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... reasonCode S 0..* CodeableConcept Reason for the prescription request.
.... extension S 0..* Extension Extension
.... Slices for extension Content/Rules for all slices
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding S 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text S 0..1 string Plain text representation of the concept
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... type 1..1 uri Type the reference refers to (e.g. "Patient")
Required Pattern: Organization
... note S 0..* Annotation Further information on the prescription request.
.... time S 1..1 dateTime When the annotation was made

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet / CodeURI
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG

Constraints

IdGradePath(s)DetailsRequirements
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1, servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension ?! 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged ?!S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient ?!S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
... Slices for identifier SΣ 1..* Identifier Defines identifiers to be used in this profile.
Slice: Unordered, Open by pattern:system
.... identifier:requestId Σ 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... instantiatesCanonical Σ 0..* canonical(ActivityDefinition | PlanDefinition) Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn SΣ 1..1 Reference(ERP Service Request Medikationsanforderung) Requested or fulfilled MedicationRequest.
... replaces Σ 0..* Reference(ServiceRequest) What request replaces
... requisition SΣ 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status ?!SΣ 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
Fixed Value: order
... category Σ 0..* CodeableConcept Classification of service
Binding: ServiceRequestCategoryCodes (example): Classification of the requested service.
... priority SΣ 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConcept Indicates the type of service request.
Binding: ProcedureCodes(SNOMEDCT) (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type SΣ 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)

Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code Symbol in syntax defined by the system
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... orderDetail ΣC 0..* CodeableConcept Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... quantity[x] Σ 0..1 Service amount
.... quantityQuantity Quantity
.... quantityRatio Ratio
.... quantityRange Range
... subject SΣ 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... occurrence[x] SΣ 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... asNeeded[x] Σ 0..1 Preconditions for service
Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
.... asNeededBoolean boolean
.... asNeededCodeableConcept CodeableConcept
... authoredOn SΣ 1..1 dateTime Creation date of the request.
... requester SΣ 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performerType Σ 0..1 CodeableConcept Performer role
Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
... performer SΣ 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... locationCode Σ 0..* CodeableConcept Requested location
Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
... locationReference Σ 0..* Reference(Location) Requested location
... reasonCode SΣ 0..* CodeableConcept Reason for the prescription request.
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding SΣ 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text SΣ 0..1 string Plain text representation of the concept
... reasonReference Σ 0..* Reference(Condition | Observation | DiagnosticReport | DocumentReference) Explanation/Justification for service or service
... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
..... type Σ 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Organization
..... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
..... display Σ 0..1 string Text alternative for the resource
... specimen Σ 0..* Reference(Specimen) Procedure Samples
... bodySite Σ 0..* CodeableConcept Location on Body
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
... note S 0..* Annotation Further information on the prescription request.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... author[x] Σ 0..1 Individual responsible for the annotation
..... authorReference Reference(Practitioner | Patient | RelatedPerson | Organization)
..... authorString string
.... time SΣ 1..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)
... patientInstruction Σ 0..1 string Patient or consumer-oriented instructions
... relevantHistory 0..* Reference(Provenance) Request provenance

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
ServiceRequest.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.intentrequiredFixed Value: order
http://hl7.org/fhir/ValueSet/request-intent|4.0.1
From the FHIR Standard
ServiceRequest.categoryexampleServiceRequestCategoryCodes
http://hl7.org/fhir/ValueSet/servicerequest-category
From the FHIR Standard
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.codeexampleProcedureCodes(SNOMEDCT)
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.orderDetailexampleServiceRequestOrderDetailsCodes
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail
From the FHIR Standard
ServiceRequest.asNeeded[x]exampleSNOMEDCTMedicationAsNeededReasonCodes
http://hl7.org/fhir/ValueSet/medication-as-needed-reason
From the FHIR Standard
ServiceRequest.performerTypeexampleParticipantRoles
http://hl7.org/fhir/ValueSet/participant-role
From the FHIR Standard
ServiceRequest.locationCodeexampleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
ServiceRequest.reasonCodeexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG
ServiceRequest.supportingInfo:pflegeeinrichtungKopie.typeextensiblePattern Value: Organization
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
ServiceRequest.bodySiteexampleSNOMEDCTBodyStructures
http://hl7.org/fhir/ValueSet/body-site
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()

This structure is derived from ServiceRequest

Summary

Mandatory: 10 elements(2 nested mandatory elements)
Must-Support: 28 elements
Fixed: 1 element

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of ServiceRequest.identifier
  • The element 1 is sliced based on the value of ServiceRequest.code.coding
  • The element 1 is sliced based on the value of ServiceRequest.supportingInfo

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1, servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension ?! 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged ?!S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient ?!S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
.... identifier:requestId Σ 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... basedOn SΣ 1..1 Reference(ERP Service Request Medikationsanforderung) Requested or fulfilled MedicationRequest.
... requisition SΣ 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status ?!SΣ 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
Fixed Value: order
... priority SΣ 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConcept Indicates the type of service request.
Binding: ProcedureCodes(SNOMEDCT) (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred.
.... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type SΣ 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)

Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
...... system Σ 1..1 uri Identity of the terminology system
...... code Σ 1..1 code Symbol in syntax defined by the system
... subject SΣ 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... occurrence[x] SΣ 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... authoredOn SΣ 1..1 dateTime Creation date of the request.
... requester SΣ 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performer SΣ 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... reasonCode SΣ 0..* CodeableConcept Reason for the prescription request.
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
.... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding SΣ 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text SΣ 0..1 string Plain text representation of the concept
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... type Σ 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Organization
... note S 0..* Annotation Further information on the prescription request.
.... time SΣ 1..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.intentrequiredFixed Value: order
http://hl7.org/fhir/ValueSet/request-intent|4.0.1
From the FHIR Standard
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.codeexampleProcedureCodes(SNOMEDCT)
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.reasonCodeexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG
ServiceRequest.supportingInfo:pflegeeinrichtungKopie.typeextensiblePattern Value: Organization
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()

Differential View

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
... Slices for identifier S 1..* Identifier Defines identifiers to be used in this profile.
Slice: Unordered, Open by pattern:system
.... identifier:requestId 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... requisition S 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status S 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent S 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Fixed Value: order
... priority S 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... code S 1..1 CodeableConcept Indicates the type of service request.
.... Slices for coding S 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type S 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)
Required Pattern: At least the following
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... system 1..1 uri Identity of the terminology system
...... code 1..1 code Symbol in syntax defined by the system
... subject S 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... occurrence[x] S 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... authoredOn S 1..1 dateTime Creation date of the request.
... requester S 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performer S 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... reasonCode S 0..* CodeableConcept Reason for the prescription request.
.... extension S 0..* Extension Extension
.... Slices for extension Content/Rules for all slices
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding S 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text S 0..1 string Plain text representation of the concept
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... type 1..1 uri Type the reference refers to (e.g. "Patient")
Required Pattern: Organization
... note S 0..* Annotation Further information on the prescription request.
.... time S 1..1 dateTime When the annotation was made

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet / CodeURI
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG

Constraints

IdGradePath(s)DetailsRequirements
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: prr-1, servicerequest-prescription-request-1, servicerequest-prescription-request-2, servicerequest-prescription-request-3, servicerequest-prescription-request-4, servicerequest-prescription-request-5
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:EPrescriptionToken S 0..* ERPServiceRequestEPrescriptionToken Here the e-prescription token(s) can be made available for processing in a pharmacy.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex
... Slices for modifierExtension ?! 0..* Extension Extension
Slice: Unordered, Open by value:url
.... modifierExtension:medicationChanged ?!S 0..1 boolean Indicates whether the medication has been changed by the prescriber.
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex
.... modifierExtension:redeemByPatient ?!S 0..1 boolean Redeem By Patient
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex
... Slices for identifier SΣ 1..* Identifier Defines identifiers to be used in this profile.
Slice: Unordered, Open by pattern:system
.... identifier:requestId Σ 1..1 ERPServiceRequestRequestIdentifier Identifier that uniquely references a ServiceRequest.
... instantiatesCanonical Σ 0..* canonical(ActivityDefinition | PlanDefinition) Instantiates FHIR protocol or definition
... instantiatesUri Σ 0..* uri Instantiates external protocol or definition
... basedOn SΣ 1..1 Reference(ERP Service Request Medikationsanforderung) Requested or fulfilled MedicationRequest.
... replaces Σ 0..* Reference(ServiceRequest) What request replaces
... requisition SΣ 1..1 ERPServiceRequestProcedureIdentifier Identifier of the overall process. Multiple ServiceRequests within a process are allocated the same ID.
... status ?!SΣ 1..1 code Indicates the processing status of a service request.
Binding: Status des ServiceRequests (required)
... intent ?!SΣ 1..1 code proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Binding: RequestIntent (required): The kind of service request.
Fixed Value: order
... category Σ 0..* CodeableConcept Classification of service
Binding: ServiceRequestCategoryCodes (example): Classification of the requested service.
... priority SΣ 0..1 code Indicates the urgency of the request.
Binding: Service Request Priorität VS (required)
... doNotPerform ?!Σ 0..1 boolean True if service/procedure should not be performed
... code SΣ 1..1 CodeableConcept Indicates the type of service request.
Binding: ProcedureCodes(SNOMEDCT) (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for coding SΣ 1..* Coding Code defined by a terminology system
Slice: Unordered, Open by pattern:$this
..... coding:request-type SΣ 1..1 Coding Indicates the type of service request.
Binding: Art des ServiceRequests (VS) (required)

Required Pattern: At least the following
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
...... system 1..1 uri Identity of the terminology system
Fixed Value: https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs
...... version 0..1 string Version of the system - if relevant
...... code 1..1 code Symbol in syntax defined by the system
Fixed Value: prescription-request
...... display 0..1 string Representation defined by the system
...... userSelected 0..1 boolean If this coding was chosen directly by the user
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code Symbol in syntax defined by the system
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... orderDetail ΣC 0..* CodeableConcept Additional order information
Binding: ServiceRequestOrderDetailsCodes (example): Codified order entry details which are based on order context.
... quantity[x] Σ 0..1 Service amount
.... quantityQuantity Quantity
.... quantityRatio Ratio
.... quantityRange Range
... subject SΣ 1..1 Reference(ERP Service Request Patient) Patient for whom a prescription is requested on behalf of the patient.
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... occurrence[x] SΣ 0..1 dateTime Specifies the date on which the prescription is to be issued (Bedarfszeitraum).
... asNeeded[x] Σ 0..1 Preconditions for service
Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
.... asNeededBoolean boolean
.... asNeededCodeableConcept CodeableConcept
... authoredOn SΣ 1..1 dateTime Creation date of the request.
... requester SΣ 0..1 Reference(ERP Service Request Organisation) Inquiring facility or practitioner.
... performerType Σ 0..1 CodeableConcept Performer role
Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
... performer SΣ 0..* Reference(ERP Service Request Leistungserbringer) Doctor who is to issue the prescription.
... locationCode Σ 0..* CodeableConcept Requested location
Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
... locationReference Σ 0..* Reference(Location) Requested location
... reasonCode SΣ 0..* CodeableConcept Reason for the prescription request.
Binding: ProcedureReasonCodes (example): Diagnosis or problem codes justifying the reason for requesting the service investigation.
.... id 0..1 string Unique id for inter-element referencing
.... Slices for extension S 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:remainingSupply S 0..1 Quantity Remaining supply
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-ex
..... extension:remainingSupplyFreeText S 0..1 string Remaining supply as free text
URL: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/remaining-supply-free-text-ex
.... coding SΣ 0..1 Coding Code defined by a terminology system
Binding: Grund für Medikationsanforderung (VS) (required)
.... text SΣ 0..1 string Plain text representation of the concept
... reasonReference Σ 0..* Reference(Condition | Observation | DiagnosticReport | DocumentReference) Explanation/Justification for service or service
... insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
... Slices for supportingInfo S 0..* Reference(Resource) Additional clinical information
Slice: Unordered, Open by pattern:type
.... supportingInfo:pflegeeinrichtungKopie S 0..1 Reference(ERP Service Request Organisation) Reference to the care facility that receives a copy of the prescription.
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
..... type Σ 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Organization
..... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
..... display Σ 0..1 string Text alternative for the resource
... specimen Σ 0..* Reference(Specimen) Procedure Samples
... bodySite Σ 0..* CodeableConcept Location on Body
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
... note S 0..* Annotation Further information on the prescription request.
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... author[x] Σ 0..1 Individual responsible for the annotation
..... authorReference Reference(Practitioner | Patient | RelatedPerson | Organization)
..... authorString string
.... time SΣ 1..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)
... patientInstruction Σ 0..1 string Patient or consumer-oriented instructions
... relevantHistory 0..* Reference(Provenance) Request provenance

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
ServiceRequest.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
From the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
ServiceRequest.statusrequiredServiceRequestStatusVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs
From this IG
ServiceRequest.intentrequiredFixed Value: order
http://hl7.org/fhir/ValueSet/request-intent|4.0.1
From the FHIR Standard
ServiceRequest.categoryexampleServiceRequestCategoryCodes
http://hl7.org/fhir/ValueSet/servicerequest-category
From the FHIR Standard
ServiceRequest.priorityrequiredServiceRequestPriorityVS
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs
From this IG
ServiceRequest.codeexampleProcedureCodes(SNOMEDCT)
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.code.coding:request-typerequiredPattern Value: prescription-request
https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs
From this IG
ServiceRequest.orderDetailexampleServiceRequestOrderDetailsCodes
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail
From the FHIR Standard
ServiceRequest.asNeeded[x]exampleSNOMEDCTMedicationAsNeededReasonCodes
http://hl7.org/fhir/ValueSet/medication-as-needed-reason
From the FHIR Standard
ServiceRequest.performerTypeexampleParticipantRoles
http://hl7.org/fhir/ValueSet/participant-role
From the FHIR Standard
ServiceRequest.locationCodeexampleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
ServiceRequest.reasonCodeexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard
ServiceRequest.reasonCode.codingrequiredMedicationRequestReasonVS(a valid code from Grund für Medikationsanforderung (CS))
https://gematik.de/fhir/erp-servicerequest/ValueSet/medication-request-reason-vs
From this IG
ServiceRequest.supportingInfo:pflegeeinrichtungKopie.typeextensiblePattern Value: Organization
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
ServiceRequest.bodySiteexampleSNOMEDCTBodyStructures
http://hl7.org/fhir/ValueSet/body-site
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()
servicerequest-prescription-request-1errorServiceRequestWenn der Status aktiv ist, muss der Anforderer vorhanden sein.
: status = 'active' implies requester.exists()
servicerequest-prescription-request-2errorServiceRequestWenn der Status abgeschlossen ist und das Rezept vom Patienten eingelöst werden soll, darf der E-Rezept-Token nicht vorhanden sein.
: (status = 'completed' and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists() and modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = true) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists().not()
servicerequest-prescription-request-3errorServiceRequestWenn der Status widerrufen oder fehlerhaft eingegeben ist, muss der Grund oder eine Notiz vorhanden sein.
: (status = 'revoked' or status = 'entered-in-error') implies (reasonCode.text.exists() or note.exists())
servicerequest-prescription-request-4errorServiceRequestWenn der Status abgeschlossen ist, muss der Durchführende vorhanden sein.
: status = 'completed' implies performer.exists()
servicerequest-prescription-request-5errorServiceRequestWenn der Status abgeschlossen ist und das Rezept nicht vom Patienten eingelöst werden soll, muss der E-Rezept-Token vorhanden sein.
: (status = 'completed' and (modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').value = false or modifierExtension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/redeem-by-patient-ex').exists().not())) implies extension.where(url = 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex').exists()

This structure is derived from ServiceRequest

Summary

Mandatory: 10 elements(2 nested mandatory elements)
Must-Support: 28 elements
Fixed: 1 element

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of ServiceRequest.identifier
  • The element 1 is sliced based on the value of ServiceRequest.code.coding
  • The element 1 is sliced based on the value of ServiceRequest.supportingInfo

 

Other representations of profile: CSV, Excel, Schematron