Stanford Spezi FHIR Implementation Guide
0.1.0 - ci-build
Publish Box goes here
This section provides comprehensive guidance on representing mobile health data using the Spezi framework and FHIR standards. Mobile health applications generate vast amounts of health data from various sources including device sensors, user inputs, and wearables. The Spezi framework provides standardized approaches for collecting, transforming, and representing this data using HL7 FHIR resources.
On iOS platforms, Spezi applications leverage the HealthKitOnFHIR library in combination with SpeziHealthKit to serialize HealthKit data into FHIR Observations.
HealthKitOnFHIR converts HealthKit samples to FHIR Observations using this structure:
{
"resourceType": "Observation",
"id": "spezi-healthkit-steps-example",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "survey"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "55423-8",
"display": "Number of steps"
}
]
},
"subject": {
"reference": "Patient/example-patient"
},
"effectiveDateTime": "2024-01-15T10:30:00Z",
"valueQuantity": {
"value": 8542,
"unit": "steps",
"system": "http://unitsofmeasure.org",
"code": "{steps}"
},
"device": {
"display": "iPhone Health App"
}
}