0.3.0 - Second STU ballot

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.3.0: STU 1 Ballot 2) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

## StructureDefinition: MedicationRequestSTU3

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(CoverageSTU3) | 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(MedicationRequestSTU3) |
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(PatientSTU3) |
context |  | 0..1 | Reference(EncounterSTU3) |
supportingInformation |  | 0..* | Reference(Resource) |
authoredOn | S | 1..1 | dateTime |
requester | S | 1..1 | BackboneElement |
agent | S | 1..1 | Reference(PractitionerSTU3) |
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(MedicationRequestSTU3) |
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) Max Binding: All Languages
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(CoverageSTU3) | Insurance 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(MedicationRequestSTU3) | 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(PatientSTU3) | Who or group medication request is for
context |  | 0..1 | Reference(EncounterSTU3) | 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(PractitionerSTU3) | 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(MedicationRequestSTU3) | 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(CoverageSTU3) | 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(MedicationRequestSTU3) |
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(PatientSTU3) |
context |  | 0..1 | Reference(EncounterSTU3) |
supportingInformation |  | 0..* | Reference(Resource) |
authoredOn | S | 1..1 | dateTime |
requester | S | 1..1 | BackboneElement |
agent | S | 1..1 | Reference(PractitionerSTU3) |
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(MedicationRequestSTU3) |
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) Max Binding: All Languages
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(CoverageSTU3) | Insurance 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(MedicationRequestSTU3) | 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(PatientSTU3) | Who or group medication request is for
context |  | 0..1 | Reference(EncounterSTU3) | 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(PractitionerSTU3) | 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(MedicationRequestSTU3) | 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 | Conformance | ValueSet / Code
MedicationRequest.status | required | Fixed Value: draft
MedicationRequest.medication[x] | extensible | Medication Clinical Drug (RxNorm)
MedicationRequest.reasonCode | example | Condition/Problem/Diagnosis Codes

### 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()) |