Sha256: bb5706f9eea9f2e496c4a39bbafb34fb6f00cef523dce4c399c4db3a466e974b

Contents?: true

Size: 1.16 KB

Versions: 17

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

# See
# https://www.ukrdc.org/2015/09/15/ukrdc-schema/
# https://github.com/renalreg/ukrdc
xml.instruct! :xml, version: "1.0", encoding: "UTF-8"

namespace_and_schema = {
  "xmlns:ukrdc" => "http://www.rixg.org.uk/",
  "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"
}

# Start of <ukrdc:Patient>
xml.ukrdc(:PatientRecord, namespace_and_schema) do
  render "sending_facility", builder: xml, patient: patient
  render "patient", builder: xml, patient: patient
  render "lab_orders", builder: xml, patient: patient
  render "social_histories", builder: xml, patient: patient
  render "family_histories", builder: xml, patient: patient
  render "observations", builder: xml, patient: patient
  render "allergies", builder: xml, patient: patient
  render "diagnoses", builder: xml, patient: patient
  render "medications", builder: xml, patient: patient
  render "documents", builder: xml, patient: patient
  render "encounters", builder: xml, patient: patient
  render "program_memberships", builder: xml, patient: patient
  render "clinical_relationships", builder: xml, patient: patient
  render "surveys", builder: xml, patient: patient
end

Version data entries

17 entries across 17 versions & 1 rubygems

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