Tag: Python
All the articles with the tag "Python".
-
De-identifying FHIR data: HIPAA Safe Harbor, limited data sets and leaks
Dropping name and SSN is not de-identification. Apply HIPAA Safe Harbor to FHIR NDJSON with an allowlist, surrogate keys and a leak check, in Python.
-
HL7 v2 ADT feeds: from pipe-delimited events to an encounters table
Parse HL7 v2 ADT messages in plain Python, ACK them over MLLP, and fold admits, discharges and cancellations into one row per hospital visit.
-
From SSH keys to SMART Backend Services: auth for system-to-system FHIR
Replace long-lived SFTP keys with SMART Backend Services: JWKS, signed JWT assertions, short-lived scoped tokens. Client and FastAPI server in Python.
-
Bulk export and async jobs: serving large rosters with $davinci-data-export
Large rosters don't fit in one response. Implement the FHIR Bulk Data async pattern — kick-off, polling, NDJSON manifest — in FastAPI and httpx.
-
From full replace to deltas: $member-add and $member-remove in FastAPI
Replace last-file-wins rosters with explicit FHIR member-add/remove operations, list status gating, inactive flags and versioned Groups in FastAPI.
-
Modeling a patient roster as a FHIR Group (Da Vinci ATR)
Map a roster CSV to FHIR Group, Patient and Coverage using the Da Vinci ATR profile — with a Python converter and namespaced identifiers.
-
Python datetimes: naive vs aware, date parts, next day and total_seconds
· UpdatedFix 'can't compare offset-naive and offset-aware datetimes', split YYYYMMDD into year/month/day, add a day with timedelta, and why .seconds isn't total_seconds().
-
Python logging: levels, file output, and separate console and file handlers
· UpdatedReplace print() with Python's logging module: levels, basicConfig to a file, and a named logger with DEBUG to file and INFO+ to console (yfinance example).