Sha256: a7beb0c5f5fd86958450b9395525e0ab6bd8cd50a3a57f404901bbf4804dd8f6
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true xml = builder xml.Treatment do xml.EncounterNumber [treatment.modality_id, treatment.hd_profile_id].compact.join("-") xml.EncounterType "N" xml.FromTime treatment.started_on&.iso8601 xml.ToTime(treatment.ended_on&.iso8601) if treatment.ended_on.present? if treatment.hospital_unit.present? xml.HealthCareFacility do xml.CodingStandard "ODS" xml.Code treatment.hospital_unit.unit_code end end xml.AdmitReason do xml.CodingStandard "CF_RR7_TREATMENT" xml.Code treatment.modality_code.txt_code end # HD rr8 = treatment.hospital_unit&.unit_type_rr8 if rr8.present? xml.Attributes do xml.QBL05 rr8 # eg HOME end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.0.91 | app/views/renalware/api/ukrdc/patients/treatments/_hd.xml.builder |
renalware-core-2.0.90 | app/views/renalware/api/ukrdc/patients/treatments/_hd.xml.builder |