{"name":"@deckyard/fhir","description":"HL7 FHIR R4 / R5 REST client: read, search with paging, create, update, patch, delete, history, transactions, operations; bearer tokens and SMART backend services","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/deckyard/deck-fhir.git","ref":"0.1.0","commit":"068ee54688c8b557b4147fdff3070ac11d4cb887","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["fhir","hl7","healthcare","rest","smart-on-fhir"],"description":"HL7 FHIR R4 / R5 REST client: read, search with paging, create, update, patch, delete, history, transactions, operations; bearer tokens and SMART backend services","publishedAt":"1794608963","repoId":1457146571,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/fhir\n\n[![test](https://github.com/deckyard/deck-fhir/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-fhir/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-fhir/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-fhir)](https://github.com/deckyard/deck-fhir/releases/latest)\n\nAn HL7 FHIR R4 / R5 client for [Jennifer](https://jennifer-lang.dev/)\nprograms: read, search with paging, create, update and JSON Patch with\nversion checks, delete, history, transactions, batches and operations,\nwith resources as `json.Value`, helpers for references, identifiers,\ncodings, bundles and OperationOutcome, bearer tokens and SMART on FHIR\nbackend services. Every request has a deadline and a response cap, plain\nhttp is refused except to this machine, and the token never follows a link\noff the server.\n\n**[Documentation](https://deckyard.github.io/deck-fhir/)**\n\n## Install\n\n```sh\njvc add @deckyard/fhir\n```\n\nThis vendors the deck to `vendor/\u003cscope\u003e/fhir/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`\u003cscope\u003e-fhir-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nuse io;\n\nimport \"@deckyard/fhir/\" as fhir;\n\ndef c as fhir.Client init fhir.withToken(fhir.client(\"https://fhir.example.org/r4\"), $token);\nfor (def p in fhir.search($c, \"Patient\", [\"family=Doe\"])) {\n    io.printf(\"%s\\n\", fhir.referenceOf($p));\n}\n```\n\n## Requirements\n\nJennifer 0.26.0 or newer and the default `jennifer` binary: the deck needs\n`net`, which the stock `jennifer-tiny` lacks.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/fhir_test.j        # the tests, against a fake server\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n"}