Sha256: e423203501fc1020ce95c638262a7ac9f6832c810e4bef2509e6c4d70349f973

Contents?: true

Size: 590 Bytes

Versions: 13

Compression:

Stored size: 590 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! "We don't have snomed code for allergies..?"
      end
      xml.Clinician do
        xml.Description allergy.updated_by&.to_s
      end
      xml.FreeTextAllergy allergy.description
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
renalware-core-2.0.51 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.50 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.48 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.47 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.46 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.45 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.44 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.43 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.42 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.41 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.40 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.39 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.38 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder