This function deletes the family problem.
object.Delete
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISFamilyProblem interface |
Display the number of the patient's family problems before and after deleting.
Dim aPatient
Dim aFilter
Dim aFamilyProblems
Dim aFirstProblem
Dim aMessage
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateFamilyProblemFilter
aFilter.PatientID = aPatient.ID
set aFamilyProblems = aFilter.Load
aMessage = "Family Problems Count before deleting = " & aFamilyProblems.Count &_
vbNewLine
if aFamilyProblems.Count > 0 then
set aFirstProblem = aFamilyProblems.Items(0)
aFirstProblem.Delete
aFirstProblem.Save
aMessage = aMessage & "The first Family Problem of the patient " &_
"with Dx Description '" & aFirstProblem.DxDescription &_
"' was deleted successfully: " & aFirstProblem.IsDeleted
else
aMessage = "The patient has no Family Problems"
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Family Problems can be found and deleted in
.