ISCDOQuantity.TypeID

Description

Class ID of the CDO quantity content.

Syntax

object.TypeID

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

Return Value

int

Example

Display the number of the patient measures loaded on the basis of the selected filter and some information about them.

Dim aPatient
Dim aPatientMeasureFilter, aPhysQuantity
Dim aConcept
Dim aMeasures, aMeasure
Dim aContent
Dim aUD 
Dim i
Dim aMessage 

const CID_IBCDO_Quantity = 100630

Set aPatient = Profile.SelectPatient 
set aPatientMeasureFilter = Profile.CreatePatientMeasureFilter
set aConcept = Profile.Concept("IH", "z..2T")
aPatientMeasureFilter.MeasureType = 3 ' pmtBoth
aPatientMeasureFilter.Concept = aConcept
set aMeasures = aPatient.GetMeasuresByFilter(aPatientMeasureFilter, aPhysQuantity)

aMessage = "Measures Count = " & aMeasures.Count & vbNewLine

for i = 0 to aMeasures.Count - 1 
  set aMeasure = aMeasures.Item(i) 'ISHRI
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aMeasure.AsString & vbNewLine
  
  set aContent = aMeasure.Content
  if not aContent is nothing then
    aMessage = aMessage & vbNewLine &_
      "Content Type ID: " & aContent.TypeID & vbNewLine &_
      "Content Value As String: " & aContent.AsString & vbNewLine &_
      "Content Get Value As String: " & aContent.GetValueAsString & vbNewLine
              
    if aContent.TypeId = CID_IBCDO_Quantity then
      aMessage = aMessage &_
        "Content Value: " & Round(aContent.Value, 2) & vbNewLine &_
        "Content Value Is Null: " & aContent.IsValueNull & vbNewLine &_
        "Content Reference Range: " & aContent.GetReferenceRange & vbNewLine &_
        "Content Reference Range Comment: " & aContent.ReferenceRangeComment & vbNewLine &_
        "Content Reference Range Origin: " & aContent.ReferenceRangeOrigin & vbNewLine          
    end if    
  else
    aMessage = aMessage & vbNewLine & "No Content " & vbNewLine       
  end if
  
  set aUD = aContent.UnitDimension
  if aUD is nothing then
    aMessage = aMessage & "No Unit Dimension is assigned!" & vbNewLine
  else  
    aMessage = aMessage & "Unit Dimension Name: " & aUD.Name & vbNewLine                 
  end if 
next
  
Profile.MsgBox(aMessage)
Note: In Profile Client v8 on User Interface Type ID cannot be found. The list of possible Type IDs can be found in the Description of ISCDOContent.TypeID.

Version information

Added in v7.8.0