This function returns the entities of the patient by the specified identifier.
object.GetEntityIdByIdentifier(aIdentifier)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatient interface |
|
aIdentifier |
In, Required | string |
The entity identifier |
Add two entities with the identifier "My identifier" to the patient. Get the entities with the specified identifier and display their count.
Dim aPatient
Dim aTr
Dim aEntityCollection
Dim aEntityCollection2
Set aTr = Profile.StartMapTransaction
set aPatient = Profile.SelectPatient
set aEntityCollection = aPatient.GetEntityIdByIdentifier ("My identifier")
Profile.MsgBox("Entities Count before changes = " & aEntityCollection.Count)
aPatient.AddEntityId "My source 1", "My identifier", "My value A"
aPatient.AddEntityId "My source 2", "My identifier", "My value B"
aPatient.Save
aTr.SnapShot
set aEntityCollection2 = aPatient.GetEntityIdByIdentifier ("My identifier")
Profile.MsgBox("Entities Count after changes = " & aEntityCollection2.Count)
In Profile Client v8 on User Interface Entity Identifier can be found in
.