ISPatientProblem.Pregnancy

Description

The pregnancy linked to the patient's problem of 'Pregnancy' type.

Syntax

object.Pregnancy

Part Attribute Type Description
object Required
The object always implements the ISPatientProblem interface
Restriction: This property is readonly.

Return Value

ISPregnancy

Example

Display the codes, descriptions of the patient's problems in each category and LMP for pregnancies.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories

for each aCategory in aCategories
  aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_ 
    "---------"  & vbNewLine & vbNewLine 
  set aProblems = aCategory.Problems
  for each aProblem in aProblems
     aMessage = aMessage & vbNewLine & "    " & "Code: " & aProblem.DxCode &_ 
       "; Description: " & aProblem.DxDescription 
    if aProblem.ProblemType = 6 then  'ptPregnancy  
      aMessage = aMessage & "; LMP: " &_ 
        aProblem.Pregnancy.GetLMP 
    end if    
  next
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Pregnancy can be found in Clinical > Medical Record > Obstetric > Pregnancies, in Clinical > Clinical Details > Obstetric History > Pregnancies or in Patient > Cases > Clinical > Obstetric > Pregnancies.

Version information

Added in v7.8.0