Sha256: 205ab423f93bb8a01971d8571ebfe2138636e6da96faf312726da304ee375060

Contents?: true

Size: 1.21 KB

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
renalware-core-2.0.84 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.83 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.82 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.81 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.80 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.64 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.63 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.62 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.61 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.60 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.58 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.57 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.56 app/views/renalware/api/ukrdc/patients/show.xml.builder