The Rx item used for the immunisation.
object.Rx
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISRecallImmunisation interface |
Display some information about the immunisations, including the names of the Rx items used for them.
sub main
Dim aPatient
Dim aRecallPlans, aPlan
Dim aVisits, aVisit
Dim aActions, aAction
Dim aImmunisationAction
Dim aDose
Dim i
Dim aMessage
Set aPatient = Profile.SelectPatient
set aRecallPlans = aPatient.RecallPlans
if aRecallPlans.Count = 0 then
Profile.MsgBox("The patient has no care plans!")
exit sub
end if
for each aPlan in aRecallPlans
aMessage = aMessage & vbNewLine & "PLAN: '" & aPlan.Description & "'"
set aVisits = aPlan.Visits
if aVisits.Count = 0 then
aMessage = aMessage & vbNewLine & " NO INTERVENTIONS"
end if
for each aVisit in aVisits
set aActions = aVisit.Actions
aMessage = aMessage & vbNewLine & " INTERVENTION: '" &_
aVisit.Description & "' (Action Count = " & aActions.Count & ")"
for i = 0 to aActions.Count - 1
set aAction = aActions.Item(i)
set aImmunisationAction = aAction.Immunisation
if aImmunisationAction is nothing then
aMessage = aMessage & vbNewLine & "-----"
else
aMessage = aMessage & vbNewLine & " - ACTION: '" & aAction.Description &_
"'" & vbNewLine &_
" Batch Diluent: " & aImmunisationAction.BatchDiluent & vbNewLine &_
" Batch Diluent Expiry: " & aImmunisationAction.BatchDiluentExpiry & vbNewLine &_
" Done Elsewhere: " & aImmunisationAction.DoneElsewhere & vbNewLine &_
" Adverse Nature: " & aImmunisationAction.AdverseNature & vbNewLine &_
" Dose Value: " & aImmunisationAction.DoseValue & vbNewLine &_
" Rx Info: " & aImmunisationAction.RxInfo & vbNewLine
set aRx = aImmunisationAction.Rx
if aRx is nothing then
aMessage = aMessage & " Rx : Not Defined" & vbNewLine
else
aMessage = aMessage & " Rx: '" & aRx.Name & "'" & vbNewLine
end if
end if
next 'i
next ' aVisit
next ' aPlan
Profile.MsgBox(aMessage)
end sub
In Profile Client v8 on User Interface Rx can be found in
.