synthetichealth/synthea

Claim Transaction `PATIENTINSURANCEID` references `patientId`

lawrenceadams opened this issue · 0 comments

What happened?

PATIENTINSURANCEID references patientId instead of MEMBERID as per the CSV documentation.

// PATIENTINSURANCEID
if (memberId != null) {
s.append(patientId);
}

I have tried changing this to memberId which is generated here:

this.memberId = claim.getPlanRecordMemberId();

But the output doesn't work - PATIENTINSURANCEID only partially joins onto MEMBERID.

Is this expected?

Environment

synthea version 3.0.0 -> 3.3.0 tested and all have the same issue

Relevant log output

No response