EhrMedicationPrescription__c

Represents an order for supply of a medication and the instructions for administration of the medicine to a patient.

Supported Calls 

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Fields 

Account__c 

  • Type: reference
  • Properties: Create, Filter, Group, Sort
  • Description: The person account that represents the patient in Lightning Platform.

DateWritten__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The date (and optionally time) when the prescription was written.

DispenseExpectedSupplyDuration__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The period of time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. Note: In some situations, this attribute can be used instead of quantity to identify the amount supplied by how long it’s expected to last rather than by the physical quantity issued, for example, a 90-day supply of medication (based on an ordered dosage). This attribute is an estimate that can be influenced by external factors, so specifying quantity is more precise.

DispenseMedicationCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that identifies the medication being administered.

DispenseMedicationCodeSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the code that identifies this medication.

DispenseMedicationExpiration__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The date when a specific batch of product expires.

DispenseMedicationIsBrand__c 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Whether the item is attributable to a specific manufacturer (true) or not (false). The default checkbox value is deselected. Note: The manufacture doesn’t have to be known.

DispenseMedicationKindCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that represents the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

DispenseMedicationKindLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that represents the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

DispenseMedicationKindSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

DispenseMedicationLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that identifies and defines a medication.

DispenseMedicationLotNumber__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The assigned lot number of a batch of the specified product.

DispenseMedicationName__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: A common commercial name for the medication.

DispenseMedicationProductFormCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that represents the form of the product: powder, tablet, or carton + code.

DispenseMedicationProductFormLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that represents the form of the product: powder, tablet, or carton + human-readable label.

DispenseMedicationProductFormSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the form of the product: powder, tablet, or carton + system.

DispenseNumberOfRepeatedAllowed__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The number of allowed repeats of the medication dispense. For example, the number of times the prescribed quantity is to be supplied, including the initial standard fill.

DispenseQuantityUnit__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: A unit of measurement in the amount to be dispensed for one fill.

DispenseQuantityValue__c 

  • Type: double
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The amount of medication to supply per dispense.

DispenseValidityPeriodEnd__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The last date when the prescription is considered valid (not stale) by the prescriber. Dispenses must not be made against the prescription after this date.

DispenseValidityPeriodStart__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The earliest date when the prescription can be filled for the first time. If not specified, the prescription is open-ended or defaults to a stale date based on regulations.

Encounter__c 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: An interaction between a patient and one or more healthcare providers for the purpose of providing the patient with healthcare services or assessing a patient’s health status. Lookup to EhrEncounter__c.

IsRestricted__c 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether or not this field has restricted visibility based on sharing rules.

IsVisibleOnPatientCard__c 

  • Type: boolean
  • Properties: Defaulted on create, Filter, Group
  • Description: Indicates whether or not this field appears on the patient card.

LastActivityDate 

  • Type: date

  • Properties: Filter, Group, Nillable, Sort

  • Description: Whichever of the following is the most recent:

    • Due date of the most recent event logged against the record.
    • Due date of the most recently closed task associated with the record.

LastReferencedDate 

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The time stamp that indicates when the current user last viewed a related record.

LastViewedDate 

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.

MedicationCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that identifies a medication.

MedicationCodeLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that identifies a medication.

MedicationCodeSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines a medication.

MedicationExpiration__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The date when a specific batch of product expires.

MedicationIsBrand__c 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Whether the item is attributable to a specific manufacturer (true) or not (false). The default checkbox value is deselected. Note: The manufacturer doesn’t have to be known.

MedicationKindCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that represents the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

MedicationKindLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that represents the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

MedicationKindSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the kind of medication. Medications are either a single administrable product or a package that contains one or more products.

MedicationLotNumber__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The assigned lot number of a batch of the specified product.

MedicationName__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: A common commercial name for the medication.

MedicationProductFormCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that represents the form of the medication: powder, tablet, or carton + code.

MedicationProductFormLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that represents the form of the medication: powder, tablet, or carton + human-readable label.

MedicationProductFormSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the form of the medication: powder, tablet, or carton + system.

Name 

  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: The EHR medication prescription ID. Limit: 255 characters.

Patient__c 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The person to whom a medication will be given. Lookup to EhrPatient__c.

Prescriber__c 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The healthcare professional who’s responsible for authorizing the prescription. Lookup to EhrPractitioner__c.

PrescriberName__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The long text description of the name of the healthcare professional who’s responsible for authorizing the prescription.

ReasonCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that represents the reason or indication for writing the prescription.

ReasonCondition__c 

  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Lookup to EhrCondition__c.

ReasonLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that represents the reason or indication for writing the prescription.

ReasonSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the reason or indication for writing the prescription.

SourceSystem__c 

  • Type: string
  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
  • Description: A name that identifies the system that created the record and owns update rights to it.

SourceSystemId__c 

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update
  • Description: The ID of an external record. This field can’t be encrypted.

SourceSystemModified__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The most recent date when the integration system wrote the record from the source record.

StatusCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The code that specifies the state of the order, typically active or completed.

StatusLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that specifies the state of the order, typically active or completed.

StatusSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the state of the order, typically active or completed.

SubstituteRestrictReasonCode__c 

  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: The system-defined code that indicates the reason why a substitution can’t be performed.

SubstituteRestrictReasonLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that indicates the reason why a substitution can’t be performed.

SubstituteRestrictReasonSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines the reason why a substitution can’t be performed.

SubstituteRestrictTypeCode__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system-defined code that indicates whether a different drug can be dispensed from what was prescribed.

SubstituteRestrictTypeLabel__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The human-readable label that indicates whether a different drug can be dispensed from what was prescribed.

SubstituteRestrictTypeSystem__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The system that defines whether a different drug can be dispensed from what was prescribed.