Sha256: 7a8d44d469a0b493d4775a41f938e1b0be6f30d448990fe0e749f382fe949589

Contents?: true

Size: 525 Bytes

Versions: 34

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

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

34 entries across 34 versions & 1 rubygems

Version Path
renalware-core-2.0.75 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.74 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.73 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.72 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.71 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.70 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.69 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.68 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.67 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.64 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.63 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.62 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.61 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.60 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.58 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.57 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.56 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.55 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.54 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder
renalware-core-2.0.53 app/views/renalware/api/ukrdc/patients/_clinic_visit_observation.xml.builder