You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
2
-
3
1
# Medplum Transfer Center
4
2
5
3
This repo is for the Medplum transfer center demo. Currently this portal includes a dashboard for the transfer center, as well as patient intake, and physician onboarding for the portal.
@@ -20,7 +18,7 @@ The [`Location` FHIR resource](https://hl7.org/fhir/r4/location.html) is used to
20
18
21
19
Each `Location` has a `type` (eg. building, level, room) and can be "part of" another `Location` resource. We use this `partOf` field to represent that a lower-level location is located within the higher-level location that it is "part of".
22
20
23
-
For example, the room `ACUTE 212` is "part of" the `ACUTE` level, which is in turn "part of" the hospital building.
21
+
For example, the room `ACUTE 212` is "part of" the `ACUTE` level, which is in turn "part of" the hospital building.
24
22
25
23
This is how that looks hierarchically from the perspective of the FHIR model:
26
24
@@ -125,3 +123,26 @@ npm run bots:deploy
125
123
```
126
124
127
125
When creating a new bot, make sure to add it to the `BOTS` array in the `scripts/deploy-bots.ts` file.
126
+
127
+
## Running Commands Locally
128
+
129
+
### Medplum Agent
130
+
131
+
The Medplum Agent is required to receive HL7 messages. To run the agent locally, follow the instructions in the [Medplum Agent documentation](https://www.medplum.com/docs/agent).
132
+
133
+
Once the agent is running, you can send test ADT messages using the provided script to test the sample application:
134
+
135
+
```bash
136
+
npm run send-adt <MESSAGE_TYPE><ROOM_NUMBER>
137
+
```
138
+
139
+
Available message types:
140
+
-`A01` - Patient admission
141
+
-`A03` - Patient discharge
142
+
143
+
Example:
144
+
145
+
```bash
146
+
npm run send-adt A01 201 # Admit patient to room 201
147
+
npm run send-adt A03 201 # Discharge patient from room 201
0 commit comments