ISProfile.CreatePatientDocumentFilter

Description

This function creates the filter for loading patient's documents.

Syntax

object.CreatePatientDocumentFilter()

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

Return Value

ISPatientDocumentFilter

Returns the filter for loading patient's documents.

Example

Display the number of the documents loaded on the basis of the selected filter, their names and the dates when they were created.

Dim aPatient
Dim aFilter
Dim aPatientDocuments
Dim aPatientDocument
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientDocumentFilter
aFilter.PatientID = aPatient.ID
set aPatientDocuments = Profile.LoadPatientDocuments(aFilter) 

aMessage = "Patient Documents Count = " & aPatientDocuments.Count
for i = 0 to aPatientDocuments.Count - 1
  set aPatientDocument = aPatientDocuments.Items(i)
  aMessage = aMessage & vbNewLine & "The document with the name '" &_
    aPatientDocument.FileName & "' was created on " & aPatientDocument.Date
next      

Profile.MsgBox(aMessage) 
Note:

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

Version information

Added in v7.8.0