Sha256: 7a8e49bb787d7b97dc225f140f9841a4ec84eae8389c4bc68739615d262f4949
Contents?: true
Size: 649 Bytes
Versions: 32
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true xml = builder xml.Treatment do xml.EncounterNumber [treatment.modality_id, treatment.pd_regime_id].compact.join("-") xml.EncounterType "N" xml.FromTime treatment.started_on&.iso8601 xml.ToTime(treatment.ended_on&.iso8601) if treatment.ended_on.present? xml.HealthCareFacility do xml.CodingStandard "ODS" xml.Code Renalware.config.ukrdc_site_code end xml.AdmitReason do xml.CodingStandard "CF_RR7_TREATMENT" xml.Code treatment.modality_code.txt_code end render( "renalware/api/ukrdc/patients/treatments/discharge_reason", treatment: treatment, builder: builder ) end
Version data entries
32 entries across 32 versions & 1 rubygems