{"_id":"@automate-medical/gli2012","_rev":"2-47a6319bc6d344eff1ad68004da1681d","name":"@automate-medical/gli2012","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@automate-medical/gli2012","version":"1.0.0","description":"Continuous prediction equations for spirometric indices","module":"dist/index.js","scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Automate-Medical/gli2012.git"},"keywords":["medical","lungs","pulmonary","spirometry"],"author":{"name":"Automate Medical Inc."},"license":"MIT","bugs":{"url":"https://github.com/Automate-Medical/gli2012/issues"},"homepage":"https://github.com/Automate-Medical/gli2012#readme","devDependencies":{"typescript":"^4.1.2"},"type":"module","types":"dist/index.d.ts","main":"index.js","gitHead":"74184ca5ed4284a42e893c29429ae7a1c0eb8801","_id":"@automate-medical/gli2012@1.0.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-K16BS/ZbJaHVyHfZBG3k+qZeXt+JWGx2fi1p84dipraVWoXYT7fHm7d+y/YRXpa8iQtFOZmTavCXd25IKazXuQ==","shasum":"b44b2bdb57c1f81c94e733c148df66f167be68f6","tarball":"https://registry.npmjs.org/@automate-medical/gli2012/-/gli2012-1.0.0.tgz","fileCount":19,"unpackedSize":189783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxQ94CRA9TVsSAnZWagAAWBIP/1f3b8kiw2vyt+uW6W7R\nSHJXfWdgM/evwVvjytFMRFbaf+V8JGVTOH4x3vZsiQe1xtvNkIl6KdA8mjZA\nIg5opip8n/c5P1D9mUT3xs224yzdFifn+R6eWbKtVLLDq8y95MjNUXx4YmhK\nP8YzqVUzqr2CcyJV5/m+wvHv17culnV/SP6umMOQ/qwwiQPvtK5YqxF7qTdG\nJccYYIbDqm29dvyeJAqeyq4G8GKhVewHiMn5iaKxAkhTqUMGgE3lF3/gBdgW\n0czkxqe0eCvrpErO+nfCDAIsy2f9bb1Azun6Arby5R1XuO/PfVComdlhUdhp\n7wSXsfG9hlif7KqbpTiPMyogdvpqF+v3EphkZpCZeaOJDNZDIxvkaihyBw6a\nwU9PV61TttBZpdwxOMUJCBXELN0Z5m5Gswi3KoXoxOLCAJWByQTjQOvQ3vk7\nbzQKm6XJh3Zx4OiPB3Zw3LPbX41LJyftSOSQzxfCXyQ5Vak7ItpE6g11/LDY\n3ISwePmwpQ9HHaoAHYdJMLAT9nl7WUH4pz1sysS+yKV2IcGKdryJYKwkrQw/\nNc2fmffXdXNiDm3/UD+UkLTzmcYuKSoYikzmghT/EgzNYIpIzPpmW9y2w436\nZHil/TXbmm2OFj+oLsLORCJcTvX02bY5VY24Ziv7gNr42aL8d0T6J7yWeBZY\nD+Jd\r\n=0+vA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQ/E7YX2iWg+Q6618R7c5FO4fUI+j9eHrnnQoLNCeDMAiEA9OcWe4pMkVHfoRsOTdG8nWSy24ViFK4PABvcqjyzBw8="}]},"_npmUser":{"name":"jdjkelly","email":"jdjkelly@gmail.com"},"directories":{},"maintainers":[{"name":"jdjkelly","email":"jdjkelly@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gli2012_1.0.0_1606750072566_0.1936724849015754"},"_hasShrinkwrap":false},"1.1.0":{"name":"@automate-medical/gli2012","version":"1.1.0","description":"Continuous prediction equations for spirometric indices","module":"dist/index.js","scripts":{"build":"tsc -p tsconfig.json","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Automate-Medical/gli2012.git"},"keywords":["medical","lungs","pulmonary","spirometry"],"author":{"name":"Automate Medical Inc."},"license":"MIT","bugs":{"url":"https://github.com/Automate-Medical/gli2012/issues"},"homepage":"https://github.com/Automate-Medical/gli2012#readme","devDependencies":{"typescript":"^4.1.2"},"type":"module","types":"dist/index.d.ts","main":"index.js","gitHead":"924916a0a54c95798387e0e1eff44203c0afc792","_id":"@automate-medical/gli2012@1.1.0","_nodeVersion":"14.12.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Xgc4hqaDfCbYwTY+xqtO4IvVcMp+5MP0iQyPAqyOcoVedeGLDYuJV+xwC7HP7ix61SDVnmN94BS18JMyurboGQ==","shasum":"94fbcce13dac1a4ba7ba67c040917c7b0423fb2c","tarball":"https://registry.npmjs.org/@automate-medical/gli2012/-/gli2012-1.1.0.tgz","fileCount":19,"unpackedSize":191972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxRM5CRA9TVsSAnZWagAAxgwQAJw+aBZ7o5l0bOoILr+X\nywts6ibi7S2KysJAsGHjM3/UiHiBrAMvVhHksj6pPrf9JEtwrABhAXZLi/zS\ncbGZEwdRF5EKTVAqdXofFXs7+TAhlY9lqQFhdcZ2li5XfG0cRE0KpM4THeMc\nQKz8EIfs9sY1fsCTewdxV3MrqSqva7QGxnoGmDr9UfVBrWEjwoBe7xG4adJ8\naybmZbdJXieAtOwc2Sj/XqBlUkypx4S77REawie5SEN4NwfCC0HjDR3uBbJO\naPIoPNEywoTbmDWhC8JUL5458zHtc5Vo4kgvoEQHgIOIok8LecT6cWiRCnPd\nlhv9wDI6WAK0S9ogEzglup66jh6fPpAtyrzUMCxTtoXxwh5DviulUQhnvl/c\n3BmYTMLBLqPzqmodhKw+tRBJFLZ2QszhZCLNNMdyPSHtoENcW7bFOfntmiAx\nFKG1zFQSjx+6e89hAu8OBj9PKJVqvFbQNhWbDkYz6JIvi5WoCRl7JQ1aeg6a\nu3SGJ3oQTsHiiB8WLqPtvOKRmnlF+jR7TBSG0TwV4zx9Bpidn6XoO/FLizSY\na0wm0Y+pkWeQUvRdgQMra7Av2F79pRNBw2rpnzu8oWlC6HOGv8wCeX0rirkh\n+37I/+NPi0hvNpmPQPWc0IwkpHMVoLoHqn22gvn3yu4Y0L7s8dkfEZ7X3DBR\ncB6U\r\n=nvU5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETqoe7Wgvv2Z6WX0s5ikrMz2wAQZ6fAl293w+C5MmKSAiAM4t0wKP3YiFRi4ZnpHwq5xMeHlLFZkUBZW6FKarB5zQ=="}]},"_npmUser":{"name":"jdjkelly","email":"jdjkelly@gmail.com"},"directories":{},"maintainers":[{"name":"jdjkelly","email":"jdjkelly@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gli2012_1.1.0_1606751032971_0.2553457751899908"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-30T15:27:52.279Z","1.0.0":"2020-11-30T15:27:52.689Z","modified":"2022-04-04T16:38:14.662Z","1.1.0":"2020-11-30T15:43:53.174Z"},"maintainers":[{"name":"jdjkelly","email":"jdjkelly@gmail.com"}],"description":"Continuous prediction equations for spirometric indices","homepage":"https://github.com/Automate-Medical/gli2012#readme","keywords":["medical","lungs","pulmonary","spirometry"],"repository":{"type":"git","url":"git+https://github.com/Automate-Medical/gli2012.git"},"author":{"name":"Automate Medical Inc."},"bugs":{"url":"https://github.com/Automate-Medical/gli2012/issues"},"license":"MIT","readme":"# GLI2012\n\nA TypeScript implementation of Global Lung Function Initiative's multi-ethnic reference values for spirometry for the 3–95-yr age range\n\n## Background\n\n> Spirometry (meaning the measuring of breath) is the most common of the pulmonary function tests (PFTs). It measures lung function, specifically the amount (volume) and/or speed (flow) of air that can be inhaled and exhaled. Spirometry is helpful in assessing breathing patterns that identify conditions such as asthma, pulmonary fibrosis, cystic fibrosis, and COPD. It is also helpful as part of a system of health surveillance, in which breathing patterns are measured over time.\n\nThis module implements the reference value equations specified in [Multi-ethnic reference values for spirometry for the 3–95-yr age range: the global lung function 2012 equations](https://www.ers-education.org/lr/show-media/?id=265530).\n\n## Installation\n\n`npm install @automate-medical/gli2012`\n\nPlease note: \n\n* `@automate-medical/gli2012` is packaged as a **native ES module** only. Your runtime must support native modules (i.e. Node >= 13). \n* `@automate-medical/gli2012` is written in **TypeScript**, declarations are packaged with the build.\n\n## Usage\n\nThis module exports three functions `fvc`, `fev1`, and `fev1fvc`. They each return the expected measurement (M), the percentage of actual vs expected, the upper limit of normal, the lower limit of normal, and a Z-score corresponding to the actual's performance.\n\nPlease see the TypeScript annotations for a full list of function arguments and the return values.\n\nAn example to display the Zscore from a measured FEV1 of a 30 year old caucasian male measuring 165cm:\n\n```\nimport { fev1 } from '@automate-medical/gli2012';\n\nconst result = fev1({ age: 30, sex: \"Male\", height: 165, ethnicity: \"Caucasian\", measured: 3.1 });\nconsole.log(result.zscore);\n```\n\nNote that this implementation exactly implements the ethnicity parameter as described the GLI working group.\n\n## Notice\n\nThis repository is provided for educational purposes only, it has not been reviewed and cannot be used in a clinical practice. The software is provided \"as is\", without any express or implied warranty, and no implication of fitness for a particular use.\n","readmeFilename":"README.md"}