This function returns the intervention by ID.
object.LoadRecallVisit(aVisitId)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aVisitId |
In, Required | int |
ID of the intervention |
Display the code and description of the first intervention.
Dim aFilter
Dim aSelected
Dim aVisits
Dim aVisit
Dim aMessage
aSelected = Profile.Lookup_PatientCaseSearch(aPatientId, aCaseId, _
"Select patient's case", true)
if not aSelected then exit sub
set aFilter = Profile.CreateRecallVisitFilter
aFilter.CaseId = aCaseId
set aVisits = Profile.LoadRecallVisits(aFilter)
if aVisits.Count = 0 then
aMessage = "The patient has no interventions"
else
aVisitID = aVisits.Item(0).ID
set aVisit = Profile.LoadRecallVisit(aVisitID)
aMessage = aMessage & vbNewLine & "The first intervention is '" &_
aVisit.Description & "' (" & aVisit.Code & ")"
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Intervention can be found in
.