Sha256: b4bae0c0e3da45de169ddcc6e9f80d8fb027c3775a08f0a93be8bc521f103571

Contents?: true

Size: 605 Bytes

Versions: 26

Compression:

Stored size: 605 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.HealthCareFacility do
    xml.CodingStandard "ODS"
    xml.Code Renalware.config.ukrdc_site_code
  end

  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

26 entries across 26 versions & 1 rubygems

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