Class: Lifen::Patient

Inherits:
Base
  • Object
show all
Defined in:
lib/lifen/patient.rb

Instance Method Summary collapse

Instance Method Details

#fhir_payloadObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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