Sha256: 070eb79894e305a06ef8d695f503fbd88af0ce4244bfc9b5257ddb4e75953db5

Contents?: true

Size: 1.16 KB

Versions: 26

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

xml = builder

xml.Procedures do
  patient.finished_hd_sessions.each do |session|
    render "renalware/api/ukrdc/patients/procedures/dialysis_session",
           builder: xml,
           patient: patient,
           session: Renalware::HD::SessionPresenter.new(session)
  end
  # patient.prescriptions.each do |prescription|
  #   xml.Medication do
  #     xml.FromTime prescription.prescribed_on.to_datetime
  #     if prescription.terminated_or_marked_for_termination?
  #       xml.ToTime prescription.terminated_on&.to_datetime
  #     end
  #     xml.Route do
  #       xml.CodingStandard "RR22"
  #       xml.Code prescription.medication_route&.rr_code
  #       xml.Description prescription.medication_route&.name
  #     end
  #     xml.DrugProduct do
  #       xml.Generic prescription.drug
  #       # xml.Id do
  #       #   xml.CodingStandard "DM+D"
  #       #   xml.Code "dm + d code for the drug - coming soon"
  #       #   xml.Description prescription.drug
  #       # end
  #     end
  #     xml.Frequency prescription.frequency
  #     xml.Comments prescription.notes
  #     # xml.DoseUoM
  #     # xml.Indication
  #   end
  # end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
renalware-core-2.0.84 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.83 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.82 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.81 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.80 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.79 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.78 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.77 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.76 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.75 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.74 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.73 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.72 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.71 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.70 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.69 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.68 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.67 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.64 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder
renalware-core-2.0.63 app/views/renalware/api/ukrdc/patients/_procedures.xml.builder