Medication
The medication FHIR resource maps to the Medication object in Salesforce.
FHIR V4.0 - Clinical Data Model Mapping
Here’s how the fields defined by FHIR for medication map to the fields in Salesforce.
Medication Resource | Salesforce Field | Type | Salesforce Cardinality | Notes |
---|---|---|---|---|
identifier | Identifier | Object | 0.M | The identifier information for a medication is represented as Identifier records that reference the medication record using their Identifier.ParentRecordId field. |
code | Medication.MedicationCodeId | Lookup: CodeSetBundle | 0.1 | N/A |
status | Medication.Status | Picklist | 1.1 | While FHIR defines medication.status as a code set bundle, the Salesforce implementation of Medication.Status is picklist. |
manufacturer | Medication.ManufacturerId | Lookup: Account | 0.1 | N/A |
form | Medication.MedicationFormId | Lookup: CodeSetBundle | 0.1 | N/A |
amount | Medication.QuantityNumerator | Double | 0.1 | Because Salesforce doesn’t support a native quantity data type, the medication.amount field is flattened into a set of numerator, denominator, and unit fields. |
Medication.QuantityDenominator | Double | 0.1 | ||
Medication.QuantityUnitId | Lookup: UnitOfMeasure | 0.1 | ||
ingredient.item | MedicinalIngredient.IngredientId | Lookup: CodeSetBundle, Medication | 0.1 | Zero-to-many value for medication.ingredient is implmeneted using the child object MedicinalIngredient. Each ingredient record references the parent Medication record using the ParentRecordId field. |
ingredient.isActive | MedicinalIngredient.IsActive | Boolean | 0.1 | |
ingredient.strength | MedicinalIngredient.StrengthNumerator | Double | 0.1 | |
MedicinalIngredient.StrengthNumeratorUnitId | Lookup: UnitOfMeasure | 0.1 | ||
MedicinalIngredient.StrengthDenominator | Double | 0.1 | ||
MedicinalIngredient.StrengthDenominatorUnitId | Lookup: UnitOfMeasure | 0.1 | ||
batch.lotNumber | Medication.BatchNumber | Int | 0.1 | N/A |
batch.expirationDate | Medication.ExpirationDateTime | DateTime | 0.1 | N/A |