ISHRObservation.ISHRI

Description

Returns True if the HR Observation is a Health Record Item.

Syntax

object.ISHRI

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

Return Value

bool

Example

Display IsHRI for the HR Observation.

Dim aPatient
Dim aFilter
Dim aHRObservations, aHRObservation
Dim aMessage
Dim i   

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateObservationFilter
aFilter.PatientId = aPatient.ID 
aFilter.DateFrom = #01/01/2019#
aFilter.DateTo = #01/01/2020#
set aHRObservations = aFilter.Load

aMessage = "HR Observations Count = " & aHRObservations.Count & vbNewLine

for i = 0 to aHRObservations.Count - 1
  set aHRObservation = aHRObservations.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Name: " & aHRObservation.Name & vbNewLine &_
    "   As string: " & aHRObservation.AsString & vbNewLine &_
    "   Parent Trans: " & aHRObservation.ParentTrans.CreatedOn & vbNewLine &_
    "   Code: " & aHRObservation.Code & vbNewLine &_
    "   Concept Code: " & aHRObservation.ConceptCode & vbNewLine &_
    "   Is Deleted: " & aHRObservation.IsDeleted & vbNewLine &_
    "   Termset Code: " & aHRObservation.TermsetCode & vbNewLine &_
    "   GUID: " & aHRObservation.GUID & vbNewLine &_
    "   ID: " & aHRObservation.ID & vbNewLine
  if aHRObservation.ISHRI then
    aMessage = aMessage & "   HRI: " & aHRObservation.AsHRI.Name & vbNewLine
  else
    aMessage = aMessage & "   HRC: " & aHRObservation.AsHRC.Name & vbNewLine
  end if  
next
    
Profile.MsgBox(aMessage)     
Note:

In Profile Client v8 on User Interface HRI can be found in Clinical > Medical Record > Results.

Version information

Added in v7.8.0