{"_id":"@antsa/fhirtypes","name":"@antsa/fhirtypes","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@antsa/fhirtypes","version":"1.0.0","description":"Antsa FHIR Type Definitions","author":{"name":"Antsa","email":"hello@antsa.com"},"license":"Apache-2.0","homepage":"https://www.antsa.com/","repository":{"type":"git","url":"https://git.powergatevn.com/division2/antsa.git","directory":"packages/fhirtypes"},"scripts":{"clean":"","build":"","test":""},"main":"","types":"dist/index.d.ts","sideEffects":false,"keywords":["antsa","fhir","healthcare","interoperability","json","serialization","hl7","standards","clinical","dstu2","stu3","r4","normative"],"gitHead":"d53b79bd472703536459353c2e51b9b99f300099","_id":"@antsa/fhirtypes@1.0.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-NXOarn4f4g9sJq0z4R+63DLCMnhuX6sj/feahHLbl2IedWK2sy2z9XGzfCWkk3uNnvw6kFRNKfbJD0qnIy1U0Q==","shasum":"fa3428585411b767a1650af1087f39fc684bc8fb","tarball":"https://registry.npmjs.org/@antsa/fhirtypes/-/fhirtypes-1.0.0.tgz","fileCount":209,"unpackedSize":2485594,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJFQDPM/u8CtOPwrkATY6D+YUKia2ZoefVEHiqC/vhQAiAOx2748+LyKCT2n+5j8WfZ6LVngstRH5L4Q/1Ei2mXAA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEnzoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmry1A/+JwXCf4ynEm6D5PG7gjbEuIG0Nrv3D7ybx9QltFebbl+C7o6R\r\npvdgytbkFCV8EMqkXLy7fyLFrJ+bC7q/6dsEeufq4IK+kWaux5ZnzZIVZMbd\r\n2cdJwRnXrXSpyg6RvPsr7CE34vfmbc45Sc1jejpdgpoGjGfqpJvgXta13tG7\r\nR0huMh6WjpKQknNwv8msr4xbIG2Q4QUL3sQ35YT8DeLNrxToo2cVHTw1ShDS\r\nwZgiSKLzEUfbzU9Fd1yk5BW/9Y3iQs6SsSuxSJ95E46Pv2p+jUu6tL2L+Alu\r\nu2mdWRxqnAW9dQLlYF03N4CmKvaHqCavaolz11LB6Trmxwuy75dTQjZqdDs0\r\nZBzu9PqqMIPxY/DyNsMwv5VfXFLrIbMvNV1FhN8QudETAnPTEED4aD0PvpAo\r\ngzbfKf6i2Tmqa50HhXcScnrbopOUX1JGfZXoIBkZf85tEgmc3KPHHJLSGej3\r\nu9k9oArlnZa2IJGST8Sc6Xi6J0zYg5diDO8n2UHDg3rW6mIUvq4lB73grFHF\r\nfiSGNef2zi4E9YbaOfvm4UD4T42zLa45k3xw6tXw4kHWg5PBw1idKfM5gy4U\r\nCojDQekxYAUfNp/6CYVKjtJva35hMzkLk6UfeuoM76h+nimeWTuUWJigUyn/\r\nCrQWal1exmCxsWxhQWoFgTypLzbHEfJJzsI=\r\n=7JPq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"huukhai","email":"huukhai0510@gmail.com"},"directories":{},"maintainers":[{"name":"huukhai","email":"huukhai0510@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fhirtypes_1.0.0_1678933224055_0.1642890080114301"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-16T02:20:23.921Z","1.0.0":"2023-03-16T02:20:24.314Z","modified":"2023-03-16T02:20:24.518Z"},"maintainers":[{"name":"huukhai","email":"huukhai0510@gmail.com"}],"description":"Antsa FHIR Type Definitions","homepage":"https://www.antsa.com/","keywords":["antsa","fhir","healthcare","interoperability","json","serialization","hl7","standards","clinical","dstu2","stu3","r4","normative"],"repository":{"type":"git","url":"https://git.powergatevn.com/division2/antsa.git","directory":"packages/fhirtypes"},"author":{"name":"Antsa","email":"hello@antsa.com"},"license":"Apache-2.0","readme":"# Antsa FHIR Type Definitions\n\nThis library contains [TypeScript](https://www.typescriptlang.org/) type definitions for all [R4 types](https://www.hl7.org/fhir/valueset-resource-types.html).\n\n## Installation\n\nAdd as a dependency:\n\n```bash\nnpm install --save-dev @antsa/fhirtypes\n```\n\n## Basic Usage\n\nConsider the following untyped code:\n\n```ts\nconst myPatient = {\n  resourceType: 'Patient',\n  name: 'George Washington',\n};\n```\n\nKeen observers will note that `Patient.name` should not be a string. Instead, it should be an array of `HumanName` objects.\n\nLet's add the type definition and see what happens:\n\n```ts\nimport { Patient } from '@antsa/fhirtypes';\n\nconst myPatient: Patient = {\n  resourceType: 'Patient',\n  name: 'George Wasington',\n};\n```\n\nNow \"name\" is a compile error. Developer tools with TypeScript support should provide feedback. For example, VS Code adds red squigglies and a helpful error message:\n\n![Antsa fhirtypes screenshot](https://user-images.githubusercontent.com/749094/146444130-ac3a2c5d-3a9a-429d-8db3-5581986c05dc.png)\n\nAnd now you will receive typeahead support:\n\n![Antsa fhirtypes typeahead](https://user-images.githubusercontent.com/749094/146444465-974f6a3e-f655-4212-893b-fad14b1c4386.png)\n\nSo we can build a well-formed example:\n\n```ts\nimport { Patient } from '@antsa/fhirtypes';\n\nconst myPatient: Patient = {\n  resourceType: 'Patient',\n  name: [\n    {\n      given: ['George'],\n      family: 'Washington',\n    },\n  ],\n};\n```\n\n## About Antsa\n\nAntsa is a healthcare platform that helps you quickly develop high-quality compliant applications. Antsa includes a FHIR server, React component library, and developer app.\n\n## License\n\nApache 2.0. Copyright &copy; Antsa 2023\n","readmeFilename":"README.md"}