This page is part of a downloaded copy of this specification. This page is part of the Da Vinci Coverage Requirements Discovery (CRD) FHIR IG (v0.1.0: STU 1 Ballot 1) based on FHIR v3.5.0. . For a full list of available versions, see the Directory of published versions

This is a pre-release version (Ballot 1) of Coverage Requirements Discovery (CRD) R1/STU. There is no current official version.
For a full list of available versions, see the Directory of published versions .

## StructureDefinition: CRD MedicationRequest

The official URL for this profile is:

    http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-medicationrequest-stu3

### Formal Views of Profile Content

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

- Text Summary
- Differential Table
- Snapshot Table
- All

This structure is derived from US Core Medication Request Profile

Summary

Mandatory: 6 elements
Must-Support: 14 elements
Fixed Value: 1 element

Structures

This structure refers to these other structures:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-medicationrequest-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-patient-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-encounter-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-practitioner-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance

This structure is derived from US Core Medication Request Profile

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* |  |
ext-insurance | S | 0..* | Reference(CRD Coverage) | Insurance URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
identifier | S | 0..* | Identifier |
definition |  | 0..* | Reference(ActivityDefinition | PlanDefinition) |
basedOn |  | 0..* | Reference(CRD MedicationRequest) |
groupIdentifier |  | 0..1 | Identifier |
status | S | 1..1 | code | Fixed Value: draft
intent |  | 1..1 | code |
category |  | 0..1 | CodeableConcept |
priority |  | 0..1 | code |
medication[x] | S | 1..1 | Reference(US Core Medication Profile), CodeableConcept |
subject | S | 1..1 | Reference(CRD Patient) |
context |  | 0..1 | Reference(CRD Encounter) |
supportingInformation |  | 0..* | Reference(Resource) |
authoredOn | S | 1..1 | dateTime |
requester | S | 1..1 | BackboneElement |
agent | S | 1..1 | Reference(CRD Practitioner) |
onBehalfOf |  | 0..1 | Reference(Organization) |
recorder |  | 0..1 | Reference(Practitioner) |
reasonCode | S | 0..* | CodeableConcept |
reasonReference | S | 0..* | Reference(US Core Condition Profile | US Core Result Observation) |
note |  | 0..* | Annotation |
dosageInstruction | S | 0..* | Dosage |
dispenseRequest | S | 0..1 | BackboneElement |
substitution | S | 0..1 | BackboneElement |
priorPrescription | S | 0..1 | Reference(CRD MedicationRequest) |
detectedIssue |  | 0..* | Reference(DetectedIssue) |
eventHistory |  | 0..* | Reference(Provenance) |
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
MedicationRequest | I | 0..* |  | US Core Medication Request Profile
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: Common Languages (extensible)
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
ext-insurance | S I | 0..* | Reference(CRD Coverage) | Extension URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 0..* | Identifier | External ids for this request
definition | Î£ | 0..* | Reference(ActivityDefinition | PlanDefinition) | Protocol or definition
basedOn | Î£ | 0..* | Reference(CRD MedicationRequest) | What request fulfills
groupIdentifier | Î£ | 0..1 | Identifier | Composite request this is part of
status | ?!S Î£ | 1..1 | code | active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown Binding: MedicationRequestStatus (required) Fixed Value: draft
intent | ?!Î£ | 1..1 | code | proposal | plan | order | instance-order Binding: MedicationRequestIntent (required)
category |  | 0..1 | CodeableConcept | Type of medication usage Binding: MedicationRequestCategory (preferred)
priority | Î£ | 0..1 | code | routine | urgent | stat | asap Binding: MedicationRequestPriority (required)
medication[x] | S Î£ | 1..1 | Reference(US Core Medication Profile), CodeableConcept | Medication to be taken Binding: Medication Clinical Drug (RxNorm) (extensible)
subject | S Î£ | 1..1 | Reference(CRD Patient) | Who or group medication request is for
context |  | 0..1 | Reference(CRD Encounter) | Created during encounter/admission/stay
supportingInformation |  | 0..* | Reference(Resource) | Information to support ordering of the medication
authoredOn | S Î£ | 1..1 | dateTime | When request was initially authored
requester | S Î£I | 1..1 | BackboneElement | Who/What requested the Request
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
agent | S Î£ | 1..1 | Reference(CRD Practitioner) | Who ordered the initial medication(s)
onBehalfOf | Î£I | 0..1 | Reference(Organization) | Organization agent is acting for
recorder |  | 0..1 | Reference(Practitioner) | Person who entered the request
reasonCode | S | 0..* | CodeableConcept | Reason or indication for writing the prescription Binding: Condition/Problem/Diagnosis Codes (example)
reasonReference | S | 0..* | Reference(US Core Condition Profile | US Core Result Observation) | Condition or Observation that supports why the prescription is being written
note |  | 0..* | Annotation | Information about the prescription
dosageInstruction | S | 0..* | Dosage | How the medication should be taken
dispenseRequest | S I | 0..1 | BackboneElement | Medication supply authorization
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
validityPeriod |  | 0..1 | Period | Time period supply is authorized for
numberOfRepeatsAllowed |  | 0..1 | positiveInt | Number of refills authorized
quantity |  | 0..1 | SimpleQuantity | Amount of medication to supply per dispense
expectedSupplyDuration |  | 0..1 | Duration | Number of days supply per dispense
performer |  | 0..1 | Reference(Organization) | Intended dispenser
substitution | S I | 0..1 | BackboneElement | Any restrictions on medication substitution
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
allowed | ?! | 1..1 | boolean | Whether substitution is allowed or not
reason |  | 0..1 | CodeableConcept | Why should (not) substitution be made Binding: SubstanceAdminSubstitutionReason (example)
priorPrescription | S | 0..1 | Reference(CRD MedicationRequest) | An order/prescription that is being replaced
detectedIssue |  | 0..* | Reference(DetectedIssue) | Clinical Issue with action
eventHistory |  | 0..* | Reference(Provenance) | A list of events of interest in the lifecycle
Documentation for this format

