Sha256: d15a3e6ea53a1ecb6080c18a3dd9e624cf52bf0c03017783028cc264aa7b6c93

Contents?: true

Size: 495 Bytes

Versions: 15

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

xml = builder

xml.Treatment do
  xml.EncounterNumber treatment.modality_id
  xml.EncounterType "N"
  xml.FromTime treatment.started_on&.iso8601
  xml.ToTime(treatment.ended_on&.iso8601) if treatment.ended_on.present?

  xml.AdmitReason do
    xml.CodingStandard "CF_RR7_TREATMENT"
    xml.Code treatment.modality_code.txt_code
  end

  render(
    "renalware/api/ukrdc/patients/treatments/discharge_reason",
    treatment: treatment,
    builder: builder
  )
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.0.108 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.106 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.105 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.104 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.103 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.102 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.101 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.100 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.99 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.98 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.97 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.96 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.95 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.94 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder
renalware-core-2.0.93 app/views/renalware/api/ukrdc/patients/treatments/_generic.xml.builder