@@ -10,6 +10,7 @@ class DraftVaccinationRecord
1010 attribute :batch_id , :integer
1111 attribute :delivery_method , :string
1212 attribute :delivery_site , :string
13+ attribute :disease_types , array : true
1314 attribute :dose_sequence , :integer
1415 attribute :first_active_wizard_step , :string
1516 attribute :full_dose , :boolean
@@ -25,9 +26,9 @@ class DraftVaccinationRecord
2526 attribute :performed_by_family_name , :string
2627 attribute :performed_by_given_name , :string
2728 attribute :performed_by_user_id , :integer
28- attribute :protocol , :string
2929 attribute :performed_ods_code , :string
3030 attribute :programme_type , :string
31+ attribute :protocol , :string
3132 attribute :session_id , :integer
3233 attribute :supplied_by_user_id , :integer
3334
@@ -299,6 +300,7 @@ def writable_attribute_names
299300 batch_id
300301 delivery_method
301302 delivery_site
303+ disease_types
302304 dose_sequence
303305 full_dose
304306 identity_check
@@ -336,6 +338,8 @@ def reset_unused_attributes
336338 self . identity_check_confirmed_by_other_name = ""
337339 self . identity_check_confirmed_by_other_relationship = ""
338340 end
341+
342+ self . disease_types = vaccine &.disease_types || programme . disease_types
339343 end
340344
341345 def academic_year = session &.academic_year
0 commit comments