# HL7 FHIR in Python

Create, search and update clinical data on any FHIR server from Python services.

## Get started

Accelerate every FHIR integration with secure, effortless access to patient data on any server.

[Connections](https://zato.io/docs/dev/healthcare/hl7/fhir/connections/index.html)

service.py

```
# Create a patient on a FHIR server
client = self.fhir['FHIR.Sample']

patient = client.resource('Patient')
patient.name = [{'family': 'Chalmers'}]
patient.save()

patient.id
'5f5c8f0b-70e2-4b8e-9d3a-1c8e02f5a3b1'

patients = client.resources('Patient')
patients.search(name='Chalmers').count()
1
```

## Connect

[Connections Every service reaches any FHIR server as self.fhir - credentials, pooling and guaranteed delivery included.](https://zato.io/docs/dev/healthcare/hl7/fhir/connections/index.html) [Security Basic Auth, OAuth and TLS for servers that require credentials - tokens are refreshed for you.](https://zato.io/docs/dev/healthcare/hl7/fhir/security/index.html)

## Work with data

[Resources Create, read, update and delete Patient, Observation and any other resource.](https://zato.io/docs/dev/healthcare/hl7/fhir/resources/index.html) [Searches and bundles Query with parameters and operators - pagination and result bundles are handled for you.](https://zato.io/docs/dev/healthcare/hl7/fhir/bundles/index.html) [Bulk export Pull whole populations out with $export, on a schedule, and land the NDJSON files where you need them.](https://zato.io/docs/dev/healthcare/hl7/fhir/bulk-export/index.html)

## Reach nested data

[Path access Read deeply nested values in one call, with matchers where list order is not guaranteed.](https://zato.io/docs/dev/healthcare/hl7/fhir/path-access/index.html) [Extensions Read and write the fields the base specification does not define.](https://zato.io/docs/dev/healthcare/hl7/fhir/extensions/index.html)

## Plan ahead

[FHIR versions Build on R4 today and keep the move to R6 a configuration change.](https://zato.io/docs/dev/healthcare/hl7/fhir/versions/index.html) [FHIR in Europe Meet EHDS deadlines and national FHIR mandates before they arrive.](https://zato.io/docs/dev/healthcare/hl7/fhir/europe/index.html)
