I am trying to get FHIR Condition resource from OpenEMR v7. However:
- I cannot get title and comments of the Medical Problem by FHIR Condition API.
- I tried all FHIR resources APIs, none of them could return title and comments of the Medical Problem.
- opemEMR API - /api/medical_problem could successfully return them.
Does anyone know what should I do to extract the title and comments information of Medical Problem through FHIR APIs?
Thanks!
For example, the Medical Problem looks like following:
OpenEMR API /api/medical_problem returns both code, title, comments:
{
"validationErrors": [],
"internalErrors": [],
"data": [
{
"id": 2,
"uuid": "9f4afe15-4078-4c17-93f3-b5aa78721585",
"date": "2025-07-02 08:07:49",
"type": "medical_problem",
"subtype": "eye",
"title": "asthma for 2 weeks",
"udi": null,
"udi_data": null,
"begdate": "2025-05-02 16:19:00",
"enddate": null,
"returndate": null,
"occurrence": 1,
"classification": 0,
"referredby": "",
"extrainfo": null,
"diagnosis": {
"J45.909": {
"code": "J45.909",
"description": "",
"code_type": "ICD10",
"system": "2.16.840.1.113883.6.90"
}
},
"activity": 1,
"comments": "asthma for 2 weeks, better now",
"pid": 3,
"user": "johnsmith",
"groupname": "Default",
"outcome": 4,
"destination": "",
"reinjury_id": 0,
"injury_part": "",
"injury_type": "",
"injury_grade": "",
"reaction": "unassigned",
"verification": "confirmed",
"external_allergyid": null,
"erx_source": "0",
"erx_uploaded": "0",
"modifydate": "2025-07-07 07:47:11",
"severity_al": "unassigned",
"external_id": null,
"list_option_id": "asthma",
"patient_id": 3,
"encounter_uuid": null,
"puuid": "9f4ad5c7-2202-4844-88a4-98bb1e8b580d",
"patient_uuid": "9f4ad5c7-2202-4844-88a4-98bb1e8b580d",
"condition_uuid": "9f4afe15-4078-4c17-93f3-b5aa78721585",
"last_updated_time": "2025-07-07 07:47:11",
"verification_title": "Confirmed",
"provider_id": 6,
"provider_npi": "",
"provider_uuid": "9f4a828b-6e03-4c09-b641-1bab99c860de",
"provider_username": "johnsmith"
}
],
"links": {
"first": "https://openemr.test.empathia.net/apis/default/api/medical_problem?site=default&_offset=0&_count=0"
}
}
FHIR Condition API returns only code, no title/comments returned.
{
"meta": {
"lastUpdated": "2025-07-08T14:12:56"
},
"resourceType": "Bundle",
"type": "collection",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://openemr.test.empathia.net/apis/default/fhir/Condition"
}
],
"entry": [
{
"fullUrl": "https://openemr.test.empathia.net/apis/default/fhir/Condition/9f4afe15-4078-4c17-93f3-b5aa78721585",
"resource": {
"id": "9f4afe15-4078-4c17-93f3-b5aa78721585",
"meta": {
"versionId": "1",
"lastUpdated": "2025-07-07T07:47:11+00:00"
},
"resourceType": "Condition",
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "resolved",
"display": "Resolved"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"code": "confirmed",
"display": "Confirmed"
}
]
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
"code": "problem-list-item",
"display": "Problem List Item"
}
]
}
],
"code": {
"coding": [
{
"system": "2.16.840.1.113883.6.90",
"code": "J45.909",
"display": ""
}
]
},
"subject": {
"reference": "Patient/9f4ad5c7-2202-4844-88a4-98bb1e8b580d"
}
}
}
]
}