Sha256: 3e170fc955bed3cf1278e009cf5011c93c50c54bdb22398020e2bd04b88bd618

Contents?: true

Size: 767 Bytes

Versions: 9

Compression:

Stored size: 767 Bytes

Contents

# What are observations in RW?
# - clinic visit
#   - weight
#   - bp
xml = builder

xml.Observations(start: Time.zone.today.iso8601, stop: Time.zone.today.iso8601) do
  xml.comment! "Check what start and stop refer to here"
  patient.clinic_visits.includes(:updated_by).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,
           builder: builder
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc5 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.rc4 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.rc3 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.rc1 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta12 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta11 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta10 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta9 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta8 app/views/renalware/api/ukrdc/patients/_observations.xml.builder