This function returns the entities of the patient by the specified parameters.
object.FindEntityIds(aSource, aIdentifier,
ActiveOnly)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatient interface |
|
aSource |
In, Required | string |
The entity source |
aIdentifier |
In, Required | string |
The entity identifier |
ActiveOnly |
In, Required | bool |
If aActiveOnly = True the function returns only
active entities of the patient. Otherwise, all the patient's
entities are returned. |
Add two entities with the identifier "My identifier" and the source "My source 1" to the patient. Get the entities with the specified identifier and source, display their count.
Dim aPatient
Dim aTr
Dim aEntityCollection
Dim aEntityCollection2
Set aTr = Profile.StartMapTransaction
set aPatient = Profile.SelectPatient
set aEntityCollection = aPatient.FindEntityIds ("My source 1", "My ID", False)
Profile.MsgBox("Entities Count before changes = " & aEntityCollection.Count)
aPatient.AddEntityId "My source 1", "My ID", "My value A"
aPatient.AddEntityId "My source 1", "My ID", "My value B"
aPatient.Save
aTr.SnapShot
set aEntityCollection2 = aPatient.FindEntityIds ("My source 1", "My ID", False)
Profile.MsgBox("Entities Count after changes = " & aEntityCollection2.Count)
In Profile Client v8 on User Interface Entity Ids can be found in
.