Sha256: bf004fe54564f5f2821bcac25815068a0703300e27fcef85bced6ed3eca5a5be

Contents?: true

Size: 891 Bytes

Versions: 39

Compression:

Stored size: 891 Bytes

Contents

# frozen_string_literal: true

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

xml.ResultItem do
  xml.EnteredOn observation.updated_at&.iso8601
  xml.PrePost observation.pre_post(patient_is_on_hd: patient.current_modality_hd?)
  xml.ServiceId do
    xml.CodingStandard observation.coding_standard
    xml.Code observation.code
    xml.Description observation.description_name
  end

  # If the rrr_type of the observation_descriptions is interpretation (ie an interpretted result
  # like POS NEG)
  if observation.rr_type_interpretation?
    xml.InterpretationCodes observation.interpretation_code
  else
    xml.ResultValue observation.result
    xml.ResultValueUnits observation.measurement_unit_name
  end

  xml.ObservationTime observation.observed_at&.iso8601
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
renalware-core-2.0.136 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.135 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.134 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.133 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.132 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.131 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.130 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.129 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.128 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.127 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.126 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.125 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.124 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.123 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.121 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.120 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.119 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.118 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.117 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead
renalware-core-2.0.116 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder.dead