Sha256: 9896c7fb9c7faed37f030ee891dde5306fb04c8cf06593be7784e86cd07b0571

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

# 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",
  "xsi:schemaLocation" => [
    "http://www.rixg.org.uk/",
    Renalware::Engine.root.join("vendor", "xsd", "ukrdc/UKRDC.xsd")
  ].join(" ")
}

# 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

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.0.pre.beta10 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.0.pre.beta9 app/views/renalware/api/ukrdc/patients/show.xml.builder