ID of the short code of type 'Adverse Reaction Nature' or 'Diagnosis Nature' assigned to the patient problem.
object.NatureID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
int
Display the codes, descriptions and nature descriptions for the patient's problems of 'Adverse' and 'Diagnosis' types.
sub main
Dim aPatient
Dim aProblemList
Dim aCategories
Dim aMessage
Set aPatient = Profile.SelectPatient
set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories
aMessage = ShowCategoryProblems(aCategories.Item(0)) &_
ShowCategoryProblems(aCategories.Item(1))
Profile.MsgBox(aMessage)
end sub
function ShowCategoryProblems(aCategory)
Dim aMessage
Dim aProblems, aProblem
Dim aNatureShortCode, aNatureDescription
aMessage = vbNewLine & vbNewLine &_
"---------" & aCategory.Description & "---------" & vbNewLine
set aProblems = aCategory.Problems
for each aProblem in aProblems
set aNatureShortCode = Profile.LoadShortCode(aProblem.NatureID)
if aNatureShortCode is nothing then
aNatureDescription = " --- "
else
aNatureDescription = aNatureShortCode.Description
end if
aMessage = aMessage & vbNewLine & " Code: " & aProblem.DxCode &_
"; Description: " & aProblem.DxDescription &_
"', Nature Description = " & aNatureDescription & ")"
next 'aProblem
ShowCategoryProblems = aMessage
end function
In Profile Client v8 on User Interface Nature ID cannot be found, but Nature can be found in
, in or in .