This function sets the gestational age at the time the patient's pregnancy ended.
object.SetWeeks
aValue
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
|
aValue |
In, Required | int |
The number of weeks |
Set the gestational age at the time the patient's pregnancy ended and display the codes, descriptions, gestational age for the patient's problems of 'Pregnancy' type.
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 & vbNewLine
set aProblems = aCategory.Problems
if aProblems.Count = 0 then
aMessage = "No pregnancies"
else
aProblems.Item(0).SetWeeks(30)
for each aProblem in aProblems
aMessage = aMessage & " " & "Code: " & aProblem.DxCode &_
"; Description: " & aProblem.DxDescription & " ended at " &_
aProblem.GetWeeks & " weeks" & vbNewLine
next
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Weeks can be found in
, in or in .