hello. i'm junior developer using
# dev
c
hello. i'm junior developer using medplum headlessly and I ran into some issues with configuring Agents today. I’d love to get your help understanding what’s going wrong. I'm trying to configure an Agent + Endpoint pair to receive HL7v2 MLLP messages and then forward them via HTTP to my backend (or a test webhook). -medplum api runs on docker -agent runs on windows -my backend runs on windows -endpoint is configured as hl7v2-mllp with address mllp://localhost:56000 -agent is connected to endpoint, and the problem here is targetUrl (my backend: http://localhost:3003...) which doesn't seem to work (or i do not understand it properly) when I send an HL7 message from HAPI TestPanel, the Agent receives it correctly
[HL7:test channel] [Received -- ID: 1]: MSH|^~\&|...
but immediately after that I get:
{"level":"ERROR","msg":"Invalid reference"}
and the message is never forwarded to the targetUrl. can you please clarify: what is the correct way to configure an Agent to forward HL7v2 messages over HTTP instead of sending it to bot? thanks in advance! https://cdn.discordapp.com/attachments/1113936455954346005/1438199779984281731/image.png?ex=697c2fac&is=697ade2c&hm=b00b317948526b5f9ad4a266d3058236c39e7aef412dc6382d86c1f1a7375786&
r
Good questions! You will need to create a bot for HL7 handling. Would it be possible to post this in #1094022380659155005 ?
c
yes. i'll do it tomorrow (eu time).
so i suppose it's impossible to make agent call external api without using bot?
r
Agent does require a bot
54 Views