ISAntenatalObservation.Date

Description

The date of the antenatal observation.

Syntax

object.Date

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

Return Value

DateTime

Example

Display some information from each of the patient's antenatal observations, including the dates of these observations.

sub main

  Dim aPatient
  Dim aPregnancyCount
  Dim aPregnancy
  Dim i
  Dim j
  Dim aObservations
  Dim aObservation
  Dim aMessage

  Set aPatient = Profile.SelectPatient
  if aPatient.Sex <> "F" then
    Profile.MsgBox("You should select female patient!")
    exit sub
  end if
  
  if aPatient.PregnancyCount = 0 then 
    aMessage = aMessage & "No pregnancies"
  else
    aPregnancyCount = aPatient.PregnancyCount 
    for i = 0 to aPregnancyCount - 1 
      set aPregnancy = aPatient.GetPregnancy(i)
      aMessage = aMessage & vbNewLine & "Code: " & aPregnancy.DxCode &_ 
        "; Description: " & aPregnancy.DxDescription & vbNewLine 
      set aObservations = aPregnancy.GetAntenatalObservations 
      aMessage = aMessage & "Antenatal Observations Count =  " &_ 
        aObservations.Count & vbNewLine
      for j = 0 to aObservations.Count - 1 
        set aObservation = aObservations.Item(j)
        aMessage = aMessage & (j+1) & ") " & "Antenatal recordings on " &_ 
          aObservation.Date & vbNewLine &_ 
          "    Age Clinically: " & GetHRIasString(aObservation.AgeClinically) &_
          vbNewLine & "    Antenatal Comment: " &_ 
          GetHRIasString(aObservation.AntenatalComment) & vbNewLine &_  
          "    Blood Pressure: " & GetHRIasString(aObservation.BloodPressure) &_
          vbNewLine & "    Fetal Heart: " &_ 
          GetHRIasString(aObservation.FetalHeart) & vbNewLine &_ 
          "    Fetal Movement: " & GetHRIasString(aObservation.FetalMovement) &_ 
          vbNewLine & "    Fundal Height: " &_ 
          GetHRIasString(aObservation.FundalHeight) & vbNewLine &_  
          "    Next Visit Date: " & GetHRIasString(aObservation.NextVisitDate) &_ 
          vbNewLine & "    Oedema: " & GetHRIasString(aObservation.Oedema) &_ 
          vbNewLine & "    Presentation: " &_ 
          GetHRIasString(aObservation.Presentation) & vbNewLine &_
          "    Urine: " & GetHRIasString(aObservation.Urine) & vbNewLine &_
          "    Weight: " & GetHRIasString(aObservation.Weight) & vbNewLine       
      next
    next
  end if
  Profile.MsgBox(aMessage)
end sub

function GetHRIasString(aHRI)
  Dim aResult
  
  if aHRI is nothing then
    aResult = " - "
  else
    aResult = aHRI.Content.AsString
  end if
  GetHRIasString = aResult
end function   
Note:

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

Version information

Added in v7.8.0