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.74 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.73 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.72 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.71 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.70 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.69 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.68 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.67 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.64 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.63 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.62 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.61 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.60 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.58 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.57 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.56 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.55 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.54 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.53 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.52 app/views/renalware/api/ukrdc/patients/_observations.xml.builder