Attaching wrong eform in Consult request

Preconditions

Deb install properties or similar with consult fax enabled property set
eforms in the database
completed eforms in the database with fdid's > the number of eforms

Steps to Reproduce

Write a consult
attach or not a lab or eform
Fax it

Expected Result

Only selected results for the patient gets faxed and it is reflected in the print preview

Observed Result

Print preview is as expected
Rather unpredictably old eforms with small number fdid get attached that are from other patients files
In the case of one referral of a patient to an agency with attached eform specific to that agency (fid of 214)
In this case the appropriate referral eform to be attached was fid 241 but the eform fdid 214 was also attached from another patient

Another patient refered to a consultant without an attachment had an attachment of fdid=84

Additional Comments

I suppose the work around is to print to paper and fax that, which seems a step backwards

Assignee

Marc Dumontier

Reporter

Peter H-C

Labels

OSCAR Build Date

2019/07/26

OSCAR Build Tag

1000

Client Browser

Firefox

Client OS

Ubuntu

Are you or your organization planning on submitting a fix for this bug in the next 30 days?

No

Validated by Reporter

No

SourceForge Link

None

SourceForge Reporter

None

SourceForge Assigned To

None

SourceForge Date Created

None

SourceForge ID

None

Affects versions

Priority

6
Configure