This filter property is used to load the medication order items with ID of the case attached.
object.CaseID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMedOrderItemsFilter interface |
int
Display the number of the medication order items loaded on the basis of the selected filter and some information about them.
Dim aResult
Dim aPatientId
Dim aCaseId
Dim aFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMessage
Dim i
aResult = Profile.Lookup_PatientCaseSearch(aPatientId, aCaseId, _
"Select Case for search", true)
if not aResult then exit sub
set aFilter = Profile.MakeMedOrderItemsFilter
aFilter.CaseID = aCaseId
set aMedOrderItems = Profile.LoadMedOrderItems(aFilter)
aMessage = "Medication Order Items Count = " & aMedOrderItems.Count
for i = 0 to aMedOrderItems.Count - 1
set aMedOrderItem = aMedOrderItems.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
"Medication Name: " & aMedOrderItem.Medication.RxName & vbNewLine &_
"Patient: " & Profile.LoadPatient(aMedOrderItem.PatientId).SurnameFirstName & vbNewLine &_
"URL: " & aMedOrderItem.URL & vbNewLine
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Case ID cannot be found, but Medication Order Items can be found in
.