UNPKG

fume-fhir-converter

Version:

FHIR-Utilized Mapping Engine - Community

17 lines 617 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * © Copyright Outburn Ltd. 2022-2024 All Rights Reserved * Project name: FUME-COMMUNITY */ const globals_1 = require("@jest/globals"); const v2parse_1 = require("./v2parse"); describe('v2parse', () => { (0, globals_1.test)('parses message', async () => { const res = await (0, v2parse_1.v2parse)('MSH|^~\\&|1|2|3|4'); const segment = res.segments[0]; expect(segment.fields[0].value).toBe('MSH'); expect(segment.sendingApplication).toBe('1'); }); }); //# sourceMappingURL=v2parse.test.js.map