{"_id":"@br-health-kit/cid10","name":"@br-health-kit/cid10","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@br-health-kit/cid10","version":"1.0.0","description":"CID-10 (ICD-10, Brazilian edition) as a typed, versioned, offline dataset","license":"MIT","engines":{"node":">=20"},"type":"module","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./web":{"types":"./dist/web.d.ts","import":"./dist/web.js","require":"./dist/web.cjs"},"./data/*":"./data/*"},"dependencies":{"@br-health-kit/core":"1.0.0"},"publishConfig":{"access":"public"},"keywords":["cid10","icd10","cid","saude","healthcare","brasil","datasus"],"repository":{"type":"git","url":"git+https://github.com/arielff3/br-health-kit.git","directory":"packages/cid10"},"homepage":"https://github.com/arielff3/br-health-kit/tree/main/packages/cid10#readme","bugs":{"url":"https://github.com/arielff3/br-health-kit/issues"},"scripts":{"build":"tsup","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""},"_id":"@br-health-kit/cid10@1.0.0","_integrity":"sha512-p8bU2m5uCcZOY5zNdiozNYOcLr+jXktgpgAR8imoaza4jsxdfVRaPcbjpY4xUBgFaNyaHkqca0HGFrViELJpIQ==","_resolved":"C:\\Users\\ariel\\AppData\\Local\\Temp\\895e3c227667768131c5ae13bc393cb1\\br-health-kit-cid10-1.0.0.tgz","_from":"file:br-health-kit-cid10-1.0.0.tgz","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-p8bU2m5uCcZOY5zNdiozNYOcLr+jXktgpgAR8imoaza4jsxdfVRaPcbjpY4xUBgFaNyaHkqca0HGFrViELJpIQ==","shasum":"d9f5cc50d8ef2573efd3670b12429914fb3be951","tarball":"https://registry.npmjs.org/@br-health-kit/cid10/-/cid10-1.0.0.tgz","fileCount":24,"unpackedSize":4810100,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDdG839EsSJeuT52GRi7PasUh5tobCmvy2YrqKQVjmh5QIgbyID7/Xg8Xstpea9NN7wjESbkSQYoK9wB1qiETRdlWY="}]},"_npmUser":{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"},"directories":{},"maintainers":[{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cid10_1.0.0_1787770214862_0.4133632469280921"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-26T18:50:14.732Z","1.0.0":"2026-08-26T18:50:15.038Z","modified":"2026-08-26T18:50:15.256Z"},"maintainers":[{"name":"arielff03","email":"arielfrancoferreira5@gmail.com"}],"description":"CID-10 (ICD-10, Brazilian edition) as a typed, versioned, offline dataset","homepage":"https://github.com/arielff3/br-health-kit/tree/main/packages/cid10#readme","keywords":["cid10","icd10","cid","saude","healthcare","brasil","datasus"],"repository":{"type":"git","url":"git+https://github.com/arielff3/br-health-kit.git","directory":"packages/cid10"},"bugs":{"url":"https://github.com/arielff3/br-health-kit/issues"},"license":"MIT","readme":"# @br-health-kit/cid10\n\nCID-10 (the Brazilian edition of ICD-10 published by DATASUS) as a typed,\nversioned, offline dataset.\n\n```bash\nnpm install @br-health-kit/cid10\n```\n\n```ts\nimport { cid10 } from '@br-health-kit/cid10'\n\ncid10.find('J45')          // category\ncid10.find('J45.0')        // subcategory\ncid10.search('asma')       // ranked\ncid10.isValid('J45.9')     // exists in the dataset\ncid10.childrenOf('J45')    // ['J45.0','J45.1','J45.8','J45.9']\ncid10.parentOf('J45.0')    // category J45\ncid10.chapterOf('I21')     // chapter IX\ncid10.groupOf('J45')       // J40-J47\n```\n\n## What the dataset contains\n\nVersion `2008` (the revision DATASUS publishes), 14,530 records:\n\n| Table | Records |\n| --- | --- |\n| chapters | 22 |\n| groups | 275 |\n| categories | 2,045 |\n| subcategories | 12,188 |\n\nEvery codeable entry carries `classification` (the dagger `+` / asterisk `*`\nsystem), `sexRestriction`, `allowedAsCauseOfDeath`, `references`, `excludes`,\n`chapter` and `group`.\n\n## Accepted code shapes\n\n`J45.9`, `J459`, `j45.9`, `J45,9`, and with surrounding whitespace, all resolve\nto the same code. These are the shapes that actually appear in spreadsheets,\nTISS guides and legacy databases.\n\n## Syntactic validity is not existence\n\n```ts\ncid10.isValid('J45.7')  // false - well formed, not a real CID-10 code\ncid10.isValid('J45.9')  // true\n```\n\n## Environment\n\nNode 20+ through the default entry, which reads its data from disk, including\nNext.js server components, route handlers and Remix loaders.\n\nFor a client bundle use `@br-health-kit/cid10/web`, which takes the data from\nyou instead of reading from disk. See [`docs/browser.md`](../../docs/browser.md).\n\n## Provenance\n\n```ts\ncid10.metadata\n// { dataset, version, source, sourceUrl, checksum, dataChecksum, records, ... }\n```\n\nPublic data from the Ministério da Saúde (DATASUS), redistributed without\ncontent modification. Code under MIT.\n","readmeFilename":"README.md","_rev":"1-cc09d7579683c446c1d7fba3b9ca6574"}