Sha256: 6964337136204b3d3b7f0d38b590b936b8746122b23e62e755446548788fae03
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
module LifenFhir class Category < Base CODES = ["MEDICAL_REPORT", "MESSAGE", "MEDICATION_ORDER", "REFERRAL_REQUEST", "OTHER"] attribute :code, String, default: "MEDICAL_REPORT" def fhir_payload raise LifenFhir::Error, "Invalid category: code must be in the authorized values" if !valid? { coding: [ { system: "http://honestica.com/fhir/communication/category", code: code } ] } end def valid? CODES.include? code end end end
Version data entries
5 entries across 5 versions & 1 rubygems