Sha256: 2328a396d2d40e8c5cbb86eac94a9a65750f2a93f4d1fc28e2ba6d774058c6b0

Contents?: true

Size: 881 Bytes

Versions: 38

Compression:

Stored size: 881 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
    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

38 entries across 38 versions & 1 rubygems

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