Currently I'm doing the optional addition using something like this
...(!!providerId && { providerId }), ...(!!practiceId && { practiceId }),
Is there some shorthand logic to replace this logic in a graceful manner like
yield createRemarkRequest.post(PATIENT_REMARK, { patientId, ?providerId, ?practiceId, noteTypeCode, note,})