Sha256: 7a8e49bb787d7b97dc225f140f9841a4ec84eae8389c4bc68739615d262f4949

Contents?: true

Size: 649 Bytes

Versions: 32

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

xml = builder

xml.Treatment do
  xml.EncounterNumber [treatment.modality_id, treatment.pd_regime_id].compact.join("-")
  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

32 entries across 32 versions & 1 rubygems

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