ID of the short code of 'Pregnancy Nature' type assigned to the patient's problem of 'Pregnancy' type.
object.TypeOfPregnancy
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
int
Display the codes, descriptions and nature 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 = aMessage & "No pregnancies"
else
for each aProblem in aProblems
aMessage = aMessage & " " & "Code: " & aProblem.DxCode &_
"; Description: " & aProblem.DxDescription & "; Pregnancy Nature: " &_
Profile.LoadShortCode(aProblem.TypeOfPregnancy).Description & vbNewLine
next
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface IDs of short codes cannot be found, but Type Of Pregnancy can be found in
, in or in .