{"_id":"@bluehalo/fhir-json-schema-validator","_rev":"8-7bde5abe994b7de3084265de044b6f4c","name":"@bluehalo/fhir-json-schema-validator","dist-tags":{"latest":"0.11.0"},"versions":{"0.9.9":{"name":"@bluehalo/fhir-json-schema-validator","version":"0.9.9","author":{"name":"Sumeet-S","email":"sshah@asymmetrik.com"},"license":"MIT","_id":"@bluehalo/fhir-json-schema-validator@0.9.9","maintainers":[{"name":"ashin-bluehalo","email":"andrew.shin@bluehalo.com"},{"name":"ekoon121","email":"ekoon@asymmetrik.com"},{"name":"reblace","email":"reblace@gmail.com"}],"homepage":"https://github.com/BlueHalo/node-fhir-server-core","dist":{"shasum":"0de68408d841deef7777e9d4b9e67a38a8f8fcb5","tarball":"https://registry.npmjs.org/@bluehalo/fhir-json-schema-validator/-/fhir-json-schema-validator-0.9.9.tgz","fileCount":17,"integrity":"sha512-UmBsj/+RSOKw12vuMJCo3XpcNs163siSF+oIzXOPreRI3rbAau7IuzmRDf1dkTzyq/tsdMpNjy+HF4FK4ubSdQ==","signatures":[{"sig":"MEQCIAJJMCgjcqO2kw34EgDCGsQtxoDkR0Z0pV358bbN2yvtAiARwNamIuxbAZiDKhDqsrQ0aUl4T7E6wbVlPa0anA2lrw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3434715},"jest":{"verbose":true,"collectCoverage":false,"testEnvironment":"node","coverageReporters":["text","lcov","json"],"coveragePathIgnorePatterns":["<rootDir>/src/testutils/"]},"main":"index.js","gitHead":"717c4ad053a5034563d778318b9ccb673d025930","scripts":{"test":"jest"},"_npmUser":{"name":"ashin-bluehalo","email":"andrew.shin@bluehalo.com"},"repository":{"type":"git","directory":"packages/fhir-json-schema-validator"},"_npmVersion":"8.5.0","description":"FHIR json schema validator","directories":{},"_nodeVersion":"16.14.2","dependencies":{"ajv":"^6.12.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fhir-json-schema-validator_0.9.9_1708113862656_0.34963978641816396","host":"s3://npm-registry-packages"}},"0.11.0":{"name":"@bluehalo/fhir-json-schema-validator","version":"0.11.0","author":{"name":"Sumeet-S","email":"sshah@asymmetrik.com"},"license":"MIT","_id":"@bluehalo/fhir-json-schema-validator@0.11.0","maintainers":[{"name":"ekdeveloper","email":"eugene.koon@bluehalo.com"},{"name":"shane-bh","email":"shane.oneill@bluehalo.com"},{"name":"ashin-bluehalo","email":"andrew.shin@bluehalo.com"},{"name":"reblace","email":"reblace@gmail.com"}],"homepage":"https://github.com/BlueHalo/node-fhir-server-core","dist":{"shasum":"efb5787a5b2eb06978cc61f17764019e8b9541f6","tarball":"https://registry.npmjs.org/@bluehalo/fhir-json-schema-validator/-/fhir-json-schema-validator-0.11.0.tgz","fileCount":7,"integrity":"sha512-/uR5e0BobwzyFwTQzAmR26nyKWObBh/CRf5WAVCKPUHC0eYKzGASGKc35IOH+wKDzeMuYEbionL++SJ5ZXFpdA==","signatures":[{"sig":"MEUCIQDfXqDqcyhSkFm9ZckN23cApqO2YNz089GFna0kUqgwkQIgUNjydIQMwWfvXknNmQeuKgqv0r6VAEFgxXBv6Gc9hkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3381543},"jest":{"verbose":true,"collectCoverage":false,"testEnvironment":"node","coverageReporters":["text","lcov","json"],"coveragePathIgnorePatterns":["<rootDir>/src/testutils/"]},"main":"index.js","gitHead":"717c4ad053a5034563d778318b9ccb673d025930","scripts":{"test":"jest"},"_npmUser":{"name":"ekdeveloper","email":"eugene.koon@bluehalo.com"},"repository":{"type":"git","directory":"packages/fhir-json-schema-validator"},"description":"FHIR json schema validator","directories":{},"dependencies":{"ajv":"^6.12.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fhir-json-schema-validator_0.11.0_1726060538945_0.05408646820835861","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-02-16T20:04:22.583Z","modified":"2026-03-25T20:10:55.875Z","0.9.9":"2024-02-16T20:04:22.916Z","0.11.0":"2024-09-11T13:15:39.299Z"},"author":{"name":"Sumeet-S","email":"sshah@asymmetrik.com"},"license":"MIT","homepage":"https://github.com/BlueHalo/node-fhir-server-core","repository":{"type":"git","directory":"packages/fhir-json-schema-validator"},"description":"FHIR json schema validator","maintainers":[{"email":"reblace@gmail.com","name":"reblace"},{"email":"eugene.koon@bluehalo.com","name":"ekdeveloper"},{"email":"andrew.shin@bluehalo.com","name":"ashin-bluehalo"},{"email":"shane.oneill@bluehalo.com","name":"shane-bh"},{"email":"rnmercado@gmail.com","name":"rodmercad"}],"readme":"# FHIR-JSON-SCHEMA-VALIDATOR\n\n> Utility for validating FHIR resources\n\n## Install\n\n```shell\nyarn add @bluehalo/fhir-json-schema-validator\n```\n\n## Arguments\n\n`@bluehalo/fhir-json-schema-validator` exports a single class called JSONSchemaValidator. This class takes two optional\narguments for initialization:\n\n> #### `schema`\n>\n> This is the path to the JSON schema that you would like to validate against. It defaults to the `fhir.schema.json` file\n> included in this package.\n\n#### `ajvSettings`\n\nThis is an object with the settings to pass on to AJV. It defaults to suppresses `log` and `warn` messages, but logs `error`\nmessages. For a full list of AJV options see the README on the AJV GitHub page athttps://github.com/epoberezkin/ajv.\n\n```\n// Default initialization:\nlet defaultValidator = new JSONSchemaValidator();\n\n// Custom initialization\nlet defaultValidator = new JSONSchemaValidator(schema, ajvSettings);\n```\n\n## Usage\n\nThe QueryBuilder class has a method called `validate` which takes two arguments:\n\n> #### `resource`\n>\n> The resource that is to be validated against the FHIR JSON schema.\n\n> #### `verbose`\n>\n> Boolean value specifying whether or not to return the full set of validation errors (true) or to take the time to\n> condense error messages (false). Defaults to false. The error messages generated by the over-arching json schema\n> are too numerous to be of any use. For any specific resource, we can compile a resource-specific validator and\n> re-validate to get more concise and helpful error messages.\n\nThe `validate` method returns an array that contains any errors generated from validation.\nThis list will be of length 0 if no errors were found.\n\nSee `index.test.js` for examples of usage\n","readmeFilename":"README.md"}