ISPatientProblem.GetIntstructionMeasures

Description

This function returns the measures linked to the term linked to the disease code of the patient's problem. These measures demand some specific instructions.

Syntax

object.GetIntstructionMeasures()

Part Attribute Type Description
object Required
The object always implements the ISPatientProblem interface

Return Value

ISProblemInstructionMeasures

Returns the measures linked to the term linked to the disease code of the patient's problem.

Example

Display the codes, descriptions of the patient's problems in each category and instructions for each measure value linked to these problems.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories

for each aCategory in aCategories
  aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_ 
    "---------"  & vbNewLine & vbNewLine 
  set aProblems = aCategory.Problems
  for each aProblem in aProblems 
    aMessage = aMessage & "Code: " & aProblem.DxCode & "; Description: " &_ 
      aProblem.DxDescription & vbNewLine
    set aIntstructionMeasures = aProblem.GetIntstructionMeasures 
    if aIntstructionMeasures is nothing then  
      aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
        "; Description: " & aProblem.DxDescription & vbNewLine
    else
      for i = 0 to aIntstructionMeasures.Count - 1 
        set aInstrMeasure = aIntstructionMeasures.Item(i)
        aMessage = aMessage & "     -" & aInstrMeasure.Measure.Name & vbNewLine 
        set aInstructions = aInstrMeasure.Instructions
        for j = 0 to aInstructions.Count - 1
          set aInstr = aInstructions.Item(j)
          aMessage = aMessage & "        -" &_
            " Value = " & Profile.RTF2Plain(aInstr.MeasureValue) & " : " &_ 
            Profile.RTF2Plain(aInstr.Instruction) & vbNewLine
        next
      next 
    end if  
  next
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Instruction Measures can be found in Clinical > Medical Record > Problems > Open Problem > Intstructions, in Clinical > Clinical Details > Problems > Open Problem > Intstructions or in Patient > Cases > Clinical > Problems > Open Problem > Intstructions.

Version information

Added in v7.8.0