Sha256: d97214fd3e3bac7bcdad4965e5d3591fdb667bc8e6a06e516e8722fcd0f7a265

Contents?: true

Size: 908 Bytes

Versions: 28

Compression:

Stored size: 908 Bytes

Contents

# 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

28 entries across 28 versions & 1 rubygems

Version Path
renalware-core-2.0.37 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.36 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.35 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.34 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.33 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.32 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.31 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.30 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.28 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.27 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.26 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.25 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.24 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.23 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.22 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.21 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.20 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.18 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.17 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.16 app/views/renalware/api/ukrdc/patients/_observations.xml.builder