Query and ingest patient charts using HL7 FHIR R4 standard endpoints.
MedIngest exposes queryable FHIR resources that conform to the US Core Implementation Guide. Developers can request structured resources using standard query strings.
| FHIR Resource | Method | Endpoint Path |
|---|---|---|
| Patient | GET / POST | /fhir/r4/Patient |
| Observation | GET / POST | /fhir/r4/Observation |
| MedicationRequest | GET / POST | /fhir/r4/MedicationRequest |
Request a list of lab results filtered by patient ID and LOINC test codes:
# Fetch patient observations by LOINC code
GET https://api.medingest.ai/fhir/r4/Observation?patient=pat-123&code=2951-2
Authorization: Bearer YOUR_API_TOKEN
Accept: application/fhir+json
# Response 200 OK
{
"resourceType": "Bundle",
"type": "searchset",
"entry": [
{
"resource": {
"resourceType": "Observation",
"id": "obs-Na",
"status": "final",
"code": {
"coding": [{
"system": "http://loinc.org",
"code": "2951-2",
"display": "Sodium [Moles/volume] in Serum or Plasma"
}]
},
"subject": { "reference": "Patient/pat-123" },
"valueQuantity": {
"value": 138,
"unit": "mmol/L",
"system": "http://unitsofmeasure.org",
"code": "mmol/L"
}
}
}
]
}