| msg | status | recv | patient |
|---|---|---|---|
| 0038 | error | 9s | Walker, Tom |
| 0033 | error | 22s | Nakamura, Yui |
| 0026 | error | 44s | Brown, Sara |
| 0021 | error | 1m | Müller, Hans |
| 0018 | error | 1m | Patel, Aisha |
| 0012 | error | 2m | Lee, Chen |
src/ ├ index.ts ├ pipelines/ │ └ hl7-to-aidbox.ts └ mappers/v2-to-fhir/ ├ segments/ │ ├ pid-patient.ts │ ├ pv1-encounter.ts │ ├ obx-observation.ts │ └ dg1-condition.ts ├ datatypes/ │ ├ xpn-humanname.ts │ └ cx-identifier.ts └ messages/ ├ adt-a01.ts └ oru-r01.ts
// PID → FHIR Patient import { PID } from "@hs/interbox"; export function convertPID( pid: PID ): Patient { const p: Patient = { resourceType: "Patient" }; p.identifier = pid.$3_idList ?.map(toIdentifier); p.name = pid.$5_name ?.map(toHumanName); if (pid.$7_dob) p.birthDate = toDate(pid.$7_dob); return p; }