ISApprovalsFilter.FormTermsetCode

Description

This filter property is used to load the collection of the approvals with the forms that contain the specified termset code and are attached to the approvals.

Syntax

object.FormTermsetCode

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

Return Value

string

Example

Display the number of the approvals loaded on the basis of the selected filter, their dates and time, the full names of the patients the approvals were created for.

Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateApprovalsFilter
aFilter.Patient = aPatient
aFilter.FormTermsetCode = "IH"
aFilter.FormConceptCode = "z...4" 'ACC45
set aApprovals = Profile.LoadApprovals(aFilter)

aMessage = "Approvals Count = " & aApprovals.Count
for i = 0 to aApprovals.Count - 1
  set aApproval = aApprovals.Item(i)
  aMessage = aMessage & vbNewLine & "The date of the approval for " &_
    aPatient.SurnameFirstName & " is " & aApproval.Date     
next      

Profile.MsgBox(aMessage)           
Note:

In Profile Client v8 on User Interface Termset Code can be found in Maintain > Termset Maintenance > Details of Concept > Termset or in Special > Terms > Details of Concept > Termset.

Version information

Added in v7.8.0