Sha256: a962eb14a01edeb961d009c40639e00a4dff01751bd184e61fe8a0cda5b4885a

Contents?: true

Size: 912 Bytes

Versions: 15

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

xml = builder
observation = Renalware::Pathology::ObservationPresenter.new(observation)
observation = Renalware::UKRDC::PathologyObservationPresenter.new(observation)

xml.ResultItem do
  # xml.ResultType
  xml.EnteredOn observation.updated_at&.iso8601
  xml.PrePost observation.pre_post(patient_is_on_hd: patient.current_modality_hd?)
  xml.ServiceId do
    if observation.description_loinc_code.present?
      xml.CodingStandard "PV"
      xml.Code observation.description_loinc_code
    else
      xml.CodingStandard "LOCAL"
      xml.Code observation.description_code
    end
    xml.Description observation.description_name
  end
  # xml.SubId
  xml.ResultValue observation.result
  xml.ResultValueUnits observation.measurement_unit_name
  # xml.AbnormalFlags
  # xml.Status
  xml.ObservationTime observation.observed_at&.iso8601
  # xml.Comments
  # xml.ReferenceComment
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.0.53 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.52 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.51 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.50 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.48 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.47 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.46 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.45 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.44 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.43 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.42 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.41 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.40 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.39 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.38 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder