Sha256: ee06f825105bd6c49f3ec4a5add7ee4bc766745ac00ab50e1a846efa7a7508cc

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 Bytes

Contents

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
    xml.CodingStandard "LOCAL"
    xml.Code(observation.description_loinc_code || observation.description_code)
    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

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc8 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder
renalware-core-2.0.0.pre.rc7 app/views/renalware/api/ukrdc/patients/lab_orders/_result_item.xml.builder