{"_id":"@amida-tech/blue-button-pim","_rev":"4-8993c2605ee226a7fba515b70c91474d","name":"@amida-tech/blue-button-pim","dist-tags":{"latest":"2.2.6"},"versions":{"2.2.2":{"name":"@amida-tech/blue-button-pim","version":"2.2.2","description":"Patient Identification and Matching based on Blue Button data","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"keywords":["pim","identity","matching","blue button","json","node","javascript"],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"homepage":"https://github.com/amida-tech/blue-button-pim","dependencies":{"doublemetaphone":"^0.1.2","moment":"^2.29.3"},"devDependencies":{"grunt":"^1.5.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-jshint":"^3.2.0","grunt-contrib-watch":"^1.1.0","grunt-jsbeautifier":"^0.2.13","grunt-run":"^0.8.1","jest":"^27.5.1"},"engines":{"node":">= 14.19.1"},"gitHead":"0616fb13892f5f7929dcaaab98294369c43993b1","_id":"@amida-tech/blue-button-pim@2.2.2","_nodeVersion":"16.14.2","_npmVersion":"8.6.0","dist":{"integrity":"sha512-rpjUhlTovhD93ahr0qB99Jff9Qd4lzEkTu+Xjb1XmxvPFZN1zaU30aRrm0FV+NZy+5nIlFAENYU2Hv1xCQQHkw==","shasum":"5c16a80e58fc16fc64d657ea19c74a48c6a63fb6","tarball":"https://registry.npmjs.org/@amida-tech/blue-button-pim/-/blue-button-pim-2.2.2.tgz","fileCount":21,"unpackedSize":35200,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc47gF0JbXAbvetCeyEi6H8umsHlmv9jOuwNJBiMYXXgIgZGSU80frZFYoSj4aVVKdqIT+8Hmhv5a8NeuV47EcUTU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYuxSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpA4w//Vr+7UAMhCCc2HeykN5ODHdqAW9r5tQ6s0l2OuC8fVvd1MMdh\r\nndsrvhXGNVwAifTrMqDLHLOKk7dwoaXDOjMYCZiOKU21hf6o6U6/nSx9IReB\r\nUEVI3/4nHzFl1xN7vKVpHiIHkJ7glnvz9G1QhcveWhBv9cAHZt2G51GdE63O\r\nJt+UmYt7IlLC+8pIH5/jROUxblRbn7axaj1sBXhNh7dA6D/0/jaK7P212yVs\r\ng3YDwbp3cWgKr2999+G6TYIKJBIgjgKgqfvGoP1JuvtPtt8MVq3dgfWd9k+h\r\n21b2ZaI/TZrvkpAcAcJj/rK957luur/s3iG9E7/x8GJ/2tMiTcgNv267MfWx\r\nhX2v5lvKTFKNivIpj9DwertiviZGKjCNivBoVoeWllazD/e03EYET+ojdxSN\r\nGHwdn+suQh5TLZxysxhRpAf7A/1hsaRE2UrUw8x/sZ8fwvjswAdwU9qcQ1HB\r\nhpJ26Lqzmjf9QmkJk41TeQxyn4WruaCNOIlHz3zezfgvlRdfbukoxE6IhpTF\r\nuWVWTTJUQFVdjCejkv2U0I72COgtYbaEDoPcHryiDvLMZLKNmqa+xSZOSOHY\r\na9iGE3HiQlqdyoOnCBqF/pvf99B8VC1bb8YRFrDDddSayAad33dq7xW87X0w\r\nN1AKKZSLM6Ets8+2STFN3oF0drVaPWFkJHk=\r\n=1wpT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"manhydra","email":"marc.sylvestre@manhydra.com"},"directories":{},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blue-button-pim_2.2.2_1650650194087_0.3990221419302884"},"_hasShrinkwrap":false},"2.2.3":{"name":"@amida-tech/blue-button-pim","version":"2.2.3","description":"Patient Identification and Matching based on Blue Button data","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"keywords":["pim","identity","matching","blue button","json","node","javascript"],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"homepage":"https://github.com/amida-tech/blue-button-pim","dependencies":{"doublemetaphone":"^0.1.2","moment":"^2.29.3"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-connect":"^3.0.0","grunt-contrib-jshint":"^3.2.0","grunt-contrib-watch":"^1.1.0","grunt-jsbeautifier":"^0.2.13","grunt-run":"^0.8.1","jest":"^27.5.1"},"engines":{"node":">= 14.19.3"},"gitHead":"3849a7c3bf2e90f963cf712fad1989b2e835bab3","_id":"@amida-tech/blue-button-pim@2.2.3","_nodeVersion":"16.14.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-vHZamRw6Zqfywjk5Vo/qq6uwFAZ7NnBO+F7pTrD4TG6kAnIfSwHuL+uhxhcnnc6eTfysPEGBb/+t1n+4NP8udw==","shasum":"a86b009a19f2e7271e01e0451603b852c353575d","tarball":"https://registry.npmjs.org/@amida-tech/blue-button-pim/-/blue-button-pim-2.2.3.tgz","fileCount":21,"unpackedSize":35419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu7xVU3IJUV5M0CpMcywHQK7If3pfq7gydM3WXrU0PPAIgCNcjVFhu7fNA6ukWWNGSJje+ktDBUqIGJlrF2ICtIn0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilolIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBjg//SVC+wvehzc4ML0j3kEh67w1epiq4XbNQ+bwip1AiS0mBuATF\r\nKpiXcdIubazoQKU3N6HJ4IjCkD+YeLgnNzDgGYAGEvqlLf32Z8xI/tNknVYU\r\nAAQ8w2i5ubKspE+50EeSxR7mx0IHuZgiMsfnxdnDB/3DVOyeH9OMTL3gBSHU\r\nUCyoL/Gwp+w7PT2au2xXU0XFvkHIIKcrvot2/oioISijZLboiRN8tWwJrFKf\r\nbRVFJ8rIBppZJt50gEpzrn2iri2R/EngUEsMo2hBkzo47tip9Y7O8ce8gZtj\r\nL7/Q1Qx5dIEr/rgMZVhYovtI5yrLLJprNCjyCvjdx9qiYZbmPhdx/PF/Z4JV\r\noFZpsW4KHjjMxG5Tvl5sFFhoDtGVamv/VIyC4wcpwHPfoGSpgHtsSBi67m5q\r\nb7TFGUmWMPIc/g3J1k9gxRNxbLWr52YRZbkIR/HffNxFEp8ql5j4+nKGiuGT\r\npNPTQfTp4h1IFqVMd2hZ/1pFkiyXlmW8e9KeShrNdUpXnZxbfpBP/m5YmR0v\r\nGRfUEIYiaPvAELFzlmW2csK9TSF212CEHbblgGJjEl4pB+sK7+Qrhu927Elx\r\n1qDQmtBI6WWVwg+CPKgfo70QUKG7PqR3hgPkikubQYHLRZqVoQFaq4n4Bw40\r\nYBQfoWIe2KiOfcUiNjGhfTT94Dpd6ZvjomY=\r\n=8Fvi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"manhydra","email":"marc.sylvestre@manhydra.com"},"directories":{},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blue-button-pim_2.2.3_1654032711946_0.20321012836180885"},"_hasShrinkwrap":false},"2.2.4":{"name":"@amida-tech/blue-button-pim","version":"2.2.4","description":"Patient Identification and Matching based on Blue Button data","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"keywords":["pim","identity","matching","blue button","json","node","javascript"],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"homepage":"https://github.com/amida-tech/blue-button-pim","dependencies":{"doublemetaphone":"^0.1.2","moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-connect":"^3.0.0","grunt-contrib-jshint":"^3.2.0","grunt-contrib-watch":"^1.1.0","grunt-jsbeautifier":"^0.2.13","grunt-run":"^0.8.1","jest":"^27.5.1"},"engines":{"node":">= 14.19.3"},"gitHead":"40049117da98af83fdb95355ed2b99cfb1230d44","_id":"@amida-tech/blue-button-pim@2.2.4","_nodeVersion":"16.14.2","_npmVersion":"8.12.1","dist":{"integrity":"sha512-nTHMmaSdQMJIclotQrtFHXtAZDuXPwoC8yjG+4J0ScNo5tK9b6Uy3AXpD9iTya/kOgZ7F1dLfRGZBXlbncyS4g==","shasum":"6a8087bbf01ee2d7c90800d7009eb9f25932e54d","tarball":"https://registry.npmjs.org/@amida-tech/blue-button-pim/-/blue-button-pim-2.2.4.tgz","fileCount":21,"unpackedSize":35419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvVSLY6ijTWXMLhoegidQmxwZ3pej/riU9LZWwXCOFSgIhAJA124asvS36PeqCItO+9n/NDWkonZ0yVRqkYZHyMMF4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6YLAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmriew/8ChjAlbSfD0x/eBKiOjCmrXhQ/+p/TFz1QRVPfB5MdZIEsusM\r\nWTraSQS9kJ3OEk9vwCpWrGiu4OoQxofU/dzjpeuY4t1+UV7zWz2AedbaQvMr\r\nBHrvecoKaGuw4N9+6h7vSE6acVef2q66T36JOdOPaXsfzeJrMMvOaxZEFYlg\r\n7adIpu25DhZaWE3xUVtvj8CRVeBqS8gmCNTnE5S/sr+FHzqsczFS4A7WpISc\r\ngemEm9m5s4ILNdk0sgpx0VDFwWvXHYV3u7CEhhrlSd3N5z+XbbgC9gSgp4I3\r\n5DePTyeFcOOpwhl7lxzkGyav9VLXsYDN8Psw2Rx+X63mWdacSZoeO7GIookc\r\nj8OtSWbRZTAvdOGsAPTboH9DpRlb9Pz7PwgPCzWcam2bHAbfi9XfRqjbkONT\r\nrXAiwY8V5DmZI+MOnwnH/lPn3LzeorRnPS2Odz37ZhbeYa3OtNMvdQI//foX\r\n1Zmy95gej9mXsriMtXcdWNNPtQ27hsg7MNoeBE5dhElgy4nbrNPz3LJEXdrD\r\nzx0v5MbB5MzVbwV1W+VNrhjTohO1AjceaDoebOiLP1aW7cZKcEr69yETIAfM\r\nSaeDg8SfiACfJtHArO3I59DvlEKa7TrqhLiFCRE62iDM61iqR+llBi1/fnyW\r\nb18MPs6OkF558rEzgkouCx1CRxTVi/zXDl0=\r\n=m50I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"manhydra","email":"marc.sylvestre@manhydra.com"},"directories":{},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blue-button-pim_2.2.4_1659470527894_0.5845033511470592"},"_hasShrinkwrap":false},"2.2.5":{"name":"@amida-tech/blue-button-pim","version":"2.2.5","description":"Patient Identification and Matching based on Blue Button data","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"keywords":["pim","identity","matching","blue button","json","node","javascript"],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"homepage":"https://github.com/amida-tech/blue-button-pim","dependencies":{"doublemetaphone":"^0.1.2","moment":"^2.29.4"},"devDependencies":{"grunt":"^1.5.3","grunt-contrib-connect":"^3.0.0","grunt-contrib-jshint":"^3.2.0","grunt-contrib-watch":"^1.1.0","grunt-jsbeautifier":"^0.2.13","grunt-run":"^0.8.1","jest":"^29.3.1"},"engines":{"node":">= 14.19.3"},"gitHead":"71607fe3cc2919b90a504e1213f6c5945a8656a0","_id":"@amida-tech/blue-button-pim@2.2.5","_nodeVersion":"16.18.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-VYHvol6HeJubmdl+FhVke/xXncU7uejZZePM9aLNmiuiTyG+UFtmSFjqsV3qwyZYlB2dclhgVIDuya+y2EMNdg==","shasum":"16762ffe4085ad772e7ec930aa6df190ce0bcf84","tarball":"https://registry.npmjs.org/@amida-tech/blue-button-pim/-/blue-button-pim-2.2.5.tgz","fileCount":21,"unpackedSize":35419,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFomBvU/NgDLJNn6W6s3ph3QJ5Qnouu63QH941hR0WlAIhAMOh+NOVUD8KEZmvEG+5DYvSsdg728A4U6hArdDE4JFv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtu0iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTnw/9FBHyBx5NobfP0n/nca2bxKCwFV4qGgzNJsGV3hxhXnvmfxaA\r\nTG/L1HtH+pqzVdQW9VIytfo0F40FSIwjD3RMPdhJo3d73UvF/GjB1d4c7mYs\r\n0qN7hSnMwZ29/T1yc3p0d99pk+YmJwHauoPWBsYLZ5nbzPl7D1P12CAubfCX\r\n4HaxE891wLon2phWzWtrb9DxJ57hGb0XdeGZSPLSyzNFwkOO/JVnlxc6rSgw\r\nlO0TBpYHR7EGNSANaznA52n1U/kJRYDovkBoWWF8koC6GSMR2T8H5L8mbLwc\r\nhdRHzqnUjzVPl9qQ+8G1FfZOXry0nmqaTkhEmlKx3gcFPmgv5tdmF73RtHAQ\r\nIU5hyCJoppssTc5H1tnkMHXMVjDOXVST6eXtRNXwHR1SP3CJD19Ueszln8DY\r\n5gRUzsJjVrPR1+MYgz32kugFD44LkZE4g8k73N+hKzF3WqjKv3LjVPurMubW\r\nc0bDUzPzXFhhY9tGOjDoxfNurS60adpeblQErXN0uf/jbbknaVx4EevqYFsD\r\nSnqDYv3AP2iUw9cpa8JLJZCGCDfuP9IGscvJvL8Tc1c2sHYbSpqdK/e+E7jS\r\nTthwWK6QsWlXPA5tF9AoliWO/IOVchf/j3RB8QpwrIJi+TOOzrCgkjI/l0fL\r\n1sUH+ShZIa5VevbU/jY5F4E7nOPCMPqgyiw=\r\n=Sn8b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"manhydra","email":"marc.sylvestre@manhydra.com"},"directories":{},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blue-button-pim_2.2.5_1672932641808_0.8200918277294478"},"_hasShrinkwrap":false},"2.2.6":{"name":"@amida-tech/blue-button-pim","version":"2.2.6","description":"Patient Identification and Matching based on Blue Button data","main":"index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"keywords":["pim","identity","matching","blue button","json","node","javascript"],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"homepage":"https://github.com/amida-tech/blue-button-pim","dependencies":{"doublemetaphone":"^0.1.2","moment":"^2.30.1"},"devDependencies":{"grunt":"^1.6.1","grunt-contrib-connect":"^4.0.0","grunt-contrib-jshint":"^3.2.0","grunt-contrib-watch":"^1.1.0","grunt-jsbeautifier":"^0.2.13","grunt-run":"^0.8.1","jest":"^29.7.0"},"engines":{"node":">= 18.20.0"},"_id":"@amida-tech/blue-button-pim@2.2.6","gitHead":"35110a46b600b887c418a88a6ba4bec780fb684e","_nodeVersion":"18.19.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Pf8tWLXfOYfnwnqPAdgvYghp+ikvorogl1qtplr+Ur+mwjc6/aOAF9LHApanFy/MGgFPHpDRRIRZOlPf+VnxCQ==","shasum":"e64d21a240b8324d266aaffe14eadb647aae970e","tarball":"https://registry.npmjs.org/@amida-tech/blue-button-pim/-/blue-button-pim-2.2.6.tgz","fileCount":22,"unpackedSize":35849,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaqLS4ofpJC8at6XtwH7oGw1Wri79BFmq52foinr2xVAiBFpUL3YQV6F0tqoKTxC5KE76/347Pv1BS/W17AQFZ0/A=="}]},"_npmUser":{"name":"manhydra","email":"marc.sylvestre@manhydra.com"},"directories":{},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/blue-button-pim_2.2.6_1712344294292_0.5322995622461668"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-22T17:56:34.039Z","2.2.2":"2022-04-22T17:56:34.253Z","modified":"2024-04-05T19:11:34.641Z","2.2.3":"2022-05-31T21:31:52.190Z","2.2.4":"2022-08-02T20:02:08.079Z","2.2.5":"2023-01-05T15:30:41.980Z","2.2.6":"2024-04-05T19:11:34.434Z"},"maintainers":[{"name":"manhydra","email":"marc.sylvestre@manhydra.com"}],"description":"Patient Identification and Matching based on Blue Button data","homepage":"https://github.com/amida-tech/blue-button-pim","keywords":["pim","identity","matching","blue button","json","node","javascript"],"repository":{"type":"git","url":"git+https://github.com/amida-tech/blue-button-pim.git"},"contributors":[{"name":"Jacob Sachs","email":"jacob@amida-tech.com","url":"http://github.com/jsachs"},{"name":"Marc Sylvestre","email":"marc.sylvestre@manhydra.com"}],"author":{"name":"Dmitry Kachaev","email":"dmitry.kachaev@gmail.com","url":"http://github.com/kachok"},"bugs":{"url":"https://github.com/amida-tech/blue-button-pim/issues"},"license":"Apache-2.0","readme":"Blue Button PIM\n===============\n[![NPM](https://nodei.co/npm/@amida-tech/blue-button-pim.png)](https://nodei.co/npm/@amida-tech/blue-button-pim/)\n\nPatient Identification and Matching based on Blue Button data\n\nBlocking phase - filter all patient population using blocker filter\nCandidates comparison phase - compare candidates with patient data one by one\nScoring phase - Weight two records for potential match\nMatch evaluation phase - Evaluate score result\n\nPIM relies on  Data Matching Algorithm use by the Oklahoma Department of Mental Health and Substance Abuse Services (ODHMSAS) which in turn was influenced by the article by Matthew A. Jaro published in the Statistics in Medicine Journal, Vol. 14, 491-198 (1995) titled [\"Probabilistic Linkage of Large Public Health Data Files.\"] (http://www3.interscience.wiley.com/journal/114131327/abstract)\n\n\n## Quick up and running guide\n\n### Prerequisites\n\n- Node.js (v14.19+) and NPM\n- Grunt.js\n\n```\n# Install dependencies\nnpm i\n\n# Install grunt\nnpm i -g grunt\n\n# Test\ngrunt\n\n```\n\n## Module components\n\n### calculateBlockers(data)\nThis function returns an object with the blocking traits for a given patient's demographic information.\nThe purpose of this object is for targeted filtering in MongoDB queries. For exampe, we could use the following\ncode to return a set of candidates for comparison:\n```\nvar pim = calculateBlockers(data);\n\nvar query = model.find({\n  $or: [{\n    \"pim.lnmpdob\": pim.lnmpdob\n  }, {\n    \"pim.lnmpfnpc\": pim.lnmpfnpc\n  }, {\n    \"pim.lnfn\": pim.lnfn\n  }, {\n    \"pim.smdlastname13\": pim.smdlastname13\n  }]\n});\n\nquery.exec(function (err, results) {\n  if (err) {\n    callback(err);\n  } else {\n    callback(null, results);\n  }\n});\n```\nWithin the callback we can compare candidates.\n\n### compareCandidates(data, candidates, shim)\nThis function will take demographic data and a list of candidates and return a list of matches and flagged candidates.\nEach object in the result array has a `pat_key` and a flag `match`. An ideal implementation of this module would result in\nonly one `automatic` result at a time. In the case that there is a `manual` result, a user should be presented with\n_all_ results flagged as `manual`. An optional `shim` can be passed for translating demographic data within a database\nto match the schema detailed in [`blocker.js`](lib/blocker.js).\n\n## Contributing\n\nContributors are welcome. See issues https://github.com/amida-tech/blue-button-pim/issues\n\n## Release Notes\n\nSee release notes [here](./RELEASENOTES.md)\n\n## License\n\nLicensed under [Apache 2.0](./LICENSE)\n\n\n[npm-image]: https://nodei.co/npm/@amida-tech/blue-button-pim.png?compact=true\n[npm-url]: https://nodei.co/npm/@amida-tech/blue-button-pim\n","readmeFilename":"README.md"}