ISProfile.LoadPatientDocuments

Description

This function returns the patient's documents loaded on the basis of the selected filter.

Syntax

object.LoadPatientDocuments(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

ISPatientDocuments

Returns the patient's documents loaded on the basis of the selected filter.

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.

See also

Version information

Added in v7.8.0