Sha256: 6a850658ae030fb0b1a5540095372f68d0e5585562495db3371fb9992bf4108c

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

#
# 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.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

4 entries across 4 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.0.pre.beta6 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.0.pre.beta5 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.0.pre.beta4 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder