class Lifen::Patient

Public Instance Methods

fhir_payload() click to toggle source
# File lib/lifen/patient.rb, line 8
def fhir_payload
  {
    id: "patient",
    resourceType: "Patient",
    name: [
      {
        family: [
          last_name
        ],
        given: [
          first_name
        ]
      }
    ],
    birthDate: birthdate.to_s
  }
end