Skip to content

Commit eda5402

Browse files
authored
Merge pull request medplum#7 from vintasoftware/main
README update and Webinar Fixes: Dependency upgrades and code adjustments
2 parents 2d30ce0 + 9f78df1 commit eda5402

File tree

15 files changed

+6035
-3858
lines changed

15 files changed

+6035
-3858
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
# Medplum Transfer Center
42

53
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
2018

2119
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".
2220

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.
2422

2523
This is how that looks hierarchically from the perspective of the FHIR model:
2624

@@ -125,3 +123,26 @@ npm run bots:deploy
125123
```
126124

127125
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
148+
```

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
6+
export default tseslint.config(
7+
{
8+
ignores: ['dist', 'esbuild-script.mjs'],
9+
},
10+
js.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
plugins: {
14+
'react-hooks': reactHooks,
15+
'react-refresh': reactRefresh,
16+
},
17+
rules: {
18+
...reactHooks.configs.recommended.rules,
19+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
20+
},
21+
}
22+
);

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>SampleMed Regional Portal</title>
88
</head>
99
<body>
1010
<div id="root"></div>
1111
<script type="module" src="/src/main.tsx"></script>
1212
</body>
13-
</html>
13+
</html>

0 commit comments

Comments
 (0)