ISPrescription.Date

Description

The date of the prescription.

Syntax

object.Date

Part Attribute Type Description
object Required
The object always implements the ISPrescription interface

Return Value

DateTime

Example

Display the number of the prescriptions loaded on the basis of the selected filter, the names of the Rx medications and the dates when they were written out.

Dim aPatient 
Dim aFilter
Dim aPrescriptions, aPrescription
Dim i
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePrescriptionFilter
aFilter.Patient = aPatient
set aPrescriptions = Profile.LoadPrescriptions(aFilter)

aMessage = "The number of the prescriptions for " & aPatient.SurnameFirstName &_ 
  " = " & aPrescriptions.Count & vbNewLine
for i = 0 to aPrescriptions.Count - 1
  set aPrescription = aPrescriptions.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aPrescription.RxName &_ 
    " was prescribed on " & aPrescription.Date  
next      

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Date can be found in Clinical > Medical Record > Prescriptions > Prior Scripts > Open > Date field.

Version information

Added in v7.8.0