This structure is derived from US Core Medication Request Profile

Summary

Mandatory: 6 elements
Must-Support: 14 elements
Fixed Value: 1 element

Structures

This structure refers to these other structures:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-medicationrequest-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-patient-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-encounter-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-practitioner-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance

Differential View

This structure is derived from US Core Medication Request Profile

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* |  |
ext-insurance | S | 0..* | Reference(CRD Coverage) | Insurance URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
identifier | S | 0..* | Identifier |
definition |  | 0..* | Reference(ActivityDefinition | PlanDefinition) |
basedOn |  | 0..* | Reference(CRD MedicationRequest) |
groupIdentifier |  | 0..1 | Identifier |
status | S | 1..1 | code | Fixed Value: draft
intent |  | 1..1 | code |
category |  | 0..1 | CodeableConcept |
priority |  | 0..1 | code |
medication[x] | S | 1..1 | Reference(US Core Medication Profile), CodeableConcept |
subject | S | 1..1 | Reference(CRD Patient) |
context |  | 0..1 | Reference(CRD Encounter) |
supportingInformation |  | 0..* | Reference(Resource) |
authoredOn | S | 1..1 | dateTime |
requester | S | 1..1 | BackboneElement |
agent | S | 1..1 | Reference(CRD Practitioner) |
onBehalfOf |  | 0..1 | Reference(Organization) |
recorder |  | 0..1 | Reference(Practitioner) |
reasonCode | S | 0..* | CodeableConcept |
reasonReference | S | 0..* | Reference(US Core Condition Profile | US Core Result Observation) |
note |  | 0..* | Annotation |
dosageInstruction | S | 0..* | Dosage |
dispenseRequest | S | 0..1 | BackboneElement |
substitution | S | 0..1 | BackboneElement |
priorPrescription | S | 0..1 | Reference(CRD MedicationRequest) |
detectedIssue |  | 0..* | Reference(DetectedIssue) |
eventHistory |  | 0..* | Reference(Provenance) |
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
MedicationRequest | I | 0..* |  | US Core Medication Request Profile
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: Common Languages (extensible)
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
ext-insurance | S I | 0..* | Reference(CRD Coverage) | Extension URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 0..* | Identifier | External ids for this request
definition | Î£ | 0..* | Reference(ActivityDefinition | PlanDefinition) | Protocol or definition
basedOn | Î£ | 0..* | Reference(CRD MedicationRequest) | What request fulfills
groupIdentifier | Î£ | 0..1 | Identifier | Composite request this is part of
status | ?!S Î£ | 1..1 | code | active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown Binding: MedicationRequestStatus (required) Fixed Value: draft
intent | ?!Î£ | 1..1 | code | proposal | plan | order | instance-order Binding: MedicationRequestIntent (required)
category |  | 0..1 | CodeableConcept | Type of medication usage Binding: MedicationRequestCategory (preferred)
priority | Î£ | 0..1 | code | routine | urgent | stat | asap Binding: MedicationRequestPriority (required)
medication[x] | S Î£ | 1..1 | Reference(US Core Medication Profile), CodeableConcept | Medication to be taken Binding: Medication Clinical Drug (RxNorm) (extensible)
subject | S Î£ | 1..1 | Reference(CRD Patient) | Who or group medication request is for
context |  | 0..1 | Reference(CRD Encounter) | Created during encounter/admission/stay
supportingInformation |  | 0..* | Reference(Resource) | Information to support ordering of the medication
authoredOn | S Î£ | 1..1 | dateTime | When request was initially authored
requester | S Î£I | 1..1 | BackboneElement | Who/What requested the Request
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
agent | S Î£ | 1..1 | Reference(CRD Practitioner) | Who ordered the initial medication(s)
onBehalfOf | Î£I | 0..1 | Reference(Organization) | Organization agent is acting for
recorder |  | 0..1 | Reference(Practitioner) | Person who entered the request
reasonCode | S | 0..* | CodeableConcept | Reason or indication for writing the prescription Binding: Condition/Problem/Diagnosis Codes (example)
reasonReference | S | 0..* | Reference(US Core Condition Profile | US Core Result Observation) | Condition or Observation that supports why the prescription is being written
note |  | 0..* | Annotation | Information about the prescription
dosageInstruction | S | 0..* | Dosage | How the medication should be taken
dispenseRequest | S I | 0..1 | BackboneElement | Medication supply authorization
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
validityPeriod |  | 0..1 | Period | Time period supply is authorized for
numberOfRepeatsAllowed |  | 0..1 | positiveInt | Number of refills authorized
quantity |  | 0..1 | SimpleQuantity | Amount of medication to supply per dispense
expectedSupplyDuration |  | 0..1 | Duration | Number of days supply per dispense
performer |  | 0..1 | Reference(Organization) | Intended dispenser
substitution | S I | 0..1 | BackboneElement | Any restrictions on medication substitution
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
allowed | ?! | 1..1 | boolean | Whether substitution is allowed or not
reason |  | 0..1 | CodeableConcept | Why should (not) substitution be made Binding: SubstanceAdminSubstitutionReason (example)
priorPrescription | S | 0..1 | Reference(CRD MedicationRequest) | An order/prescription that is being replaced
detectedIssue |  | 0..* | Reference(DetectedIssue) | Clinical Issue with action
eventHistory |  | 0..* | Reference(Provenance) | A list of events of interest in the lifecycle
Documentation for this format

