Sha256: f01c2a48fe9a98efda9952b9ca2d712825ce349541721eebd22600930e26f132
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
# frozen_string_literal: true measurement = visit.public_send(method) if measurement.present? && measurement.to_f.nonzero? xml = builder i18n_key ||= method xml.Observation do xml.ObservationTime visit.datetime xml.ObservationCode do xml.CodingStandard "UKRR" xml.Code I18n.t("loinc.#{i18n_key}.code") xml.Description I18n.t("loinc.#{i18n_key}.description") end xml.ObservationValue measurement xml.ObservationUnits I18n.t("loinc.#{i18n_key}.units") xml.Clinician do xml.Description visit.updated_by&.to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems