Sha256: 78932687ac716718eb5ed6d6c4146e88918d90092b58445d9e0be256495d52db

Contents?: true

Size: 1.21 KB

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.77 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.76 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.75 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.74 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.73 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.72 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.71 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.70 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.69 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.68 app/views/renalware/api/ukrdc/patients/show.xml.builder
renalware-core-2.0.67 app/views/renalware/api/ukrdc/patients/show.xml.builder