Sha256: 1ba4dca1114fbd6685a97a30e77c1e43e595023a7d4da5a6611089bb902df585

Contents?: true

Size: 561 Bytes

Versions: 79

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

#
# https://github.com/renalreg/ukrdc/blob/6d95e364dd8de857839fe6cdbd4e7fc3fb4c1d42/Schema/Allergies/Allergy.xsd
# This should be snomed-defined but we are just sending free text as that is all we have.
#
xml = builder

xml.Allergies do
  patient.allergies.includes(:updated_by).each do |allergy|
    xml.Allergy do
      xml.Allergy do
        xml.comment! "Not available"
      end
      xml.Clinician do
        xml.Description allergy.updated_by&.to_s
      end
      xml.FreeTextAllergy allergy.description
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

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