Async/sync FHIR client for Python providing comprehensive API for CRUD operations over FHIR resources
Agent Success
Agent success rate when using this tile
68%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.08x
Baseline
Agent success rate without this tile
63%
A small utility that assembles core clinical resources and produces their serialized form for submission.
Patient/123); serialization keeps numeric values and nested coding. @test@generates
from typing import Any, Dict, List
def create_patient_record(given_name: str, family_name: str, birth_date: str, city: str, country: str, phone: str) -> Any:
"""Return a patient resource object built from the provided demographics."""
...
def create_observation_record(patient_id: str, code: str, display: str, value: float, unit: str, effective_date: str) -> Any:
"""Return an observation resource object that references the patient."""
...
def build_transaction_bundle(patient: Any, observations: List[Any]) -> Any:
"""Combine patient and observations into a transaction bundle resource."""
...
def serialize_resource(resource: Any) -> Dict[str, Any]:
"""Convert any resource produced by this module into its serialized JSON-safe form."""
...Python FHIR client for constructing and serializing resources.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10