Async/sync FHIR client for Python providing comprehensive API for CRUD operations over FHIR resources
68
A helper module for retrieving FHIR resources efficiently using the result-fetching utilities of the dependency client.
ValueError when no active Patient exists. @test@generates
from typing import Any, Dict, List, Tuple
def get_resource(client: Any, resource_type: str, resource_id: str) -> Dict[str, Any]:
"""
Retrieve a single resource by type and id using the provided client.
"""
def first_active_patient_id(client: Any) -> str:
"""
Return the id of the first active Patient. Raises ValueError when none exist.
"""
def list_patient_appointments(client: Any, patient_id: str) -> Tuple[List[str], int]:
"""
Return appointment ids for the patient across all pages ordered by start ascending,
along with the server-reported total count of matches.
"""
def raw_encounter_bundle(client: Any, status: str) -> Dict[str, Any]:
"""
Return the raw bundle for Encounters matching the given status, preserving included resources.
"""Provides FHIR client and resource search helpers.
Install with Tessl CLI
npx tessl i tessl/pypi-fhirpyevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10