| description | PHP toolkit for FHIR — code generation, serialization, validation, and FHIRPath. |
|---|---|
| icon | book-medical |
PHP FHIR Tools is a PHP 8.3+ library monorepo for working with
FHIR (Fast Healthcare Interoperability Resources). FHIR is the HL7
standard for exchanging healthcare data as structured resources such as Patient, Observation,
and Questionnaire. This toolkit generates PHP model classes from FHIR Structure Definitions,
serializes resources to and from JSON and XML, validates resources against the specification and
Implementation Guides, and evaluates FHIRPath 2.0 expressions.
{% hint style="info" %}
The packages can be used independently or together. If you only need serialization, install
ardenexal/fhir-serialization; if you are building a Symfony application, ardenexal/fhir-bundle
wires everything for you.
{% endhint %}
| Capability | Package | Docs |
|---|---|---|
| Generate PHP models from FHIR definitions | ardenexal/fhir-code-generation |
Code Generation |
| JSON / XML serialization | ardenexal/fhir-serialization |
Serialization |
| Resource & profile validation | ardenexal/fhir-validation |
Validation |
| FHIRPath expression evaluation | ardenexal/fhir-path |
FHIRPath |
| Symfony integration | ardenexal/fhir-bundle |
Symfony Bundle |
- New to the library? Start with Installation and the Quick Start.
- Not sure which package you need? See Choosing the Right Package.