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

Version Path
renalware-core-2.0.94 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.93 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.92 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.91 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.90 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.89 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.88 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.87 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.86 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.85 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.84 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.83 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.82 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.81 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.80 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.79 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.78 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.77 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.76 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.75 app/views/renalware/api/ukrdc/patients/_observations.xml.builder