Sha256: f225256cda92e56a60da82289fd67811ac36d644e2432dc27fbe9d9c87d8db4f

Contents?: true

Size: 559 Bytes

Versions: 50

Compression:

Stored size: 559 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.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

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.37 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.36 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.35 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.34 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.33 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.32 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.31 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.30 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.28 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.27 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.26 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.25 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.24 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.23 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.22 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.21 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.20 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.18 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.17 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder
renalware-core-2.0.16 app/views/renalware/api/ukrdc/patients/_allergies.xml.builder