{"_id":"@claudebernard/node-fhir-mapper","_rev":"13-777e125164f1a26229ef2b4c3d9d051e","name":"@claudebernard/node-fhir-mapper","dist-tags":{"latest":"2.5.3"},"versions":{"2.1.2":{"name":"@claudebernard/node-fhir-mapper","version":"2.1.2","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.1.2","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"216533336d3b0661e5fa70ad17711341cf202c06","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.1.2.tgz","fileCount":5,"integrity":"sha512-2WkPHDkmfupq377EANOnOTJMEDewMhiy3vidd/TrQsgpJ6hS1BSvcHNeX7QtqzSFhGVs4ITbdbIZ2sxFZO/vDA==","signatures":[{"sig":"MEUCIDk1Xl7vMhXdsDTWLmeh/mVkvA27Ji+OZ9M+N80GVs3vAiEAyeqliwGkykv33PukTPbvdbK+vM1TgxrGVTZa9I8wGpA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105663},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"3f053497944c8e6d1bfeb48288755e6d98e41571","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.17.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.1.2_1786453342406_0.46058477085290384","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"@claudebernard/node-fhir-mapper","version":"2.1.3","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.1.3","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"55eb2ab426f48b2ce2f7d4936387dec3de61ba9d","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.1.3.tgz","fileCount":5,"integrity":"sha512-NRsAolou5SeOiW2TpVBX1YoPpza1yYHX55kZrygB34aYIawBFuI3YGdjb08EvAZ0eU1oik80ULac2uVCWEJmUA==","signatures":[{"sig":"MEYCIQCKxYfgPE64qfUU4dkzREtXYSgQPvNsWKWXPd/wXZvybwIhAJZLTRTde+Hu2ZuyriJAb6oIS0/DET5D+zRZL/gSv8F+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110101},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"9d584cecdb87fbc9989e0324e9f51e30f32fff3b","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.17.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.1.3_1786548034846_0.5133635897171029","host":"s3://npm-registry-packages-npm-production"}},"2.1.4":{"name":"@claudebernard/node-fhir-mapper","version":"2.1.4","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.1.4","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"e5749300a3b99d8d7bc92cf30c5332b8c62abf19","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.1.4.tgz","fileCount":5,"integrity":"sha512-DD8yPpgDqIa2rQ5LrcyJYec+hjAhpzcwuV5jE8tM/VLpMq0ftRhKvQWADi8u+R1SBpRbiLvu+LghyDEsOW4XsA==","signatures":[{"sig":"MEUCIArDb4ReJxltasVX+Ghh6nKwk6GCJrNqXtrQB4QWcdR1AiEAtdwLmKwY2ujCAc/kaiV2RADA4cpwYWxZvBBpftgo/CY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119842},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"baef0777dc3988ce6885b109945d1c3f8a0eee15","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.17.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.1.4_1786610739546_0.9936233449764287","host":"s3://npm-registry-packages-npm-production"}},"2.1.5":{"name":"@claudebernard/node-fhir-mapper","version":"2.1.5","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.1.5","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"5c0e34ee47facdfb47b29ad126a3669edf574ddd","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.1.5.tgz","fileCount":5,"integrity":"sha512-6NT/6QWUHKafh+z0JNBc5HQ5V/0BNjgsjUFKy/DetIHnOWiXt70NnwTJv1lf+kLRlBAypVpQc7or7EyEnR6OeQ==","signatures":[{"sig":"MEQCIFy7JbrMHqASqp8SCUzsHapyFmVrEnKMv0hisKdxIxoJAiByvXl84GbHnKT245sy58D4RMETd5o+WnHjdoAgnrAUfw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119842},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"e6ae9115bc66c650a5377aa0c6bfec64c5d2fbb1","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.17.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.1.5_1786970156475_0.5232315025766949","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@claudebernard/node-fhir-mapper","version":"2.2.0","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.2.0","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"30e30155d854beb844d1ae94c932dbdbd8092591","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.2.0.tgz","fileCount":5,"integrity":"sha512-QLXdEUDM4Jb33hnynE0p2p/LZVIXycgpYmiNn2AfO6es5CaUJNb6S7HpqnESwVJDwG8UUEqOb6nnLB3kVxjnnA==","signatures":[{"sig":"MEYCIQCh6hHAHRqyoSZYHuhyyX21wX6BJEeuDafUUsFM4C/YQwIhAPQr34/yKJYeeAdxiWIXbXSg69gZKHJ5T6Blt0LI5q0c","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119842},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"c2d2a04f57d256e316ca460d790fa28d67ddcd9b","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.17.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.2.0_1787832439526_0.23219240271574892","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@claudebernard/node-fhir-mapper","version":"2.3.0","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.3.0","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"d0687410f2ee6f0b2cbf393911c457e549f7b828","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.3.0.tgz","fileCount":5,"integrity":"sha512-BZfkmziA3ppz292B7MEWkyExasHjBpQXmcygK7FcTFFWAEonGIOHJguJc9ceoO4rwNpQ4xC2jTlXWjj/hYgrag==","signatures":[{"sig":"MEUCIB3rijSENTE+PZ8feT8ObLf9ZPail3VncidpHhWr2KlhAiEA9XzYmQSHADx2D4QPEgzolPM8pCwDvLP7340BP2uL+5k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"a6df8f3197703c5aac325410f8cf3d334cfd69f1","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.3.0_1788532372987_0.6409605702908163","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"@claudebernard/node-fhir-mapper","version":"2.3.1","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.3.1","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"a340732fcbfda527acc5b8e20ff1d2f61e13d10c","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.3.1.tgz","fileCount":5,"integrity":"sha512-Pl9EqpthPhWYItsBRl5o3GT5cy+bZER4n3oukGTc+hVOuMBUgZ1bAwUB1FWD7udz6s/aHXqTlCOfjgi00XgU0g==","signatures":[{"sig":"MEYCIQCtcj/6+7igU9kTf/XtOsmziMZqvyOFV1J1ife0eQyBtQIhALGjirGFXWud7fnFA+J9g1LXtsTyozmdwxKITXPjB3ap","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"2434153dbb88b5b2063c4706771cde5c4c8bd50d","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.3.1_1788954026595_0.5075896824564876","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@claudebernard/node-fhir-mapper","version":"2.4.0","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.4.0","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"77a9481a31b9000a5a72b65117ddf162551a687c","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.4.0.tgz","fileCount":5,"integrity":"sha512-ayloUl/6KTRvD+cIJmhp639qV35YYw/rrMUPjozZMtuiPZeSPosd8U9zJVDZJFkH5N1PKYLa9+WYFtVKMyDUqA==","signatures":[{"sig":"MEQCIADe/pQ1lsPP86d6bAzBV4nQJOiDZjh3ybSnqGNrGRnMAiBGSMO9U67JnYAdjSTAnSuEP15YOFVlaC5NvunC0F0EhA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"7606c6732797fc3d5b7bdd0e3f731b97b754fe5d","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.4.0_1788965964510_0.415538306912941","host":"s3://npm-registry-packages-npm-production"}},"2.4.1":{"name":"@claudebernard/node-fhir-mapper","version":"2.4.1","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.4.1","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"40a1273ff74b67c03d286367ceae109797869b2f","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.4.1.tgz","fileCount":5,"integrity":"sha512-Y4cAk3mgOohlWQhGRAn4HgXQ78hs8Ub6zwVcTgUXX80wnwv7wVaEkUwQ+rRvhR5wRx7akutpZJLdJ+y51I3r2w==","signatures":[{"sig":"MEQCIGaeggSFcautLLEYAuDzlWTw2Yy0T2TM2RqLEmcUvmWQAiBIjUPEgNueXIFQm/AFjeXCL46UjFzdeq5fTxYTeR4yJQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"5043d49e20d724a00f4cf876acab13421c806eed","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.4.1_1789042193735_0.8302871767634477","host":"s3://npm-registry-packages-npm-production"}},"2.4.2":{"name":"@claudebernard/node-fhir-mapper","version":"2.4.2","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.4.2","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"1c39cdca52db51cc3a9756bef5e433fb05d12466","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.4.2.tgz","fileCount":5,"integrity":"sha512-EwzVutWU+u5gye8QWPIfx2tRf6X1a1fCr/xObFYV3n/fd5o1nFut4CaXIxyYJ2+laFUnJDtYt74wIo8HUZ/yiw==","signatures":[{"sig":"MEUCIHJuaAe7UKW0SdDElCSI3Xi2wyVOOWXYU8YUKKlGh5AvAiEA1d+XOxXuBz0RzWbnoqgfJfc+e+9Wnt2GnsEYS1X97K0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"f87fe97d4daed479f5525369614c0d16fb2ff0fd","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.4.2_1789389637643_0.6365783597983918","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"@claudebernard/node-fhir-mapper","version":"2.5.0","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.5.0","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"50243ce8ee60ba232d87a533a1613781275336db","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.5.0.tgz","fileCount":5,"integrity":"sha512-dQZw00UISRDkX/cRn6/pVw9VS9KYBmnpBX+A45PbBwBvyXK+fhb4FQa7MX0l90D1FCCnhQGQ3DjISNSUwJCXvQ==","signatures":[{"sig":"MEUCIQD+JfJNtTVuvzaaARlbmge+6zfATEir9LddERvuPUAWKAIgFslDSdq+PPB1ASpVq2dsoFPU7PClfKYS+p4/5oaGluw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCxBA6KYg8KRBsZol3zoa/pzSNOH2XPgPqEIFOCs/UTkQIge7VAbBWcKjydVhFPZjSHoIsSDcQ+Kwv7uCfOPy22wP0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"939d327d903601345528f90b561c78e5f1be1dd6","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.5.0_1790696333639_0.028741011891892265","host":"s3://npm-registry-packages-npm-production"}},"2.5.1":{"name":"@claudebernard/node-fhir-mapper","version":"2.5.1","keywords":["claude-bernard","typescript","fhir","mappers"],"author":{"name":"Claude Bernard"},"license":"ISC","_id":"@claudebernard/node-fhir-mapper@2.5.1","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"dist":{"shasum":"319e1e6a0a83f62e14ac886a324fc500420feeaa","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.5.1.tgz","fileCount":5,"integrity":"sha512-MNRB/cGPVa8JT+Ed2zdAcmr8ytP/KJp3l0wVmbR0rV1SjvxK67c2G/FmK5A2doXCd/RPUVRRkO1rgc3Oznqs9Q==","signatures":[{"sig":"MEUCIDpiJ2G7KZQ/PeYYPPBSdxnvcfMaEhI7uw2jfbcDP6P2AiEA35XbHMoGlKqelsMX4mAfRuUbcO4+PRtyRXgnknN2kt4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDMrpprYEy4YirPmJqyLJGQQC3iS4xqztvjCnyVvgRJEwIhAOTKeeBnduvO2ENvRb4P9P7FOpP+HHEFrZ6FT7EKgsR4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128329},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"928862ce2c5dce165a8d685624d8ebbda430785f","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"tmp":"tmp/node-fhir-mapper_2.5.1_1790929292660_0.9380593608426915","host":"s3://npm-registry-packages-npm-production"}},"2.5.3":{"_id":"@claudebernard/node-fhir-mapper@2.5.3","dist":{"shasum":"1b4e7cb6abc621df0f164c1c78f2045c8d9407e8","tarball":"https://registry.npmjs.org/@claudebernard/node-fhir-mapper/-/node-fhir-mapper-2.5.3.tgz","fileCount":5,"integrity":"sha512-5f3aZeMX1mRn7SEj8p1DYuQIX0zkaZ363Z30jMnzWFxEZx3XcfvruE/u1lp1dGv5FRNMpWWx8caXRa9pVAFFMg==","signatures":[{"sig":"MEUCIQCrQB+ChtiMNzDtArPd4i2EL3G/fl/K6EHaaDQerjgkGgIgbO4MQKQv/gN5bkofb1esFc7NOcukUC/Nlhbt3oCi6F8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCDmez4h+YdM6lTMkRTatDuwdhb0PMVzrscHn1O/bV37gIgCVuXf/Jk0AvvMzK7q4/57QeoYyCuG48xkUYBf6Wbo3U="}],"unpackedSize":128329},"main":"dist/index.js","name":"@claudebernard/node-fhir-mapper","type":"module","types":"dist/index.d.ts","author":{"name":"Claude Bernard"},"gitHead":"c0965435503b9e880e0a8a1a33a7242694628293","license":"ISC","scripts":{"lint":"eslint .","test":"jest --config=jest.config.cjs","build":"rollup -c"},"version":"2.5.3","_npmUser":{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},"keywords":["claude-bernard","typescript","fhir","mappers"],"_npmVersion":"11.19.0","description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","directories":{},"maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"_nodeVersion":"24.21.0","dependencies":{"@types/fhir":"^0.0.41"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.7.0","eslint":"^9.38.0","rollup":"^4.34.4","ts-jest":"^29.1.4","typescript":"~5.9.3","@types/jest":"^29.5.12","@types/node":"^25.3.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-typescript":"^12.0.0","@typescript-eslint/parser":"8.65.0","@typescript-eslint/eslint-plugin":"8.65.0"},"peerDependencies":{"@claudebernard/types":"^0.35.0 || ^0.36.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-fhir-mapper_2.5.3_1790934217580_0.14029312158300034"}}},"time":{"created":"2026-08-11T13:02:22.270Z","modified":"2026-10-02T09:43:37.987Z","2.1.2":"2026-08-11T13:02:22.549Z","2.1.3":"2026-08-12T15:20:34.992Z","2.1.4":"2026-08-13T08:45:39.699Z","2.1.5":"2026-08-17T12:35:56.619Z","2.2.0":"2026-08-27T12:07:19.660Z","2.3.0":"2026-09-04T14:32:53.140Z","2.3.1":"2026-09-09T11:40:26.766Z","2.4.0":"2026-09-09T14:59:24.626Z","2.4.1":"2026-09-10T12:09:53.870Z","2.4.2":"2026-09-14T12:40:37.785Z","2.5.0":"2026-09-29T15:38:53.744Z","2.5.1":"2026-10-02T08:21:32.738Z","2.5.3":"2026-10-02T09:43:37.677Z"},"author":{"name":"Claude Bernard"},"license":"ISC","keywords":["claude-bernard","typescript","fhir","mappers"],"description":"A simple FHIR / BCB resource mapper to help stay interoperable while still using the Claude Bernard intelligence","maintainers":[{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"acroquelois_pro","email":"adrien.croquelois@claudebernard.fr"},{"name":"admin_claudebernard","email":"contact@claudebernard.fr"},{"name":"claudebernard_jhudelle","email":"julien.hudelle@claudebernard.fr"}],"readme":"# @claudebernard/fhir-mapper\nThis library will be composed of several bidirectional mapping entities between Claude Bernard (alias BCB) interfaces and FHIR specifications.\n\nEach mapper will contain at the very least a _fhirToBcb_ and a _bcbToFhir_ functions, will return a **MappingResponse** object and is expected to work offline as long as the codification mappers you provide don't call any APIs.\n\n```ts\ninterface MappingResponse<T = unknown> {\n    result: T | undefined;\n    errors?: MappingError[];\n}\ntype MappingError = {\n    field: string;\n    message: string;\n}\n```\n\nSome of those mappers can accept optional **CodificationFunction** parameters which are meant to provide a way for the user to be able to choose how the mapping between a fhir resource's [Coding](https://www.hl7.org/fhir/datatypes.html#Coding) field and the corresponding Claude Bernard class codification property is done.\n\nOf course, if the value of the respective fields is not provided or if they use the Claude Bernard codification already, those parameters should be omitted.\n\n**CodificationFunction** type :\n\n```ts\ntype CodificationFunction = ((coding: Coding) => SimpleCodification[] | Promise<SimpleCodification[]>) | undefined;\n\ntype SimpleCodification = {\n    code: string;\n    label: string;\n};\n```\nThe **CodificationFunction** type expects a fhir r5 **Coding** resource as input and must return an array of **SimpleCodification** objects (or a Promise resolving to such an array). This allows you to use either synchronous or asynchronous logic (e.g., API calls) in your codification mappers. If your codification will map to a single value, return a single-element array. If no mapping is found, return an empty array.\n\n**Note:** All mapping functions that accept a `CodificationFunction` (such as `fhirToBcb`, `fhirToCb` etc.) are now asynchronous and must be called with `await` or handled as Promises, even if your mappers are synchronous.\n\n## Dependencies\nThe library uses the _@types/fhir_ lib to gain access to fhir r5 official objects and methods.\n\n## Peer Dependencies\nThe library uses the @claudebernard/types lib for common object structures used by other Claude Bernard tools and apps.\n\n## Installation\n\n```sh\nnpm install --save @claudebernard/fhir-mapper\n```\n\n## Mappers list\n\nBelow the list of all mappers currently comprised in this library :\n- A [**Dosage**](https://www.hl7.org/fhir/dosage.html#Dosage) mapper exported as _dosageMapper_.\n- A [**Patient**](https://www.hl7.org/fhir/patient.html#Patient) mapper exported as _patientMapper_.\n- A [**Medication**](https://www.hl7.org/fhir/medication.html#Medication) mapper exported as _medicationMapper_.\n- A [**MedicationRequest**](https://www.hl7.org/fhir/medicationrequest.html#MedicationRequest) mapper exported as _medicationRequestMapper_.\n- A [**MedicationStatement**](https://www.hl7.org/fhir/medicationstatement.html#MedicationStatement) mapper exported as _medicationStatementMapper_ (read-only, FHIR → BCB direction only).\n\n## Mappers details\n\n### Dosage mapper : functions\n\n#### - fhirToBcb\n\n\n```ts\nasync function fhirToBcb(\n    dosageInstructions: Dosage[],\n    indicationMapper?: CodificationFunction,\n    routeMapper?: CodificationFunction,\n    intakeMapper?: CodificationFunction\n): Promise<MappingResponse<BCBPosologieStructuree2>[]> {}\n```\n\nThe function takes 4 parameters : \n- 1 mandatory parameter 'dosageInstructions' which will be the fhir r5 [Dosage](https://www.hl7.org/fhir/dosage.html#Dosage) resources that need to be mapped.\n- 3 optional parameters of type **CodificationFunction**.\n\nThose optional parameters are meant to be used to map fhir (asNeededFor, route, doseAndRate) fields to (codeIndication, codeVoie, codeUnitePrise) **BCBPosologieStructuree2** class properties.\n\n##### Usage\n\n```ts\nimport { dosageMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst fhirDosages = [];\n\n// synchronous codification mapper\nconst routeMapper = (coding : Coding) => {\n    // some logic implemented by yourself ...\n    return {\n        code : routeCode,\n        label : routeLabel\n    }\n}\n\n// asynchronous codification mapper\nconst indicationMapper = async (coding: Coding) => {\n    // await someApiCall(coding)\n    return {\n        code: routeCode,\n        label: routeLabel\n    }\n}\n\n// ...\n\nconst bcbDosages = await dosageMapper.fhirToBcb(fhirDosages, indicationMapper, routeMapper, undefined);\n\n// ...\n```\n\n#### - bcbToFhir\n\n```ts\nfunction bcbToFhir(bcbDosages: BCBPosologieStructuree2[]): MappingResponse<Dosage>[] {} \n```\n\nThis function takes only one parameter, an array of **BCBPosologieStructuree2** objects and returns a **MappingResponse** containing the corresponding fhir **Dosage** resources.\n\nIt will for now by default keep the Claude Bernard codification for the **Coding** fields in the output fhir **Dosage** resources.\n\n##### Usage\n\n```ts\nimport { dosageMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst bcbDosages = [];\n\n// ...\n\nconst fhirDosages = dosageMapper.bcbToFhir(bcbDosages);\n\n// ...\n```\n\n#### - fhirToCb\n\n```ts\nasync function fhirToCb(dosageInstructions: Dosage[]): Promise<MappingResponse<CBPosologyBean>[]> {}\n```\n\nConverts FHIR Dosage instructions to CB (Claude Bernard) Posology Bean format. This function uses the existing fhirToBcb conversion and then transforms the result to CB format.\n\n##### Usage\n\n```ts\nimport { dosageMapper } from '@claudebernard/fhir-mapper';\n\nconst fhirDosages = /* array of FHIR Dosage instructions */;\nconst cbResults = await dosageMapper.fhirToCb(fhirDosages);\n\ncbResults.forEach(response => {\n    if (response.result) {\n        console.log(response.result.posologyLabel);\n    }\n});\n```\n\n#### - cbToFhir\n\n```ts\nfunction cbToFhir(cbPosologies: CBPosologyBean[]): MappingResponse<Dosage>[] {}\n```\n\nConverts CB Posology Bean format to FHIR Dosage instructions. This function transforms CB format to BCB format and then uses the existing bcbToFhir conversion.\n\n##### Usage\n\n```ts\nimport { dosageMapper } from '@claudebernard/fhir-mapper';\n\nconst cbPosologies = /* array of CBPosologyBean */;\nconst fhirResults = dosageMapper.cbToFhir(cbPosologies);\n\nfhirResults.forEach(response => {\n    if (response.result) {\n        console.log(response.result.text);\n    }\n});\n```\n\n#### Dosage mapper : current limitations \nEven though the mapper works and allows us to transform Dosage resources in Claude Bernard resources, there are some caveats : - some fields are currently unmapped due to a lack of overlap between the two structures.\n- some fields are only partially mapped due to the fact that on one side (fhir) they are arrays and on the other (claude bernard), they are unitary values.\n\n## Claude Bernard codifications\nBelow is listed the different Claude Bernard coding systems or valuesets that will be used internally by the mappers.\n- https://platform.claudebernard.fr/fhir/CodeSystem/dosage-routes\n- https://platform.claudebernard.fr/fhir/CodeSystem/dosage-intake-units\n- https://platform.claudebernard.fr/fhir/CodeSystem/amm-pathologies\n\n### Patient mapper : FHIR representation\n\nThe patient mapping uses the same FHIR representation as the Java library\n[`mvn-fhir-mapper`](../mvn-fhir-mapper/README.md), so that a bundle produced by one can be read\nback by the other.\n\n| BCB / CB field | FHIR resource | Code |\n| --- | --- | --- |\n| `age` (months), `sexe` / `gender` | `Patient` (`birthDate`, `gender`) | — |\n| `poids` / `weight` | `Observation` | LOINC `29463-7` |\n| `taille` / `height` | `Observation` | LOINC `8302-2` |\n| `grossesse` / `pregnancy` | `Observation` | LOINC `82810-3` |\n| `weeksOfPregnancy` | `Observation.valueQuantity`, or gestational age as a fallback | LOINC `82810-3`, `18185-9` |\n| `allaitement` / `breastfeeding` | `Observation` | LOINC `63895-7` |\n| `clairanceCreatinine` / `creatinineClearance` | `Observation` | any code of the accepted clearance list |\n| `gfr` | `Observation` | any code of the accepted GFR lists |\n| `creatininemieMol` / `molCreatinine` | `Observation` | LOINC `14682-9` |\n| `creatininemieMg` / `mglCreatinine` | `Observation` | LOINC `2160-0` |\n| `insuffisanceHepatique` / `hepaticStage` | Child-Pugh `Observation` | LOINC `98152-2` + SNOMED class |\n| `lstPathologiesAMM` / `ammPathologies` | `Condition` | `.../CodeSystem/amm-pathologies` |\n| `lstPathologiesCIM10` | `Condition` | `http://hl7.org/fhir/sid/icd-10` |\n| `lstIdComposantAllergie` / `allergies` | `AllergyIntolerance` | `.../CodeSystem/products-ingredients` |\n\n#### Codifications and mappers\n\nPathologies and allergies already coded in a Claude Bernard code system are read as is, their\n`display` being used as the label : `amm-pathologies` and ICD-10 `Condition` resources, and\n`products-ingredients` `AllergyIntolerance` resources. The optional `allergiesMapper` and\n`snomedPathologiesMapper` are only needed for codings expressed in another system, SNOMED CT\ntypically ; an error is reported when such a coding is found and the matching mapper is missing.\n\nThe wanted coding is looked up by system, not by position, so a `Condition` or an\n`AllergyIntolerance` may carry several codings without the mapping picking the wrong one.\n\n#### Hepatic insufficiency\n\nThe Child-Pugh `Observation` carries the numeric score in `valueQuantity` and the class as a\nSNOMED CT coding in a `component` (`710065009` / `710066005` / `710067001` for stages A / B / C).\nWhen reading, the component is inspected first, then a direct `valueCodeableConcept`, then the\nscore (`< 7` → A, `7-9` → B, `>= 10` → C).\n\n> **Breaking change.** Up to version 2.1.1 the hepatic insufficiency was written as an ICD-10\n> `Condition` (`K72.90` / `K72.91` / `K72.92`). It is now written as the Child-Pugh `Observation`\n> described above. Reading still accepts the ICD-10 `Condition` as a fallback, so bundles produced\n> by earlier versions remain readable, but consumers reading the output of `bcbToFhir` / `cbToFhir`\n> must be updated.\n\n#### Renal function\n\nCreatinine clearance and GFR are recognised through the same extended LOINC code lists as\n`mvn-fhir-mapper`. An absolute GFR observation is used as is; otherwise a GFR normalized to\n1.73 m² is converted to an absolute value using the body surface area (Du Bois formula), which\nrequires both weight and height to be present in the bundle.\n\n### Patient mapper : functions\n\n#### - fhirToBcb\n\n```ts\nasync function fhirToBcb(\n  fhirPatient: BundleEntry[],\n  allergiesMapper?: CodificationFunction,\n  snomedPathologiesMapper?: CodificationFunction,\n): Promise<MappingResponse<BCBPatient>> {}\n```\nThe function takes 3 parameters : \n- 1 mandatory parameter 'fhirPatient' which will be an array of r5 [BundleEntry](https://www.hl7.org/fhir/bundle.html) resources that need to be mapped.\n- 2 optional parameters of type **CodificationFunction**.\n\nThose optional parameters are meant to be used to map fhir (Condition.code.coding, AllergyIntolerance.code.coding) fields to (lstPathologiesAMM, lstIdComposantAllergie) **BCBPatient** class properties.\n\n##### Usage\n\n```ts\nimport { patientMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst fhirPatient = [];\nconst allergiesMapper = (coding : Coding) => {\n    // some logic implemented by yourself ...\n    return [\n        {\n            code : allergyCode,\n            label : allergyLabel\n        }\n    ];\n}\n\nconst snomedPathologiesMapper = async (coding : Coding) => {\n    // await someApiCall(coding)\n    return [\n        {\n            code : pathologyCode,\n            label : pathologyLabel\n        }\n    ];\n}\n\n// ...\n\nconst bcbPatient = await patientMapper.fhirToBcb(fhirPatient, allergiesMapper, snomedPathologiesMapper);\n\n// ...\n```\n\n#### - bcbToFhir\n\n```ts\nfunction bcbToFhir(\n  bcbPatient: BCBPatient,\n): MappingResponse<BundleEntry[]> {}\n```\nThe function takes 1 parameter of type BCBPatient and returns a **MappingResponse** containing the an array of the corresponding fhir **BundleEntry** resources.\n\n##### Usage\n\n```ts\nimport { patientMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst bcbPatient = [];\n\n// ...\n\nconst fhirPatient = patientMapper.bcbToFhir(bcbPatient);\n\n// ...\n```\n\n#### - fhirTocb\n\n```ts\nasync function fhirTocb(\n  fhirPatient: BundleEntry[],\n  allergiesMapper?: CodificationFunction,\n  snomedPathologiesMapper?: CodificationFunction,\n): Promise<MappingResponse<BCBPatient>> {}\n```\nThe function takes 3 parameters : \n- 1 mandatory parameter 'fhirPatient' which will be an array of r5 [BundleEntry](https://www.hl7.org/fhir/bundle.html) resources that need to be mapped.\n- 2 optional parameters of type **CodificationFunction**.\n\nThose optional parameters are meant to be used to map fhir (Condition.code.coding, AllergyIntolerance.code.coding) fields to (lstPathologiesAMM, lstIdComposantAllergie) **CBPatient** class properties.\n\n##### Usage\n\n```ts\nimport { patientMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst fhirPatient = [];\nconst allergiesMapper = (coding : Coding) => {\n    // some api call or logic implemented by yourself ...\n    return {\n        code : allergyCode,\n        label : allergyLabel\n    }\n}\n\nconst snomedPathologiesMapper = (coding : Coding) => {\n    // some api call or logic implemented by yourself ...\n    return [\n        {\n            code : pathologyCode,\n            label : pathologyLabel\n        }\n    ];\n}\n\n// ...\n\nconst cbPatient = await patientMapper.fhirToCb(fhirPatient, allergiesMapper, snomedPathologiesMapper);\n\n// ...\n```\n\n#### - cbToFhir\n\n```ts\nfunction cbToFhir(\n  cbPatient: CBPatient,\n): MappingResponse<BundleEntry[]> {}\n```\nThe function takes 1 parameter of type BCBPatient and returns a **MappingResponse** containing the an array of the corresponding fhir **BundleEntry** resources.\n\n##### Usage\n\n```ts\nimport { patientMapper } from '@claudebernard/fhir-mapper';\n// other imports ... \n\nconst cbPatient = [];\n\n// ...\n\nconst fhirPatient = patientMapper.cbToFhir(cbPatient);\n\n// ...\n```\n\n### Medication mapper : functions\n\nThe medication mapper provides utilities for creating and extracting medication codes from FHIR Bundle resources. It supports BCB codes, CIP13 codes, and CIS codes.\n\n#### - createMedicationsFromBcbCodes\n\n```ts\nfunction createMedicationsFromBcbCodes(codes: string[]): MappingResponse<Bundle> {}\n```\n\nCreates a FHIR Bundle containing Medication resources from BCB codes. Each Medication is paired with a MedicationRequest that references it. Those MedicationRequest resources are blank : they carry no `dosageInstruction`, only the mandatory `status`, `intent`, `medication` and `subject` fields.\n\nBoth resources get a UUID v4 as `id`, so their ids differ from one call to the next. Only the Bundle `id` stays deterministic, derived from the codes it contains. Each Bundle entry carries a `fullUrl` built as `<ResourceType>/<id>` :\n\n```json\n{\n  \"fullUrl\": \"Medication/d813a438-a3ea-4608-ba50-d19a69e59569\",\n  \"resource\": {\n    \"resourceType\": \"Medication\",\n    \"id\": \"d813a438-a3ea-4608-ba50-d19a69e59569\",\n    \"code\": { \"coding\": [{ \"system\": \"https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code\", \"code\": \"BCB001\" }] }\n  }\n}\n```\n\n##### Usage\n\n```ts\nimport { medicationMapper } from '@claudebernard/fhir-mapper';\n\nconst bcbCodes = ['BCB001', 'BCB002', 'BCB003'];\nconst response = medicationMapper.createMedicationsFromBcbCodes(bcbCodes);\n\nif (response.result) {\n    // Bundle with the Medication resources first, then their MedicationRequest resources\n    console.log(response.result.entry?.length); // 6 : 3 medications + 3 medication requests\n}\n```\n\n#### - createMedicationsFromCIP13Codes / createMedicationsFromCISCodes\n\n```ts\nfunction createMedicationsFromCIP13Codes(codes: string[]): MappingResponse<Bundle> {}\nfunction createMedicationsFromCISCodes(codes: string[]): MappingResponse<Bundle> {}\n```\n\nSimilar functions for creating medications from CIP13 and CIS codes respectively. They also add a blank MedicationRequest per Medication.\n\n#### - createMedicationsFromProducts / createMedicationFromProduct\n\n```ts\nfunction createMedicationsFromProducts(products: Product[]): MappingResponse<Bundle> {}\nfunction createMedicationFromProduct(product: Product): Medication | undefined {}\n```\n\nSame as `createMedicationsFromBcbCodes`, but starting from the `Product` objects returned by the BCB APIs (`@claudebernard/types`), so the medication labels are kept along with the codes. Each Medication carries one Coding per code the Product holds — `code` for the bcb-code, `properties.codes.cip13` (or `code13`) for the cip13-code, `properties.codes.cis` for the cis-code — each with the product label as `display`, and the same label as the CodeableConcept `text` :\n\n```json\n{\n  \"resourceType\": \"Medication\",\n  \"id\": \"95175bcb-f3cf-4eb8-83be-7956554cd0b8\",\n  \"code\": {\n    \"coding\": [\n      { \"system\": \"https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code\", \"code\": \"76461\", \"display\": \"JANUMET 50 mg/1000 mg, comprimé pelliculé\" },\n      { \"system\": \"http://terminology.hl7.org/CodeSystem/cip13-code\", \"code\": \"3400957312114\", \"display\": \"JANUMET 50 mg/1000 mg, comprimé pelliculé\" },\n      { \"system\": \"http://terminology.hl7.org/CodeSystem/cis-code\", \"code\": \"66010671\", \"display\": \"JANUMET 50 mg/1000 mg, comprimé pelliculé\" }\n    ],\n    \"text\": \"JANUMET 50 mg/1000 mg, comprimé pelliculé\"\n  }\n}\n```\n\nThe label is read from `labels.label`, falling back on `labels.longLabel` then `labels.shortLabel`, depending on which fields the API in use fills ; the HTML flavoured fields (`labelHtml` & co) are never used. Unlike the other creation functions, the Bundle `id` is a UUID v4 as well, so it differs from one call to the next. A Product carrying none of the three codes is skipped and reported in the `errors` field of the response ; `createMedicationFromProduct` returns `undefined` for it.\n\n##### Usage\n\n```ts\nimport { medicationMapper } from '@claudebernard/fhir-mapper';\n\nconst response = medicationMapper.createMedicationsFromProducts(products);\n\nif (response.result) {\n    // Bundle with the Medication resources first, then their MedicationRequest resources\n    console.log(response.result.entry?.length);\n}\n```\n\n#### - extractBcbCodesFromMedications / extractCIP13CodesFromMedications / extractCISCodesFromMedications\n\n```ts\nfunction extractBcbCodesFromMedications(bundle: Bundle): string[] {}\nfunction extractCIP13CodesFromMedications(bundle: Bundle): string[] {}\nfunction extractCISCodesFromMedications(bundle: Bundle): string[] {}\n```\n\nExtract specific types of medication codes from a FHIR Bundle containing Medication resources.\n\n##### Usage\n\n```ts\nimport { medicationMapper } from '@claudebernard/fhir-mapper';\n\nconst bundle = /* your FHIR Bundle */;\nconst bcbCodes = medicationMapper.extractBcbCodesFromMedications(bundle);\nconst cip13Codes = medicationMapper.extractCIP13CodesFromMedications(bundle);\n```\n\n### MedicationRequest mapper : functions\n\nThe medication request mapper handles conversion of dosage instructions between FHIR MedicationRequest resources and BCB format, focusing purely on dosage conversion.\n\n#### - fhirToBcb\n\n```ts\nasync function fhirToBcb(bundle: Bundle): Promise<MappingResponse<BCBPosologieStructuree2>[]> {}\n```\n\nExtracts and converts dosage instructions from MedicationRequest resources in a Bundle to BCB format using the dosage-mapper.\n\n##### Usage\n\n```ts\nimport { medicationRequestMapper } from '@claudebernard/fhir-mapper';\n\nconst bundle = /* FHIR Bundle with MedicationRequest resources */;\nconst bcbDosages = await medicationRequestMapper.fhirToBcb(bundle);\n\n// Array of BCB dosage mapping responses\nbcbDosages.forEach(response => {\n    if (response.result) {\n        console.log(response.result.libellePosologie);\n    }\n});\n```\n\n#### - bcbToFhir\n\n```ts\nfunction bcbToFhir(bcbDosages: BCBPosologieStructuree2[]): MappingResponse<Bundle> {}\n```\n\nCreates a FHIR Bundle with a MedicationRequest resource containing the converted dosage instructions from BCB format.\n\n##### Usage\n\n```ts\nimport { medicationRequestMapper } from '@claudebernard/fhir-mapper';\n\nconst bcbDosages = /* array of BCBPosologieStructuree2 */;\nconst response = medicationRequestMapper.bcbToFhir(bcbDosages);\n\nif (response.result) {\n    // Bundle with MedicationRequest containing converted dosage instructions\n    const medReq = response.result.entry?.[0]?.resource as MedicationRequest;\n    console.log(medReq.dosageInstruction?.length);\n}\n```\n\n### MedicationStatement mapper : functions\n\nThe medication statement mapper handles conversion of dosage from FHIR MedicationStatement resources to BCB format, focusing purely on dosage conversion.\n\n**Read-only.** Unlike the MedicationRequest mapper, this mapper only supports the FHIR → BCB\nreading direction. `MedicationStatement` represents patient-reported automédication (medication\nthe patient reports taking on their own initiative, as opposed to a prescriber's order) : this\nlibrary only ever receives such data from an incoming FHIR Bundle, it never constructs a\n`MedicationStatement` as output. There is therefore no `bcbToFhir`, `fhirToCb`, or `cbToFhir`\nfunction on this mapper.\n\nAlso note the field name difference from MedicationRequest : FHIR R5 keeps the dosage instructions\nof a MedicationStatement in its **`dosage`** field, not `dosageInstruction`.\n\n#### - fhirToBcb\n\n```ts\nasync function fhirToBcb(\n    bundle: Bundle,\n    indicationMapper?: CodificationFunction,\n    routeMapper?: CodificationFunction,\n    intakeMapper?: CodificationFunction\n): Promise<MappingResponse<BCBPosologieStructuree2>[]> {}\n```\n\nExtracts and converts the `dosage` field of MedicationStatement resources in a Bundle to BCB format using the dosage-mapper. The 3 optional **CodificationFunction** parameters are forwarded unchanged to the dosage-mapper, exactly as they are for `medicationRequestMapper.fhirToBcb`.\n\n##### Usage\n\n```ts\nimport { medicationStatementMapper } from '@claudebernard/fhir-mapper';\n\nconst bundle = /* FHIR Bundle with MedicationStatement resources */;\nconst bcbDosages = await medicationStatementMapper.fhirToBcb(bundle);\n\n// Array of BCB dosage mapping responses\nbcbDosages.forEach(response => {\n    if (response.result) {\n        console.log(response.result.libellePosologie);\n    }\n});\n```\n\n#### - extractMedicationCodes / extractSubjectReferences\n\n```ts\nfunction extractMedicationCodes(bundle: Bundle): string[] {}\nfunction extractSubjectReferences(bundle: Bundle): string[] {}\n```\n\nExtract, respectively, the medication codes and the subject references carried by the MedicationStatement resources of a Bundle.\n\n##### Usage\n\n```ts\nimport { medicationStatementMapper } from '@claudebernard/fhir-mapper';\n\nconst bundle = /* FHIR Bundle with MedicationStatement resources */;\nconst medicationCodes = medicationStatementMapper.extractMedicationCodes(bundle);\nconst subjectReferences = medicationStatementMapper.extractSubjectReferences(bundle);\n```\n\n## Browser support\n- [x] Chrome\n- [x] Firefox\n- [x] Safari\n- [x] Microsoft Edge\n\n## Versioning\n\nThis package carries the version of the `fhir-monorepo` repository — one version, tag and changelog\nfor the whole repo. Published versions are therefore sparse: a release only reaches npm when this\npackage actually changed. Releases up to `2.2.4` were cut from the former standalone\n`npmjs-bcb-fhir-mapper` repository; their history is kept in [CHANGELOG.md](CHANGELOG.md), later\nentries live in the repository root changelog.\n\n## Development\n\n```sh\nnpm ci\nnpm test     # jest\nnpm run lint # eslint\nnpm run build\n```\n\n## License\n\nCopyright of Cegedim. See [LICENSE](LICENSE.md) for details.\n\n","readmeFilename":"README.md"}