Sha256: 5c0958ff54a2d9e2daf835e03115090ed97cb14e4c913cd4fb5a71adb5e923d9

Contents?: true

Size: 494 Bytes

Versions: 38

Compression:

Stored size: 494 Bytes

Contents

xml = builder

i18n_key ||= method
xml.Observation do
  xml.ObservationTime visit.datetime

  xml.ObservationCode do
    # xml.CodingStandard "2.16.840.1.113883.4.642.2.115"
    xml.CodingStandard "PV"
    xml.Code I18n.t("loinc.#{i18n_key}.code")
    xml.Description I18n.t("loinc.#{i18n_key}.description")
  end

  xml.ObservationValue visit.public_send(method)
  xml.ObservationUnits I18n.t("loinc.#{i18n_key}.units")

  xml.Clinician do
    xml.Description visit.updated_by&.to_s
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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