ISPatientProblem.DateTimeAdded

Description

The date and time the patient's problem was added.

Syntax

object.DateTimeAdded

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

Return Value

DateTime

Example

Display the codes, descriptions of the patient's problems in each category and the date and time these problems were added.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories

for each aCategory in aCategories
  aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_ 
    "---------"  & vbNewLine & vbNewLine 
  set aProblems = aCategory.Problems
  for each aProblem in aProblems
    if aProblem.ProblemType = 6 then  'ptPregnancy  
      aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
        "; Description: " & aProblem.DxDescription & vbNewLine
    else 
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
        " (added on " & aProblem.DateTimeAdded & ")" & vbNewLine
    end if  
  next
next 

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Date Time Added can be found in Clinical > Medical Record > Problems > Open Problem > History > Date, in Clinical > Clinical Details > Problems > Open Problem > History > Date or in Patient > Cases > Clinical > Problems > Open Problem > History > Date.

Version information

Added in v7.8.0