added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
FactoryBot.define do
factory :checkin_condition, class: Checkin::Condition do
transient do
values { [(0..4).to_a + [nil]] }
end
condition_id { FactoryBot.create(:condition).id }
value { values.sample }
end
end

View File

@@ -0,0 +1,9 @@
FactoryBot.define do
factory :checkin_symptom, class: Checkin::Symptom do
transient do
values { [(0..4).to_a + [nil]] }
end
symptom_id { FactoryBot.create(:symptom).id }
value { values.sample }
end
end

View File

@@ -0,0 +1,10 @@
FactoryBot.define do
factory :checkin_treatment, class: Checkin::Treatment do
transient do
values { ["20 mg", "2 ml", "3 x 1 cap", "2 x 10 mg", nil, "3 x 4 ml", "1 cap", "5 ml", "2 x 2 cap"] }
end
treatment_id { FactoryBot.create(:treatment).id }
value { values.sample }
is_taken { value.present? ? true : [true, false].sample }
end
end