Packages

ISO/HL7 FHIR Application Server

Current section

Files

Jump to
hl7 lib service hl7_get.ex
Raw

lib/service/hl7_get.ex

defmodule HL7.Get do
import Plug.Conn
def get(conn,_,type,id,spec) do
:io.format 'GET/4:#{type}/#{id}/#{spec}', []
send_resp(conn, 200, HL7.Service.encode([%{"type" => type, "id" => id, "spec" => spec}]))
end
end