---
schema_version: "1"
id: 4489239ae1a08c8fe964d713c98d913b7cfafe7e929f072bafb85e32f52ad138
title: ​Medication​​Request
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/map_fhir_MedicationRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/map_fhir_MedicationRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5a33dbe5f9304e8564e1190179ea10d34e9b3e2c7d31f20b1d9649300e0ef9d7
description: ​The ​Medication​​Request FH​I​R resource maps to the ​Medication​​Request object in ​Salesforce​.
---
# ​Medication​​Request

​The ​Medication​​Request FH​I​R resource maps to the ​Medication​​Request object in ​Salesforce​.

## FH​I​R V4​.0 - Clinical ​Data ​Model ​Mapping

Here’s how the fields defined by FH​I​R for [​Medication​​Request](https://www.hl7.org/fhir/medicationrequest.html) map to the fields in ​Salesforce​.

Table 1. ​Medication​​Request - ​Salesforce
| ​Medication ​​Request ​Resource | ​Salesforce Field | ​Type | ​Salesforce Cardinality | Notes |
| --- | --- | --- | --- | --- |
| identifier | ​Identifier | Object | 0​.​M | ​The identifier information for a medication request is represented as ​Identifier records that reference the ​Medication​​Request record using their ​Identifier​.​Parent​Record​Id field​. |
| status | ​Medication​​Request​.​Status | ​Picklist | 1​.1 | While FH​I​R defines ​Medication​​Request​.status as a code set bundle, the ​Salesforce implementation of ​Medication​​Request​.​Status is picklist​. |
| status​Reason | ​Medication​​Request​.​Status​Reason​Code​Id | Lookup: ​CodeSet​​Bundle | 0​.1 | N/​A |
| intent | ​Medication​​Request​.​Type | ​Picklist | 1​.1 | While FH​I​R defines ​Medication​​Request​.intent as a code set bundle, the ​Salesforce implementation of ​Medication​​Request​.​Type is picklist​. |
| category | ​Medication​​Request​.​Medication​Administration​Context​Id | Lookup: ​CodeSet​Bundle | 0​.1 | While FH​I​R defines ​Medication​​Request​.category as a zero-to-many resource, the ​Salesforce implementation is zero-to-one​. |
| priority | ​Medication​​Request​.​Priority | ​Picklist | 0​.1 | While FH​I​R defines ​Medication​​Request​.priority as a code set bundle, the ​Salesforce implementation of ​Medication​​Request​.​Priority is picklist​. |
| doNot​Perform | ​Medication​​Request​.​Is​Ignored | Boolean | 0​.1 | N/​A |
| reported​.reported​Boolean | ​Medication​​Request​.​Is​Secondary​Information | Boolean | 0​.1 | N/​A |
| reported​.reported​Reference | ​Medication​​Request​.​Secondary​Source​Id | ​Polymorphic Lookup: ​Account, Healthcare​Provider | 0​.1 | N/​A |
| medication​.medication​Codeable​Concept | ​Medication​​Request​.​Medication​Code​Id | Lookup: ​CodeSet​Bundle | 0​.1 | While the individual fields ​Medication​​Request​.​Medication​Code​Id and ​Medication​​Request​.​Medication​Id are zero-to-one references, the set {​Medication​​Request​.​Medication​Code​Id, ​Medication​​Request​.​Medication​Id} is a one-to-one resource​. |
| medication​.medication​Reference | ​Medication​​Request​.​Medication​Id | Lookup: ​Medication | 0​.1 | While the individual fields ​Medication​​Request​.​Medication​Code​Id and ​Medication​​Request​.​Medication​Id are zero-to-one references, the set {​Medication​​Request​.​Medication​Code​Id, ​Medication​​Request​.​Medication​Id} is a one-to-one resource​. |
| subject | ​Medication​​Request​.​Patient​Id | ​Master-​Detail ​Reference: ​Account | 1​.1 | Only references to patients are supported​. |
| encounter | ​Medication​​Request​.Clinical​Encounter​Id | Lookup: Clinical​Encounter | 0​.1 | N/​A |
| supporting​Information | N/​A | N/​A | N/​A | Not ​Supported |
| authored​On | ​Medication​​Request​.​Prescribed​Date | ​Date​Time | 0​.1 | N/​A |
| requester | ​Medication​​Request​.​​Requester​Id | ​Polymorphic Lookup: ​Account, Healthcare​Provider, Care​Registered​Device | 0​.1 | N/A |
| performer | ​Medication​​Request​.​Performer​Id | ​Polymorphic Lookup: ​Account, Care​Registered​Device, and Healthcare​Provider | 0​.1 | ​Doesn’t support references to care teams​. |
| performer​Type | ​Medication​​Request​.​Performer​Type​Id | Lookup: ​CodeSet​Bundle | 0​.1 | N/​A |
| recorder | N/​A | N/​A | N/​A | Not ​Supported |
| reason​Code | ​Medication​​Request​.​Reason​Code​Id | Lookup: ​CodeSet​Bundle | 0​.1 | While FH​I​R defines ​Medication​​Request​.reason​Code as a zero-to-many resource, the ​Salesforce implementation is zero-to-one​. |
| reason​Reference | ​Medication​​Request​.​Reason​Reference​Id | ​Polymorphic Lookup: Health​Condition, Care​Observation | 0​.1 | While FH​I​R defines ​Medication​​Request​.reason​Reference as a zero-to-many resource, the ​Salesforce implementation is zero-to-one​. |
| instantiates​Canonical | N/​A | N/​A | N/​A | Not ​Supported |
| instantiates​Canonical | N/​A | N/​A | N/​A | Not ​Supported |
| basedOn | ​Medication​​Request​.​Related​​Request​Id | Lookup: ​Medication​​Request | 0​.1 | ​The medication​​Request​.basedOn FH​I​R resource is flattened to a set of medication request and service request fields in the ​Salesforce implementation​. |
| basedOn | ​Medication​​Request​Detail​.Clinical​Service​​Request​Id | Lookup: Clinical​Service​​Request | 0​.1 | ​The medication​​Request​.basedOn FH​I​R resource is flattened to a set of medication request and service request fields in the ​Salesforce implementation​. |
| group​Identifier | ​Medication​​Request​.​Medication​​Request​Group​Id | Lookup: ​Identifier | 0​.1 | N/​A |
| courseOf​Therapy​Type | ​Medication​​Request​.​Therapy​Duration | ​Picklist | 0​.1 | While FH​I​R defines ​Medication​​Request​.courseOf​Therapy​Type as a code set bundle, the ​Salesforce implementation of ​Medication​​Request​.​Therapy​Duration is picklist​. |
| insurance | N/​A | N/​A | N/​A | Not supported |
| note | N/​A | N/​A | N/​A | Not supported |
| dosage​Instruction | ​Patient​​Medication​Dosage | Object | 0​.​M | ​The dosage information for a medication request is represented as ​Patient​​Medication​Dosage records that reference the ​Medication​​Request record using their ​Patient​​Medication​Dosage​.​Parent​Record​Id field​. |
| dispense​​Request​.initial​Fill​.quantity | ​Medication​​Request​.​Initial​Fill​Quantity | ​Double | 0​.1 | Because ​Salesforce doesn’t support a native quantity data type, the implementation of medication​​Request​.dispense​​Request​.initial​Fill​.quantity is flattened into a set of quantity and unit fields​. |
| dispense​​Request​.initial​Fill​.quantity | ​Medication​​Request​.Fill​Quantity​Unit​Id | Lookup: ​UnitOf​​Measure | 0​.1 | Because ​Salesforce doesn’t support a native quantity data type, the implementation of medication​​Request​.dispense​​Request​.initial​Fill​.quantity is flattened into a set of quantity and unit fields​. |
| dispense​​Request​.initial​Fill​.duration | ​Medication​​Request​.​Initial​Fill​Duration | ​Double | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the implementation of medication​​Request​.dispense​​Request​.initial​Fill​.duration is flattened into a set of duration and unit fields​. |
| dispense​​Request​.initial​Fill​.duration | ​Medication​​Request​.Fill​Duration​Unit​Id | Lookup: ​UnitOf​Measure | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the implementation of medication​​Request​.dispense​​Request​.initial​Fill​.duration is flattened into a set of duration and unit fields​. |
| dispense​​Request​.dispense​Interval | ​Medication​​Request​.​Dispense​Interval | ​Double | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the implementation of medication​​Request​.dispense​​Request​.dispense​Interval is flattened into a set of interval and unit fields​. |
| dispense​​Request​.dispense​Interval | ​Medication​​Request​.​Dispense​Interval​Unit​Id | Lookup: ​UnitOf​Measure | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the implementation of medication​​Request​.dispense​​Request​.dispense​Interval is flattened into a set of interval and unit fields​. |
| dispense​​Request​.validity​Period | ​Medication​​Request​.​Prescription​Period​Start | ​Date​Time | 0​.1 | Because ​Salesforce doesn’t support a native period data type, the implementation of medication​​Request​.dispense​​Request​.validity​Period is flattened into a set of start and end dates​. |
| dispense​​Request​.validity​Period | ​Medication​​Request​.​Prescription​Period​End | ​Date​Time | 0​.1 | Because ​Salesforce doesn’t support a native period data type, the implementation of medication​​Request​.dispense​​Request​.validity​Period is flattened into a set of start and end dates​. |
| dispense​​Request​.numberOf​Repeats​Allowed | ​Medication​​Request​.​Refills​Allowed | ​Double | 0​.1 | N/​A |
| dispense​​Request​.quantity | ​Medication​​Request​.​Refill​Quantity | ​Double | 0​.1 | Because ​Salesforce doesn’t support a native quantity data type, the medication​​Request​.dispense​​Request​.quantity is flattened into a set of quantity and unit fields​. |
| dispense​​Request​.quantity | ​Medication​​Request​.Fill​Quantity​Unit​Id | Lookup: ​UnitOf​Measure | 0​.1 | Because ​Salesforce doesn’t support a native quantity data type, the medication​​Request​.dispense​​Request​.quantity is flattened into a set of quantity and unit fields​. |
| dispense​​Request​.expected​Supply​Duration | ​Medication​​Request​.​Refill​Duration | ​Double | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the medication​​Request​.dispense​​Request​.expected​Supply​Duration is flattened into a set of duration and unit fields​. |
| dispense​​Request​.expected​Supply​Duration | ​Medication​​Request​.Fill​Duration​Unit​Id | Lookup: ​UnitOf​Measure | 0​.1 | Because ​Salesforce doesn’t support a native duration data type, the medication​​Request​.dispense​​Request​.expected​Supply​Duration is flattened into a set of duration and unit fields​. |
| dispense​​Request​.performer | ​Medication​​Request​.​Dispenser​Id | Lookup: ​Account | 0​.1 | N/​A |
| substitution​.allowed​.allowed​Boolean | ​Medication​​Request​.Can​Substitute | Boolean | 0​.1 | N/​A |
| substitution​.allowed​.allowed​Codeable​Concept | ​Medication​​Request​.​Allowed​Substitution​Type​Code​Id | Lookup: ​CodeSet​Bundle | 0​.1 | 0​.1 |
| substitution​.reason | ​Medication​​Request​.​Substitution​Reason​Code​Id | Lookup: ​CodeSet​Bundle | 0​.1 | N/​A |
| prior​Prescription | ​Medication​​Request​.​Previous​Prescription​Id | Lookup: ​Medication​​Request | 0​.1 | N/​A |
| detected​Issue | N/​A | N/​A | N/​A | Not supported |
| event​History | N/​A | N/​A | N/​A | Not supported |

#### See Also

- [MedicationRequest](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/hc_r4_api_objects_MedicationRequest.htm "Represents a request or order for the supply of medication, along with information about how it should be administered. This object is available in API version 51.0 and later.")