ISPrescription.DiagnosisID

Description

ID of the disease code linked to the prescription.

Syntax

object.DiagnosisID

Part Attribute Type Description
object Required
The object always implements the ISPrescription interface
Restriction: This property is readonly.

Return Value

int

Example

Display some information about the prescriptions loaded on the basis of the selected filter, including the diagnoses linked to them.

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 
  if aPrescription.DiagnosisID <> 0 then   
    aMessage = aMessage & vbNewLine & "         -Diagnosis: " &_ 
      aPrescription.Diagnosis.Description
  end if  
next      

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Diagnosis ID cannot be found, but Diagnosis can be found in Clinical > Medical Record > Prescriptions > Prior Scripts > Dx and Indication columns.

Version information

Added in v7.8.0