The CDO content value description that is returned as string.
object.AsString
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCDOContent interface |
string
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 i
Dim aMessage
Set aPatient = Profile.SelectPatient
set aPatientMeasureFilter = Profile.CreatePatientMeasureFilter
set aConcept = Profile.Concept("IH", "z..2T")
aPatientMeasureFilter.Concept = aConcept
aPatientMeasureFilter.MeasureType = 3 ' pmtBoth
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
set aContent = aMeasure.Content 'ISCDOContent
aMessage = aMessage & vbNewLine & (i + 1) & ") " & aMeasure.AsString
if not aContent is nothing then
aMessage = aMessage & vbTab & vbTab & "Content Value: " & aContent.AsString
end if
next
Profile.MsgBox(aMessage)