Chart queue

The first bug every work marketplace ships is the double claim: two coders click Claim on the same chart in the same instant and both think they have it. Here a claim is one database transaction that locks the chart row with SELECT … FOR UPDATE SKIP LOCKED, so the second click finds the row taken and the chart flips to “claimed by” instead of being worked twice. Open this board in two tabs as two different coders and race for one chart. Every tab updates live over Action Cable, and a Sidekiq job puts back any claim held past its 3-minute SLA. All charts are synthetic.

Now open a second tab, pick a different coder there, and claim the same chart in both.

21 waiting · 0 claimed · 3 done

CHT-1020

Orthopedics · Consult

$7.00

Follow-up, healing wrist fracture, cast removed

due in about 3 hours

CHT-1011

Dermatology · Office visit

$10.00

Eczema flare, topical therapy updated

due in about 4 hours

CHT-1024

Pediatrics · Office visit

$5.75

Ear pain, otitis media, antibiotics started

due in about 4 hours

CHT-1019

Cardiology · Procedure note

$11.00

New patient, palpitations, ECG ordered

due in about 10 hours

CHT-1010

Emergency · Procedure note

$13.75

Chest pain, cardiac workup negative, discharged

due in about 11 hours

CHT-1015

Primary care · ED encounter

$12.00

Type 2 diabetes follow-up, A1c reviewed, refill

due in about 16 hours

CHT-1017

Dermatology · ED encounter

$5.00

Skin lesion removed, sent to pathology

due in about 18 hours

CHT-1007

Cardiology · Office visit

$8.25

Follow-up, stable hypertension, medication adjusted

due in about 19 hours

CHT-1014

Orthopedics · Procedure note

$14.00

Follow-up, healing wrist fracture, cast removed

due in about 19 hours

CHT-1023

Dermatology · Procedure note

$3.75

Eczema flare, topical therapy updated

due in about 20 hours

CHT-1013

Cardiology · Office visit

$6.50

Follow-up, stable hypertension, medication adjusted

due in 1 day

CHT-1016

Emergency · ED encounter

$3.75

Chest pain, cardiac workup negative, discharged

due in 2 days

CHT-1006

Pediatrics · ED encounter

$13.75

Well-child visit, immunizations given

due in 2 days

CHT-1009

Primary care · Office visit

$6.75

Type 2 diabetes follow-up, A1c reviewed, refill

due in 2 days

CHT-1008

Orthopedics · Procedure note

$7.50

Knee pain after a fall, X-ray negative

due in 2 days

CHT-1022

Emergency · Office visit

$6.50

Ankle sprain, splinted, discharged

due in 2 days

CHT-1018

Pediatrics · Office visit

$12.25

Well-child visit, immunizations given

due in 2 days

CHT-1012

Pediatrics · Consult

$7.50

Ear pain, otitis media, antibiotics started

due in 2 days

CHT-1004

Emergency · ED encounter

$7.75

Chest pain, cardiac workup negative, discharged

due in 2 days

CHT-1005

Dermatology · Office visit

$4.50

Eczema flare, topical therapy updated

due in 3 days

CHT-1021

Primary care · Procedure note

$8.00

Annual wellness visit, adult, no new concerns

due in 3 days

CHT-1001

Cardiology · Procedure note

$8.75

New patient, palpitations, ECG ordered

Done by June Park

CHT-1002

Orthopedics · ED encounter

$6.00

Knee pain after a fall, X-ray negative

Done by Sam Whitlock

CHT-1003

Primary care · Procedure note

$5.00

Upper respiratory symptoms, supportive care

Done by Maya Ortiz