Sha256: 86c4f9b1f04e1a477bb7ab28f81f5ba156c8b6bef4c25af885cce7cb6854d311
Contents?: true
Size: 939 Bytes
Versions: 53
Compression:
Stored size: 939 Bytes
Contents
# frozen_string_literal: true # What are observations in RW? # - clinic visit # - weight # - bp xml = builder xml.Observations( start: patient.changes_since.to_date.iso8601, stop: patient.changes_up_until.to_date.iso8601 ) do patient.clinic_visits.each do |visit| render "clinic_visit_observation", visit: visit, method: :systolic_bp, i18n_key: "blood_pressure.systolic", builder: builder render "clinic_visit_observation", visit: visit, method: :diastolic_bp, i18n_key: "blood_pressure.diastolic", builder: builder render "clinic_visit_observation", visit: visit, method: :weight, i18n_key: "weight", builder: builder render "clinic_visit_observation", visit: visit, method: :height, i18n_key: "height", builder: builder end end
Version data entries
53 entries across 53 versions & 1 rubygems