Sha256: d84945cc2b84bb7a7851dc5fdcd5a823e5615521d536611cecb5183f5cb36812

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 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.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

4 entries across 4 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta6 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta5 app/views/renalware/api/ukrdc/patients/_observations.xml.builder
renalware-core-2.0.0.pre.beta4 app/views/renalware/api/ukrdc/patients/_observations.xml.builder