This function returns the prescription with the specified ID.
object.getPrescr(aPrescrID)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMedicationsSet interface |
|
aPrescrID |
In, Required | int |
ID of the prescription |
Display some information about the loaded prescription.
Dim aPatient
Dim aPrescrID
Dim aMedicationsSet
Dim aPrescription
Dim aMessage
On Error Resume Next
Set aPatient = Profile.SelectPatient
set aMedicationsSet = aPatient.Medications
aPrescrID = 2076
set aPrescription = aMedicationsSet.getPrescr(aPrescrID)
aMessage = "RxName: " & aPrescription.RxName & vbNewLine &_
"Date: " & aPrescription.Date & vbNewLine &_
"Dosage Line: " & aPrescription.DosageLine & vbNewLine &_
"Mitte: " & aPrescription.Mitte & vbNewLine &_
"OID: " & aPrescription.OID & vbNewLine
if Err.Number <> 0 then
aMessage = "There is no prescription with the specified ID"
Err.Clear
end If
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Prescriptions can be found in
.