Skip to content

Commit

Permalink
Updating Questionnaire copy
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul1 committed May 15, 2024
1 parent 3de6058 commit a9584f4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"resourceType": "Questionnaire",
"status": "active",
"title": "Setup Remote Site",
"item": [
{
"id": "id-6",
Expand All @@ -20,14 +21,14 @@
"id": "id-2",
"linkId": "endpoint-details",
"type": "group",
"text": "Endpoint",
"text": "Inbound Channels",
"repeats": true,
"item": [
{
"id": "id-12",
"linkId": "q1",
"type": "display",
"text": "The agent endpoints describe the addresses the Agent will expose to the remote site's network"
"text": "Describe the network addresses the Medplum Agent will expose to the remote site's network to receive inbound messages"
},
{
"id": "id-3",
Expand All @@ -53,13 +54,13 @@
"id": "id-8",
"linkId": "device-group",
"type": "group",
"text": "Devices",
"text": "Outbound Devices",
"item": [
{
"id": "id-14",
"linkId": "q3",
"type": "display",
"text": "The Device resource describes the local address of the target device the Agent will connect to on the remote site's network"
"text": "Describe the target device(s) the local address of the target device the Medplum Agent will connect to on the remote network (e.g. remote EMR, RIS, LIS, PACS, etc.)"
},
{
"id": "id-9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"status": "completed",
"item": [
{
"id": "id-1",
"id": "id-14",
"linkId": "g5",
"text": "Organization",
"item": [
{
"id": "id-2",
"id": "id-15",
"linkId": "organization-name",
"text": "Name",
"answer": [
Expand All @@ -20,17 +20,17 @@
]
},
{
"id": "id-3",
"id": "id-16",
"linkId": "endpoint-details",
"text": "Endpoint",
"item": [
{
"id": "id-4",
"id": "id-17",
"linkId": "q1",
"text": "The agent endpoints describe the addresses the Agent will expose to the remote site's network"
},
{
"id": "id-5",
"id": "id-18",
"linkId": "endpoint-name",
"text": "Name",
"answer": [
Expand All @@ -40,17 +40,17 @@
]
},
{
"id": "id-6",
"id": "id-19",
"linkId": "endpoint-ip",
"text": "IP Address",
"answer": [
{
"valueString": "129.1.21.1"
"valueString": "1.1.1.1"
}
]
},
{
"id": "id-7",
"id": "id-20",
"linkId": "endpoint-port",
"text": "Port",
"answer": [
Expand All @@ -62,17 +62,17 @@
]
},
{
"id": "id-14",
"id": "id-27",
"linkId": "endpoint-details",
"text": "Endpoint",
"item": [
{
"id": "id-15",
"id": "id-28",
"linkId": "q1",
"text": "The agent endpoints describe the addresses the Agent will expose to the remote site's network"
},
{
"id": "id-16",
"id": "id-29",
"linkId": "endpoint-name",
"text": "Name",
"answer": [
Expand All @@ -82,44 +82,44 @@
]
},
{
"id": "id-17",
"id": "id-30",
"linkId": "endpoint-ip",
"text": "IP Address",
"answer": [
{
"valueString": "129.1.21.2"
"valueString": "1.1.1.2"
}
]
},
{
"id": "id-18",
"id": "id-31",
"linkId": "endpoint-port",
"text": "Port",
"text": "Port ",
"answer": [
{
"valueInteger": 8889
"valueInteger": 1234
}
]
}
]
},
{
"id": "id-8",
"id": "id-21",
"linkId": "device-group",
"text": "Devices",
"item": [
{
"id": "id-9",
"id": "id-22",
"linkId": "q3",
"text": "The Device resource describes the local address of the target device the Agent will connect to on the remote site's network"
},
{
"id": "id-10",
"id": "id-23",
"linkId": "device-details",
"text": "Details",
"item": [
{
"id": "id-11",
"id": "id-24",
"linkId": "device-name",
"text": "Name",
"answer": [
Expand All @@ -129,17 +129,17 @@
]
},
{
"id": "id-12",
"id": "id-25",
"linkId": "device-address",
"text": "IP Address",
"answer": [
{
"valueString": "10.1.1.2"
"valueString": "2.3.4.5"
}
]
},
{
"id": "id-13",
"id": "id-26",
"linkId": "device-port",
"text": "Port",
"answer": [
Expand All @@ -151,12 +151,12 @@
]
},
{
"id": "id-19",
"id": "id-32",
"linkId": "device-details",
"text": "Details",
"item": [
{
"id": "id-20",
"id": "id-33",
"linkId": "device-name",
"text": "Name",
"answer": [
Expand All @@ -166,22 +166,22 @@
]
},
{
"id": "id-21",
"id": "id-34",
"linkId": "device-address",
"text": "IP Address",
"answer": [
{
"valueString": "10.1.1.2"
"valueString": "2.3.4.5"
}
]
},
{
"id": "id-22",
"id": "id-35",
"linkId": "device-port",
"text": "Port",
"answer": [
{
"valueInteger": 5642
"valueInteger": 9876
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ describe('Setup Medplum Agent', () => {
expect(endpoints).toHaveLength(2);
const channel1 = endpoints.find((e) => e.name === 'Test Channel');
const channel2 = endpoints.find((e) => e.name === 'Production Channel');
expect(channel1?.address).toBe('mllp://129.1.21.1:1234');
expect(channel2?.address).toBe('mllp://129.1.21.2:8889');
expect(channel1?.address).toBe('mllp://1.1.1.1:1234');
expect(channel2?.address).toBe('mllp://1.1.1.2:1234');

// Check for Inbound Bots
const bot1 = await medplum.searchOne('Bot', { name: 'Foo Medical: Test Channel [Inbound]' });
Expand Down Expand Up @@ -91,9 +91,9 @@ describe('Setup Medplum Agent', () => {
const risDevice = await medplum.searchOne('Device', { identifier: 'foo-medical-foo-ris' });

expect(lisDevice).toBeDefined();
expect(lisDevice?.url).toBe('mllp://10.1.1.2:1234');
expect(lisDevice?.url).toBe('mllp://2.3.4.5:1234');
expect(risDevice).toBeDefined();
expect(risDevice?.url).toBe('mllp://10.1.1.2:5642');
expect(risDevice?.url).toBe('mllp://2.3.4.5:9876');

// Check for Outbound Bots
const outboundBot = await medplum.searchOne('Bot', { name: 'Foo Medical [Outbound]' });
Expand Down

0 comments on commit a9584f4

Please sign in to comment.