Sha256: c59e7e984c650d390658144c3cb50b3fa369bfba34dc3dddceb6612b0eeda612
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
module LifenFhir class Patient < Base attribute :first_name, String attribute :last_name, String attribute :birthdate, Date def fhir_payload { id: "patient", resourceType: "Patient", name: [ { family: [ last_name ], given: [ first_name ] } ], birthDate: birthdate.to_s } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lifen_fhir-0.1.1 | lib/lifen_fhir/patient.rb |