Class: Lifen::CommunicationRequest

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

Instance Method Summary collapse

Instance Method Details

#sendObject



17
18
19
20
21
22
23
24
# File 'lib/lifen/communication_request.rb', line 17

def send
  json = application_client.post("fhir/CommunicationRequest", fhir_payload)

  self.uuid = json["id"]
  self.number_communications = Array(json["issue"]).length

  self
end