The way of calculating the gestational age within the patient's problem of 'Pregnancy' type (based on the date of the last menstrual period or on the results of the scan).
object.AssessType
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
Display the codes, descriptions and scan dates for the patient's problems of 'Pregnancy' type if the gestational age is based on the results of the scan.
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
if aProblem.AssessType = 2 then 'spatScan
aMessage = aMessage & " " & "Code: " & aProblem.DxCode &_
"; Description: " & aProblem.DxDescription & "; Scan date and time: " &_
aProblem.GetScanDate & vbNewLine
else
aMessage = aMessage & " " & "Code: " & aProblem.DxCode &_
"; Description: " & aProblem.DxDescription & vbNewLine
end if
next
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface the Assessed radio buttons can be selected in
, in or in .