The name for the payer's place of work.
object.WorkName
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCasePayer interface |
string
Display the number of the cases, their titles, opening dates and some information about the payers, including their places of work.
Dim aPatient
Dim aFilter
Dim aCases, aCase
Dim aCasePayer
Dim i
Dim aMessage
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateCasesFilter
aFilter.Patient = aPatient
set aCases = Profile.LoadCases(aFilter)
aMessage = "The number of the cases for " & aPatient.SurnameFirstName &_
" = " & aCases.Count
for i = 0 to aCases.Count -1
set aCase = aCases.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") " & aCase.CaseTitle &_
" was opened on " & aCase.OpenedOn & vbNewLine
set aCasePayer = aCase.CasePayer
if not aCasePayer is nothing then
aMessage = aMessage &_
" Allow Reconcile: " & aCasePayer.AllowReconcile & vbNewLine &_
" Occupation Description: " & aCasePayer.OccupationDescription & vbNewLine &_
" Payment Detail 2: " & aCasePayer.PaymentDetail2 & vbNewLine &_
" Usual Payer Type: " & aCasePayer.UsualPayerType & vbNewLine &_
" Work Name: " & aCasePayer.WorkName & vbNewLine &_
" Work City: " & aCasePayer.WorkCity & vbNewLine &_
" Work Code: " & aCasePayer.WorkCode & vbNewLine &_
" Work Country: " & aCasePayer.WorkCountry & vbNewLine &_
" Work Phone: " & aCasePayer.WorkPhone & vbNewLine &_
" Work Street: " & aCasePayer.WorkStreet & vbNewLine &_
" Work Suburb: " & aCasePayer.WorkSuburb & vbNewLine
if aCasePayer.PayerId > 0 then
aMessage = aMessage &_
" Payer name: " &_
Profile.LoadPatient(aCasePayer.PayerId).SurnameFirstName & vbNewLine
end if
else
aMessage = aMessage &_
" Case payer: Unassigned" & vbNewLine
end if
next 'i
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Work Name can be found in
.