Other representations of profile: Schematron

### Terminology Bindings

Path | Name | Conformance | ValueSet
MedicationRequest.language | Common Languages | extensible | Common Languages
MedicationRequest.status | MedicationRequestStatus | required | MedicationRequestStatus
MedicationRequest.intent | MedicationRequestIntent | required | MedicationRequestIntent
MedicationRequest.category | MedicationRequestCategory | preferred | MedicationRequestCategory
MedicationRequest.priority | MedicationRequestPriority | required | MedicationRequestPriority
MedicationRequest.medication[x] | Medication Clinical Drug (RxNorm) | extensible | Medication Clinical Drug (RxNorm)
MedicationRequest.reasonCode | Condition/Problem/Diagnosis Codes | example | Condition/Problem/Diagnosis Codes
MedicationRequest.substitution.reason | SubstanceAdminSubstitutionReason | example | SubstanceAdminSubstitutionReason

### Constraints

Id | Path | Details | Requirements
dom-2 | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-1 | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain any narrative : contained.text.empty() |
dom-4 | MedicationRequest | If 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-3 | MedicationRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource : contained.where(('#'+id in %resource.descendants().reference).not()).empty() |
ele-1 | MedicationRequest.extension | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
ext-1 | MedicationRequest.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | MedicationRequest.extension | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
ext-1 | MedicationRequest.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | MedicationRequest.requester | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
mps-1 | MedicationRequest.requester | onBehalfOf can only be specified if agent is practitioner or device : (agent.resolve().empty()) or (agent.resolve() is Device) or (agent.resolve() is Practitioner) or onBehalfOf.exists().not() |
ele-1 | MedicationRequest.dispenseRequest | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
ele-1 | MedicationRequest.substitution | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |