Sha256: 1e516faa5574b238ba8edb4c0e0cdd5d575083570878cd28985d3e4a4ac917d0

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 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 "procedures", 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

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.0.102 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.101 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.100 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.99 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.98 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.97 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.96 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.95 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.94 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.93 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.92 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.91 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.90 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.89 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.88 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.87 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.86 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.85 app/views/renalware/api/ukrdc/patients/show.xml.builder