{"id":38683127,"url":"https://github.com/trostalski/fhan","last_synced_at":"2026-01-17T10:17:15.128Z","repository":{"id":206421563,"uuid":"693813501","full_name":"trostalski/fhan","owner":"trostalski","description":"A simple client to query FHIR servers","archived":false,"fork":false,"pushed_at":"2024-10-17T13:55:26.000Z","size":2785,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-20T14:59:21.795Z","etag":null,"topics":["data","fhir","fhir-client","healthcare","interoperability"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trostalski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-19T19:05:59.000Z","updated_at":"2024-10-17T13:55:30.000Z","dependencies_parsed_at":"2024-09-05T14:43:47.870Z","dependency_job_id":"018cbfde-7c60-4882-b10c-e4f964ca66a1","html_url":"https://github.com/trostalski/fhan","commit_stats":{"total_commits":71,"total_committers":2,"mean_commits":35.5,"dds":"0.12676056338028174","last_synced_commit":"98f725359d1c3049bc7ba9bfdf9208f638c92ade"},"previous_names":["trostalski/fhan"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trostalski/fhan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trostalski%2Ffhan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trostalski%2Ffhan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trostalski%2Ffhan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trostalski%2Ffhan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trostalski","download_url":"https://codeload.github.com/trostalski/fhan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trostalski%2Ffhan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","fhir","fhir-client","healthcare","interoperability"],"created_at":"2026-01-17T10:17:15.061Z","updated_at":"2026-01-17T10:17:15.123Z","avatar_url":"https://github.com/trostalski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fhan\n\n**At least Python 3.10 is required**\n\nFhan is a small [FHIR](https://www.hl7.org/fhir/overview.html) query client with a focus on performance and usability.\n\n```python\nfrom fhan.client import Client\n\nclient = Client(base_url=\"https://demo.kodjin.com/fhir\", authenticate=False)\npatients = client.get(\"Patient\", count=1)\nprint(patients)\n```\n\n## Installation\n\nTo get started with Fhan, install it using pip:\n\n```shell\npip install fhan\n```\n\n## Basic Usage\n\n**Check out the [example notebooks](./examples).**\n\nAfter installation, you can begin using Fhan to query FHIR resources:\n\n```python\nfrom fhan.client import Client\n\n# The server is public and does not require authentication\nclient = Client(\"https://demo.kodjin.com/fhir/Condition\", authenticate=False)\n```\n\nGet a Resource by id:\n\n```python\nclient.get(\"Condition\", \"13b810dc-58d5-42e3-b34f-5e2454401561\")\n```\n\nSearch for resources:\n\n```python\nclient.get(\"Observation\", search_params={\"code\":\"249227004\"}, count=20)\n```\n\n## Authentication\n\nFor servers that require authentication:\n\nCopy `.env.example` to `.env`.\nFill in your authentication details in the .env file.\nCurrently, Fhan supports a limited set of authentication methods. Contributions to expand authentication support are welcome!\n\n## Tools\n\n- [fhirmodels](https://github.com/trostalski/fhirmodels/tree/main) for python fhir objects.\n- [Fhir-Views](https://fhir-views.vercel.app/) to inspect FHIR Bundles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrostalski%2Ffhan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrostalski%2Ffhan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrostalski%2Ffhan/lists"}