fume-fhir-converter
Version:
FHIR-Utilized Mapping Engine - Community
36 lines • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
/**
* © Copyright Outburn Ltd. 2022-2024 All Rights Reserved
* Project name: FUME-COMMUNITY
*/
const globals_1 = require("@jest/globals");
const supertest_1 = tslib_1.__importDefault(require("supertest"));
const mockInput_1 = require("../utils/mockInput");
(0, globals_1.test)('Case 14 - Assignment into slices with max cardinality of 1 fails to bring fixed values', async () => {
const mapping = `
InstanceOf: il-core-patient
* identifier[il-id].value = '123'
`;
const requestBody = {
input: mockInput_1.mockInput,
fume: mapping
};
const res = await (0, supertest_1.default)(globalThis.app).post('/').send(requestBody);
expect(res.body).toStrictEqual({
resourceType: 'Patient',
meta: {
profile: [
'http://fhir.health.gov.il/StructureDefinition/il-core-patient'
]
},
identifier: [
{
system: 'http://fhir.health.gov.il/identifier/il-national-id',
value: '123'
}
]
});
});
//# sourceMappingURL=case14.test.js.map