Sha256: 6024f7ff0089722ca0e8756ccc0fc978a3ce7bc25cd1fe33b591317c0137b5a2
Contents?: true
Size: 540 Bytes
Versions: 7
Compression:
Stored size: 540 Bytes
Contents
module Lifen class Category < Base CODES = ["MEDICAL_REPORT", "MESSAGE", "MEDICATION_ORDER", "REFERRAL_REQUEST", "OTHER"] attribute :code, String, default: "MEDICAL_REPORT" def fhir_payload raise Lifen::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
7 entries across 7 versions & 2 rubygems