Closed lache-melvin closed 1 month ago
TODO: do we think date and clinician can be from the encounter level or needed for each individual vaccination?
Don't think these can be from encounter as the user may enter historical vaccination events for the patient during an encounter
vaccine_item_id: Option
At some point this will need to transition to item variant..
Tested by Tainá in #4642 - moving to Done ✅
During an immunisation program encounter, each vaccination event needs to be captured.
This should be a new table
vaccination
:id: String encounter_id: String user_id: String (user making the entry) created_datetime: NaiveDateTime (time of entry) vaccination_date: NaiveDate (user entered date of vaccination) vaccine_course_schedule_id: String vaccine_item_id: Option
stock_line_id: Option (item and stock line are optional
clinician_link_id: Option (healthcare professional administering the dose)
vaccine_given: bool
reason: Option (customisable? REFUSAL/OUT OF STOCK/NO REASON)
comment: Option
TODO: do we think date and clinician can be from the encounter level or needed for each individual vaccination?
Needs to sync via v6 as remote data
stock lines/items etc. references shouldn't break when synced to different sites! So no ref constraints