-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse ADT example #4596
Parse ADT example #4596
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, overall looks good. A bunch of minor stuff, but feel free to ignore.
Some of these would make great HL7 helpers in @medplum/core
, such as PID-to-Patient
. For future consideration
//To run these tests from the command line | ||
//npm t src/adt-transfer-listener/adt-transfer-bot.test.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//To run these tests from the command line | |
//npm t src/adt-transfer-listener/adt-transfer-bot.test.ts | |
// To run these tests from the command line | |
// npm t src/adt-transfer-listener/adt-transfer-bot.test.ts |
return input.buildAck(); | ||
} | ||
|
||
//Only supported message types should be processed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//Only supported message types should be processed | |
// Only supported message types should be processed |
import { BotEvent, Hl7Message, MedplumClient } from '@medplum/core'; | ||
import { Encounter, Patient } from '@medplum/fhirtypes'; | ||
|
||
export async function handler(medplum: MedplumClient, event: BotEvent): Promise<Hl7Message> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export async function handler(medplum: MedplumClient, event: BotEvent): Promise<Hl7Message> { | |
export async function handler(medplum: MedplumClient, event: BotEvent<Hl7Message>): Promise<Hl7Message> { |
import { Encounter, Patient } from '@medplum/fhirtypes'; | ||
|
||
export async function handler(medplum: MedplumClient, event: BotEvent): Promise<Hl7Message> { | ||
const input = event.input as Hl7Message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const input = event.input as Hl7Message; | |
const input = event.input; |
Created helper task for PID to Patient for review/feedback #4599 |
Quality Gate passedIssues Measures |
Updating sample HL7 bot to include ADT-08 messages (#4591)Dependency upgrades 2024-05-27 (#4593) feat: enable unit testing subscription criteria (#4581) feat(fhircast): properly respond to `unsubscribe` request (#4590) Fixes #4576 - Windows 1252 character encoding (#4594) refactor(subscriptions): skip `bullmq` for WS subs, push all WS subs thru one Redis channel (#4585) Added fhirpath test data (#4598) Fix several fhirpath functions taking `other` Atom and implement subsetOf & supersetOf (#4601) Use nested transactions with stronger isolation (#4583) Support Database SSL config from Env (#4597) Parse ADT example (#4596) Better PATCH error messages (#4607) Respect AccessPolicy.resource.{readonlyFields,hiddenFields} in ResourceForm (#4588) Fix IAM policy resource strings (#4603) Fixes #4440 - backslash escaped commas in search values (#4609) Fixes #4147 - formatSearchQuery with _include:iterate (#4610) Fixes #4462 - configurable Bot AuditEvent.outcomeDesc max length (#4612) Fixes #4531 - choice-of-type definitions and getExtensionValue() (#4611) Allow Bot to return Binary (#4595) Remove spurious console.warn (#4616) Fixed flaky repo tests (#4618) Fixes #4617 - replace Google QR code API (#4619)
Updating sample HL7 bot to include ADT-08 messages (#4591)Dependency upgrades 2024-05-27 (#4593) feat: enable unit testing subscription criteria (#4581) feat(fhircast): properly respond to `unsubscribe` request (#4590) Fixes #4576 - Windows 1252 character encoding (#4594) refactor(subscriptions): skip `bullmq` for WS subs, push all WS subs thru one Redis channel (#4585) Added fhirpath test data (#4598) Fix several fhirpath functions taking `other` Atom and implement subsetOf & supersetOf (#4601) Use nested transactions with stronger isolation (#4583) Support Database SSL config from Env (#4597) Parse ADT example (#4596) Better PATCH error messages (#4607) Respect AccessPolicy.resource.{readonlyFields,hiddenFields} in ResourceForm (#4588) Fix IAM policy resource strings (#4603) Fixes #4440 - backslash escaped commas in search values (#4609) Fixes #4147 - formatSearchQuery with _include:iterate (#4610) Fixes #4462 - configurable Bot AuditEvent.outcomeDesc max length (#4612) Fixes #4531 - choice-of-type definitions and getExtensionValue() (#4611) Allow Bot to return Binary (#4595) Remove spurious console.warn (#4616) Fixed flaky repo tests (#4618) Fixes #4617 - replace Google QR code API (#4619)
Proposed for #4489