Inconsistencies in Medical Problem APIs: Filtering issues in Standard API and missing display titles in FHIR

Situation
I am experiencing three distinct issues when trying to retrieve a list of medical problems for a specific patient using the APIs.


Issue 1: Standard API GET /medical_problem?puuid={uuid} ignores filter

  • Endpoint: /apis/default/api/medical_problem?puuid=VALID_PUUID

  • Expectation: Should return medical problems only for the specified patient UUID.

  • Actual Result: The response contains medical problems for all patients in the system, completely ignoring the puuid query parameter.

Issue 2: Standard API /patient/{puuid}/medical_problem returns empty

  • Endpoint: /apis/default/api/patient/VALID_PUUID/medical_problem

  • Expectation: Should return a list of problems for that specific patient.

  • Actual Result: Always returns an empty array [], even when the patient has verified medical problems in the GUI.

Issue 3: FHIR API /Condition missing display title

  • Endpoint: /apis/default/fhir/Condition?patient=VALID_PUUID

  • Expectation: The code.coding.display field should contain the title/name of the medical problem (e.g., “Hypertension”).

  • Actual Result: The filtering works perfectly, but the display value is an empty string "".
    “code”: { “coding”: [ { “system”: “…”, “code”: “…”, “display”: “” } ] }

OpenEMR Version
7.0.3 (3)

Browser:
Google Chrome