HIMS FHIR documentation version 1.0
The Immunization resource identifies an immunization performed on a patient. A bundle of these resources together can be used to represent the immunization history of the patient.
The Immunization resource returns data classes and elements defined for Immunizations in United States Core Data for Interoperability (USCDI v2). Example API requests for immunization records are shown below:
Retrieve all immunizations related to a patient
curl --request GET \
--url 'https://fhir-api.hmsfirst.com/r4/Immunization?patient={patientId}' \
--header 'Accept: application/fhir+json' \
--header 'Authorization: Bearer ACCESS_TOKEN'
Examples:
GET https://fhir-api.hmsfirst.com/r4/Immunization?patient=29355
Response schema
{
"type": "object",
"required": [],
"properties": {
"resourceType": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"total": {
"type": "number"
},
"link": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"relation": {
"type": "string"
},
"url": {
"type": "string"
}
}
}
},
"entry": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"fullUrl": {
"type": "string"
},
"resource": {
"type": "object",
"required": [],
"properties": {
"resourceType": {
"type": "string"
},
"id": {
"type": "string"
},
"meta": {
"type": "object",
"required": [],
"properties": {
"versionId": {
"type": "string"
},
"lastUpdated": {
"type": "string"
},
"profile": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"status": {
"type": "string"
},
"statusReason": {
"type": "object",
"required": [],
"properties": {
"coding": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"system": {
"type": "string"
},
"code": {
"type": "string"
}
}
}
}
}
},
"vaccineCode": {
"type": "object",
"required": [],
"properties": {
"coding": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"system": {
"type": "string"
},
"code": {
"type": "string"
}
}
}
},
"text": {
"type": "string"
}
}
},
"patient": {
"type": "object",
"required": [],
"properties": {
"reference": {
"type": "string"
}
}
},
"occurrenceDateTime": {
"type": "string"
},
"primarySource": {
"type": "string"
}
}
}
}
}
}
}
}