The severity of the adverse reaction in the selected problem version.
object.Severity
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblemVers interface |
Display the codes, descriptions and the severity of the adverse reaction in each version of the patient's problems of type 'Adverse'.
sub main
Dim aPatient
Dim aProblemList
Dim aCategory
Dim aProblems, aProblem
Dim aFilter
Dim aProblemVersColl, aVersion
Dim aMessage
Set aPatient = Profile.SelectPatient
set aProblemList = aPatient.ProblemList
set aCategory = aProblemList.Categories.Item(1) 'Adverse
aMessage = aMessage & vbNewLine &_
"---------" & aCategory.Description & "---------" & vbNewLine
set aProblems = aCategory.Problems
if aProblems.Count = 0 then
aMessage = aMessage & "No procedures"
end if
for each aProblem in aProblems
aMessage = aMessage & " " & GetProblemInfo(aProblem) & vbNewLine
set aFilter = Profile.CreateVersionFilter
aFilter.FromDate = #01/01/2019#
aFilter.ToDate = #06/06/2019#
set aProblemVersColl = aProblem.FindVersions(aFilter)
for each aVersion in aProblemVersColl
aMessage = aMessage & " -" & GetProblemInfo(aVersion) & vbNewLine
next ' aVersion
next ' aProblem
Profile.MsgBox(aMessage)
end sub
function GetProblemInfo(aProblem)
Dim aInfo
aInfo = "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_
" (Severity = " & aProblem.Severity & ")"
GetProblemInfo = aInfo
end function
In Profile Client v8 on User Interface Severity can be found in
, in or in .