fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
17 lines (14 loc) • 452 B
text/typescript
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
import { test } from '@jest/globals';
import { v2parse } from './v2parse';
describe('v2parse', () => {
test('parses message', async () => {
const res = await v2parse('MSH|^~\\&|1|2|3|4');
const segment = (res as any).segments[0];
expect(segment.fields[0].value).toBe('MSH');
expect(segment.sendingApplication).toBe('1');
});
});