The enumeration value is 0 if the patient's problem ended at the exact or approximate date. If the patient's problem was closed at some age range, the enumeration value is 1.
object.DateModeTo
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
Display the codes, descriptions of the patient's problems in each category and the dates or life stages when these problems ended.
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
if aProblem.DateModeTo = 1 then 'spdmLifeStage
if aProblem.LifeStageTo is nothing then
aMessage = aMessage & " " &_
"Code: " & aProblem.DxCode & "; Description: " &_
aProblem.DxDescription & vbNewLine
else
aMessage = aMessage & " " &_
"Code: " & aProblem.DxCode & "; Description: " &_
aProblem.DxDescription & " (Life Stage to " &_
aProblem.LifeStageTo.Description & ")" & vbNewLine
end if
else
aMessage = aMessage & " " &_
"Code: " & aProblem.DxCode & "; Description: " &_
aProblem.DxDescription & " (Date To: " & aProblem.DateTo &_
")" & vbNewLine
end if
end if
next
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface the Date To or Life Stage To fields can be found in
, in or in .