Sha256: 0f2c8d8f695b9798ddaca4c922ac8aa8278de86c54ea794a764f430e7c654ec8
Contents?: true
Size: 913 Bytes
Versions: 46
Compression:
Stored size: 913 Bytes
Contents
xml = builder xml.Medications do patient.prescriptions.each do |prescription| xml.Medication do xml.PrescriptionNumber xml.FromTime prescription.prescribed_on.to_datetime if prescription.terminated_or_marked_for_termination? xml.ToTime prescription.terminated_on&.to_datetime end xml.OrderedBy xml.Route do xml.CodingStandard "RR22" xml.Code prescription.medication_route&.rr_code xml.Description prescription.medication_route&.name end xml.DrugProduct do xml.Generic prescription.drug # xml.Id do # xml.CodingStandard "DM+D" # xml.Code "dm + d code for the drug - coming soon" # xml.Description prescription.drug # end end xml.Frequency prescription.frequency xml.Comments prescription.notes # xml.DoseUoM # xml.Indication end end end
Version data entries
46 entries across 46 versions & 1 rubygems