Can we access user health record from healthkit and get patient fhir data?

i want to match the patient with the immunization record i get from healthkit.
How can i access the patients name from health records?
(Healthkit -> User icon -> Health Records -> Sample Location A -> FHIR Patient Data)

You can't access the "Health Profile" the user sets up in the Health app, but you can access the 'Patient' data contained within the FHIR resources and then look at the name property. This will require knowledge of which FHIR release a resource is as well as how to decode the JSON.

To learn more about FHIR resources, checkout the official hl7.org/fhir site.

For R4 version, here is Apple's GitHub FHIRModels lib.
https://github.com/apple/FHIRModels/blob/main/Sources/ModelsR4/Patient.swift#L51

The FHIR Patient resource itself is currently not available via the Health Records API.

Can we access user health record from healthkit and get patient fhir data?
 
 
Q