This function returns the approximate date the patient stopped using contraceptives.
object.GetContraceptivesApproximateDate()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
string
Display the codes, descriptions for the patient's problems of 'Pregnancy' type and the approximate or exact date the patient stopped using contraceptives.
Dim aPatient
Dim aProblemList
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage
Set aPatient = Profile.SelectPatient
if aPatient.Sex <> "F" then
Profile.MsgBox("You should select female patient!")
exit sub
end if
set aProblemList = aPatient.ProblemList
set aCategory = aProblemList.Categories.Item(5) 'Pregnancy
aMessage = aMessage & vbNewLine &_
"---------" & aCategory.Description & "---------" & vbNewLine
set aProblems = aCategory.Problems
if aProblems.Count = 0 then
aMessage = aMessage & "No pregnancies"
else
for each aProblem in aProblems
aMessage = aMessage & vbNewLine & " " &_
"Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
if aProblem.GetContraceptives = 4 then 'Stopped on
if aProblem.GetContraceptivesDateIsApproximate then
aMessage = aMessage & "; Using contraceptives was approximatly stopped on " &_
aProblem.GetContraceptivesApproximateDate
else
aMessage = aMessage & "; Using contraceptives was stopped on " &_
aProblem.GetContraceptivesDate
end if
end if
next
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Contraceptives Approximate Date can be found in
, in or in .