ISHistory.TypeNum

Description

The type number of the patient's history.

hkSocialHx 0
hkPastHx 1
hkFamilyHx 2
hkObstetricHx 3

Syntax

object.TypeNum

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

Return Value

int

Example

Display the number of the patient's histories, their types and contents.

Dim aPatient  
Dim aHistories, aHistory
Dim aMessage
Dim i

Set aPatient = Profile.SelectPatient 
set aHistories = aPatient.Histories
aMessage = "Histories Count = " & aHistories.Count

for i = 0 to aHistories.Count - 1
  set aHistory = aPatient.Histories.Item(i)
  aMessage = aMessage & vbNewLine & (i+1) & ") " & aHistory.TypeDescription & ": " &_
    aHistory.Text  
next  

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Type Number cannot be found, but Obstetric History can be found in Clinical > Medical Record > Obstetric > Obstetric History field, Social History can be found in Clinical > Clinical Details > Family > Social History > Social History field, Past History can be found in Clinical > Clinical Details > Past History > Past History field, Family History can be found in Clinical > Clinical Details > Family > Social History > Family History field.

Version information

Added in v7.11.0