Skip to content

Commit

Permalink
Added new MIME types for Bot $execute endpoint (medplum#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul1 authored Nov 16, 2022
1 parent 6d2100d commit 1e2aecb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/docs/docs/tutorials/bots/bot-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,17 @@ You can find the `id` of your Bot by clicking on the **Details** tab of the Bot

#### `CONTENT_TYPE`

| Content-Type | typeof `event.input` | Description |
| -------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `application/fhir+json` | [`Resource`](../../api/fhir/resources) | `<INPUT_DATA>` is parsed as a [FHIR Resource](../../fhir-basics#resources) encoded as a JSON string |
| `text/plain` | `string` | `<INPUT_DATA>` is parsed as plaintext string |
| `x-application/hl7-v2+er7` | [`HL7Message`](../../sdk/classes/Hl7Message) | `<INPUT_DATA>` is a string that should be parsed as a pipe-delimited HL7v2 message. HL7v2 is a common text-based message protocol used in legacy healthcare systems |
| Content-Type | typeof `event.input` | Description |
| ------------------------------------ | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `text/plain` | `string` | `<INPUT_DATA>` is parsed as plaintext string |
| `application/json` | `Record<string, any>` | `<INPUT_DATA>` is parsed as JSON-encoded object |
| `application/x-www-form-urlencoded ` | `Record<string, string>` | `<INPUT_DATA>` is parsed as URL-encoded string, resulting in a key/value map |
| `application/fhir+json` | [`Resource`](../../api/fhir/resources) | `<INPUT_DATA>` is parsed as a [FHIR Resource](../../fhir-basics#resources) encoded as JSON |
| `x-application/hl7-v2+er7` | [`HL7Message`](../../sdk/classes/Hl7Message) | `<INPUT_DATA>` is a string that should be parsed as a pipe-delimited HL7v2 message. HL7v2 is a common text-based message protocol used in legacy healthcare systems |

#### `ACCESS_TOKEN`

This is the `access_token` you receive after completing the OAuth authentication flow. See [this tutorial](../api-basics/create-fhir-data#authenticating-using-oauth-client-credentials-flow) for more information.
This is the `access_token` you receive after completing the OAuth authentication flow. See [this tutorial](/docs/tutorials/security/client-credentials#connecting-to-the-service) for more information.

#### `INPUT_DATA`

Expand Down

0 comments on commit 1e2aecb

Please sign in to comment.