ISPatientProblem.GestationalAge

Description

The gestational age of the patient's pregnancy, calculated in days.

Syntax

object.GestationalAge

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

Return Value

int

Example

Display the codes, descriptions and the gestational age for the patient's problems of 'Pregnancy' type.

Dim aPatient
Dim aProblemList
Dim aCategory
Dim aProblems
Dim aProblem
Dim aAge
Dim aWeeks
Dim aDays
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 
    aAge = aProblem.GestationalAge
    aWeeks = aAge \ 7
    aDays = aAge mod 7     
    aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
      "; Description: " & aProblem.DxDescription & "; Gestational Age: " &_ 
      aWeeks & " weeks " & aDays & " days" & vbNewLine 
  next 
end if
Profile.MsgBox(aMessage)  
Note: This property is only used for the patient's problems of 'Pregnancy' type.

In Profile Client v8 on User Interface Gestational Age can be found in Clinical > Medical Record > Obstetric > Open selected pregnancy record > General, in Clinical > Clinical Details > Obstetric History > Open selected pregnancy record > General or in Patient > Cases > Clinical > Obstetric > Open selected pregnancy record > General.

Version information

Added in v8.3.32